[02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send [02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:09]OFD Sender: No OFD packet to send [03:00:14]OFD Sender: No OFD packet to send [03:00:19]OFD Sender: No OFD packet to send [03:00:24]OFD Sender: No OFD packet to send [03:00:29]OFD Sender: No OFD packet to send [03:00:34]OFD Sender: No OFD packet to send [03:00:39]OFD Sender: No OFD packet to send [03:00:44]OFD Sender: No OFD packet to send [03:00:49]OFD Sender: No OFD packet to send [03:00:54]OFD Sender: No OFD packet to send [03:00:59]OFD Sender: No OFD packet to send [03:01:04]OFD Sender: No OFD packet to send [03:01:09]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:35]OFD Sender: No OFD packet to send [03:01:40]OFD Sender: No OFD packet to send [03:01:45]OFD Sender: No OFD packet to send [03:01:50]OFD Sender: No OFD packet to send [03:01:55]OFD Sender: No OFD packet to send [03:02:00]OFD Sender: No OFD packet to send [03:02:05]OFD Sender: No OFD packet to send [03:02:10]OFD Sender: No OFD packet to send [03:02:15]OFD Sender: No OFD packet to send [03:02:20]OFD Sender: No OFD packet to send [03:02:25]OFD Sender: No OFD packet to send [03:02:30]OFD Sender: No OFD packet to send [03:02:35]OFD Sender: No OFD packet to send [03:02:40]OFD Sender: No OFD packet to send [03:02:45]OFD Sender: No OFD packet to send [03:02:50]OFD Sender: No OFD packet to send [03:02:55]OFD Sender: No OFD packet to send [03:02:57]accept exits with 7 [03:02:57]New connection [03:02:57]New thread 3066510692 created [03:02:57]Thread 3066654052 joined [03:02:57]Waiting for new connection... [03:02:57] Sock 7.Parse request [03:02:57]Sock 7.Check first char [03:02:57]Sock 7.First char is OK [03:02:57]request: POST /json_proto HTTP/1.0 [03:02:57]Method: POST [03:02:57]URL: /json_proto [03:02:57]Method is POST - this is cgi request [03:02:57]url: /json_proto [03:02:57]query_string will be loaded in cgi processing [03:02:57]execute_cgi json_proto POST (null) [03:02:57]execute_cgi path=json_proto method=POST [03:02:57]POST find Content-Length [03:02:57]Host: 172.17.50.196:8080 [03:02:57]Content-Length: 2044 [03:02:57]Content-Type: application/json [03:02:57] [03:02:57]POST finish read [03:02:57]Found Content-Length = 2044 [03:02:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335686", "tax_sys" : 0, "items" : [ { "code": "4607018771791", "name": "\u041C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0432\u043E\u0434\u0430 \u0415\u0441\u0441\u0435\u043D\u0442\u0443\u043A\u0438 17 0,45\u043B \u0441\u0442", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001414", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,75\u043B \u041F\u042D\u0422", "price" : 165.00, "quantity" : 1.000, "sum" : 165.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 }]} ,{ "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46227720", "name": "\u0420/\u0436 mentos pure fresh \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u0440\u043E\u043B\u043B 15,5", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 640.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:02:57]execute_script... [03:02:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335686", "tax_sys" : 0, "items" : [ { "code": "4607018771791", "name": "\u041C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0432\u043E\u0434\u0430 \u0415\u0441\u0441\u0435\u043D\u0442\u0443\u043A\u0438 17 0,45\u043B \u0441\u0442", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001414", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,75\u043B \u041F\u042D\u0422", "price" : 165.00, "quantity" : 1.000, "sum" : 165.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 }]} ,{ "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46227720", "name": "\u0420/\u0436 mentos pure fresh \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u0440\u043E\u043B\u043B 15,5", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 640.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:02:57]POST & json_proto [03:02:57]process_json_proto [03:02:57]json parsed OK: [03:02:57]protocol is kg_v1.0 [03:02:57]action value=close_receipt [03:02:57]process_action close_receipt [03:02:57]cmd_close_receipt [03:02:57]MH_GetDate [03:02:57]Write to MH i2c: F0 00 00 D0 41 00 [03:02:57]Write i2c OK [03:02:57]MH_I2C_Read... [03:02:57]Read from MH i2c: F0 [03:02:57]MH_I2C_Read... [03:02:57]Read from MH i2c: F0 09 00 [03:02:57]MH_I2C_Read... [03:02:57]Read from MH i2c: F0 09 00 D0 41 00 E5 44 24 67 72 0D 1C 67 BF [03:02:57]GetLastDocTimeStamp 1730429564 [03:02:57]current date 1730430181 [03:02:57]FM_GetShiftState [03:02:57]SAM_PROTO_GetShiftState [03:02:57]wFMCommunicate request_size=4 [03:02:57]MH_SAM_APDU [03:02:57]CAPDU: 80 13 01 00 [03:02:57]Write to MH i2c: E2 08 00 D1 41 80 13 01 00 00 00 00 00 8F [03:02:57]Write i2c OK [03:02:57]MH_I2C_Read... [03:02:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:02:57]Read from MH i2c: E2 [03:02:57]MH_I2C_Read... [03:02:57]Read from MH i2c: E2 0E 00 [03:02:57]MH_I2C_Read... [03:02:57]Read from MH i2c: E2 0E 00 D1 41 00 09 00 01 89 19 24 67 00 00 00 00 90 00 C8 [03:02:57]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [03:02:57]wFMCommunicate OK [03:02:57]SAM_PROTO_GetShiftState done [03:02:57]FM_GetShiftState done [03:02:57]opened in 1730419081 [03:02:57]opened+sec_in_day 1730505481 [03:02:57]quantity*price = 10500 [03:02:57]sum+1 = 10501 [03:02:57]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860019001414 Вода Боржоми 0,75л ПЭТ 1.000 * 165.00 = 165.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 4.000 * 7.00 = 28.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4780014240406 Сигареты Sovereign Blue 1.000 * 134.00 = 134.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091607 Сигареты ESSE Exchange 1.000 * 159.00 = 159.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46227720 Р/ж mentos pure fresh виноград ролл 15,5 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 640.00 НСП 1% : 5.67 НДС 12% : 67.95 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 48 01.11.2024 03:03 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139867 ФПД: 121460903534295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T030301&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139867&fm=121460903534295&tin=02508201610067®Number=0000000000091631&sum=64000 0 [03:02:59]StoreToDocumentArchive [03:02:59]shift 558 fd 139867 [03:02:59]save to /storage/0558/doc_00139867 [03:02:59]save last doc name /storage/0558/doc_00139867 to /storage/kkm_last_doc_name [03:02:59]save OK [03:02:59]Clear old archive folders... [03:02:59]ProcessDocumentItem done err = 0, tmpTLVsize=859 [03:02:59]tlvbuf is B6D5F720 [03:02:59]SAM_PROTO_ClearQueue [03:02:59]wFMCommunicate request_size=4 [03:02:59]MH_SAM_APDU [03:02:59]CAPDU: 80 09 00 00 [03:02:59]Write to MH i2c: E2 08 00 DE 41 80 09 00 00 00 00 00 00 91 [03:02:59]Write i2c OK [03:02:59]MH_I2C_Read... [03:02:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:02:59]Read from MH i2c: E2 [03:02:59]MH_I2C_Read... [03:02:59]Read from MH i2c: E2 03 00 [03:02:59]MH_I2C_Read... [03:02:59]Read from MH i2c: E2 03 00 DE 41 00 90 00 93 [03:02:59]RAPDU: 90 00 [03:02:59]wFMCommunicate OK [03:02:59]SAM_PROTO_ClearQueue done [03:02:59]KKMCreateOFDPacket [03:02:59]OFDProtocolAddRootSTLVToBuf [03:02:59]FM_MakeSignedData [03:02:59]FM_MakeSignedData [03:02:59]SAM_PROTO_SignData [03:02:59]wFMCommunicate request_size=4 [03:02:59]MH_SAM_APDU [03:02:59]CAPDU: 80 0D 01 02 [03:02:59]Write to MH i2c: E2 08 00 DF 41 80 0D 01 02 00 00 00 00 99 [03:02:59]Write i2c OK [03:02:59]MH_I2C_Read... [03:02:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:02:59]Read from MH i2c: E2 [03:02:59]MH_I2C_Read... [03:02:59]Read from MH i2c: E2 03 00 [03:02:59]MH_I2C_Read... [03:02:59]Read from MH i2c: E2 03 00 DF 41 00 90 00 94 [03:02:59]RAPDU: 90 00 [03:02:59]wFMCommunicate OK [03:02:59]wFMCommunicate request_size=255 [03:02:59]MH_SAM_APDU [03:02:59]CAPDU: 80 0D 02 02 FA 03 00 5B 03 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 [03:02:59]Write to MH i2c: E2 02 01 E0 41 80 0D 02 02 FA 00 03 00 5B 03 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 D3 [03:02:59]Write i2c OK [03:02:59]MH_I2C_Read... [03:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:02:59]Read from MH i2c: E2 [03:02:59]MH_I2C_Read... [03:02:59]Read from MH i2c: E2 03 00 [03:02:59]MH_I2C_Read... [03:02:59]Read from MH i2c: E2 03 00 E0 41 00 90 00 95 [03:02:59]RAPDU: 90 00 [03:02:59]wFMCommunicate OK [03:02:59]wFMCommunicate request_size=255 [03:02:59]MH_SAM_APDU [03:02:59]CAPDU: 80 0D 02 02 FA 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 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 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 [03:02:59]Write to MH i2c: E2 02 01 E1 41 80 0D 02 02 FA 00 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 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 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 64 [03:02:59]Write i2c OK [03:02:59]MH_I2C_Read... [03:03:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:03:00]Read from MH i2c: E2 [03:03:00]MH_I2C_Read... [03:03:00]Read from MH i2c: E2 03 00 [03:03:00]MH_I2C_Read... [03:03:00]Read from MH i2c: E2 03 00 E1 41 00 90 00 96 [03:03:00]RAPDU: 90 00 [03:03:00]wFMCommunicate OK [03:03:00]wFMCommunicate request_size=255 [03:03:00]MH_SAM_APDU [03:03:00]CAPDU: 80 0D 02 02 FA 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1A 00 00 00 00 [03:03:00]Write to MH i2c: E2 02 01 E2 41 80 0D 02 02 FA 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1A 00 00 00 00 00 00 D4 [03:03:00]Write i2c OK [03:03:00]MH_I2C_Read... [03:03:00]OFD Sender: No OFD packet to send [03:03:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:03:00]Read from MH i2c: E2 [03:03:00]MH_I2C_Read... [03:03:00]Read from MH i2c: E2 03 00 [03:03:00]MH_I2C_Read... [03:03:00]Read from MH i2c: E2 03 00 E2 41 00 90 00 97 [03:03:00]RAPDU: 90 00 [03:03:00]wFMCommunicate OK [03:03:00]wFMCommunicate request_size=118 [03:03:00]MH_SAM_APDU [03:03:00]CAPDU: 80 0D 02 02 71 07 04 06 00 00 FA 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 E5 44 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5B 22 02 00 35 04 06 00 6E 77 D2 02 5E D7 [03:03:00]Write to MH i2c: E2 79 00 E3 41 80 0D 02 02 71 00 07 04 06 00 00 FA 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 E5 44 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5B 22 02 00 35 04 06 00 6E 77 D2 02 5E D7 00 00 38 [03:03:00]Write i2c OK [03:03:00]MH_I2C_Read... [03:03:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:03:00]Read from MH i2c: E2 [03:03:00]MH_I2C_Read... [03:03:00]Read from MH i2c: E2 03 00 [03:03:00]MH_I2C_Read... [03:03:00]Read from MH i2c: E2 03 00 E3 41 00 90 00 98 [03:03:00]RAPDU: 90 00 [03:03:00]wFMCommunicate OK [03:03:00]wFMCommunicate request_size=4 [03:03:00]MH_SAM_APDU [03:03:00]CAPDU: 80 0D 03 02 [03:03:00]Write to MH i2c: E2 08 00 E4 41 80 0D 03 02 00 00 00 00 A0 [03:03:00]Write i2c OK [03:03:00]MH_I2C_Read... [03:03:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:03:00]Read from MH i2c: E2 [03:03:00]MH_I2C_Read... [03:03:00]Read from MH i2c: E2 0B 00 [03:03:00]MH_I2C_Read... [03:03:00]Read from MH i2c: E2 0B 00 E4 41 00 F1 CC 44 6C 2C 54 9B D9 90 00 02 [03:03:00]RAPDU: F1 CC 44 6C 2C 54 9B D9 90 00 [03:03:00]wFMCommunicate OK [03:03:00]SAM_PROTO_SignData done [03:03:00]FM_MakeSignedData done [03:03:00]CreateOFDProtocolMessage [03:03:00]wFMCommunicate request_size=4 [03:03:00]MH_SAM_APDU [03:03:00]CAPDU: 80 11 00 00 [03:03:00]Write to MH i2c: E2 08 00 E5 41 80 11 00 00 00 00 00 00 A0 [03:03:00]Write i2c OK [03:03:00]MH_I2C_Read... [03:03:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:03:00]Read from MH i2c: E2 [03:03:00]MH_I2C_Read... [03:03:00]Read from MH i2c: E2 17 00 [03:03:00]MH_I2C_Read... [03:03:00]Read from MH i2c: E2 17 00 E5 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FB [03:03:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:03:00]wFMCommunicate OK [03:03:00]CreateOFDProtocolMessage done [03:03:00]OFDSenderStorePacket 139867 [03:03:00]StoreOFDPacket docnum=139867 [03:03:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 6F 03 00 00 F5 6C 67 03 AC E5 5A 03 01 00 03 00 5B 03 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1A 00 00 00 00 07 04 06 00 00 FA 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 E5 44 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5B 22 02 00 35 04 06 00 6E 77 D2 02 5E D7 F1 CC 44 6C 2C 54 9B D9 [03:03:00]CheckFolder [03:03:00]dirname=/storage/ofd_packets [03:03:00]CheckFolder done [03:03:00]ProducePacketName [03:03:00]name=ofd_packets/00139867 [03:03:00]NVStorageSaveData ofd_packets/00139867 [03:03:00]File name is /storage/ofd_packets/00139867 [03:03:00]Write 909 bytes [03:03:00]NVStorageSaveData done [03:03:00]OFDSenderStorePacket done [03:03:00]KKMCreateOFDPacket done [03:03:00]NVStorageSaveData kkm_last_timestamp [03:03:00]File name is /storage/kkm_last_timestamp [03:03:00]Write 4 bytes [03:03:00]NVStorageSaveData done [03:03:00]ExternCall_PrintAddStr [03:03:00]wPrintStart [03:03:00]Write to MH i2c: 01 00 00 E6 41 27 [03:03:00]Write i2c OK [03:03:00]MH_I2C_Read... [03:03:00]Read from MH i2c: 01 [03:03:00]MH_I2C_Read... [03:03:00]Read from MH i2c: 01 07 00 [03:03:00]MH_I2C_Read... [03:03:00]Read from MH i2c: 01 07 00 E6 41 00 00 00 00 00 FF 0F 3C [03:03:00]RasterBufferAndPrint [03:03:00]line Счет N : (3)335686 [03:03:00]line ИНН: 02508201610067 [03:03:00]line Контрольно-Кассовый Чек [03:03:00]line ПРОДАЖА [03:03:00]line Товар: 4607018771791 [03:03:00]line Минеральная вода Ессентуки 17 0,45л ст [03:03:00]line 1.000 * 105.00 [03:03:00]line = 105.00 [03:03:00]line НДС 12% НСП 1% [03:03:00]line > о реализуемом товаре [03:03:00]line Товар: 4860019001414 [03:03:00]line Вода Боржоми 0,75л ПЭТ [03:03:00]line 1.000 * 165.00 [03:03:00]line = 165.00 [03:03:00]line НДС 12% НСП 1% [03:03:00]line > о реализуемом товаре [03:03:00]line Товар: 2000053020015 [03:03:00]line Бумажные стаканы 250мл 1шт [03:03:00]line 4.000 * 7.00 [03:03:00]line = 28.00 [03:03:00]line НДС 12% НСП 1% [03:03:00]line > о реализуемом товаре [03:03:00]line Товар: 4780014240406 [03:03:00]line Сигареты Sovereign Blue [03:03:00]line 1.000 * 134.00 [03:03:00]line = 134.00 [03:03:00]line НДС 12% НСП 1% [03:03:00]line > о реализуемом товаре [03:03:00]line Товар: 4640030091607 [03:03:00]line Сигареты ESSE Exchange [03:03:00]line 1.000 * 159.00 [03:03:00]line = 159.00 [03:03:00]line НДС 12% НСП 1% [03:03:00]line > о реализуемом товаре [03:03:00]line Товар: 46227720 [03:03:00]line Р/ж mentos pure fresh виноград ролл 15,5 [03:03:00]line 1.000 * 49.00 [03:03:00]line = 49.00 [03:03:00]line НДС 12% НСП 1% [03:03:00]line > о реализуемом товаре [03:03:00]line ИТОГО: 640.00 [03:03:00]line НСП 1% : 5.67 [03:03:00]line НДС 12% : 67.95 [03:03:00]line Наличными: 640.00 [03:03:00]line Безнал.: 0.00 [03:03:00]line Место: АЗС № 101 "Партнер Нефть" [03:03:00]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [03:03:00]line СНО: Общий режим [03:03:00]line Чек 48 01.11.2024 03:03 [03:03:00]line Смена: 558 ФФД: 1.0 [03:03:00]line ЗНМ: 0300000081 [03:03:00]line РНМ: 0000000000091631 [03:03:00]line Версия ККМ: 001 [03:03:00]line ФМ: 0000000000874669 [03:03:00]line ФД: 139867 [03:03:00]line ФПД: 121460903534295 [03:03:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T030301&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139867&fm=121460903534295&tin=02508201610067®Number=0000000000091631&sum=64000 [03:03:00]line 0 [03:03:00]OFD Sender: Processing packet 139867 [packets to send 34, broken 33] [03:03:00]ProducePacketName [03:03:00]name=ofd_packets/00139867 [03:03:00]OFD Sender: To server: pG, [03:03:00]CommunicateWithHost lk.salyk.kg:30040 [03:03:00]ConnectInit lk.salyk.kg [03:03:00]written 0, free lines is 4095 [03:03:00]Connected sock=10 [03:03:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 6F 03 00 00 F5 6C 67 03 AC E5 5A 03 01 00 03 00 5B 03 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1A 00 00 00 00 07 04 06 00 00 FA 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 E5 44 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5B 22 02 00 35 04 06 00 6E 77 D2 02 5E D7 F1 CC 44 6C 2C 54 9B D9 [03:03:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 F7 C9 47 00 7B D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5B 22 02 00 F4 03 04 00 92 F0 23 67 B6 04 01 00 00 D7 EE 11 3B DB 2F D5 40 [03:03:01]CommunicateWithHost err = 0 [03:03:01]CheckOFDResponse [03:03:01]1017 (14) - 77093643461234 [03:03:01]1041 (16) - 0000000000874669 [03:03:01]1040 (4) - 139867 [03:03:01]1012 (4) - 31.10.2024 21:03 [03:03:01]1206 (1) - 0 [03:03:01]OFD Sender: Remove packet 139867 [03:03:01]ProducePacketName [03:03:01]name=ofd_packets/00139867 [03:03:01]NVStorageDeleteData [03:03:01]Write to MH i2c: 01 00 00 2F 42 71 [03:03:01]Write i2c OK [03:03:01]MH_I2C_Read... [03:03:01]Read from MH i2c: 01 [03:03:01]MH_I2C_Read... [03:03:01]Read from MH i2c: 01 07 00 [03:03:01]MH_I2C_Read... [03:03:01]Read from MH i2c: 01 07 00 2F 42 00 00 00 00 00 51 0B D4 [03:03:01]RasterBufferAndPrint [03:03:01]line [03:03:01]line [03:03:01]line [03:03:01]line [03:03:01]line [03:03:01]written 0, free lines is 2913 [03:03:01]MH_Cut [03:03:01]Write to MH i2c: D1 01 00 36 42 01 4A [03:03:01]Write i2c OK [03:03:01]MH_I2C_Read... [03:03:01]Read from MH i2c: D1 [03:03:01]MH_I2C_Read... [03:03:01]Read from MH i2c: D1 01 00 [03:03:01]MH_I2C_Read... [03:03:01]Read from MH i2c: D1 01 00 36 42 00 49 [03:03:01]Write to MH i2c: 01 00 00 37 42 79 [03:03:01]Write i2c OK [03:03:01]MH_I2C_Read... [03:03:01]OFD Sender: No OFD packet to send [03:03:02]*** Cut start [03:03:02]*** Partial cut [03:03:02]*** CUTSNS_PIN = 1 [03:03:02]*** CUTSNS_PIN = 0 [03:03:02]*** Brake cut motor [03:03:03]Read from MH i2c: 01 [03:03:03]MH_I2C_Read... [03:03:03]*** Stop cut motor [03:03:03]*** Cut end [03:03:03]Read from MH i2c: 01 07 00 [03:03:03]MH_I2C_Read... [03:03:03]Read from MH i2c: 01 07 00 37 42 00 00 00 00 00 FF 0F 8E [03:03:03]process_action close_receipt done [03:03:03]requested_data is exist [03:03:03]produce_requested_data [03:03:03]requested_item fm.sn is exist - process it [03:03:03]wFMCommunicate request_size=4 [03:03:03]MH_SAM_APDU [03:03:03]CAPDU: 80 11 00 00 [03:03:03]Write to MH i2c: E2 08 00 38 42 80 11 00 00 00 00 00 00 F4 [03:03:03]Write i2c OK [03:03:03]MH_I2C_Read... [03:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:03:03]Read from MH i2c: E2 [03:03:03]MH_I2C_Read... [03:03:03]Read from MH i2c: E2 17 00 [03:03:03]MH_I2C_Read... [03:03:03]Read from MH i2c: E2 17 00 38 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4F [03:03:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:03:03]wFMCommunicate OK [03:03:03]requested_item fd.num is exist - process it [03:03:03]SAM_PROTO_GetFieldsCounters [03:03:03]wFMCommunicate request_size=4 [03:03:03]MH_SAM_APDU [03:03:03]CAPDU: 80 13 00 00 [03:03:03]Write to MH i2c: E2 08 00 39 42 80 13 00 00 00 00 00 00 F7 [03:03:03]Write i2c OK [03:03:03]MH_I2C_Read... [03:03:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:03:03]Read from MH i2c: E2 [03:03:03]MH_I2C_Read... [03:03:03]Read from MH i2c: E2 62 00 [03:03:03]MH_I2C_Read... [03:03:03]Read from MH i2c: E2 62 00 39 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5B 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [03:03:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5B 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:03:03]wFMCommunicate OK [03:03:03]SAM_PROTO_GetFieldsCounters done [03:03:03]requested_item shift.num is exist - process it [03:03:03]requested_item shift.opened is exist - process it [03:03:03]req_shift_opened [03:03:03]FM_GetShiftState [03:03:03]SAM_PROTO_GetShiftState [03:03:03]wFMCommunicate request_size=4 [03:03:03]MH_SAM_APDU [03:03:03]CAPDU: 80 13 01 00 [03:03:03]Write to MH i2c: E2 08 00 3A 42 80 13 01 00 00 00 00 00 F9 [03:03:03]Write i2c OK [03:03:03]MH_I2C_Read... [03:03:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:03:03]Read from MH i2c: E2 [03:03:03]MH_I2C_Read... [03:03:03]Read from MH i2c: E2 0E 00 [03:03:03]MH_I2C_Read... [03:03:03]Read from MH i2c: E2 0E 00 3A 42 00 09 00 01 89 19 24 67 00 00 00 00 90 00 32 [03:03:03]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [03:03:03]wFMCommunicate OK [03:03:03]SAM_PROTO_GetShiftState done [03:03:03]FM_GetShiftState done [03:03:03]req_shift_opened done [03:03:03]requested_item shift.open_date is exist - process it [03:03:03]req_shift_open_date [03:03:03]req_shift_open_date done [03:03:03]produce_requested_data done [03:03:03]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139867,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [03:03:03]process_action_free close_receipt [03:03:03]json_value_free [03:03:03]json_value_free done [03:03:03]process_json_proto returns [03:03:03]Send response to host [03:03:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139867,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [03:03:03]free response buf [03:03:03]execute_script done [03:03:03]execute_script returns [03:03:03]free content buf [03:03:03]Sock 7.Close socket [03:03:03]Sock 7.Thread stoped [03:03:06]OFD Sender: No OFD packet to send [03:03:11]OFD Sender: No OFD packet to send [03:03:16]OFD Sender: No OFD packet to send [03:03:21]OFD Sender: No OFD packet to send [03:03:26]OFD Sender: No OFD packet to send [03:03:31]OFD Sender: No OFD packet to send [03:03:36]OFD Sender: No OFD packet to send [03:03:41]OFD Sender: No OFD packet to send [03:03:46]OFD Sender: No OFD packet to send [03:03:51]OFD Sender: No OFD packet to send [03:03:56]OFD Sender: No OFD packet to send [03:04:01]OFD Sender: No OFD packet to send [03:04:06]OFD Sender: No OFD packet to send [03:04:11]OFD Sender: No OFD packet to send [03:04:16]OFD Sender: No OFD packet to send [03:04:21]OFD Sender: No OFD packet to send [03:04:26]OFD Sender: No OFD packet to send [03:04:31]OFD Sender: No OFD packet to send [03:04:36]OFD Sender: No OFD packet to send [03:04:41]OFD Sender: No OFD packet to send [03:04:46]OFD Sender: No OFD packet to send [03:04:51]OFD Sender: No OFD packet to send [03:04:56]OFD Sender: No OFD packet to send [03:05:01]OFD Sender: No OFD packet to send [03:05:06]OFD Sender: No OFD packet to send [03:05:11]OFD Sender: No OFD packet to send [03:05:16]OFD Sender: No OFD packet to send [03:05:21]OFD Sender: No OFD packet to send [03:05:26]OFD Sender: No OFD packet to send [03:05:31]OFD Sender: No OFD packet to send [03:05:36]OFD Sender: No OFD packet to send [03:05:41]OFD Sender: No OFD packet to send [03:05:46]OFD Sender: No OFD packet to send [03:05:51]OFD Sender: No OFD packet to send [03:05:56]OFD Sender: No OFD packet to send [03:06:01]OFD Sender: No OFD packet to send [03:06:06]OFD Sender: No OFD packet to send [03:06:11]OFD Sender: No OFD packet to send [03:06:16]OFD Sender: No OFD packet to send [03:06:21]OFD Sender: No OFD packet to send [03:06:26]OFD Sender: No OFD packet to send [03:06:31]OFD Sender: No OFD packet to send [03:06:36]OFD Sender: No OFD packet to send [03:06:41]OFD Sender: No OFD packet to send [03:06:46]OFD Sender: No OFD packet to send [03:06:51]OFD Sender: No OFD packet to send [03:06:56]OFD Sender: No OFD packet to send [03:07:01]OFD Sender: No OFD packet to send [03:07:06]OFD Sender: No OFD packet to send [03:07:11]OFD Sender: No OFD packet to send [03:07:16]OFD Sender: No OFD packet to send [03:07:21]OFD Sender: No OFD packet to send [03:07:26]OFD Sender: No OFD packet to send [03:07:31]OFD Sender: No OFD packet to send [03:07:36]OFD Sender: No OFD packet to send [03:07:41]OFD Sender: No OFD packet to send [03:07:46]OFD Sender: No OFD packet to send [03:07:52]OFD Sender: No OFD packet to send [03:07:57]OFD Sender: No OFD packet to send [03:08:02]OFD Sender: No OFD packet to send [03:08:07]OFD Sender: No OFD packet to send [03:08:12]OFD Sender: No OFD packet to send [03:08:17]OFD Sender: No OFD packet to send [03:08:22]OFD Sender: No OFD packet to send [03:08:27]OFD Sender: No OFD packet to send [03:08:32]OFD Sender: No OFD packet to send [03:08:37]OFD Sender: No OFD packet to send [03:08:42]OFD Sender: No OFD packet to send [03:08:47]OFD Sender: No OFD packet to send [03:08:52]OFD Sender: No OFD packet to send [03:08:57]OFD Sender: No OFD packet to send [03:09:02]OFD Sender: No OFD packet to send [03:09:07]OFD Sender: No OFD packet to send [03:09:12]OFD Sender: No OFD packet to send [03:09:17]OFD Sender: No OFD packet to send [03:09:22]OFD Sender: No OFD packet to send [03:09:27]OFD Sender: No OFD packet to send [03:09:32]OFD Sender: No OFD packet to send [03:09:37]OFD Sender: No OFD packet to send [03:09:42]OFD Sender: No OFD packet to send [03:09:47]OFD Sender: No OFD packet to send [03:09:52]OFD Sender: No OFD packet to send [03:09:57]OFD Sender: No OFD packet to send [03:10:02]OFD Sender: No OFD packet to send [03:10:07]OFD Sender: No OFD packet to send [03:10:12]OFD Sender: No OFD packet to send [03:10:17]OFD Sender: No OFD packet to send [03:10:22]OFD Sender: No OFD packet to send [03:10:27]OFD Sender: No OFD packet to send [03:10:32]OFD Sender: No OFD packet to send [03:10:37]OFD Sender: No OFD packet to send [03:10:42]OFD Sender: No OFD packet to send [03:10:47]OFD Sender: No OFD packet to send [03:10:52]OFD Sender: No OFD packet to send [03:10:57]OFD Sender: No OFD packet to send [03:11:02]OFD Sender: No OFD packet to send [03:11:07]OFD Sender: No OFD packet to send [03:11:12]OFD Sender: No OFD packet to send [03:11:17]OFD Sender: No OFD packet to send [03:11:22]OFD Sender: No OFD packet to send [03:11:27]OFD Sender: No OFD packet to send [03:11:28]accept exits with 9 [03:11:28]New connection [03:11:28]New thread 3066654052 created [03:11:28]Thread 3066510692 joined [03:11:28]Waiting for new connection... [03:11:28] Sock 9.Parse request [03:11:28]Sock 9.Check first char [03:11:28]Sock 9.First char is OK [03:11:28]request: POST /json_proto HTTP/1.0 [03:11:28]Method: POST [03:11:28]URL: /json_proto [03:11:28]Method is POST - this is cgi request [03:11:28]url: /json_proto [03:11:28]query_string will be loaded in cgi processing [03:11:28]execute_cgi json_proto POST (null) [03:11:28]execute_cgi path=json_proto method=POST [03:11:28]POST find Content-Length [03:11:28]Host: 172.17.50.196:8080 [03:11:28]Content-Length: 1433 [03:11:28]Content-Type: application/json [03:11:28] [03:11:28]POST finish read [03:11:28]Found Content-Length = 1433 [03:11:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335687", "tax_sys" : 0, "items" : [ { "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159438056", "name": "\u0414\u0440\u0430\u0436\u0435 Skittles \u041A\u0438\u0441\u043B\u043E\u043C\u0438\u043A\u0441", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 482.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:11:28]execute_script... [03:11: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)335687", "tax_sys" : 0, "items" : [ { "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159438056", "name": "\u0414\u0440\u0430\u0436\u0435 Skittles \u041A\u0438\u0441\u043B\u043E\u043C\u0438\u043A\u0441", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 482.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:11:28]POST & json_proto [03:11:28]process_json_proto [03:11:28]json parsed OK: [03:11:28]protocol is kg_v1.0 [03:11:28]action value=close_receipt [03:11:28]process_action close_receipt [03:11:28]cmd_close_receipt [03:11:28]MH_GetDate [03:11:28]Write to MH i2c: F0 00 00 3B 42 6C [03:11:28]Write i2c OK [03:11:28]MH_I2C_Read... [03:11:28]Read from MH i2c: F0 [03:11:28]MH_I2C_Read... [03:11:28]Read from MH i2c: F0 09 00 [03:11:28]MH_I2C_Read... [03:11:28]Read from MH i2c: F0 09 00 3B 42 00 E3 46 24 67 72 0D 1C 67 2B [03:11:28]GetLastDocTimeStamp 1730430181 [03:11:28]current date 1730430691 [03:11:28]FM_GetShiftState [03:11:28]SAM_PROTO_GetShiftState [03:11:28]wFMCommunicate request_size=4 [03:11:28]MH_SAM_APDU [03:11:28]CAPDU: 80 13 01 00 [03:11:28]Write to MH i2c: E2 08 00 3C 42 80 13 01 00 00 00 00 00 FB [03:11:28]Write i2c OK [03:11:28]MH_I2C_Read... [03:11:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:11:28]Read from MH i2c: E2 [03:11:28]MH_I2C_Read... [03:11:28]Read from MH i2c: E2 0E 00 [03:11:28]MH_I2C_Read... [03:11:28]Read from MH i2c: E2 0E 00 3C 42 00 09 00 01 89 19 24 67 00 00 00 00 90 00 34 [03:11:28]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [03:11:28]wFMCommunicate OK [03:11:28]SAM_PROTO_GetShiftState done [03:11:28]FM_GetShiftState done [03:11:28]opened in 1730419081 [03:11:28]opened+sec_in_day 1730505481 [03:11:28]quantity*price = 13000 [03:11:28]sum+1 = 13001 [03:11:28]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860019001346 Вода Боржоми 0,5л ст 1.000 * 134.00 = 134.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 90162602 Энерг напиток Red bull 0,25л 1.000 * 159.00 = 159.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5000159438056 Драже Skittles Кисломикс 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 482.00 НСП 1% : 4.27 НДС 12% : 51.17 Наличными: 482.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 49 01.11.2024 03:11 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139868 ФПД: 178980779982099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T031132&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139868&fm=178980779982099&tin=02508201610067®Number=0000000000091631&sum=48200 0 [03:11:29]StoreToDocumentArchive [03:11:29]shift 558 fd 139868 [03:11:29]save to /storage/0558/doc_00139868 [03:11:29]save last doc name /storage/0558/doc_00139868 to /storage/kkm_last_doc_name [03:11:29]save OK [03:11:29]Clear old archive folders... [03:11:29]ProcessDocumentItem done err = 0, tmpTLVsize=597 [03:11:29]tlvbuf is 00B885B0 [03:11:29]SAM_PROTO_ClearQueue [03:11:29]wFMCommunicate request_size=4 [03:11:29]MH_SAM_APDU [03:11:29]CAPDU: 80 09 00 00 [03:11:29]Write to MH i2c: E2 08 00 49 42 80 09 00 00 00 00 00 00 FD [03:11:29]Write i2c OK [03:11:29]MH_I2C_Read... [03:11:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:11:29]Read from MH i2c: E2 [03:11:29]MH_I2C_Read... [03:11:29]Read from MH i2c: E2 03 00 [03:11:29]MH_I2C_Read... [03:11:29]Read from MH i2c: E2 03 00 49 42 00 90 00 FF [03:11:29]RAPDU: 90 00 [03:11:29]wFMCommunicate OK [03:11:29]SAM_PROTO_ClearQueue done [03:11:29]KKMCreateOFDPacket [03:11:29]OFDProtocolAddRootSTLVToBuf [03:11:29]FM_MakeSignedData [03:11:29]FM_MakeSignedData [03:11:29]SAM_PROTO_SignData [03:11:29]wFMCommunicate request_size=4 [03:11:29]MH_SAM_APDU [03:11:29]CAPDU: 80 0D 01 02 [03:11:29]Write to MH i2c: E2 08 00 4A 42 80 0D 01 02 00 00 00 00 05 [03:11:29]Write i2c OK [03:11:29]MH_I2C_Read... [03:11:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:11:29]Read from MH i2c: E2 [03:11:29]MH_I2C_Read... [03:11:29]Read from MH i2c: E2 03 00 [03:11:29]MH_I2C_Read... [03:11:29]Read from MH i2c: E2 03 00 4A 42 00 90 00 00 [03:11:29]RAPDU: 90 00 [03:11:29]wFMCommunicate OK [03:11:29]wFMCommunicate request_size=255 [03:11:29]MH_SAM_APDU [03:11:29]CAPDU: 80 0D 02 02 FA 03 00 55 02 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 [03:11:29]Write to MH i2c: E2 02 01 4B 42 80 0D 02 02 FA 00 03 00 55 02 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 00 00 09 [03:11:29]Write i2c OK [03:11:29]MH_I2C_Read... [03:11:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:11:30]Read from MH i2c: E2 [03:11:30]MH_I2C_Read... [03:11:30]Read from MH i2c: E2 03 00 [03:11:30]MH_I2C_Read... [03:11:30]Read from MH i2c: E2 03 00 4B 42 00 90 00 01 [03:11:30]RAPDU: 90 00 [03:11:30]wFMCommunicate OK [03:11:30]wFMCommunicate request_size=255 [03:11:30]MH_SAM_APDU [03:11:30]CAPDU: 80 0D 02 02 FA BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 30 30 30 31 35 39 34 33 38 30 35 36 06 04 26 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 D0 9A D0 B8 D1 81 D0 BB D0 BE D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 BC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 13 00 00 00 00 07 04 06 00 48 BC 00 00 00 00 39 04 [03:11:30]Write to MH i2c: E2 02 01 4C 42 80 0D 02 02 FA 00 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 30 30 30 31 35 39 34 33 38 30 35 36 06 04 26 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 D0 9A D0 B8 D1 81 D0 BB D0 BE D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 BC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 13 00 00 00 00 07 04 06 00 48 BC 00 00 00 00 39 04 00 00 76 [03:11:30]Write i2c OK [03:11:30]MH_I2C_Read... [03:11:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:11:30]Read from MH i2c: E2 [03:11:30]MH_I2C_Read... [03:11:30]Read from MH i2c: E2 03 00 [03:11:30]MH_I2C_Read... [03:11:30]Read from MH i2c: E2 03 00 4C 42 00 90 00 02 [03:11:30]RAPDU: 90 00 [03:11:30]wFMCommunicate OK [03:11:30]wFMCommunicate request_size=106 [03:11:30]MH_SAM_APDU [03:11:30]CAPDU: 80 0D 02 02 65 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 E4 46 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5C 22 02 00 35 04 06 00 A2 C8 35 CF FD 13 [03:11:30]Write to MH i2c: E2 6D 00 4D 42 80 0D 02 02 65 00 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 E4 46 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5C 22 02 00 35 04 06 00 A2 C8 35 CF FD 13 00 00 D6 [03:11:30]Write i2c OK [03:11:30]MH_I2C_Read... [03:11:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:11:30]Read from MH i2c: E2 [03:11:30]MH_I2C_Read... [03:11:30]Read from MH i2c: E2 03 00 [03:11:30]MH_I2C_Read... [03:11:30]Read from MH i2c: E2 03 00 4D 42 00 90 00 03 [03:11:30]RAPDU: 90 00 [03:11:30]wFMCommunicate OK [03:11:30]wFMCommunicate request_size=4 [03:11:30]MH_SAM_APDU [03:11:30]CAPDU: 80 0D 03 02 [03:11:30]Write to MH i2c: E2 08 00 4E 42 80 0D 03 02 00 00 00 00 0B [03:11:30]Write i2c OK [03:11:30]MH_I2C_Read... [03:11:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:11:30]Read from MH i2c: E2 [03:11:30]MH_I2C_Read... [03:11:30]Read from MH i2c: E2 0B 00 [03:11:30]MH_I2C_Read... [03:11:30]Read from MH i2c: E2 0B 00 4E 42 00 7C B6 A5 98 7F 7C AA AA 90 00 CA [03:11:30]RAPDU: 7C B6 A5 98 7F 7C AA AA 90 00 [03:11:30]wFMCommunicate OK [03:11:30]SAM_PROTO_SignData done [03:11:30]FM_MakeSignedData done [03:11:30]CreateOFDProtocolMessage [03:11:30]wFMCommunicate request_size=4 [03:11:30]MH_SAM_APDU [03:11:30]CAPDU: 80 11 00 00 [03:11:30]Write to MH i2c: E2 08 00 4F 42 80 11 00 00 00 00 00 00 0B [03:11:30]Write i2c OK [03:11:30]MH_I2C_Read... [03:11:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:11:30]Read from MH i2c: E2 [03:11:30]MH_I2C_Read... [03:11:30]Read from MH i2c: E2 17 00 [03:11:30]MH_I2C_Read... [03:11:30]Read from MH i2c: E2 17 00 4F 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 66 [03:11:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:11:30]wFMCommunicate OK [03:11:30]CreateOFDProtocolMessage done [03:11:30]OFDSenderStorePacket 139868 [03:11:30]StoreOFDPacket docnum=139868 [03:11:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 69 02 00 00 46 27 61 02 79 30 5A 03 01 00 03 00 55 02 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 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 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 30 30 30 31 35 39 34 33 38 30 35 36 06 04 26 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 D0 9A D0 B8 D1 81 D0 BB D0 BE D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 BC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 13 00 00 00 00 07 04 06 00 48 BC 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 E4 46 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5C 22 02 00 35 04 06 00 A2 C8 35 CF FD 13 7C B6 A5 98 7F 7C AA AA [03:11:30]CheckFolder [03:11:30]dirname=/storage/ofd_packets [03:11:30]CheckFolder done [03:11:30]ProducePacketName [03:11:30]name=ofd_packets/00139868 [03:11:30]NVStorageSaveData ofd_packets/00139868 [03:11:30]File name is /storage/ofd_packets/00139868 [03:11:30]Write 647 bytes [03:11:30]NVStorageSaveData done [03:11:30]OFDSenderStorePacket done [03:11:30]KKMCreateOFDPacket done [03:11:30]NVStorageSaveData kkm_last_timestamp [03:11:30]File name is /storage/kkm_last_timestamp [03:11:30]Write 4 bytes [03:11:30]NVStorageSaveData done [03:11:30]ExternCall_PrintAddStr [03:11:30]wPrintStart [03:11:30]Write to MH i2c: 01 00 00 50 42 92 [03:11:30]Write i2c OK [03:11:30]MH_I2C_Read... [03:11:30]Read from MH i2c: 01 [03:11:30]MH_I2C_Read... [03:11:30]Read from MH i2c: 01 07 00 [03:11:30]MH_I2C_Read... [03:11:30]Read from MH i2c: 01 07 00 50 42 00 00 00 00 00 FF 0F A7 [03:11:30]RasterBufferAndPrint [03:11:30]line Счет N : (3)335687 [03:11:30]line ИНН: 02508201610067 [03:11:30]line Контрольно-Кассовый Чек [03:11:30]line ПРОДАЖА [03:11:30]line Товар: 4630007400389 [03:11:30]line Семечки ДЖИНН 140г [03:11:30]line 1.000 * 130.00 [03:11:30]line = 130.00 [03:11:30]line НДС 12% НСП 1% [03:11:30]line > о реализуемом товаре [03:11:30]line Товар: 4860019001346 [03:11:30]line Вода Боржоми 0,5л ст [03:11:30]line 1.000 * 134.00 [03:11:30]line = 134.00 [03:11:30]line НДС 12% НСП 1% [03:11:30]line > о реализуемом товаре [03:11:30]line Товар: 90162602 [03:11:30]line Энерг напиток Red bull 0,25л [03:11:30]line 1.000 * 159.00 [03:11:30]line = 159.00 [03:11:30]line НДС 12% НСП 1% [03:11:30]line > о реализуемом товаре [03:11:30]line Товар: 5000159438056 [03:11:30]line Драже Skittles Кисломикс [03:11:30]line 1.000 * 59.00 [03:11:30]line = 59.00 [03:11:30]line НДС 12% НСП 1% [03:11:30]line > о реализуемом товаре [03:11:30]line ИТОГО: 482.00 [03:11:30]line НСП 1% : 4.27 [03:11:30]line НДС 12% : 51.17 [03:11:30]line Наличными: 482.00 [03:11:30]line Безнал.: 0.00 [03:11:30]line Место: АЗС № 101 "Партнер Нефть" [03:11:30]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [03:11:30]line СНО: Общий режим [03:11:30]line Чек 49 01.11.2024 03:11 [03:11:30]line Смена: 558 ФФД: 1.0 [03:11:30]line ЗНМ: 0300000081 [03:11:30]line РНМ: 0000000000091631 [03:11:30]line Версия ККМ: 001 [03:11:30]line ФМ: 0000000000874669 [03:11:30]line ФД: 139868 [03:11:30]line ФПД: 178980779982099 [03:11:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T031132&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139868&fm=178980779982099&tin=02508201610067®Number=0000000000091631&sum=48200 [03:11:30]OFD Sender: Processing packet 139868 [packets to send 34, broken 33] [03:11:30]ProducePacketName [03:11:30]name=ofd_packets/00139868 [03:11:30]OFD Sender: To server: pG, [03:11:30]CommunicateWithHost lk.salyk.kg:30040 [03:11:30]ConnectInit lk.salyk.kg [03:11:30]line 0 [03:11:30]written 0, free lines is 4095 [03:11:31]Connected sock=10 [03:11:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 69 02 00 00 46 27 61 02 79 30 5A 03 01 00 03 00 55 02 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 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 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 30 30 30 31 35 39 34 33 38 30 35 36 06 04 26 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 D0 9A D0 B8 D1 81 D0 BB D0 BE D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 BC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 13 00 00 00 00 07 04 06 00 48 BC 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 E4 46 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5C 22 02 00 35 04 06 00 A2 C8 35 CF FD 13 7C B6 A5 98 7F 7C AA AA [03:11:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 D3 0C 47 00 D2 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5C 22 02 00 F4 03 04 00 90 F2 23 67 B6 04 01 00 00 A7 1E F4 56 5C 38 F4 34 [03:11:31]CommunicateWithHost err = 0 [03:11:31]CheckOFDResponse [03:11:31]1017 (14) - 77093643461234 [03:11:31]1041 (16) - 0000000000874669 [03:11:31]1040 (4) - 139868 [03:11:31]1012 (4) - 31.10.2024 21:11 [03:11:31]1206 (1) - 0 [03:11:31]OFD Sender: Remove packet 139868 [03:11:31]ProducePacketName [03:11:31]name=ofd_packets/00139868 [03:11:31]NVStorageDeleteData [03:11:31]Write to MH i2c: 01 00 00 8A 42 CC [03:11:31]Write i2c OK [03:11:31]MH_I2C_Read... [03:11:31]Read from MH i2c: 01 [03:11:31]MH_I2C_Read... [03:11:31]Read from MH i2c: 01 07 00 [03:11:31]MH_I2C_Read... [03:11:31]Read from MH i2c: 01 07 00 8A 42 00 00 00 00 00 3A 0C 19 [03:11:31]RasterBufferAndPrint [03:11:31]line [03:11:31]line [03:11:31]line [03:11:31]line [03:11:31]line [03:11:31]written 0, free lines is 3140 [03:11:31]MH_Cut [03:11:31]Write to MH i2c: D1 01 00 91 42 01 A5 [03:11:31]Write i2c OK [03:11:31]MH_I2C_Read... [03:11:31]Read from MH i2c: D1 [03:11:31]MH_I2C_Read... [03:11:31]Read from MH i2c: D1 01 00 [03:11:31]MH_I2C_Read... [03:11:31]Read from MH i2c: D1 01 00 91 42 00 A4 [03:11:31]Write to MH i2c: 01 00 00 92 42 D4 [03:11:31]Write i2c OK [03:11:31]MH_I2C_Read... [03:11:31]OFD Sender: No OFD packet to send [03:11:32]*** Cut start [03:11:32]*** Partial cut [03:11:32]*** CUTSNS_PIN = 1 [03:11:32]*** CUTSNS_PIN = 0 [03:11:32]*** Brake cut motor [03:11:32]Read from MH i2c: 01 [03:11:32]MH_I2C_Read... [03:11:32]*** Stop cut motor [03:11:32]*** Cut end [03:11:32]Read from MH i2c: 01 07 00 [03:11:32]MH_I2C_Read... [03:11:32]Read from MH i2c: 01 07 00 92 42 00 00 00 00 00 FF 0F E9 [03:11:32]process_action close_receipt done [03:11:32]requested_data is exist [03:11:32]produce_requested_data [03:11:32]requested_item fm.sn is exist - process it [03:11:32]wFMCommunicate request_size=4 [03:11:32]MH_SAM_APDU [03:11:32]CAPDU: 80 11 00 00 [03:11:32]Write to MH i2c: E2 08 00 93 42 80 11 00 00 00 00 00 00 4F [03:11:32]Write i2c OK [03:11:32]MH_I2C_Read... [03:11:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:11:33]Read from MH i2c: E2 [03:11:33]MH_I2C_Read... [03:11:33]Read from MH i2c: E2 17 00 [03:11:33]MH_I2C_Read... [03:11:33]Read from MH i2c: E2 17 00 93 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AA [03:11:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:11:33]wFMCommunicate OK [03:11:33]requested_item fd.num is exist - process it [03:11:33]SAM_PROTO_GetFieldsCounters [03:11:33]wFMCommunicate request_size=4 [03:11:33]MH_SAM_APDU [03:11:33]CAPDU: 80 13 00 00 [03:11:33]Write to MH i2c: E2 08 00 94 42 80 13 00 00 00 00 00 00 52 [03:11:33]Write i2c OK [03:11:33]MH_I2C_Read... [03:11:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:11:33]Read from MH i2c: E2 [03:11:33]MH_I2C_Read... [03:11:33]Read from MH i2c: E2 62 00 [03:11:33]MH_I2C_Read... [03:11:33]Read from MH i2c: E2 62 00 94 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5C 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [03:11:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5C 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:11:33]wFMCommunicate OK [03:11:33]SAM_PROTO_GetFieldsCounters done [03:11:33]requested_item shift.num is exist - process it [03:11:33]requested_item shift.opened is exist - process it [03:11:33]req_shift_opened [03:11:33]FM_GetShiftState [03:11:33]SAM_PROTO_GetShiftState [03:11:33]wFMCommunicate request_size=4 [03:11:33]MH_SAM_APDU [03:11:33]CAPDU: 80 13 01 00 [03:11:33]Write to MH i2c: E2 08 00 95 42 80 13 01 00 00 00 00 00 54 [03:11:33]Write i2c OK [03:11:33]MH_I2C_Read... [03:11:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:11:33]Read from MH i2c: E2 [03:11:33]MH_I2C_Read... [03:11:33]Read from MH i2c: E2 0E 00 [03:11:33]MH_I2C_Read... [03:11:33]Read from MH i2c: E2 0E 00 95 42 00 09 00 01 89 19 24 67 00 00 00 00 90 00 8D [03:11:33]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [03:11:33]wFMCommunicate OK [03:11:33]SAM_PROTO_GetShiftState done [03:11:33]FM_GetShiftState done [03:11:33]req_shift_opened done [03:11:33]requested_item shift.open_date is exist - process it [03:11:33]req_shift_open_date [03:11:33]req_shift_open_date done [03:11:33]produce_requested_data done [03:11:33]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139868,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [03:11:33]process_action_free close_receipt [03:11:33]json_value_free [03:11:33]json_value_free done [03:11:33]process_json_proto returns [03:11:33]Send response to host [03:11:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139868,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [03:11:33]free response buf [03:11:33]execute_script done [03:11:33]execute_script returns [03:11:33]free content buf [03:11:33]Sock 9.Close socket [03:11:33]Sock 9.Thread stoped [03:11:36]OFD Sender: No OFD packet to send [03:11:41]OFD Sender: No OFD packet to send [03:11:46]OFD Sender: No OFD packet to send [03:11:51]OFD Sender: No OFD packet to send [03:11:56]OFD Sender: No OFD packet to send [03:12:01]OFD Sender: No OFD packet to send [03:12:06]OFD Sender: No OFD packet to send [03:12:11]OFD Sender: No OFD packet to send [03:12:16]OFD Sender: No OFD packet to send [03:12:21]OFD Sender: No OFD packet to send [03:12:26]OFD Sender: No OFD packet to send [03:12:31]OFD Sender: No OFD packet to send [03:12:36]OFD Sender: No OFD packet to send [03:12:41]OFD Sender: No OFD packet to send [03:12:46]OFD Sender: No OFD packet to send [03:12:51]OFD Sender: No OFD packet to send [03:12:56]OFD Sender: No OFD packet to send [03:13:01]OFD Sender: No OFD packet to send [03:13:06]OFD Sender: No OFD packet to send [03:13:11]OFD Sender: No OFD packet to send [03:13:16]OFD Sender: No OFD packet to send [03:13:21]OFD Sender: No OFD packet to send [03:13:26]OFD Sender: No OFD packet to send [03:13:31]OFD Sender: No OFD packet to send [03:13:36]OFD Sender: No OFD packet to send [03:13:41]OFD Sender: No OFD packet to send [03:13:46]OFD Sender: No OFD packet to send [03:13:51]OFD Sender: No OFD packet to send [03:13:56]OFD Sender: No OFD packet to send [03:14:01]OFD Sender: No OFD packet to send [03:14:06]OFD Sender: No OFD packet to send [03:14:11]OFD Sender: No OFD packet to send [03:14:16]OFD Sender: No OFD packet to send [03:14:21]OFD Sender: No OFD packet to send [03:14:26]OFD Sender: No OFD packet to send [03:14:31]OFD Sender: No OFD packet to send [03:14:36]OFD Sender: No OFD packet to send [03:14:41]OFD Sender: No OFD packet to send [03:14:46]OFD Sender: No OFD packet to send [03:14:51]OFD Sender: No OFD packet to send [03:14:56]OFD Sender: No OFD packet to send [03:15:01]OFD Sender: No OFD packet to send [03:15:06]OFD Sender: No OFD packet to send [03:15:11]OFD Sender: No OFD packet to send [03:15:16]OFD Sender: No OFD packet to send [03:15:21]OFD Sender: No OFD packet to send [03:15:26]OFD Sender: No OFD packet to send [03:15:31]OFD Sender: No OFD packet to send [03:15:36]OFD Sender: No OFD packet to send [03:15:41]OFD Sender: No OFD packet to send [03:15:46]OFD Sender: No OFD packet to send [03:15:51]OFD Sender: No OFD packet to send [03:15:56]OFD Sender: No OFD packet to send [03:16:01]OFD Sender: No OFD packet to send [03:16:06]OFD Sender: No OFD packet to send [03:16:11]OFD Sender: No OFD packet to send [03:16:16]OFD Sender: No OFD packet to send [03:16:21]OFD Sender: No OFD packet to send [03:16:26]OFD Sender: No OFD packet to send [03:16:31]OFD Sender: No OFD packet to send [03:16:37]OFD Sender: No OFD packet to send [03:16:42]OFD Sender: No OFD packet to send [03:16:47]OFD Sender: No OFD packet to send [03:16:52]OFD Sender: No OFD packet to send [03:16:57]OFD Sender: No OFD packet to send [03:17:02]OFD Sender: No OFD packet to send [03:17:07]OFD Sender: No OFD packet to send [03:17:12]OFD Sender: No OFD packet to send [03:17:17]OFD Sender: No OFD packet to send [03:17:22]OFD Sender: No OFD packet to send [03:17:27]OFD Sender: No OFD packet to send [03:17:32]OFD Sender: No OFD packet to send [03:17:37]OFD Sender: No OFD packet to send [03:17:42]OFD Sender: No OFD packet to send [03:17:47]OFD Sender: No OFD packet to send [03:17:52]OFD Sender: No OFD packet to send [03:17:57]OFD Sender: No OFD packet to send [03:18:02]OFD Sender: No OFD packet to send [03:18:07]OFD Sender: No OFD packet to send [03:18:12]OFD Sender: No OFD packet to send [03:18:17]OFD Sender: No OFD packet to send [03:18:22]OFD Sender: No OFD packet to send [03:18:27]OFD Sender: No OFD packet to send [03:18:32]OFD Sender: No OFD packet to send [03:18:37]OFD Sender: No OFD packet to send [03:18:42]OFD Sender: No OFD packet to send [03:18:47]OFD Sender: No OFD packet to send [03:18:52]OFD Sender: No OFD packet to send [03:18:57]OFD Sender: No OFD packet to send [03:19:02]OFD Sender: No OFD packet to send [03:19:07]OFD Sender: No OFD packet to send [03:19:12]OFD Sender: No OFD packet to send [03:19:17]OFD Sender: No OFD packet to send [03:19:22]OFD Sender: No OFD packet to send [03:19:27]OFD Sender: No OFD packet to send [03:19:32]OFD Sender: No OFD packet to send [03:19:37]OFD Sender: No OFD packet to send [03:19:42]OFD Sender: No OFD packet to send [03:19:47]OFD Sender: No OFD packet to send [03:19:52]OFD Sender: No OFD packet to send [03:19:57]OFD Sender: No OFD packet to send [03:20:02]OFD Sender: No OFD packet to send [03:20:07]OFD Sender: No OFD packet to send [03:20:12]OFD Sender: No OFD packet to send [03:20:17]OFD Sender: No OFD packet to send [03:20:22]OFD Sender: No OFD packet to send [03:20:27]OFD Sender: No OFD packet to send [03:20:32]OFD Sender: No OFD packet to send [03:20:37]OFD Sender: No OFD packet to send [03:20:42]OFD Sender: No OFD packet to send [03:20:47]OFD Sender: No OFD packet to send [03:20:52]OFD Sender: No OFD packet to send [03:20:57]OFD Sender: No OFD packet to send [03:21:02]OFD Sender: No OFD packet to send [03:21:07]OFD Sender: No OFD packet to send [03:21:12]OFD Sender: No OFD packet to send [03:21:17]OFD Sender: No OFD packet to send [03:21:22]OFD Sender: No OFD packet to send [03:21:27]OFD Sender: No OFD packet to send [03:21:32]OFD Sender: No OFD packet to send [03:21:37]OFD Sender: No OFD packet to send [03:21:42]OFD Sender: No OFD packet to send [03:21:47]OFD Sender: No OFD packet to send [03:21:52]OFD Sender: No OFD packet to send [03:21:57]OFD Sender: No OFD packet to send [03:22:02]OFD Sender: No OFD packet to send [03:22:07]OFD Sender: No OFD packet to send [03:22:12]OFD Sender: No OFD packet to send [03:22:17]OFD Sender: No OFD packet to send [03:22:22]OFD Sender: No OFD packet to send [03:22:27]OFD Sender: No OFD packet to send [03:22:32]OFD Sender: No OFD packet to send [03:22:37]OFD Sender: No OFD packet to send [03:22:42]OFD Sender: No OFD packet to send [03:22:47]OFD Sender: No OFD packet to send [03:22:52]OFD Sender: No OFD packet to send [03:22:57]OFD Sender: No OFD packet to send [03:23:02]OFD Sender: No OFD packet to send [03:23:07]OFD Sender: No OFD packet to send [03:23:12]OFD Sender: No OFD packet to send [03:23:17]OFD Sender: No OFD packet to send [03:23:22]OFD Sender: No OFD packet to send [03:23:27]OFD Sender: No OFD packet to send [03:23:32]OFD Sender: No OFD packet to send [03:23:37]OFD Sender: No OFD packet to send [03:23:42]OFD Sender: No OFD packet to send [03:23:47]OFD Sender: No OFD packet to send [03:23:52]OFD Sender: No OFD packet to send [03:23:57]OFD Sender: No OFD packet to send [03:24:02]OFD Sender: No OFD packet to send [03:24:07]OFD Sender: No OFD packet to send [03:24:12]OFD Sender: No OFD packet to send [03:24:17]OFD Sender: No OFD packet to send [03:24:22]OFD Sender: No OFD packet to send [03:24:27]OFD Sender: No OFD packet to send [03:24:32]OFD Sender: No OFD packet to send [03:24:37]OFD Sender: No OFD packet to send [03:24:42]OFD Sender: No OFD packet to send [03:24:47]OFD Sender: No OFD packet to send [03:24:52]OFD Sender: No OFD packet to send [03:24:57]OFD Sender: No OFD packet to send [03:25:02]OFD Sender: No OFD packet to send [03:25:07]OFD Sender: No OFD packet to send [03:25:12]OFD Sender: No OFD packet to send [03:25:17]OFD Sender: No OFD packet to send [03:25:22]OFD Sender: No OFD packet to send [03:25:27]OFD Sender: No OFD packet to send [03:25:32]OFD Sender: No OFD packet to send [03:25:37]OFD Sender: No OFD packet to send [03:25:42]OFD Sender: No OFD packet to send [03:25:47]OFD Sender: No OFD packet to send [03:25:52]OFD Sender: No OFD packet to send [03:25:57]OFD Sender: No OFD packet to send [03:26:02]OFD Sender: No OFD packet to send [03:26:07]OFD Sender: No OFD packet to send [03:26:12]OFD Sender: No OFD packet to send [03:26:17]OFD Sender: No OFD packet to send [03:26:18]accept exits with 7 [03:26:18]New connection [03:26:18]New thread 3066510692 created [03:26:18]Thread 3066654052 joined [03:26:18]Waiting for new connection... [03:26:18] Sock 7.Parse request [03:26:18]Sock 7.Check first char [03:26:18]Sock 7.First char is OK [03:26:18]request: POST /json_proto HTTP/1.0 [03:26:18]Method: POST [03:26:18]URL: /json_proto [03:26:18]Method is POST - this is cgi request [03:26:18]url: /json_proto [03:26:18]query_string will be loaded in cgi processing [03:26:18]execute_cgi json_proto POST (null) [03:26:18]execute_cgi path=json_proto method=POST [03:26:18]POST find Content-Length [03:26:18]Host: 172.17.50.196:8080 [03:26:18]Content-Length: 985 [03:26:18]Content-Type: application/json [03:26:18] [03:26:18]POST finish read [03:26:18]Found Content-Length = 985 [03:26:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 46.880, "sum" : 3089.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 101\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 46.88 \u0441\u043E\u043C", "deposit" : 9999.00, "total" : 3089.00, "payments": [ { "type": 0, "sum" : 3089.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:26:18]execute_script... [03:26:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 46.880, "sum" : 3089.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 101\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 46.88 \u0441\u043E\u043C", "deposit" : 9999.00, "total" : 3089.00, "payments": [ { "type": 0, "sum" : 3089.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:26:18]POST & json_proto [03:26:18]process_json_proto [03:26:18]json parsed OK: [03:26:18]protocol is kg_v1.0 [03:26:18]action value=close_receipt [03:26:18]process_action close_receipt [03:26:18]cmd_close_receipt [03:26:18]MH_GetDate [03:26:18]Write to MH i2c: F0 00 00 96 42 C7 [03:26:18]Write i2c OK [03:26:18]MH_I2C_Read... [03:26:18]Read from MH i2c: F0 [03:26:18]MH_I2C_Read... [03:26:18]Read from MH i2c: F0 09 00 [03:26:18]MH_I2C_Read... [03:26:18]Read from MH i2c: F0 09 00 96 42 00 5E 4A 24 67 72 0D 1C 67 05 [03:26:18]GetLastDocTimeStamp 1730430692 [03:26:18]current date 1730431582 [03:26:18]FM_GetShiftState [03:26:18]SAM_PROTO_GetShiftState [03:26:18]wFMCommunicate request_size=4 [03:26:18]MH_SAM_APDU [03:26:18]CAPDU: 80 13 01 00 [03:26:18]Write to MH i2c: E2 08 00 97 42 80 13 01 00 00 00 00 00 56 [03:26:18]Write i2c OK [03:26:18]MH_I2C_Read... [03:26:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:26:18]Read from MH i2c: E2 [03:26:18]MH_I2C_Read... [03:26:18]Read from MH i2c: E2 0E 00 [03:26:18]MH_I2C_Read... [03:26:18]Read from MH i2c: E2 0E 00 97 42 00 09 00 01 89 19 24 67 00 00 00 00 90 00 8F [03:26:18]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [03:26:18]wFMCommunicate OK [03:26:18]SAM_PROTO_GetShiftState done [03:26:18]FM_GetShiftState done [03:26:18]opened in 1730419081 [03:26:18]opened+sec_in_day 1730505481 [03:26:18]quantity*price = 308939 [03:26:18]sum+1 = 308940 [03:26:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 3089.00 Внесено: 9999.00 СДАЧА: 6910.00 НСП 1% : 27.34 НДС 12% : 328.08 Наличными: 3089.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 50 01.11.2024 03:26 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Дисконтная программа АИ-92 номер 101 сэкономлено 46.88 сом ФМ: 0000000000874669 ФД: 139869 ФПД: 40089067016837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T032622&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139869&fm=40089067016837&tin=02508201610067®Number=0000000000091631&sum=308900 [03:26:20]StoreToDocumentArchive [03:26:20]shift 558 fd 139869 [03:26:20]save to /storage/0558/doc_00139869 [03:26:20]save last doc name /storage/0558/doc_00139869 to /storage/kkm_last_doc_name [03:26:20]save OK [03:26:20]Clear old archive folders... [03:26:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:26:20]tlvbuf is 00ABBF60 [03:26:20]SAM_PROTO_ClearQueue [03:26:20]wFMCommunicate request_size=4 [03:26:20]MH_SAM_APDU [03:26:20]CAPDU: 80 09 00 00 [03:26:20]Write to MH i2c: E2 08 00 A4 42 80 09 00 00 00 00 00 00 58 [03:26:20]Write i2c OK [03:26:20]MH_I2C_Read... [03:26:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:26:20]Read from MH i2c: E2 [03:26:20]MH_I2C_Read... [03:26:20]Read from MH i2c: E2 03 00 [03:26:20]MH_I2C_Read... [03:26:20]Read from MH i2c: E2 03 00 A4 42 00 90 00 5A [03:26:20]RAPDU: 90 00 [03:26:20]wFMCommunicate OK [03:26:20]SAM_PROTO_ClearQueue done [03:26:20]KKMCreateOFDPacket [03:26:20]OFDProtocolAddRootSTLVToBuf [03:26:20]FM_MakeSignedData [03:26:20]FM_MakeSignedData [03:26:20]SAM_PROTO_SignData [03:26:20]wFMCommunicate request_size=4 [03:26:20]MH_SAM_APDU [03:26:20]CAPDU: 80 0D 01 02 [03:26:20]Write to MH i2c: E2 08 00 A5 42 80 0D 01 02 00 00 00 00 60 [03:26:20]Write i2c OK [03:26:20]MH_I2C_Read... [03:26:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:26:20]Read from MH i2c: E2 [03:26:20]MH_I2C_Read... [03:26:20]Read from MH i2c: E2 03 00 [03:26:20]MH_I2C_Read... [03:26:20]Read from MH i2c: E2 03 00 A5 42 00 90 00 5B [03:26:20]RAPDU: 90 00 [03:26:20]wFMCommunicate OK [03:26:20]wFMCommunicate request_size=255 [03:26:20]MH_SAM_APDU [03:26:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 B7 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 CB B6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 B6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 80 00 00 00 00 07 04 06 00 A4 B6 04 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 5E 4A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5D 22 02 00 35 04 06 00 24 [03:26:20]Write to MH i2c: E2 02 01 A6 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 B7 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 CB B6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 B6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 80 00 00 00 00 07 04 06 00 A4 B6 04 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 5E 4A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5D 22 02 00 35 04 06 00 24 00 00 F3 [03:26:20]Write i2c OK [03:26:20]MH_I2C_Read... [03:26:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:26:20]Read from MH i2c: E2 [03:26:20]MH_I2C_Read... [03:26:20]Read from MH i2c: E2 03 00 [03:26:20]MH_I2C_Read... [03:26:20]Read from MH i2c: E2 03 00 A6 42 00 90 00 5C [03:26:20]RAPDU: 90 00 [03:26:20]wFMCommunicate OK [03:26:20]wFMCommunicate request_size=10 [03:26:20]MH_SAM_APDU [03:26:20]CAPDU: 80 0D 02 02 05 75 F6 99 52 85 [03:26:20]Write to MH i2c: E2 0D 00 A7 42 80 0D 02 02 05 00 75 F6 99 52 85 00 00 48 [03:26:20]Write i2c OK [03:26:20]MH_I2C_Read... [03:26:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:26:20]Read from MH i2c: E2 [03:26:20]MH_I2C_Read... [03:26:20]Read from MH i2c: E2 03 00 [03:26:20]MH_I2C_Read... [03:26:20]Read from MH i2c: E2 03 00 A7 42 00 90 00 5D [03:26:20]RAPDU: 90 00 [03:26:20]wFMCommunicate OK [03:26:20]wFMCommunicate request_size=4 [03:26:20]MH_SAM_APDU [03:26:20]CAPDU: 80 0D 03 02 [03:26:20]Write to MH i2c: E2 08 00 A8 42 80 0D 03 02 00 00 00 00 65 [03:26:20]Write i2c OK [03:26:20]MH_I2C_Read... [03:26:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:26:20]Read from MH i2c: E2 [03:26:20]MH_I2C_Read... [03:26:20]Read from MH i2c: E2 0B 00 [03:26:20]MH_I2C_Read... [03:26:20]Read from MH i2c: E2 0B 00 A8 42 00 7F 9D D2 C3 73 63 E5 65 90 00 37 [03:26:20]RAPDU: 7F 9D D2 C3 73 63 E5 65 90 00 [03:26:20]wFMCommunicate OK [03:26:20]SAM_PROTO_SignData done [03:26:20]FM_MakeSignedData done [03:26:20]CreateOFDProtocolMessage [03:26:20]wFMCommunicate request_size=4 [03:26:20]MH_SAM_APDU [03:26:20]CAPDU: 80 11 00 00 [03:26:20]Write to MH i2c: E2 08 00 A9 42 80 11 00 00 00 00 00 00 65 [03:26:20]Write i2c OK [03:26:20]MH_I2C_Read... [03:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:26:20]Read from MH i2c: E2 [03:26:20]MH_I2C_Read... [03:26:20]Read from MH i2c: E2 17 00 [03:26:20]MH_I2C_Read... [03:26:20]Read from MH i2c: E2 17 00 A9 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C0 [03:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:26:20]wFMCommunicate OK [03:26:20]CreateOFDProtocolMessage done [03:26:20]OFDSenderStorePacket 139869 [03:26:20]StoreOFDPacket docnum=139869 [03:26:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 8D 62 07 01 E8 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 B7 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 CB B6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 B6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 80 00 00 00 00 07 04 06 00 A4 B6 04 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 5E 4A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5D 22 02 00 35 04 06 00 24 75 F6 99 52 85 7F 9D D2 C3 73 63 E5 65 [03:26:20]CheckFolder [03:26:20]dirname=/storage/ofd_packets [03:26:20]CheckFolder done [03:26:20]ProducePacketName [03:26:20]name=ofd_packets/00139869 [03:26:20]NVStorageSaveData ofd_packets/00139869 [03:26:20]File name is /storage/ofd_packets/00139869 [03:26:20]Write 301 bytes [03:26:20]NVStorageSaveData done [03:26:20]OFDSenderStorePacket done [03:26:20]KKMCreateOFDPacket done [03:26:20]NVStorageSaveData kkm_last_timestamp [03:26:20]File name is /storage/kkm_last_timestamp [03:26:20]Write 4 bytes [03:26:20]NVStorageSaveData done [03:26:20]ExternCall_PrintAddStr [03:26:20]wPrintStart [03:26:20]Write to MH i2c: 01 00 00 AA 42 EC [03:26:20]Write i2c OK [03:26:20]MH_I2C_Read... [03:26:20]Read from MH i2c: 01 [03:26:20]MH_I2C_Read... [03:26:20]Read from MH i2c: 01 07 00 [03:26:20]MH_I2C_Read... [03:26:20]Read from MH i2c: 01 07 00 AA 42 00 00 00 00 00 FF 0F 01 [03:26:20]RasterBufferAndPrint [03:26:20]line Счет N : (1)1095666 [03:26:20]line ИНН: 02508201610067 [03:26:20]line Контрольно-Кассовый Чек [03:26:20]line ПРОДАЖА [03:26:20]line ТРК (МРК, ГНК) : 53 [03:26:20]line Товар: 2710124130 [03:26:20]line Аи-92-К-2 [03:26:20]line 46.880 * 65.90 [03:26:20]line = 3089.39 [03:26:20]line НДС 12% НСП 1% [03:26:20]line > о реализуемом товаре [03:26:20]line ОКРУГЛЕНИЕ: -0.39 [03:26:20]line ИТОГО: 3089.00 [03:26:20]line Внесено: 9999.00 [03:26:20]line СДАЧА: 6910.00 [03:26:20]line НСП 1% : 27.34 [03:26:20]line НДС 12% : 328.08 [03:26:20]line Наличными: 3089.00 [03:26:20]line Безнал.: 0.00 [03:26:20]line Место: АЗС № 101 "Партнер Нефть" [03:26:20]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [03:26:20]line СНО: Общий режим [03:26:20]line Чек 50 01.11.2024 03:26 [03:26:20]line Смена: 558 ФФД: 1.0 [03:26:20]line ЗНМ: 0300000081 [03:26:20]line РНМ: 0000000000091631 [03:26:20]line Версия ККМ: 001 [03:26:20]line [03:26:20]line Дисконтная программа [03:26:20]line АИ-92 [03:26:20]line номер 101 [03:26:20]line сэкономлено 46.88 сом [03:26:20]line ФМ: 0000000000874669 [03:26:20]line ФД: 139869 [03:26:20]line ФПД: 40089067016837 [03:26:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T032622&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139869&fm=40089067016837&tin=02508201610067®Number=0000000000091631&sum=308900 [03:26:20]OFD Sender: Processing packet 139869 [packets to send 34, broken 33] [03:26:20]ProducePacketName [03:26:20]name=ofd_packets/00139869 [03:26:20]OFD Sender: To server: pG, [03:26:20]CommunicateWithHost lk.salyk.kg:30040 [03:26:20]ConnectInit lk.salyk.kg [03:26:20]written 0, free lines is 4095 [03:26:21]Connected sock=10 [03:26:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 8D 62 07 01 E8 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 B7 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 CB B6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 B6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 80 00 00 00 00 07 04 06 00 A4 B6 04 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 5E 4A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5D 22 02 00 35 04 06 00 24 75 F6 99 52 85 7F 9D D2 C3 73 63 E5 65 [03:26:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 7C EE 47 00 38 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 34 36 36 39 10 04 04 00 5D 22 02 00 F4 03 04 00 0A F6 23 67 B6 04 01 00 00 73 E5 BE 3D 9C 9E F8 D0 [03:26:21]CommunicateWithHost err = 0 [03:26:21]CheckOFDResponse [03:26:21]1017 (14) - 77093643461234 [03:26:21]1041 (16) - 0000000000874669 [03:26:21]1040 (4) - 139869 [03:26:21]1012 (4) - 31.10.2024 21:26 [03:26:21]1206 (1) - 0 [03:26:21]OFD Sender: Remove packet 139869 [03:26:21]ProducePacketName [03:26:21]name=ofd_packets/00139869 [03:26:21]NVStorageDeleteData [03:26:21]Write to MH i2c: 01 00 00 DA 42 1C [03:26:21]Write i2c OK [03:26:21]MH_I2C_Read... [03:26:21]Read from MH i2c: 01 [03:26:21]MH_I2C_Read... [03:26:21]Read from MH i2c: 01 07 00 [03:26:21]MH_I2C_Read... [03:26:21]Read from MH i2c: 01 07 00 DA 42 00 00 00 00 00 A9 0C D8 [03:26:21]RasterBufferAndPrint [03:26:21]line [03:26:21]line [03:26:21]line [03:26:21]line [03:26:21]line [03:26:21]written 0, free lines is 3247 [03:26:21]MH_Cut [03:26:21]Write to MH i2c: D1 01 00 E1 42 01 F5 [03:26:21]Write i2c OK [03:26:21]MH_I2C_Read... [03:26:21]Read from MH i2c: D1 [03:26:21]MH_I2C_Read... [03:26:21]Read from MH i2c: D1 01 00 [03:26:21]MH_I2C_Read... [03:26:21]Read from MH i2c: D1 01 00 E1 42 00 F4 [03:26:21]Write to MH i2c: 01 00 00 E2 42 24 [03:26:21]Write i2c OK [03:26:21]MH_I2C_Read... [03:26:21]OFD Sender: No OFD packet to send [03:26:22]*** Cut start [03:26:22]*** Partial cut [03:26:22]*** CUTSNS_PIN = 1 [03:26:22]*** CUTSNS_PIN = 0 [03:26:22]*** Brake cut motor [03:26:22]Read from MH i2c: 01 [03:26:22]MH_I2C_Read... [03:26:22]*** Stop cut motor [03:26:22]*** Cut end [03:26:22]Read from MH i2c: 01 07 00 [03:26:22]MH_I2C_Read... [03:26:22]Read from MH i2c: 01 07 00 E2 42 00 00 00 00 00 FF 0F 39 [03:26:22]process_action close_receipt done [03:26:22]requested_data is exist [03:26:22]produce_requested_data [03:26:22]requested_item fm.sn is exist - process it [03:26:22]wFMCommunicate request_size=4 [03:26:22]MH_SAM_APDU [03:26:22]CAPDU: 80 11 00 00 [03:26:22]Write to MH i2c: E2 08 00 E3 42 80 11 00 00 00 00 00 00 9F [03:26:22]Write i2c OK [03:26:22]MH_I2C_Read... [03:26:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:26:22]Read from MH i2c: E2 [03:26:22]MH_I2C_Read... [03:26:22]Read from MH i2c: E2 17 00 [03:26:22]MH_I2C_Read... [03:26:22]Read from MH i2c: E2 17 00 E3 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FA [03:26:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:26:22]wFMCommunicate OK [03:26:22]requested_item fd.num is exist - process it [03:26:22]SAM_PROTO_GetFieldsCounters [03:26:22]wFMCommunicate request_size=4 [03:26:22]MH_SAM_APDU [03:26:22]CAPDU: 80 13 00 00 [03:26:22]Write to MH i2c: E2 08 00 E4 42 80 13 00 00 00 00 00 00 A2 [03:26:22]Write i2c OK [03:26:22]MH_I2C_Read... [03:26:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:26:22]Read from MH i2c: E2 [03:26:22]MH_I2C_Read... [03:26:22]Read from MH i2c: E2 62 00 [03:26:22]MH_I2C_Read... [03:26:22]Read from MH i2c: E2 62 00 E4 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5D 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [03:26:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5D 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:26:22]wFMCommunicate OK [03:26:22]SAM_PROTO_GetFieldsCounters done [03:26:22]requested_item shift.num is exist - process it [03:26:22]requested_item shift.opened is exist - process it [03:26:22]req_shift_opened [03:26:22]FM_GetShiftState [03:26:22]SAM_PROTO_GetShiftState [03:26:22]wFMCommunicate request_size=4 [03:26:22]MH_SAM_APDU [03:26:22]CAPDU: 80 13 01 00 [03:26:22]Write to MH i2c: E2 08 00 E5 42 80 13 01 00 00 00 00 00 A4 [03:26:22]Write i2c OK [03:26:22]MH_I2C_Read... [03:26:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:26:23]Read from MH i2c: E2 [03:26:23]MH_I2C_Read... [03:26:23]Read from MH i2c: E2 0E 00 [03:26:23]MH_I2C_Read... [03:26:23]Read from MH i2c: E2 0E 00 E5 42 00 09 00 01 89 19 24 67 00 00 00 00 90 00 DD [03:26:23]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [03:26:23]wFMCommunicate OK [03:26:23]SAM_PROTO_GetShiftState done [03:26:23]FM_GetShiftState done [03:26:23]req_shift_opened done [03:26:23]requested_item shift.open_date is exist - process it [03:26:23]req_shift_open_date [03:26:23]req_shift_open_date done [03:26:23]produce_requested_data done [03:26:23]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139869,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [03:26:23]process_action_free close_receipt [03:26:23]json_value_free [03:26:23]json_value_free done [03:26:23]process_json_proto returns [03:26:23]Send response to host [03:26:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139869,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [03:26:23]free response buf [03:26:23]execute_script done [03:26:23]execute_script returns [03:26:23]free content buf [03:26:23]Sock 7.Close socket [03:26:23]Sock 7.Thread stoped [03:26:26]OFD Sender: No OFD packet to send [03:26:31]OFD Sender: No OFD packet to send [03:26:36]OFD Sender: No OFD packet to send [03:26:41]OFD Sender: No OFD packet to send [03:26:46]OFD Sender: No OFD packet to send [03:26:51]OFD Sender: No OFD packet to send [03:26:56]OFD Sender: No OFD packet to send [03:27:01]OFD Sender: No OFD packet to send [03:27:06]OFD Sender: No OFD packet to send [03:27:11]OFD Sender: No OFD packet to send [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27:31]OFD Sender: No OFD packet to send [03:27:36]OFD Sender: No OFD packet to send [03:27:41]OFD Sender: No OFD packet to send [03:27:46]OFD Sender: No OFD packet to send [03:27:51]OFD Sender: No OFD packet to send [03:27:56]OFD Sender: No OFD packet to send [03:28:01]OFD Sender: No OFD packet to send [03:28:06]OFD Sender: No OFD packet to send [03:28:11]OFD Sender: No OFD packet to send [03:28:16]OFD Sender: No OFD packet to send [03:28:21]OFD Sender: No OFD packet to send [03:28:26]OFD Sender: No OFD packet to send [03:28:31]OFD Sender: No OFD packet to send [03:28:36]OFD Sender: No OFD packet to send [03:28:41]OFD Sender: No OFD packet to send [03:28:46]OFD Sender: No OFD packet to send [03:28:51]OFD Sender: No OFD packet to send [03:28:56]OFD Sender: No OFD packet to send [03:29:01]OFD Sender: No OFD packet to send [03:29:06]OFD Sender: No OFD packet to send [03:29:11]OFD Sender: No OFD packet to send [03:29:16]OFD Sender: No OFD packet to send [03:29:21]OFD Sender: No OFD packet to send [03:29:26]OFD Sender: No OFD packet to send [03:29:31]OFD Sender: No OFD packet to send [03:29:36]OFD Sender: No OFD packet to send [03:29:41]OFD Sender: No OFD packet to send [03:29:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29:56]OFD Sender: No OFD packet to send [03:30:01]OFD Sender: No OFD packet to send [03:30:06]OFD Sender: No OFD packet to send [03:30:11]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:06]OFD Sender: No OFD packet to send [03:31:11]OFD Sender: No OFD packet to send [03:31:16]OFD Sender: No OFD packet to send [03:31:21]OFD Sender: No OFD packet to send [03:31:26]OFD Sender: No OFD packet to send [03:31:31]OFD Sender: No OFD packet to send [03:31:36]OFD Sender: No OFD packet to send [03:31:41]OFD Sender: No OFD packet to send [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:07]OFD Sender: No OFD packet to send [03:32:12]OFD Sender: No OFD packet to send [03:32:17]OFD Sender: No OFD packet to send [03:32:22]OFD Sender: No OFD packet to send [03:32:27]OFD Sender: No OFD packet to send [03:32:32]OFD Sender: No OFD packet to send [03:32:37]OFD Sender: No OFD packet to send [03:32:42]OFD Sender: No OFD packet to send [03:32:47]OFD Sender: No OFD packet to send [03:32:52]OFD Sender: No OFD packet to send [03:32:57]OFD Sender: No OFD packet to send [03:33:02]OFD Sender: No OFD packet to send [03:33:07]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:47]accept exits with 9 [03:40:47]New connection [03:40:47]New thread 3066654052 created [03:40:47]Thread 3066510692 joined [03:40:47]Waiting for new connection... [03:40:47] Sock 9.Parse request [03:40:47]Sock 9.Check first char [03:40:47]Sock 9.First char is OK [03:40:47]request: POST /json_proto HTTP/1.0 [03:40:47]Method: POST [03:40:47]URL: /json_proto [03:40:47]Method is POST - this is cgi request [03:40:47]url: /json_proto [03:40:47]query_string will be loaded in cgi processing [03:40:47]execute_cgi json_proto POST (null) [03:40:47]execute_cgi path=json_proto method=POST [03:40:47]POST find Content-Length [03:40:47]Host: 172.17.50.196:8080 [03:40:47]Content-Length: 885 [03:40:47]Content-Type: application/json [03:40:47] [03:40:47]POST finish read [03:40:47]Found Content-Length = 885 [03:40:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335688", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 278.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:40:47]execute_script... [03:40:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335688", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 278.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:40:47]POST & json_proto [03:40:47]process_json_proto [03:40:47]json parsed OK: [03:40:47]protocol is kg_v1.0 [03:40:47]action value=close_receipt [03:40:47]process_action close_receipt [03:40:47]cmd_close_receipt [03:40:47]MH_GetDate [03:40:47]Write to MH i2c: F0 00 00 E6 42 17 [03:40:47]Write i2c OK [03:40:47]MH_I2C_Read... [03:40:47]Read from MH i2c: F0 [03:40:47]MH_I2C_Read... [03:40:47]Read from MH i2c: F0 09 00 [03:40:47]MH_I2C_Read... [03:40:47]Read from MH i2c: F0 09 00 E6 42 00 C3 4D 24 67 72 0D 1C 67 BD [03:40:47]GetLastDocTimeStamp 1730431582 [03:40:47]current date 1730432451 [03:40:47]FM_GetShiftState [03:40:47]SAM_PROTO_GetShiftState [03:40:47]wFMCommunicate request_size=4 [03:40:47]MH_SAM_APDU [03:40:47]CAPDU: 80 13 01 00 [03:40:47]Write to MH i2c: E2 08 00 E7 42 80 13 01 00 00 00 00 00 A6 [03:40:47]Write i2c OK [03:40:47]MH_I2C_Read... [03:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:40:47]Read from MH i2c: E2 [03:40:47]MH_I2C_Read... [03:40:47]Read from MH i2c: E2 0E 00 [03:40:47]MH_I2C_Read... [03:40:47]Read from MH i2c: E2 0E 00 E7 42 00 09 00 01 89 19 24 67 00 00 00 00 90 00 DF [03:40:47]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [03:40:47]wFMCommunicate OK [03:40:47]SAM_PROTO_GetShiftState done [03:40:47]FM_GetShiftState done [03:40:47]opened in 1730419081 [03:40:47]opened+sec_in_day 1730505481 [03:40:47]quantity*price = 14400 [03:40:47]sum+1 = 14401 [03:40:47]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860019001346 Вода Боржоми 0,5л ст 1.000 * 134.00 = 134.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 278.00 НСП 1% : 2.46 НДС 12% : 29.52 Наличными: 278.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 51 01.11.2024 03:40 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139870 ФПД: 128123089458740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T034051&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139870&fm=128123089458740&tin=02508201610067®Number=0000000000091631&sum=27800 0 [03:40:48]StoreToDocumentArchive [03:40:48]shift 558 fd 139870 [03:40:48]save to /storage/0558/doc_00139870 [03:40:48]save last doc name /storage/0558/doc_00139870 to /storage/kkm_last_doc_name [03:40:48]save OK [03:40:48]Clear old archive folders... [03:40:48]ProcessDocumentItem done err = 0, tmpTLVsize=379 [03:40:48]tlvbuf is 00A3B400 [03:40:48]SAM_PROTO_ClearQueue [03:40:48]wFMCommunicate request_size=4 [03:40:48]MH_SAM_APDU [03:40:48]CAPDU: 80 09 00 00 [03:40:48]Write to MH i2c: E2 08 00 F4 42 80 09 00 00 00 00 00 00 A8 [03:40:48]Write i2c OK [03:40:48]MH_I2C_Read... [03:40:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:40:48]Read from MH i2c: E2 [03:40:48]MH_I2C_Read... [03:40:48]Read from MH i2c: E2 03 00 [03:40:48]MH_I2C_Read... [03:40:48]Read from MH i2c: E2 03 00 F4 42 00 90 00 AA [03:40:48]RAPDU: 90 00 [03:40:48]wFMCommunicate OK [03:40:48]SAM_PROTO_ClearQueue done [03:40:48]KKMCreateOFDPacket [03:40:48]OFDProtocolAddRootSTLVToBuf [03:40:48]FM_MakeSignedData [03:40:48]FM_MakeSignedData [03:40:48]SAM_PROTO_SignData [03:40:48]wFMCommunicate request_size=4 [03:40:48]MH_SAM_APDU [03:40:48]CAPDU: 80 0D 01 02 [03:40:48]Write to MH i2c: E2 08 00 F5 42 80 0D 01 02 00 00 00 00 B0 [03:40:48]Write i2c OK [03:40:48]MH_I2C_Read... [03:40:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:40:48]Read from MH i2c: E2 [03:40:48]MH_I2C_Read... [03:40:48]Read from MH i2c: E2 03 00 [03:40:48]MH_I2C_Read... [03:40:48]Read from MH i2c: E2 03 00 F5 42 00 90 00 AB [03:40:48]RAPDU: 90 00 [03:40:48]wFMCommunicate OK [03:40:48]wFMCommunicate request_size=255 [03:40:48]MH_SAM_APDU [03:40:48]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 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 [03:40:48]Write to MH i2c: E2 02 01 F6 42 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 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 00 98 [03:40:48]Write i2c OK [03:40:48]MH_I2C_Read... [03:40:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:40:49]Read from MH i2c: E2 [03:40:49]MH_I2C_Read... [03:40:49]Read from MH i2c: E2 03 00 [03:40:49]MH_I2C_Read... [03:40:49]Read from MH i2c: E2 03 00 F6 42 00 90 00 AC [03:40:49]RAPDU: 90 00 [03:40:49]wFMCommunicate OK [03:40:49]wFMCommunicate request_size=138 [03:40:49]MH_SAM_APDU [03:40:49]CAPDU: 80 0D 02 02 85 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0B 00 00 00 00 07 04 06 00 98 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 33 00 00 00 F4 03 04 00 C3 4D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5E 22 02 00 35 04 06 00 74 86 FB 3C 16 34 [03:40:49]Write to MH i2c: E2 8D 00 F7 42 80 0D 02 02 85 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0B 00 00 00 00 07 04 06 00 98 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 33 00 00 00 F4 03 04 00 C3 4D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5E 22 02 00 35 04 06 00 74 86 FB 3C 16 34 00 00 7F [03:40:49]Write i2c OK [03:40:49]MH_I2C_Read... [03:40:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:40:49]Read from MH i2c: E2 [03:40:49]MH_I2C_Read... [03:40:49]Read from MH i2c: E2 03 00 [03:40:49]MH_I2C_Read... [03:40:49]Read from MH i2c: E2 03 00 F7 42 00 90 00 AD [03:40:49]RAPDU: 90 00 [03:40:49]wFMCommunicate OK [03:40:49]wFMCommunicate request_size=4 [03:40:49]MH_SAM_APDU [03:40:49]CAPDU: 80 0D 03 02 [03:40:49]Write to MH i2c: E2 08 00 F8 42 80 0D 03 02 00 00 00 00 B5 [03:40:49]Write i2c OK [03:40:49]MH_I2C_Read... [03:40:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:40:49]Read from MH i2c: E2 [03:40:49]MH_I2C_Read... [03:40:49]Read from MH i2c: E2 0B 00 [03:40:49]MH_I2C_Read... [03:40:49]Read from MH i2c: E2 0B 00 F8 42 00 00 33 9B 32 A7 B5 F8 A4 90 00 AE [03:40:49]RAPDU: 00 33 9B 32 A7 B5 F8 A4 90 00 [03:40:49]wFMCommunicate OK [03:40:49]SAM_PROTO_SignData done [03:40:49]FM_MakeSignedData done [03:40:49]CreateOFDProtocolMessage [03:40:49]wFMCommunicate request_size=4 [03:40:49]MH_SAM_APDU [03:40:49]CAPDU: 80 11 00 00 [03:40:49]Write to MH i2c: E2 08 00 F9 42 80 11 00 00 00 00 00 00 B5 [03:40:49]Write i2c OK [03:40:49]MH_I2C_Read... [03:40:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:40:49]Read from MH i2c: E2 [03:40:49]MH_I2C_Read... [03:40:49]Read from MH i2c: E2 17 00 [03:40:49]MH_I2C_Read... [03:40:49]Read from MH i2c: E2 17 00 F9 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 10 [03:40:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:40:49]wFMCommunicate OK [03:40:49]CreateOFDProtocolMessage done [03:40:49]OFDSenderStorePacket 139870 [03:40:49]StoreOFDPacket docnum=139870 [03:40:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 8F 01 00 00 1D E4 87 01 58 6D 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 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0B 00 00 00 00 07 04 06 00 98 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 33 00 00 00 F4 03 04 00 C3 4D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5E 22 02 00 35 04 06 00 74 86 FB 3C 16 34 00 33 9B 32 A7 B5 F8 A4 [03:40:49]CheckFolder [03:40:49]dirname=/storage/ofd_packets [03:40:49]CheckFolder done [03:40:49]ProducePacketName [03:40:49]name=ofd_packets/00139870 [03:40:49]NVStorageSaveData ofd_packets/00139870 [03:40:49]File name is /storage/ofd_packets/00139870 [03:40:49]Write 429 bytes [03:40:49]NVStorageSaveData done [03:40:49]OFDSenderStorePacket done [03:40:49]KKMCreateOFDPacket done [03:40:49]NVStorageSaveData kkm_last_timestamp [03:40:49]File name is /storage/kkm_last_timestamp [03:40:49]Write 4 bytes [03:40:49]NVStorageSaveData done [03:40:49]ExternCall_PrintAddStr [03:40:49]wPrintStart [03:40:49]Write to MH i2c: 01 00 00 FA 42 3C [03:40:49]Write i2c OK [03:40:49]MH_I2C_Read... [03:40:49]Read from MH i2c: 01 [03:40:49]MH_I2C_Read... [03:40:49]Read from MH i2c: 01 07 00 [03:40:49]MH_I2C_Read... [03:40:49]Read from MH i2c: 01 07 00 FA 42 00 00 00 00 00 FF 0F 51 [03:40:49]RasterBufferAndPrint [03:40:49]line Счет N : (3)335688 [03:40:49]line ИНН: 02508201610067 [03:40:49]line Контрольно-Кассовый Чек [03:40:49]line ПРОДАЖА [03:40:49]line Товар: 48743570 [03:40:49]line Сигареты Winston XStyle Blue [03:40:49]line 1.000 * 144.00 [03:40:49]line = 144.00 [03:40:49]line НДС 12% НСП 1% [03:40:49]line > о реализуемом товаре [03:40:49]line Товар: 4860019001346 [03:40:49]line Вода Боржоми 0,5л ст [03:40:49]line 1.000 * 134.00 [03:40:49]line = 134.00 [03:40:49]line НДС 12% НСП 1% [03:40:49]line > о реализуемом товаре [03:40:49]line ИТОГО: 278.00 [03:40:49]line НСП 1% : 2.46 [03:40:49]line НДС 12% : 29.52 [03:40:49]line Наличными: 278.00 [03:40:49]line Безнал.: 0.00 [03:40:49]line Место: АЗС № 101 "Партнер Нефть" [03:40:49]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [03:40:49]line СНО: Общий режим [03:40:49]line Чек 51 01.11.2024 03:40 [03:40:49]line Смена: 558 ФФД: 1.0 [03:40:49]line ЗНМ: 0300000081 [03:40:49]line РНМ: 0000000000091631 [03:40:49]line Версия ККМ: 001 [03:40:49]line ФМ: 0000000000874669 [03:40:49]line ФД: 139870 [03:40:49]line ФПД: 128123089458740 [03:40:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T034051&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139870&fm=128123089458740&tin=02508201610067®Number=0000000000091631&sum=27800 [03:40:49]OFD Sender: Processing packet 139870 [packets to send 34, broken 33] [03:40:49]ProducePacketName [03:40:49]name=ofd_packets/00139870 [03:40:49]OFD Sender: To server: pG, [03:40:49]CommunicateWithHost lk.salyk.kg:30040 [03:40:49]ConnectInit lk.salyk.kg [03:40:49]line 0 [03:40:49]written 0, free lines is 4095 [03:40:49]Connected sock=10 [03:40:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 8F 01 00 00 1D E4 87 01 58 6D 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 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0B 00 00 00 00 07 04 06 00 98 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 33 00 00 00 F4 03 04 00 C3 4D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5E 22 02 00 35 04 06 00 74 86 FB 3C 16 34 00 33 9B 32 A7 B5 F8 A4 [03:40:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 92 AA 47 00 25 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5E 22 02 00 F4 03 04 00 6F F9 23 67 B6 04 01 00 00 7D E7 C6 B0 A0 91 17 6C [03:40:50]CommunicateWithHost err = 0 [03:40:50]CheckOFDResponse [03:40:50]1017 (14) - 77093643461234 [03:40:50]1041 (16) - 0000000000874669 [03:40:50]1040 (4) - 139870 [03:40:50]1012 (4) - 31.10.2024 21:41 [03:40:50]1206 (1) - 0 [03:40:50]OFD Sender: Remove packet 139870 [03:40:50]ProducePacketName [03:40:50]name=ofd_packets/00139870 [03:40:50]NVStorageDeleteData [03:40:50]Write to MH i2c: 01 00 00 28 43 6B [03:40:50]Write i2c OK [03:40:50]MH_I2C_Read... [03:40:50]Read from MH i2c: 01 [03:40:50]MH_I2C_Read... [03:40:50]Read from MH i2c: 01 07 00 [03:40:50]MH_I2C_Read... [03:40:50]Read from MH i2c: 01 07 00 28 43 00 00 00 00 00 B6 0C 34 [03:40:50]RasterBufferAndPrint [03:40:50]line [03:40:50]line [03:40:50]line [03:40:50]line [03:40:50]line [03:40:50]written 0, free lines is 3264 [03:40:50]MH_Cut [03:40:50]Write to MH i2c: D1 01 00 2F 43 01 44 [03:40:50]Write i2c OK [03:40:50]MH_I2C_Read... [03:40:50]Read from MH i2c: D1 [03:40:50]MH_I2C_Read... [03:40:50]Read from MH i2c: D1 01 00 [03:40:50]MH_I2C_Read... [03:40:50]Read from MH i2c: D1 01 00 2F 43 00 43 [03:40:50]Write to MH i2c: 01 00 00 30 43 73 [03:40:50]Write i2c OK [03:40:50]MH_I2C_Read... [03:40:50]OFD Sender: No OFD packet to send [03:40:50]*** Cut start [03:40:50]*** Partial cut [03:40:50]*** CUTSNS_PIN = 1 [03:40:51]*** CUTSNS_PIN = 0 [03:40:51]*** Brake cut motor [03:40:51]Read from MH i2c: 01 [03:40:51]MH_I2C_Read... [03:40:51]*** Stop cut motor [03:40:51]*** Cut end [03:40:51]Read from MH i2c: 01 07 00 [03:40:51]MH_I2C_Read... [03:40:51]Read from MH i2c: 01 07 00 30 43 00 00 00 00 00 FF 0F 88 [03:40:51]process_action close_receipt done [03:40:51]requested_data is exist [03:40:51]produce_requested_data [03:40:51]requested_item fm.sn is exist - process it [03:40:51]wFMCommunicate request_size=4 [03:40:51]MH_SAM_APDU [03:40:51]CAPDU: 80 11 00 00 [03:40:51]Write to MH i2c: E2 08 00 31 43 80 11 00 00 00 00 00 00 EE [03:40:51]Write i2c OK [03:40:51]MH_I2C_Read... [03:40:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:40:51]Read from MH i2c: E2 [03:40:51]MH_I2C_Read... [03:40:51]Read from MH i2c: E2 17 00 [03:40:51]MH_I2C_Read... [03:40:51]Read from MH i2c: E2 17 00 31 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 49 [03:40:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:40:51]wFMCommunicate OK [03:40:51]requested_item fd.num is exist - process it [03:40:51]SAM_PROTO_GetFieldsCounters [03:40:51]wFMCommunicate request_size=4 [03:40:51]MH_SAM_APDU [03:40:51]CAPDU: 80 13 00 00 [03:40:51]Write to MH i2c: E2 08 00 32 43 80 13 00 00 00 00 00 00 F1 [03:40:51]Write i2c OK [03:40:51]MH_I2C_Read... [03:40:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:40:51]Read from MH i2c: E2 [03:40:51]MH_I2C_Read... [03:40:51]Read from MH i2c: E2 62 00 [03:40:51]MH_I2C_Read... [03:40:51]Read from MH i2c: E2 62 00 32 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5E 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [03:40:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5E 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:40:51]wFMCommunicate OK [03:40:51]SAM_PROTO_GetFieldsCounters done [03:40:51]requested_item shift.num is exist - process it [03:40:51]requested_item shift.opened is exist - process it [03:40:51]req_shift_opened [03:40:51]FM_GetShiftState [03:40:51]SAM_PROTO_GetShiftState [03:40:51]wFMCommunicate request_size=4 [03:40:51]MH_SAM_APDU [03:40:51]CAPDU: 80 13 01 00 [03:40:51]Write to MH i2c: E2 08 00 33 43 80 13 01 00 00 00 00 00 F3 [03:40:51]Write i2c OK [03:40:51]MH_I2C_Read... [03:40:51]Read from MH i2c: E2 [03:40:51]MH_I2C_Read... [03:40:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:40:51]Read from MH i2c: E2 0E 00 [03:40:51]MH_I2C_Read... [03:40:51]Read from MH i2c: E2 0E 00 33 43 00 09 00 01 89 19 24 67 00 00 00 00 90 00 2C [03:40:51]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [03:40:51]wFMCommunicate OK [03:40:51]SAM_PROTO_GetShiftState done [03:40:51]FM_GetShiftState done [03:40:51]req_shift_opened done [03:40:51]requested_item shift.open_date is exist - process it [03:40:51]req_shift_open_date [03:40:51]req_shift_open_date done [03:40:51]produce_requested_data done [03:40:51]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139870,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [03:40:51]process_action_free close_receipt [03:40:51]json_value_free [03:40:51]json_value_free done [03:40:51]process_json_proto returns [03:40:51]Send response to host [03:40:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139870,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [03:40:51]free response buf [03:40:51]execute_script done [03:40:51]execute_script returns [03:40:51]free content buf [03:40:51]Sock 9.Close socket [03:40:51]Sock 9.Thread stoped [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [03:41:05]OFD Sender: No OFD packet to send [03:41:10]OFD Sender: No OFD packet to send [03:41:15]OFD Sender: No OFD packet to send [03:41:20]OFD Sender: No OFD packet to send [03:41:25]OFD Sender: No OFD packet to send [03:41:30]OFD Sender: No OFD packet to send [03:41:35]OFD Sender: No OFD packet to send [03:41:40]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:20]OFD Sender: No OFD packet to send [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:46:59]accept exits with 7 [03:46:59]New connection [03:46:59]New thread 3066510692 created [03:46:59]Thread 3066654052 joined [03:46:59]Waiting for new connection... [03:46:59] Sock 7.Parse request [03:46:59]Sock 7.Check first char [03:46:59]Sock 7.First char is OK [03:46:59]request: POST /json_proto HTTP/1.0 [03:46:59]Method: POST [03:46:59]URL: /json_proto [03:46:59]Method is POST - this is cgi request [03:46:59]url: /json_proto [03:46:59]query_string will be loaded in cgi processing [03:46:59]execute_cgi json_proto POST (null) [03:46:59]execute_cgi path=json_proto method=POST [03:46:59]POST find Content-Length [03:46:59]Host: 172.17.50.196:8080 [03:46:59]Content-Length: 675 [03:46:59]Content-Type: application/json [03:46:59] [03:46:59]POST finish read [03:46:59]Found Content-Length = 675 [03:46:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335690", "tax_sys" : 0, "items" : [ { "code": "4620017451303", "name": "\u041A\u0430\u0440.\u0441 \u0436\u0435\u0432.\u043A\u043E\u043D\u0444.\u0421\u0442\u0440\u0430\u0439\u043A 11.3\u0433/50", "price" : 17.00, "quantity" : 3.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 51.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:46:59]execute_script... [03:46: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)335690", "tax_sys" : 0, "items" : [ { "code": "4620017451303", "name": "\u041A\u0430\u0440.\u0441 \u0436\u0435\u0432.\u043A\u043E\u043D\u0444.\u0421\u0442\u0440\u0430\u0439\u043A 11.3\u0433/50", "price" : 17.00, "quantity" : 3.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 51.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:46:59]POST & json_proto [03:46:59]process_json_proto [03:46:59]json parsed OK: [03:46:59]protocol is kg_v1.0 [03:46:59]action value=close_receipt [03:46:59]process_action close_receipt [03:46:59]cmd_close_receipt [03:46:59]MH_GetDate [03:46:59]Write to MH i2c: F0 00 00 34 43 66 [03:46:59]Write i2c OK [03:46:59]MH_I2C_Read... [03:46:59]Read from MH i2c: F0 [03:46:59]MH_I2C_Read... [03:46:59]Read from MH i2c: F0 09 00 [03:46:59]MH_I2C_Read... [03:46:59]Read from MH i2c: F0 09 00 34 43 00 37 4F 24 67 72 0D 1C 67 82 [03:46:59]GetLastDocTimeStamp 1730432451 [03:46:59]current date 1730432823 [03:46:59]FM_GetShiftState [03:46:59]SAM_PROTO_GetShiftState [03:46:59]wFMCommunicate request_size=4 [03:46:59]MH_SAM_APDU [03:46:59]CAPDU: 80 13 01 00 [03:46:59]Write to MH i2c: E2 08 00 35 43 80 13 01 00 00 00 00 00 F5 [03:46:59]Write i2c OK [03:46:59]MH_I2C_Read... [03:46:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:46:59]Read from MH i2c: E2 [03:46:59]MH_I2C_Read... [03:46:59]Read from MH i2c: E2 0E 00 [03:46:59]MH_I2C_Read... [03:46:59]Read from MH i2c: E2 0E 00 35 43 00 09 00 01 89 19 24 67 00 00 00 00 90 00 2E [03:46:59]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [03:46:59]wFMCommunicate OK [03:46:59]SAM_PROTO_GetShiftState done [03:46:59]FM_GetShiftState done [03:46:59]opened in 1730419081 [03:46:59]opened+sec_in_day 1730505481 [03:46:59]quantity*price = 5100 [03:46:59]sum+1 = 5101 [03:46:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 51.00 НСП 1% : 0.45 НДС 12% : 5.42 Наличными: 51.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 52 01.11.2024 03:47 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139871 ФПД: 26489848715462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T034703&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139871&fm=26489848715462&tin=02508201610067®Number=0000000000091631&sum=5100 0 [03:47:00]StoreToDocumentArchive [03:47:00]shift 558 fd 139871 [03:47:00]save to /storage/0558/doc_00139871 [03:47:00]save last doc name /storage/0558/doc_00139871 to /storage/kkm_last_doc_name [03:47:00]save OK [03:47:00]Clear old archive folders... [03:47:00]ProcessDocumentItem done err = 0, tmpTLVsize=290 [03:47:00]tlvbuf is B6F0FE80 [03:47:00]SAM_PROTO_ClearQueue [03:47:00]wFMCommunicate request_size=4 [03:47:00]MH_SAM_APDU [03:47:00]CAPDU: 80 09 00 00 [03:47:00]Write to MH i2c: E2 08 00 42 43 80 09 00 00 00 00 00 00 F7 [03:47:00]Write i2c OK [03:47:00]MH_I2C_Read... [03:47:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:47:00]Read from MH i2c: E2 [03:47:00]MH_I2C_Read... [03:47:00]Read from MH i2c: E2 03 00 [03:47:00]MH_I2C_Read... [03:47:00]Read from MH i2c: E2 03 00 42 43 00 90 00 F9 [03:47:00]RAPDU: 90 00 [03:47:00]wFMCommunicate OK [03:47:00]SAM_PROTO_ClearQueue done [03:47:00]KKMCreateOFDPacket [03:47:00]OFDProtocolAddRootSTLVToBuf [03:47:00]FM_MakeSignedData [03:47:00]FM_MakeSignedData [03:47:00]SAM_PROTO_SignData [03:47:00]wFMCommunicate request_size=4 [03:47:00]MH_SAM_APDU [03:47:00]CAPDU: 80 0D 01 02 [03:47:00]Write to MH i2c: E2 08 00 43 43 80 0D 01 02 00 00 00 00 FF [03:47:00]Write i2c OK [03:47:00]MH_I2C_Read... [03:47:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:47:00]Read from MH i2c: E2 [03:47:00]MH_I2C_Read... [03:47:00]Read from MH i2c: E2 03 00 [03:47:00]MH_I2C_Read... [03:47:00]Read from MH i2c: E2 03 00 43 43 00 90 00 FA [03:47:00]RAPDU: 90 00 [03:47:00]wFMCommunicate OK [03:47:00]wFMCommunicate request_size=255 [03:47:00]MH_SAM_APDU [03:47:00]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 37 4F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [03:47:00]Write to MH i2c: E2 02 01 44 43 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 37 4F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 5C [03:47:00]Write i2c OK [03:47:00]MH_I2C_Read... [03:47:00]OFD Sender: No OFD packet to send [03:47:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:47:00]Read from MH i2c: E2 [03:47:00]MH_I2C_Read... [03:47:00]Read from MH i2c: E2 03 00 [03:47:00]MH_I2C_Read... [03:47:00]Read from MH i2c: E2 03 00 44 43 00 90 00 FB [03:47:00]RAPDU: 90 00 [03:47:00]wFMCommunicate OK [03:47:00]wFMCommunicate request_size=49 [03:47:00]MH_SAM_APDU [03:47:00]CAPDU: 80 0D 02 02 2C 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5F 22 02 00 35 04 06 00 18 17 A6 05 D8 C6 [03:47:00]Write to MH i2c: E2 34 00 45 43 80 0D 02 02 2C 00 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5F 22 02 00 35 04 06 00 18 17 A6 05 D8 C6 00 00 2D [03:47:00]Write i2c OK [03:47:00]MH_I2C_Read... [03:47:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:47:01]Read from MH i2c: E2 [03:47:01]MH_I2C_Read... [03:47:01]Read from MH i2c: E2 03 00 [03:47:01]MH_I2C_Read... [03:47:01]Read from MH i2c: E2 03 00 45 43 00 90 00 FC [03:47:01]RAPDU: 90 00 [03:47:01]wFMCommunicate OK [03:47:01]wFMCommunicate request_size=4 [03:47:01]MH_SAM_APDU [03:47:01]CAPDU: 80 0D 03 02 [03:47:01]Write to MH i2c: E2 08 00 46 43 80 0D 03 02 00 00 00 00 04 [03:47:01]Write i2c OK [03:47:01]MH_I2C_Read... [03:47:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:47:01]Read from MH i2c: E2 [03:47:01]MH_I2C_Read... [03:47:01]Read from MH i2c: E2 0B 00 [03:47:01]MH_I2C_Read... [03:47:01]Read from MH i2c: E2 0B 00 46 43 00 D2 BD F8 44 B0 95 FE 22 90 00 35 [03:47:01]RAPDU: D2 BD F8 44 B0 95 FE 22 90 00 [03:47:01]wFMCommunicate OK [03:47:01]SAM_PROTO_SignData done [03:47:01]FM_MakeSignedData done [03:47:01]CreateOFDProtocolMessage [03:47:01]wFMCommunicate request_size=4 [03:47:01]MH_SAM_APDU [03:47:01]CAPDU: 80 11 00 00 [03:47:01]Write to MH i2c: E2 08 00 47 43 80 11 00 00 00 00 00 00 04 [03:47:01]Write i2c OK [03:47:01]MH_I2C_Read... [03:47:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:47:01]Read from MH i2c: E2 [03:47:01]MH_I2C_Read... [03:47:01]Read from MH i2c: E2 17 00 [03:47:01]MH_I2C_Read... [03:47:01]Read from MH i2c: E2 17 00 47 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5F [03:47:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:47:01]wFMCommunicate OK [03:47:01]CreateOFDProtocolMessage done [03:47:01]OFDSenderStorePacket 139871 [03:47:01]StoreOFDPacket docnum=139871 [03:47:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 36 01 00 00 26 72 2E 01 56 85 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 37 4F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5F 22 02 00 35 04 06 00 18 17 A6 05 D8 C6 D2 BD F8 44 B0 95 FE 22 [03:47:01]CheckFolder [03:47:01]dirname=/storage/ofd_packets [03:47:01]CheckFolder done [03:47:01]ProducePacketName [03:47:01]name=ofd_packets/00139871 [03:47:01]NVStorageSaveData ofd_packets/00139871 [03:47:01]File name is /storage/ofd_packets/00139871 [03:47:01]Write 340 bytes [03:47:01]NVStorageSaveData done [03:47:01]OFDSenderStorePacket done [03:47:01]KKMCreateOFDPacket done [03:47:01]NVStorageSaveData kkm_last_timestamp [03:47:01]File name is /storage/kkm_last_timestamp [03:47:01]Write 4 bytes [03:47:01]NVStorageSaveData done [03:47:01]ExternCall_PrintAddStr [03:47:01]wPrintStart [03:47:01]Write to MH i2c: 01 00 00 48 43 8B [03:47:01]Write i2c OK [03:47:01]MH_I2C_Read... [03:47:01]Read from MH i2c: 01 [03:47:01]MH_I2C_Read... [03:47:01]Read from MH i2c: 01 07 00 [03:47:01]MH_I2C_Read... [03:47:01]Read from MH i2c: 01 07 00 48 43 00 00 00 00 00 FF 0F A0 [03:47:01]RasterBufferAndPrint [03:47:01]line Счет N : (3)335690 [03:47:01]line ИНН: 02508201610067 [03:47:01]line Контрольно-Кассовый Чек [03:47:01]line ПРОДАЖА [03:47:01]line Товар: 4620017451303 [03:47:01]line Кар.с жев.конф.Страйк 11.3г/50 [03:47:01]line 3.000 * 17.00 [03:47:01]line = 51.00 [03:47:01]line НДС 12% НСП 1% [03:47:01]line > о реализуемом товаре [03:47:01]line ИТОГО: 51.00 [03:47:01]line НСП 1% : 0.45 [03:47:01]line НДС 12% : 5.42 [03:47:01]line Наличными: 51.00 [03:47:01]line Безнал.: 0.00 [03:47:01]line Место: АЗС № 101 "Партнер Нефть" [03:47:01]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [03:47:01]line СНО: Общий режим [03:47:01]line Чек 52 01.11.2024 03:47 [03:47:01]line Смена: 558 ФФД: 1.0 [03:47:01]line ЗНМ: 0300000081 [03:47:01]line РНМ: 0000000000091631 [03:47:01]line Версия ККМ: 001 [03:47:01]line ФМ: 0000000000874669 [03:47:01]line ФД: 139871 [03:47:01]line ФПД: 26489848715462 [03:47:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T034703&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139871&fm=26489848715462&tin=02508201610067®Number=0000000000091631&sum=5100 [03:47:01]line 0 [03:47:01]OFD Sender: Processing packet 139871 [packets to send 34, broken 33] [03:47:01]ProducePacketName [03:47:01]name=ofd_packets/00139871 [03:47:01]OFD Sender: To server: pG, [03:47:01]CommunicateWithHost lk.salyk.kg:30040 [03:47:01]ConnectInit lk.salyk.kg [03:47:01]written 0, free lines is 4095 [03:47:01]Connected sock=10 [03:47:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 36 01 00 00 26 72 2E 01 56 85 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 37 4F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5F 22 02 00 35 04 06 00 18 17 A6 05 D8 C6 D2 BD F8 44 B0 95 FE 22 [03:47:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 2D 80 47 00 FF 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5F 22 02 00 F4 03 04 00 E3 FA 23 67 B6 04 01 00 00 32 0F AD 8F 39 EC 76 8A [03:47:01]CommunicateWithHost err = 0 [03:47:01]CheckOFDResponse [03:47:01]1017 (14) - 77093643461234 [03:47:01]1041 (16) - 0000000000874669 [03:47:01]1040 (4) - 139871 [03:47:01]1012 (4) - 31.10.2024 21:47 [03:47:01]1206 (1) - 0 [03:47:01]OFD Sender: Remove packet 139871 [03:47:01]ProducePacketName [03:47:01]name=ofd_packets/00139871 [03:47:01]NVStorageDeleteData [03:47:01]Write to MH i2c: 01 00 00 71 43 B4 [03:47:01]Write i2c OK [03:47:01]MH_I2C_Read... [03:47:01]Read from MH i2c: 01 [03:47:01]MH_I2C_Read... [03:47:01]Read from MH i2c: 01 07 00 [03:47:01]MH_I2C_Read... [03:47:01]Read from MH i2c: 01 07 00 71 43 00 00 00 00 00 EF 0C B6 [03:47:01]RasterBufferAndPrint [03:47:01]line [03:47:01]line [03:47:01]line [03:47:01]line [03:47:01]line [03:47:01]written 0, free lines is 3317 [03:47:01]MH_Cut [03:47:01]Write to MH i2c: D1 01 00 78 43 01 8D [03:47:01]Write i2c OK [03:47:01]MH_I2C_Read... [03:47:01]Read from MH i2c: D1 [03:47:01]MH_I2C_Read... [03:47:01]Read from MH i2c: D1 01 00 [03:47:01]MH_I2C_Read... [03:47:01]Read from MH i2c: D1 01 00 78 43 00 8C [03:47:01]Write to MH i2c: 01 00 00 79 43 BC [03:47:01]Write i2c OK [03:47:01]MH_I2C_Read... [03:47:02]OFD Sender: No OFD packet to send [03:47:02]*** Cut start [03:47:02]*** Partial cut [03:47:02]*** CUTSNS_PIN = 1 [03:47:02]*** CUTSNS_PIN = 0 [03:47:02]*** Brake cut motor [03:47:03]Read from MH i2c: 01 [03:47:03]MH_I2C_Read... [03:47:03]*** Stop cut motor [03:47:03]*** Cut end [03:47:03]Read from MH i2c: 01 07 00 [03:47:03]MH_I2C_Read... [03:47:03]Read from MH i2c: 01 07 00 79 43 00 00 00 00 00 FF 0F D1 [03:47:03]process_action close_receipt done [03:47:03]requested_data is exist [03:47:03]produce_requested_data [03:47:03]requested_item fm.sn is exist - process it [03:47:03]wFMCommunicate request_size=4 [03:47:03]MH_SAM_APDU [03:47:03]CAPDU: 80 11 00 00 [03:47:03]Write to MH i2c: E2 08 00 7A 43 80 11 00 00 00 00 00 00 37 [03:47:03]Write i2c OK [03:47:03]MH_I2C_Read... [03:47:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:47:03]Read from MH i2c: E2 [03:47:03]MH_I2C_Read... [03:47:03]Read from MH i2c: E2 17 00 [03:47:03]MH_I2C_Read... [03:47:03]Read from MH i2c: E2 17 00 7A 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 92 [03:47:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:47:03]wFMCommunicate OK [03:47:03]requested_item fd.num is exist - process it [03:47:03]SAM_PROTO_GetFieldsCounters [03:47:03]wFMCommunicate request_size=4 [03:47:03]MH_SAM_APDU [03:47:03]CAPDU: 80 13 00 00 [03:47:03]Write to MH i2c: E2 08 00 7B 43 80 13 00 00 00 00 00 00 3A [03:47:03]Write i2c OK [03:47:03]MH_I2C_Read... [03:47:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:47:03]Read from MH i2c: E2 [03:47:03]MH_I2C_Read... [03:47:03]Read from MH i2c: E2 62 00 [03:47:03]MH_I2C_Read... [03:47:03]Read from MH i2c: E2 62 00 7B 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5F 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [03:47:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5F 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:47:03]wFMCommunicate OK [03:47:03]SAM_PROTO_GetFieldsCounters done [03:47:03]requested_item shift.num is exist - process it [03:47:03]requested_item shift.opened is exist - process it [03:47:03]req_shift_opened [03:47:03]FM_GetShiftState [03:47:03]SAM_PROTO_GetShiftState [03:47:03]wFMCommunicate request_size=4 [03:47:03]MH_SAM_APDU [03:47:03]CAPDU: 80 13 01 00 [03:47:03]Write to MH i2c: E2 08 00 7C 43 80 13 01 00 00 00 00 00 3C [03:47:03]Write i2c OK [03:47:03]MH_I2C_Read... [03:47:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:47:03]Read from MH i2c: E2 [03:47:03]MH_I2C_Read... [03:47:03]Read from MH i2c: E2 0E 00 [03:47:03]MH_I2C_Read... [03:47:03]Read from MH i2c: E2 0E 00 7C 43 00 09 00 01 89 19 24 67 00 00 00 00 90 00 75 [03:47:03]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [03:47:03]wFMCommunicate OK [03:47:03]SAM_PROTO_GetShiftState done [03:47:03]FM_GetShiftState done [03:47:03]req_shift_opened done [03:47:03]requested_item shift.open_date is exist - process it [03:47:03]req_shift_open_date [03:47:03]req_shift_open_date done [03:47:03]produce_requested_data done [03:47:03]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139871,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [03:47:03]process_action_free close_receipt [03:47:03]json_value_free [03:47:03]json_value_free done [03:47:03]process_json_proto returns [03:47:03]Send response to host [03:47:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139871,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [03:47:03]free response buf [03:47:03]execute_script done [03:47:03]execute_script returns [03:47:03]free content buf [03:47:03]Sock 7.Close socket [03:47:03]Sock 7.Thread stoped [03:47:04]accept exits with 9 [03:47:04]New connection [03:47:04]New thread 3066654052 created [03:47:04]Thread 3066510692 joined [03:47:04]Waiting for new connection... [03:47:04] Sock 9.Parse request [03:47:04]Sock 9.Check first char [03:47:04]Sock 9.First char is OK [03:47:04]request: POST /json_proto HTTP/1.0 [03:47:04]Method: POST [03:47:04]URL: /json_proto [03:47:04]Method is POST - this is cgi request [03:47:04]url: /json_proto [03:47:04]query_string will be loaded in cgi processing [03:47:04]execute_cgi json_proto POST (null) [03:47:04]execute_cgi path=json_proto method=POST [03:47:04]POST find Content-Length [03:47:04]Host: 172.17.50.196:8080 [03:47:04]Content-Length: 617 [03:47:04]Content-Type: application/json [03:47:04] [03:47:04]POST finish read [03:47:04]Found Content-Length = 617 [03:47:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335695", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:47:04]execute_script... [03:47:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335695", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:47:04]POST & json_proto [03:47:04]process_json_proto [03:47:04]json parsed OK: [03:47:04]protocol is kg_v1.0 [03:47:04]action value=close_receipt [03:47:04]process_action close_receipt [03:47:04]cmd_close_receipt [03:47:04]MH_GetDate [03:47:04]Write to MH i2c: F0 00 00 7D 43 AF [03:47:04]Write i2c OK [03:47:04]MH_I2C_Read... [03:47:04]Read from MH i2c: F0 [03:47:04]MH_I2C_Read... [03:47:04]Read from MH i2c: F0 09 00 [03:47:04]MH_I2C_Read... [03:47:04]Read from MH i2c: F0 09 00 7D 43 00 3C 4F 24 67 72 0D 1C 67 D0 [03:47:04]GetLastDocTimeStamp 1730432823 [03:47:04]current date 1730432828 [03:47:04]FM_GetShiftState [03:47:04]SAM_PROTO_GetShiftState [03:47:04]wFMCommunicate request_size=4 [03:47:04]MH_SAM_APDU [03:47:04]CAPDU: 80 13 01 00 [03:47:04]Write to MH i2c: E2 08 00 7E 43 80 13 01 00 00 00 00 00 3E [03:47:04]Write i2c OK [03:47:04]MH_I2C_Read... [03:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:47:04]Read from MH i2c: E2 [03:47:04]MH_I2C_Read... [03:47:04]Read from MH i2c: E2 0E 00 [03:47:04]MH_I2C_Read... [03:47:04]Read from MH i2c: E2 0E 00 7E 43 00 09 00 01 89 19 24 67 00 00 00 00 90 00 77 [03:47:04]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [03:47:04]wFMCommunicate OK [03:47:04]SAM_PROTO_GetShiftState done [03:47:04]FM_GetShiftState done [03:47:04]opened in 1730419081 [03:47:04]opened+sec_in_day 1730505481 [03:47:04]quantity*price = 14500 [03:47:04]sum+1 = 14501 [03:47:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 145.00 НСП 1% : 1.28 НДС 12% : 15.40 Наличными: 145.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 53 01.11.2024 03:47 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139872 ФПД: 22057157184070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T034708&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139872&fm=22057157184070&tin=02508201610067®Number=0000000000091631&sum=14500 0 [03:47:05]StoreToDocumentArchive [03:47:05]shift 558 fd 139872 [03:47:05]save to /storage/0558/doc_00139872 [03:47:05]save last doc name /storage/0558/doc_00139872 to /storage/kkm_last_doc_name [03:47:05]save OK [03:47:05]Clear old archive folders... [03:47:05]ProcessDocumentItem done err = 0, tmpTLVsize=265 [03:47:05]tlvbuf is B6F0F7F0 [03:47:05]SAM_PROTO_ClearQueue [03:47:05]wFMCommunicate request_size=4 [03:47:05]MH_SAM_APDU [03:47:05]CAPDU: 80 09 00 00 [03:47:05]Write to MH i2c: E2 08 00 8B 43 80 09 00 00 00 00 00 00 40 [03:47:05]Write i2c OK [03:47:05]MH_I2C_Read... [03:47:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:47:05]Read from MH i2c: E2 [03:47:05]MH_I2C_Read... [03:47:05]Read from MH i2c: E2 03 00 [03:47:05]MH_I2C_Read... [03:47:05]Read from MH i2c: E2 03 00 8B 43 00 90 00 42 [03:47:05]RAPDU: 90 00 [03:47:05]wFMCommunicate OK [03:47:05]SAM_PROTO_ClearQueue done [03:47:05]KKMCreateOFDPacket [03:47:05]OFDProtocolAddRootSTLVToBuf [03:47:05]FM_MakeSignedData [03:47:05]FM_MakeSignedData [03:47:05]SAM_PROTO_SignData [03:47:05]wFMCommunicate request_size=4 [03:47:05]MH_SAM_APDU [03:47:05]CAPDU: 80 0D 01 02 [03:47:05]Write to MH i2c: E2 08 00 8C 43 80 0D 01 02 00 00 00 00 48 [03:47:05]Write i2c OK [03:47:05]MH_I2C_Read... [03:47:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:47:05]Read from MH i2c: E2 [03:47:05]MH_I2C_Read... [03:47:05]Read from MH i2c: E2 03 00 [03:47:05]MH_I2C_Read... [03:47:05]Read from MH i2c: E2 03 00 8C 43 00 90 00 43 [03:47:05]RAPDU: 90 00 [03:47:05]wFMCommunicate OK [03:47:05]wFMCommunicate request_size=255 [03:47:05]MH_SAM_APDU [03:47:05]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 3C 4F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 [03:47:05]Write to MH i2c: E2 02 01 8D 43 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 3C 4F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 00 00 8B [03:47:05]Write i2c OK [03:47:05]MH_I2C_Read... [03:47:06]Read from MH i2c: E2 [03:47:06]MH_I2C_Read... [03:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:47:06]Read from MH i2c: E2 03 00 [03:47:06]MH_I2C_Read... [03:47:06]Read from MH i2c: E2 03 00 8D 43 00 90 00 44 [03:47:06]RAPDU: 90 00 [03:47:06]wFMCommunicate OK [03:47:06]wFMCommunicate request_size=24 [03:47:06]MH_SAM_APDU [03:47:06]CAPDU: 80 0D 02 02 13 39 10 04 04 00 60 22 02 00 35 04 06 00 14 0F 95 04 CA 46 [03:47:06]Write to MH i2c: E2 1B 00 8E 43 80 0D 02 02 13 00 39 10 04 04 00 60 22 02 00 35 04 06 00 14 0F 95 04 CA 46 00 00 51 [03:47:06]Write i2c OK [03:47:06]MH_I2C_Read... [03:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:47:06]Read from MH i2c: E2 [03:47:06]MH_I2C_Read... [03:47:06]Read from MH i2c: E2 03 00 [03:47:06]MH_I2C_Read... [03:47:06]Read from MH i2c: E2 03 00 8E 43 00 90 00 45 [03:47:06]RAPDU: 90 00 [03:47:06]wFMCommunicate OK [03:47:06]wFMCommunicate request_size=4 [03:47:06]MH_SAM_APDU [03:47:06]CAPDU: 80 0D 03 02 [03:47:06]Write to MH i2c: E2 08 00 8F 43 80 0D 03 02 00 00 00 00 4D [03:47:06]Write i2c OK [03:47:06]MH_I2C_Read... [03:47:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:47:06]Read from MH i2c: E2 [03:47:06]MH_I2C_Read... [03:47:06]Read from MH i2c: E2 0B 00 [03:47:06]MH_I2C_Read... [03:47:06]Read from MH i2c: E2 0B 00 8F 43 00 6C 70 86 04 37 DF 60 A5 90 00 CF [03:47:06]RAPDU: 6C 70 86 04 37 DF 60 A5 90 00 [03:47:06]wFMCommunicate OK [03:47:06]SAM_PROTO_SignData done [03:47:06]FM_MakeSignedData done [03:47:06]CreateOFDProtocolMessage [03:47:06]wFMCommunicate request_size=4 [03:47:06]MH_SAM_APDU [03:47:06]CAPDU: 80 11 00 00 [03:47:06]Write to MH i2c: E2 08 00 90 43 80 11 00 00 00 00 00 00 4D [03:47:06]Write i2c OK [03:47:06]MH_I2C_Read... [03:47:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:47:06]Read from MH i2c: E2 [03:47:06]MH_I2C_Read... [03:47:06]Read from MH i2c: E2 17 00 [03:47:06]MH_I2C_Read... [03:47:06]Read from MH i2c: E2 17 00 90 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A8 [03:47:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:47:06]wFMCommunicate OK [03:47:06]CreateOFDProtocolMessage done [03:47:06]OFDSenderStorePacket 139872 [03:47:06]StoreOFDPacket docnum=139872 [03:47:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1D 01 00 00 DB E5 15 01 1C 69 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 3C 4F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 60 22 02 00 35 04 06 00 14 0F 95 04 CA 46 6C 70 86 04 37 DF 60 A5 [03:47:06]CheckFolder [03:47:06]dirname=/storage/ofd_packets [03:47:06]CheckFolder done [03:47:06]ProducePacketName [03:47:06]name=ofd_packets/00139872 [03:47:06]NVStorageSaveData ofd_packets/00139872 [03:47:06]File name is /storage/ofd_packets/00139872 [03:47:06]Write 315 bytes [03:47:06]NVStorageSaveData done [03:47:06]OFDSenderStorePacket done [03:47:06]KKMCreateOFDPacket done [03:47:06]NVStorageSaveData kkm_last_timestamp [03:47:06]File name is /storage/kkm_last_timestamp [03:47:06]Write 4 bytes [03:47:06]NVStorageSaveData done [03:47:06]ExternCall_PrintAddStr [03:47:06]wPrintStart [03:47:06]Write to MH i2c: 01 00 00 91 43 D4 [03:47:06]Write i2c OK [03:47:06]MH_I2C_Read... [03:47:06]Read from MH i2c: 01 [03:47:06]MH_I2C_Read... [03:47:06]Read from MH i2c: 01 07 00 [03:47:06]MH_I2C_Read... [03:47:06]Read from MH i2c: 01 07 00 91 43 00 00 00 00 00 FF 0F E9 [03:47:06]RasterBufferAndPrint [03:47:06]line Счет N : (3)335695 [03:47:06]line ИНН: 02508201610067 [03:47:06]line Контрольно-Кассовый Чек [03:47:06]line ПРОДАЖА [03:47:06]line Товар: 4700001610012 [03:47:06]line Пиво Арпа 0,5л [03:47:06]line 1.000 * 145.00 [03:47:06]line = 145.00 [03:47:06]line НДС 12% НСП 1% [03:47:06]line > о реализуемом товаре [03:47:06]line ИТОГО: 145.00 [03:47:06]line НСП 1% : 1.28 [03:47:06]line НДС 12% : 15.40 [03:47:06]line Наличными: 145.00 [03:47:06]line Безнал.: 0.00 [03:47:06]line Место: АЗС № 101 "Партнер Нефть" [03:47:06]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [03:47:06]line СНО: Общий режим [03:47:06]line Чек 53 01.11.2024 03:47 [03:47:06]line Смена: 558 ФФД: 1.0 [03:47:06]line ЗНМ: 0300000081 [03:47:06]line РНМ: 0000000000091631 [03:47:06]line Версия ККМ: 001 [03:47:06]line ФМ: 0000000000874669 [03:47:06]line ФД: 139872 [03:47:06]line ФПД: 22057157184070 [03:47:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T034708&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139872&fm=22057157184070&tin=02508201610067®Number=0000000000091631&sum=14500 [03:47:06]line 0 [03:47:06]written 0, free lines is 4095 [03:47:06]OFD Sender: Processing packet 139872 [packets to send 34, broken 33] [03:47:06]ProducePacketName [03:47:06]name=ofd_packets/00139872 [03:47:06]OFD Sender: To server: pG, [03:47:06]CommunicateWithHost lk.salyk.kg:30040 [03:47:06]ConnectInit lk.salyk.kg [03:47:06]Connected sock=10 [03:47:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1D 01 00 00 DB E5 15 01 1C 69 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 3C 4F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 60 22 02 00 35 04 06 00 14 0F 95 04 CA 46 6C 70 86 04 37 DF 60 A5 [03:47:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 B4 4A 47 00 7A 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 34 36 36 39 10 04 04 00 60 22 02 00 F4 03 04 00 E8 FA 23 67 B6 04 01 00 00 81 DB 21 84 56 E0 8A 5A [03:47:06]CommunicateWithHost err = 0 [03:47:06]CheckOFDResponse [03:47:06]1017 (14) - 77093643461234 [03:47:06]1041 (16) - 0000000000874669 [03:47:06]1040 (4) - 139872 [03:47:06]1012 (4) - 31.10.2024 21:47 [03:47:06]1206 (1) - 0 [03:47:06]OFD Sender: Remove packet 139872 [03:47:06]ProducePacketName [03:47:06]name=ofd_packets/00139872 [03:47:06]NVStorageDeleteData [03:47:06]Write to MH i2c: 01 00 00 B9 43 FC [03:47:06]Write i2c OK [03:47:06]MH_I2C_Read... [03:47:06]Read from MH i2c: 01 [03:47:06]MH_I2C_Read... [03:47:06]Read from MH i2c: 01 07 00 [03:47:06]MH_I2C_Read... [03:47:06]Read from MH i2c: 01 07 00 B9 43 00 00 00 00 00 12 0D 22 [03:47:06]RasterBufferAndPrint [03:47:06]line [03:47:06]line [03:47:06]line [03:47:06]line [03:47:06]line [03:47:06]written 0, free lines is 3359 [03:47:06]MH_Cut [03:47:06]Write to MH i2c: D1 01 00 C0 43 01 D5 [03:47:06]Write i2c OK [03:47:06]MH_I2C_Read... [03:47:06]Read from MH i2c: D1 [03:47:06]MH_I2C_Read... [03:47:06]Read from MH i2c: D1 01 00 [03:47:06]MH_I2C_Read... [03:47:06]Read from MH i2c: D1 01 00 C0 43 00 D4 [03:47:06]Write to MH i2c: 01 00 00 C1 43 04 [03:47:06]Write i2c OK [03:47:06]MH_I2C_Read... [03:47:07]OFD Sender: No OFD packet to send [03:47:07]*** Cut start [03:47:07]*** Partial cut [03:47:07]*** CUTSNS_PIN = 1 [03:47:07]*** CUTSNS_PIN = 0 [03:47:07]*** Brake cut motor [03:47:08]Read from MH i2c: 01 [03:47:08]MH_I2C_Read... [03:47:08]*** Stop cut motor [03:47:08]*** Cut end [03:47:08]Read from MH i2c: 01 07 00 [03:47:08]MH_I2C_Read... [03:47:08]Read from MH i2c: 01 07 00 C1 43 00 00 00 00 00 FF 0F 19 [03:47:08]process_action close_receipt done [03:47:08]requested_data is exist [03:47:08]produce_requested_data [03:47:08]requested_item fm.sn is exist - process it [03:47:08]wFMCommunicate request_size=4 [03:47:08]MH_SAM_APDU [03:47:08]CAPDU: 80 11 00 00 [03:47:08]Write to MH i2c: E2 08 00 C2 43 80 11 00 00 00 00 00 00 7F [03:47:08]Write i2c OK [03:47:08]MH_I2C_Read... [03:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:47:08]Read from MH i2c: E2 [03:47:08]MH_I2C_Read... [03:47:08]Read from MH i2c: E2 17 00 [03:47:08]MH_I2C_Read... [03:47:08]Read from MH i2c: E2 17 00 C2 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DA [03:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:47:08]wFMCommunicate OK [03:47:08]requested_item fd.num is exist - process it [03:47:08]SAM_PROTO_GetFieldsCounters [03:47:08]wFMCommunicate request_size=4 [03:47:08]MH_SAM_APDU [03:47:08]CAPDU: 80 13 00 00 [03:47:08]Write to MH i2c: E2 08 00 C3 43 80 13 00 00 00 00 00 00 82 [03:47:08]Write i2c OK [03:47:08]MH_I2C_Read... [03:47:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:47:08]Read from MH i2c: E2 [03:47:08]MH_I2C_Read... [03:47:08]Read from MH i2c: E2 62 00 [03:47:08]MH_I2C_Read... [03:47:08]Read from MH i2c: E2 62 00 C3 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 60 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [03:47:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 60 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:47:08]wFMCommunicate OK [03:47:08]SAM_PROTO_GetFieldsCounters done [03:47:08]requested_item shift.num is exist - process it [03:47:08]requested_item shift.opened is exist - process it [03:47:08]req_shift_opened [03:47:08]FM_GetShiftState [03:47:08]SAM_PROTO_GetShiftState [03:47:08]wFMCommunicate request_size=4 [03:47:08]MH_SAM_APDU [03:47:08]CAPDU: 80 13 01 00 [03:47:08]Write to MH i2c: E2 08 00 C4 43 80 13 01 00 00 00 00 00 84 [03:47:08]Write i2c OK [03:47:08]MH_I2C_Read... [03:47:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:47:08]Read from MH i2c: E2 [03:47:08]MH_I2C_Read... [03:47:08]Read from MH i2c: E2 0E 00 [03:47:08]MH_I2C_Read... [03:47:08]Read from MH i2c: E2 0E 00 C4 43 00 09 00 01 89 19 24 67 00 00 00 00 90 00 BD [03:47:08]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [03:47:08]wFMCommunicate OK [03:47:08]SAM_PROTO_GetShiftState done [03:47:08]FM_GetShiftState done [03:47:08]req_shift_opened done [03:47:08]requested_item shift.open_date is exist - process it [03:47:08]req_shift_open_date [03:47:08]req_shift_open_date done [03:47:08]produce_requested_data done [03:47:08]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139872,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [03:47:08]process_action_free close_receipt [03:47:08]json_value_free [03:47:08]json_value_free done [03:47:08]process_json_proto returns [03:47:08]Send response to host [03:47:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139872,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [03:47:08]free response buf [03:47:08]execute_script done [03:47:08]execute_script returns [03:47:08]free content buf [03:47:08]Sock 9.Close socket [03:47:08]Sock 9.Thread stoped [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:34]accept exits with 7 [03:50:34]New connection [03:50:34]New thread 3066510692 created [03:50:34]Thread 3066654052 joined [03:50:34]Waiting for new connection... [03:50:34] Sock 7.Parse request [03:50:34]Sock 7.Check first char [03:50:34]Sock 7.First char is OK [03:50:34]request: POST /json_proto HTTP/1.0 [03:50:34]Method: POST [03:50:34]URL: /json_proto [03:50:34]Method is POST - this is cgi request [03:50:34]url: /json_proto [03:50:34]query_string will be loaded in cgi processing [03:50:34]execute_cgi json_proto POST (null) [03:50:34]execute_cgi path=json_proto method=POST [03:50:34]POST find Content-Length [03:50:34]Host: 172.17.50.196:8080 [03:50:34]Content-Length: 997 [03:50:34]Content-Type: application/json [03:50:34] [03:50:34]POST finish read [03:50:34]Found Content-Length = 997 [03:50:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335696", "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" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000273673", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 1\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:50:34]execute_script... [03:50: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)335696", "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" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000273673", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 1\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:50:34]POST & json_proto [03:50:34]process_json_proto [03:50:34]json parsed OK: [03:50:34]protocol is kg_v1.0 [03:50:34]action value=close_receipt [03:50:34]process_action close_receipt [03:50:34]cmd_close_receipt [03:50:34]MH_GetDate [03:50:34]Write to MH i2c: F0 00 00 C5 43 F7 [03:50:34]Write i2c OK [03:50:34]MH_I2C_Read... [03:50:34]Read from MH i2c: F0 [03:50:34]MH_I2C_Read... [03:50:34]Read from MH i2c: F0 09 00 [03:50:34]MH_I2C_Read... [03:50:34]Read from MH i2c: F0 09 00 C5 43 00 0E 50 24 67 72 0D 1C 67 EB [03:50:34]GetLastDocTimeStamp 1730432828 [03:50:34]current date 1730433038 [03:50:34]FM_GetShiftState [03:50:34]SAM_PROTO_GetShiftState [03:50:34]wFMCommunicate request_size=4 [03:50:34]MH_SAM_APDU [03:50:34]CAPDU: 80 13 01 00 [03:50:34]Write to MH i2c: E2 08 00 C6 43 80 13 01 00 00 00 00 00 86 [03:50:34]Write i2c OK [03:50:34]MH_I2C_Read... [03:50:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:50:34]Read from MH i2c: E2 [03:50:34]MH_I2C_Read... [03:50:34]Read from MH i2c: E2 0E 00 [03:50:34]MH_I2C_Read... [03:50:34]Read from MH i2c: E2 0E 00 C6 43 00 09 00 01 89 19 24 67 00 00 00 00 90 00 BF [03:50:34]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [03:50:34]wFMCommunicate OK [03:50:34]SAM_PROTO_GetShiftState done [03:50:34]FM_GetShiftState done [03:50:34]opened in 1730419081 [03:50:34]opened+sec_in_day 1730505481 [03:50:34]quantity*price = 4500 [03:50:34]sum+1 = 4501 [03:50:34]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000273673 Сок Piko Pulpy красный виноград ПЭТ 1л 1.000 * 175.00 = 175.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.95 НДС 12% : 23.36 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 54 01.11.2024 03:50 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139873 ФПД: 234228196444096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T035038&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139873&fm=234228196444096&tin=02508201610067®Number=0000000000091631&sum=22000 0 [03:50:35]StoreToDocumentArchive [03:50:35]shift 558 fd 139873 [03:50:35]save to /storage/0558/doc_00139873 [03:50:35]save last doc name /storage/0558/doc_00139873 to /storage/kkm_last_doc_name [03:50:35]save OK [03:50:35]Clear old archive folders... [03:50:35]ProcessDocumentItem done err = 0, tmpTLVsize=417 [03:50:35]tlvbuf is 00A266B0 [03:50:35]SAM_PROTO_ClearQueue [03:50:35]wFMCommunicate request_size=4 [03:50:35]MH_SAM_APDU [03:50:35]CAPDU: 80 09 00 00 [03:50:35]Write to MH i2c: E2 08 00 D3 43 80 09 00 00 00 00 00 00 88 [03:50:35]Write i2c OK [03:50:35]MH_I2C_Read... [03:50:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:50:35]Read from MH i2c: E2 [03:50:35]MH_I2C_Read... [03:50:35]Read from MH i2c: E2 03 00 [03:50:35]MH_I2C_Read... [03:50:35]Read from MH i2c: E2 03 00 D3 43 00 90 00 8A [03:50:35]RAPDU: 90 00 [03:50:35]wFMCommunicate OK [03:50:35]SAM_PROTO_ClearQueue done [03:50:35]KKMCreateOFDPacket [03:50:35]OFDProtocolAddRootSTLVToBuf [03:50:35]FM_MakeSignedData [03:50:35]FM_MakeSignedData [03:50:35]SAM_PROTO_SignData [03:50:35]wFMCommunicate request_size=4 [03:50:35]MH_SAM_APDU [03:50:35]CAPDU: 80 0D 01 02 [03:50:35]Write to MH i2c: E2 08 00 D4 43 80 0D 01 02 00 00 00 00 90 [03:50:35]Write i2c OK [03:50:35]MH_I2C_Read... [03:50:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:50:35]Read from MH i2c: E2 [03:50:35]MH_I2C_Read... [03:50:35]Read from MH i2c: E2 03 00 [03:50:35]MH_I2C_Read... [03:50:35]Read from MH i2c: E2 03 00 D4 43 00 90 00 8B [03:50:35]RAPDU: 90 00 [03:50:35]wFMCommunicate OK [03:50:35]wFMCommunicate request_size=255 [03:50:35]MH_SAM_APDU [03:50:35]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 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 [03:50:35]Write to MH i2c: E2 02 01 D5 43 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 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 00 FE [03:50:35]Write i2c OK [03:50:35]MH_I2C_Read... [03:50:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:50:36]Read from MH i2c: E2 [03:50:36]MH_I2C_Read... [03:50:36]Read from MH i2c: E2 03 00 [03:50:36]MH_I2C_Read... [03:50:36]Read from MH i2c: E2 03 00 D5 43 00 90 00 8C [03:50:36]RAPDU: 90 00 [03:50:36]wFMCommunicate OK [03:50:36]wFMCommunicate request_size=176 [03:50:36]MH_SAM_APDU [03:50:36]CAPDU: 80 0D 02 02 AB 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 0E 50 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 61 22 02 00 35 04 06 00 D5 07 80 72 07 C0 [03:50:36]Write to MH i2c: E2 B3 00 D6 43 80 0D 02 02 AB 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 0E 50 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 61 22 02 00 35 04 06 00 D5 07 80 72 07 C0 00 00 D0 [03:50:36]Write i2c OK [03:50:36]MH_I2C_Read... [03:50:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:50:36]Read from MH i2c: E2 [03:50:36]MH_I2C_Read... [03:50:36]Read from MH i2c: E2 03 00 [03:50:36]MH_I2C_Read... [03:50:36]Read from MH i2c: E2 03 00 D6 43 00 90 00 8D [03:50:36]RAPDU: 90 00 [03:50:36]wFMCommunicate OK [03:50:36]wFMCommunicate request_size=4 [03:50:36]MH_SAM_APDU [03:50:36]CAPDU: 80 0D 03 02 [03:50:36]Write to MH i2c: E2 08 00 D7 43 80 0D 03 02 00 00 00 00 95 [03:50:36]Write i2c OK [03:50:36]MH_I2C_Read... [03:50:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:50:36]Read from MH i2c: E2 [03:50:36]MH_I2C_Read... [03:50:36]Read from MH i2c: E2 0B 00 [03:50:36]MH_I2C_Read... [03:50:36]Read from MH i2c: E2 0B 00 D7 43 00 83 FE 9A 72 A5 FC 99 2D 90 00 8A [03:50:36]RAPDU: 83 FE 9A 72 A5 FC 99 2D 90 00 [03:50:36]wFMCommunicate OK [03:50:36]SAM_PROTO_SignData done [03:50:36]FM_MakeSignedData done [03:50:36]CreateOFDProtocolMessage [03:50:36]wFMCommunicate request_size=4 [03:50:36]MH_SAM_APDU [03:50:36]CAPDU: 80 11 00 00 [03:50:36]Write to MH i2c: E2 08 00 D8 43 80 11 00 00 00 00 00 00 95 [03:50:36]Write i2c OK [03:50:36]MH_I2C_Read... [03:50:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:50:36]Read from MH i2c: E2 [03:50:36]MH_I2C_Read... [03:50:36]Read from MH i2c: E2 17 00 [03:50:36]MH_I2C_Read... [03:50:36]Read from MH i2c: E2 17 00 D8 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F0 [03:50:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:50:36]wFMCommunicate OK [03:50:36]CreateOFDProtocolMessage done [03:50:36]OFDSenderStorePacket 139873 [03:50:36]StoreOFDPacket docnum=139873 [03:50:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B5 01 00 00 CF C5 AD 01 85 D7 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 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 0E 50 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 61 22 02 00 35 04 06 00 D5 07 80 72 07 C0 83 FE 9A 72 A5 FC 99 2D [03:50:36]CheckFolder [03:50:36]dirname=/storage/ofd_packets [03:50:36]CheckFolder done [03:50:36]ProducePacketName [03:50:36]name=ofd_packets/00139873 [03:50:36]NVStorageSaveData ofd_packets/00139873 [03:50:36]File name is /storage/ofd_packets/00139873 [03:50:36]Write 467 bytes [03:50:36]NVStorageSaveData done [03:50:36]OFDSenderStorePacket done [03:50:36]KKMCreateOFDPacket done [03:50:36]NVStorageSaveData kkm_last_timestamp [03:50:36]File name is /storage/kkm_last_timestamp [03:50:36]Write 4 bytes [03:50:36]NVStorageSaveData done [03:50:36]ExternCall_PrintAddStr [03:50:36]wPrintStart [03:50:36]Write to MH i2c: 01 00 00 D9 43 1C [03:50:36]Write i2c OK [03:50:36]MH_I2C_Read... [03:50:36]Read from MH i2c: 01 [03:50:36]MH_I2C_Read... [03:50:36]Read from MH i2c: 01 07 00 [03:50:36]MH_I2C_Read... [03:50:36]Read from MH i2c: 01 07 00 D9 43 00 00 00 00 00 FF 0F 31 [03:50:36]RasterBufferAndPrint [03:50:36]line Счет N : (3)335696 [03:50:36]line ИНН: 02508201610067 [03:50:36]line Контрольно-Кассовый Чек [03:50:36]line ПРОДАЖА [03:50:36]line Товар: 4607010740733 [03:50:36]line Чипсы Чипсоны шашлык 40г [03:50:36]line 1.000 * 45.00 [03:50:36]line = 45.00 [03:50:36]line НДС 12% НСП 1% [03:50:36]line > о реализуемом товаре [03:50:36]line Товар: 5449000273673 [03:50:36]line Сок Piko Pulpy красный виноград ПЭТ 1л [03:50:36]line 1.000 * 175.00 [03:50:36]line = 175.00 [03:50:36]line НДС 12% НСП 1% [03:50:36]line > о реализуемом товаре [03:50:36]line ИТОГО: 220.00 [03:50:36]line НСП 1% : 1.95 [03:50:36]line НДС 12% : 23.36 [03:50:36]line Наличными: 220.00 [03:50:36]line Безнал.: 0.00 [03:50:36]line Место: АЗС № 101 "Партнер Нефть" [03:50:36]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [03:50:36]line СНО: Общий режим [03:50:36]line Чек 54 01.11.2024 03:50 [03:50:36]line Смена: 558 ФФД: 1.0 [03:50:36]line ЗНМ: 0300000081 [03:50:36]line РНМ: 0000000000091631 [03:50:36]line Версия ККМ: 001 [03:50:36]line ФМ: 0000000000874669 [03:50:36]line ФД: 139873 [03:50:36]line ФПД: 234228196444096 [03:50:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T035038&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139873&fm=234228196444096&tin=02508201610067®Number=0000000000091631&sum=22000 [03:50:36]line 0 [03:50:36]OFD Sender: Processing packet 139873 [packets to send 34, broken 33] [03:50:36]ProducePacketName [03:50:36]name=ofd_packets/00139873 [03:50:36]OFD Sender: To server: pG, [03:50:36]CommunicateWithHost lk.salyk.kg:30040 [03:50:36]ConnectInit lk.salyk.kg [03:50:36]written 0, free lines is 4095 [03:50:36]Connected sock=10 [03:50:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B5 01 00 00 CF C5 AD 01 85 D7 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 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 0E 50 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 61 22 02 00 35 04 06 00 D5 07 80 72 07 C0 83 FE 9A 72 A5 FC 99 2D [03:50:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 CB 99 47 00 65 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 61 22 02 00 F4 03 04 00 BA FB 23 67 B6 04 01 00 00 5A 6B 8E 39 30 B5 19 C1 [03:50:37]CommunicateWithHost err = 0 [03:50:37]CheckOFDResponse [03:50:37]1017 (14) - 77093643461234 [03:50:37]1041 (16) - 0000000000874669 [03:50:37]1040 (4) - 139873 [03:50:37]1012 (4) - 31.10.2024 21:50 [03:50:37]1206 (1) - 0 [03:50:37]OFD Sender: Remove packet 139873 [03:50:37]ProducePacketName [03:50:37]name=ofd_packets/00139873 [03:50:37]NVStorageDeleteData [03:50:37]Write to MH i2c: 01 00 00 08 44 4C [03:50:37]Write i2c OK [03:50:37]MH_I2C_Read... [03:50:37]Read from MH i2c: 01 [03:50:37]MH_I2C_Read... [03:50:37]Read from MH i2c: 01 07 00 [03:50:37]MH_I2C_Read... [03:50:37]Read from MH i2c: 01 07 00 08 44 00 00 00 00 00 CD 0C 2C [03:50:37]RasterBufferAndPrint [03:50:37]line [03:50:37]line [03:50:37]line [03:50:37]line [03:50:37]line [03:50:37]written 0, free lines is 3286 [03:50:37]MH_Cut [03:50:37]Write to MH i2c: D1 01 00 0F 44 01 25 [03:50:37]Write i2c OK [03:50:37]MH_I2C_Read... [03:50:37]Read from MH i2c: D1 [03:50:37]MH_I2C_Read... [03:50:37]Read from MH i2c: D1 01 00 [03:50:37]MH_I2C_Read... [03:50:37]Read from MH i2c: D1 01 00 0F 44 00 24 [03:50:37]Write to MH i2c: 01 00 00 10 44 54 [03:50:37]Write i2c OK [03:50:37]MH_I2C_Read... [03:50:37]OFD Sender: No OFD packet to send [03:50:37]*** Cut start [03:50:37]*** Partial cut [03:50:37]*** CUTSNS_PIN = 1 [03:50:37]*** CUTSNS_PIN = 0 [03:50:38]*** Brake cut motor [03:50:38]Read from MH i2c: 01 [03:50:38]MH_I2C_Read... [03:50:38]*** Stop cut motor [03:50:38]*** Cut end [03:50:38]Read from MH i2c: 01 07 00 [03:50:38]MH_I2C_Read... [03:50:38]Read from MH i2c: 01 07 00 10 44 00 00 00 00 00 FF 0F 69 [03:50:38]process_action close_receipt done [03:50:38]requested_data is exist [03:50:38]produce_requested_data [03:50:38]requested_item fm.sn is exist - process it [03:50:38]wFMCommunicate request_size=4 [03:50:38]MH_SAM_APDU [03:50:38]CAPDU: 80 11 00 00 [03:50:38]Write to MH i2c: E2 08 00 11 44 80 11 00 00 00 00 00 00 CF [03:50:38]Write i2c OK [03:50:38]MH_I2C_Read... [03:50:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:50:38]Read from MH i2c: E2 [03:50:38]MH_I2C_Read... [03:50:38]Read from MH i2c: E2 17 00 [03:50:38]MH_I2C_Read... [03:50:38]Read from MH i2c: E2 17 00 11 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2A [03:50:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:50:38]wFMCommunicate OK [03:50:38]requested_item fd.num is exist - process it [03:50:38]SAM_PROTO_GetFieldsCounters [03:50:38]wFMCommunicate request_size=4 [03:50:38]MH_SAM_APDU [03:50:38]CAPDU: 80 13 00 00 [03:50:38]Write to MH i2c: E2 08 00 12 44 80 13 00 00 00 00 00 00 D2 [03:50:38]Write i2c OK [03:50:38]MH_I2C_Read... [03:50:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:50:38]Read from MH i2c: E2 [03:50:38]MH_I2C_Read... [03:50:38]Read from MH i2c: E2 62 00 [03:50:38]MH_I2C_Read... [03:50:38]Read from MH i2c: E2 62 00 12 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 61 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [03:50:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 61 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:50:38]wFMCommunicate OK [03:50:38]SAM_PROTO_GetFieldsCounters done [03:50:38]requested_item shift.num is exist - process it [03:50:38]requested_item shift.opened is exist - process it [03:50:38]req_shift_opened [03:50:38]FM_GetShiftState [03:50:38]SAM_PROTO_GetShiftState [03:50:38]wFMCommunicate request_size=4 [03:50:38]MH_SAM_APDU [03:50:38]CAPDU: 80 13 01 00 [03:50:38]Write to MH i2c: E2 08 00 13 44 80 13 01 00 00 00 00 00 D4 [03:50:38]Write i2c OK [03:50:38]MH_I2C_Read... [03:50:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:50:38]Read from MH i2c: E2 [03:50:38]MH_I2C_Read... [03:50:38]Read from MH i2c: E2 0E 00 [03:50:38]MH_I2C_Read... [03:50:38]Read from MH i2c: E2 0E 00 13 44 00 09 00 01 89 19 24 67 00 00 00 00 90 00 0D [03:50:38]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [03:50:38]wFMCommunicate OK [03:50:38]SAM_PROTO_GetShiftState done [03:50:38]FM_GetShiftState done [03:50:38]req_shift_opened done [03:50:38]requested_item shift.open_date is exist - process it [03:50:38]req_shift_open_date [03:50:38]req_shift_open_date done [03:50:38]produce_requested_data done [03:50:38]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139873,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [03:50:38]process_action_free close_receipt [03:50:38]json_value_free [03:50:38]json_value_free done [03:50:38]process_json_proto returns [03:50:38]Send response to host [03:50:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139873,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [03:50:38]free response buf [03:50:38]execute_script done [03:50:38]execute_script returns [03:50:38]free content buf [03:50:38]Sock 7.Close socket [03:50:38]Sock 7.Thread stoped [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:28]accept exits with 9 [03:51:28]New connection [03:51:28]New thread 3066654052 created [03:51:28]Thread 3066510692 joined [03:51:28]Waiting for new connection... [03:51:28] Sock 9.Parse request [03:51:28]Sock 9.Check first char [03:51:28]Sock 9.First char is OK [03:51:28]request: POST /json_proto HTTP/1.0 [03:51:28]Method: POST [03:51:28]URL: /json_proto [03:51:28]Method is POST - this is cgi request [03:51:28]url: /json_proto [03:51:28]query_string will be loaded in cgi processing [03:51:28]execute_cgi json_proto POST (null) [03:51:28]execute_cgi path=json_proto method=POST [03:51:28]POST find Content-Length [03:51:28]Host: 172.17.50.196:8080 [03:51:28]Content-Length: 923 [03:51:28]Content-Type: application/json [03:51:28] [03:51:28]POST finish read [03:51:28]Found Content-Length = 923 [03:51:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335697", "tax_sys" : 0, "items" : [ { "code": "4700003241276", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 \u0422\u0410\u041D 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:51:28]execute_script... [03:51:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335697", "tax_sys" : 0, "items" : [ { "code": "4700003241276", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 \u0422\u0410\u041D 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:51:28]POST & json_proto [03:51:28]process_json_proto [03:51:28]json parsed OK: [03:51:28]protocol is kg_v1.0 [03:51:28]action value=close_receipt [03:51:28]process_action close_receipt [03:51:28]cmd_close_receipt [03:51:28]MH_GetDate [03:51:28]Write to MH i2c: F0 00 00 14 44 47 [03:51:28]Write i2c OK [03:51:28]MH_I2C_Read... [03:51:28]Read from MH i2c: F0 [03:51:28]MH_I2C_Read... [03:51:28]Read from MH i2c: F0 09 00 [03:51:28]MH_I2C_Read... [03:51:28]Read from MH i2c: F0 09 00 14 44 00 44 50 24 67 72 0D 1C 67 71 [03:51:28]GetLastDocTimeStamp 1730433038 [03:51:28]current date 1730433092 [03:51:28]FM_GetShiftState [03:51:28]SAM_PROTO_GetShiftState [03:51:28]wFMCommunicate request_size=4 [03:51:28]MH_SAM_APDU [03:51:28]CAPDU: 80 13 01 00 [03:51:28]Write to MH i2c: E2 08 00 15 44 80 13 01 00 00 00 00 00 D6 [03:51:28]Write i2c OK [03:51:28]MH_I2C_Read... [03:51:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:51:28]Read from MH i2c: E2 [03:51:28]MH_I2C_Read... [03:51:28]Read from MH i2c: E2 0E 00 [03:51:28]MH_I2C_Read... [03:51:28]Read from MH i2c: E2 0E 00 15 44 00 09 00 01 89 19 24 67 00 00 00 00 90 00 0F [03:51:28]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [03:51:28]wFMCommunicate OK [03:51:28]SAM_PROTO_GetShiftState done [03:51:28]FM_GetShiftState done [03:51:28]opened in 1730419081 [03:51:28]opened+sec_in_day 1730505481 [03:51:28]quantity*price = 11000 [03:51:28]sum+1 = 11001 [03:51:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.41 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 55 01.11.2024 03:51 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139874 ФПД: 200755114692638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T035132&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139874&fm=200755114692638&tin=02508201610067®Number=0000000000091631&sum=16000 0 [03:51:29]StoreToDocumentArchive [03:51:29]shift 558 fd 139874 [03:51:29]save to /storage/0558/doc_00139874 [03:51:29]save last doc name /storage/0558/doc_00139874 to /storage/kkm_last_doc_name [03:51:29]save OK [03:51:29]Clear old archive folders... [03:51:29]ProcessDocumentItem done err = 0, tmpTLVsize=383 [03:51:29]tlvbuf is 00A7EB00 [03:51:29]SAM_PROTO_ClearQueue [03:51:29]wFMCommunicate request_size=4 [03:51:29]MH_SAM_APDU [03:51:29]CAPDU: 80 09 00 00 [03:51:29]Write to MH i2c: E2 08 00 22 44 80 09 00 00 00 00 00 00 D8 [03:51:29]Write i2c OK [03:51:29]MH_I2C_Read... [03:51:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:51:29]Read from MH i2c: E2 [03:51:29]MH_I2C_Read... [03:51:29]Read from MH i2c: E2 03 00 [03:51:29]MH_I2C_Read... [03:51:29]Read from MH i2c: E2 03 00 22 44 00 90 00 DA [03:51:29]RAPDU: 90 00 [03:51:29]wFMCommunicate OK [03:51:29]SAM_PROTO_ClearQueue done [03:51:29]KKMCreateOFDPacket [03:51:29]OFDProtocolAddRootSTLVToBuf [03:51:29]FM_MakeSignedData [03:51:29]FM_MakeSignedData [03:51:29]SAM_PROTO_SignData [03:51:29]wFMCommunicate request_size=4 [03:51:29]MH_SAM_APDU [03:51:29]CAPDU: 80 0D 01 02 [03:51:29]Write to MH i2c: E2 08 00 23 44 80 0D 01 02 00 00 00 00 E0 [03:51:29]Write i2c OK [03:51:29]MH_I2C_Read... [03:51:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:51:29]Read from MH i2c: E2 [03:51:29]MH_I2C_Read... [03:51:29]Read from MH i2c: E2 03 00 [03:51:29]MH_I2C_Read... [03:51:29]Read from MH i2c: E2 03 00 23 44 00 90 00 DB [03:51:29]RAPDU: 90 00 [03:51:29]wFMCommunicate OK [03:51:29]wFMCommunicate request_size=255 [03:51:29]MH_SAM_APDU [03:51:29]CAPDU: 80 0D 02 02 FA 03 00 7F 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D [03:51:29]Write to MH i2c: E2 02 01 24 44 80 0D 02 02 FA 00 03 00 7F 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 5C [03:51:29]Write i2c OK [03:51:29]MH_I2C_Read... [03:51:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:51:30]Read from MH i2c: E2 [03:51:30]MH_I2C_Read... [03:51:30]Read from MH i2c: E2 03 00 [03:51:30]MH_I2C_Read... [03:51:30]Read from MH i2c: E2 03 00 24 44 00 90 00 DC [03:51:30]RAPDU: 90 00 [03:51:30]wFMCommunicate OK [03:51:30]wFMCommunicate request_size=142 [03:51:30]MH_SAM_APDU [03:51:30]CAPDU: 80 0D 02 02 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 44 50 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 62 22 02 00 35 04 06 00 B6 95 F1 4C 50 1E [03:51:30]Write to MH i2c: E2 91 00 25 44 80 0D 02 02 89 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 44 50 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 62 22 02 00 35 04 06 00 B6 95 F1 4C 50 1E 00 00 8E [03:51:30]Write i2c OK [03:51:30]MH_I2C_Read... [03:51:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:51:30]Read from MH i2c: E2 [03:51:30]MH_I2C_Read... [03:51:30]Read from MH i2c: E2 03 00 [03:51:30]MH_I2C_Read... [03:51:30]Read from MH i2c: E2 03 00 25 44 00 90 00 DD [03:51:30]RAPDU: 90 00 [03:51:30]wFMCommunicate OK [03:51:30]wFMCommunicate request_size=4 [03:51:30]MH_SAM_APDU [03:51:30]CAPDU: 80 0D 03 02 [03:51:30]Write to MH i2c: E2 08 00 26 44 80 0D 03 02 00 00 00 00 E5 [03:51:30]Write i2c OK [03:51:30]MH_I2C_Read... [03:51:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:51:30]Read from MH i2c: E2 [03:51:30]MH_I2C_Read... [03:51:30]Read from MH i2c: E2 0B 00 [03:51:30]MH_I2C_Read... [03:51:30]Read from MH i2c: E2 0B 00 26 44 00 20 14 B0 3D 9B 27 B9 54 90 00 D6 [03:51:30]RAPDU: 20 14 B0 3D 9B 27 B9 54 90 00 [03:51:30]wFMCommunicate OK [03:51:30]SAM_PROTO_SignData done [03:51:30]FM_MakeSignedData done [03:51:30]CreateOFDProtocolMessage [03:51:30]wFMCommunicate request_size=4 [03:51:30]MH_SAM_APDU [03:51:30]CAPDU: 80 11 00 00 [03:51:30]Write to MH i2c: E2 08 00 27 44 80 11 00 00 00 00 00 00 E5 [03:51:30]Write i2c OK [03:51:30]MH_I2C_Read... [03:51:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:51:30]Read from MH i2c: E2 [03:51:30]MH_I2C_Read... [03:51:30]Read from MH i2c: E2 17 00 [03:51:30]MH_I2C_Read... [03:51:30]Read from MH i2c: E2 17 00 27 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 40 [03:51:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:51:30]wFMCommunicate OK [03:51:30]CreateOFDProtocolMessage done [03:51:30]OFDSenderStorePacket 139874 [03:51:30]StoreOFDPacket docnum=139874 [03:51:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 93 01 00 00 5E 22 8B 01 FB FC 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 44 50 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 62 22 02 00 35 04 06 00 B6 95 F1 4C 50 1E 20 14 B0 3D 9B 27 B9 54 [03:51:30]CheckFolder [03:51:30]dirname=/storage/ofd_packets [03:51:30]CheckFolder done [03:51:30]ProducePacketName [03:51:30]name=ofd_packets/00139874 [03:51:30]NVStorageSaveData ofd_packets/00139874 [03:51:30]File name is /storage/ofd_packets/00139874 [03:51:30]Write 433 bytes [03:51:30]NVStorageSaveData done [03:51:30]OFDSenderStorePacket done [03:51:30]KKMCreateOFDPacket done [03:51:30]NVStorageSaveData kkm_last_timestamp [03:51:30]File name is /storage/kkm_last_timestamp [03:51:30]Write 4 bytes [03:51:30]NVStorageSaveData done [03:51:30]ExternCall_PrintAddStr [03:51:30]wPrintStart [03:51:30]Write to MH i2c: 01 00 00 28 44 6C [03:51:30]Write i2c OK [03:51:30]MH_I2C_Read... [03:51:30]Read from MH i2c: 01 [03:51:30]MH_I2C_Read... [03:51:30]Read from MH i2c: 01 07 00 [03:51:30]MH_I2C_Read... [03:51:30]Read from MH i2c: 01 07 00 28 44 00 00 00 00 00 FF 0F 81 [03:51:30]RasterBufferAndPrint [03:51:30]line Счет N : (3)335697 [03:51:30]line ИНН: 02508201610067 [03:51:30]line Контрольно-Кассовый Чек [03:51:30]line ПРОДАЖА [03:51:30]line Товар: 4700003241276 [03:51:30]line Напиток Молочный ТАН 1л [03:51:30]line 1.000 * 110.00 [03:51:30]line = 110.00 [03:51:30]line НДС 12% НСП 1% [03:51:30]line > о реализуемом товаре [03:51:30]line Товар: 4700000160358 [03:51:30]line Вода Легенда 1л [03:51:30]line 1.000 * 50.00 [03:51:30]line = 50.00 [03:51:30]line НДС 12% НСП 1% [03:51:30]line > о реализуемом товаре [03:51:30]line ИТОГО: 160.00 [03:51:30]line НСП 1% : 1.41 [03:51:30]line НДС 12% : 16.99 [03:51:30]line Наличными: 160.00 [03:51:30]line Безнал.: 0.00 [03:51:30]line Место: АЗС № 101 "Партнер Нефть" [03:51:30]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [03:51:30]line СНО: Общий режим [03:51:30]line Чек 55 01.11.2024 03:51 [03:51:30]line Смена: 558 ФФД: 1.0 [03:51:30]line ЗНМ: 0300000081 [03:51:30]line РНМ: 0000000000091631 [03:51:30]line Версия ККМ: 001 [03:51:30]line ФМ: 0000000000874669 [03:51:30]line ФД: 139874 [03:51:30]line ФПД: 200755114692638 [03:51:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T035132&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139874&fm=200755114692638&tin=02508201610067®Number=0000000000091631&sum=16000 [03:51:30]line 0 [03:51:30]OFD Sender: Processing packet 139874 [packets to send 34, broken 33] [03:51:30]ProducePacketName [03:51:30]name=ofd_packets/00139874 [03:51:30]OFD Sender: To server: pG, [03:51:30]CommunicateWithHost lk.salyk.kg:30040 [03:51:30]ConnectInit lk.salyk.kg [03:51:30]written 0, free lines is 4095 [03:51:30]Connected sock=7 [03:51:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 93 01 00 00 5E 22 8B 01 FB FC 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 44 50 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 62 22 02 00 35 04 06 00 B6 95 F1 4C 50 1E 20 14 B0 3D 9B 27 B9 54 [03:51:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 73 22 47 00 E0 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 62 22 02 00 F4 03 04 00 F0 FB 23 67 B6 04 01 00 00 40 C1 92 42 92 4A C6 F8 [03:51:30]CommunicateWithHost err = 0 [03:51:30]CheckOFDResponse [03:51:30]1017 (14) - 77093643461234 [03:51:30]1041 (16) - 0000000000874669 [03:51:30]1040 (4) - 139874 [03:51:30]1012 (4) - 31.10.2024 21:51 [03:51:30]1206 (1) - 0 [03:51:30]OFD Sender: Remove packet 139874 [03:51:30]ProducePacketName [03:51:30]name=ofd_packets/00139874 [03:51:30]NVStorageDeleteData [03:51:31]Write to MH i2c: 01 00 00 56 44 9A [03:51:31]Write i2c OK [03:51:31]MH_I2C_Read... [03:51:31]Read from MH i2c: 01 [03:51:31]MH_I2C_Read... [03:51:31]Read from MH i2c: 01 07 00 [03:51:31]MH_I2C_Read... [03:51:31]Read from MH i2c: 01 07 00 56 44 00 00 00 00 00 BA 0C 67 [03:51:31]RasterBufferAndPrint [03:51:31]line [03:51:31]line [03:51:31]line [03:51:31]line [03:51:31]line [03:51:31]written 0, free lines is 3269 [03:51:31]MH_Cut [03:51:31]Write to MH i2c: D1 01 00 5D 44 01 73 [03:51:31]Write i2c OK [03:51:31]MH_I2C_Read... [03:51:31]Read from MH i2c: D1 [03:51:31]MH_I2C_Read... [03:51:31]Read from MH i2c: D1 01 00 [03:51:31]MH_I2C_Read... [03:51:31]Read from MH i2c: D1 01 00 5D 44 00 72 [03:51:31]Write to MH i2c: 01 00 00 5E 44 A2 [03:51:31]Write i2c OK [03:51:31]MH_I2C_Read... [03:51:31]OFD Sender: No OFD packet to send [03:51:31]*** Cut start [03:51:31]*** Partial cut [03:51:31]*** CUTSNS_PIN = 1 [03:51:31]*** CUTSNS_PIN = 0 [03:51:32]*** Brake cut motor [03:51:32]Read from MH i2c: 01 [03:51:32]MH_I2C_Read... [03:51:32]*** Stop cut motor [03:51:32]*** Cut end [03:51:32]Read from MH i2c: 01 07 00 [03:51:32]MH_I2C_Read... [03:51:32]Read from MH i2c: 01 07 00 5E 44 00 00 00 00 00 FF 0F B7 [03:51:32]process_action close_receipt done [03:51:32]requested_data is exist [03:51:32]produce_requested_data [03:51:32]requested_item fm.sn is exist - process it [03:51:32]wFMCommunicate request_size=4 [03:51:32]MH_SAM_APDU [03:51:32]CAPDU: 80 11 00 00 [03:51:32]Write to MH i2c: E2 08 00 5F 44 80 11 00 00 00 00 00 00 1D [03:51:32]Write i2c OK [03:51:32]MH_I2C_Read... [03:51:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:51:32]Read from MH i2c: E2 [03:51:32]MH_I2C_Read... [03:51:32]Read from MH i2c: E2 17 00 [03:51:32]MH_I2C_Read... [03:51:32]Read from MH i2c: E2 17 00 5F 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 78 [03:51:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:51:32]wFMCommunicate OK [03:51:32]requested_item fd.num is exist - process it [03:51:32]SAM_PROTO_GetFieldsCounters [03:51:32]wFMCommunicate request_size=4 [03:51:32]MH_SAM_APDU [03:51:32]CAPDU: 80 13 00 00 [03:51:32]Write to MH i2c: E2 08 00 60 44 80 13 00 00 00 00 00 00 20 [03:51:32]Write i2c OK [03:51:32]MH_I2C_Read... [03:51:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:51:32]Read from MH i2c: E2 [03:51:32]MH_I2C_Read... [03:51:32]Read from MH i2c: E2 62 00 [03:51:32]MH_I2C_Read... [03:51:32]Read from MH i2c: E2 62 00 60 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 62 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [03:51:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 62 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:51:32]wFMCommunicate OK [03:51:32]SAM_PROTO_GetFieldsCounters done [03:51:32]requested_item shift.num is exist - process it [03:51:32]requested_item shift.opened is exist - process it [03:51:32]req_shift_opened [03:51:32]FM_GetShiftState [03:51:32]SAM_PROTO_GetShiftState [03:51:32]wFMCommunicate request_size=4 [03:51:32]MH_SAM_APDU [03:51:32]CAPDU: 80 13 01 00 [03:51:32]Write to MH i2c: E2 08 00 61 44 80 13 01 00 00 00 00 00 22 [03:51:32]Write i2c OK [03:51:32]MH_I2C_Read... [03:51:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:51:32]Read from MH i2c: E2 [03:51:32]MH_I2C_Read... [03:51:32]Read from MH i2c: E2 0E 00 [03:51:32]MH_I2C_Read... [03:51:32]Read from MH i2c: E2 0E 00 61 44 00 09 00 01 89 19 24 67 00 00 00 00 90 00 5B [03:51:32]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [03:51:32]wFMCommunicate OK [03:51:32]SAM_PROTO_GetShiftState done [03:51:32]FM_GetShiftState done [03:51:32]req_shift_opened done [03:51:32]requested_item shift.open_date is exist - process it [03:51:32]req_shift_open_date [03:51:32]req_shift_open_date done [03:51:32]produce_requested_data done [03:51:32]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139874,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [03:51:32]process_action_free close_receipt [03:51:32]json_value_free [03:51:32]json_value_free done [03:51:32]process_json_proto returns [03:51:32]Send response to host [03:51:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139874,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [03:51:32]free response buf [03:51:32]execute_script done [03:51:32]execute_script returns [03:51:32]free content buf [03:51:32]Sock 9.Close socket [03:51:32]Sock 9.Thread stoped [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:07]accept exits with 10 [04:00:07]New connection [04:00:07]New thread 3066510692 created [04:00:07]Thread 3066654052 joined [04:00:07]Waiting for new connection... [04:00:07] Sock 10.Parse request [04:00:07]Sock 10.Check first char [04:00:07]Sock 10.First char is OK [04:00:07]request: POST /json_proto HTTP/1.0 [04:00:07]Method: POST [04:00:07]URL: /json_proto [04:00:07]Method is POST - this is cgi request [04:00:07]url: /json_proto [04:00:07]query_string will be loaded in cgi processing [04:00:07]execute_cgi json_proto POST (null) [04:00:07]execute_cgi path=json_proto method=POST [04:00:07]POST find Content-Length [04:00:07]Host: 172.17.50.196:8080 [04:00:07]Content-Length: 644 [04:00:07]Content-Type: application/json [04:00:07] [04:00:07]POST finish read [04:00:07]Found Content-Length = 644 [04:00:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335698", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:00:07]execute_script... [04:00: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)335698", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:00:07]POST & json_proto [04:00:07]process_json_proto [04:00:07]json parsed OK: [04:00:07]protocol is kg_v1.0 [04:00:07]action value=close_receipt [04:00:07]process_action close_receipt [04:00:07]cmd_close_receipt [04:00:07]MH_GetDate [04:00:07]Write to MH i2c: F0 00 00 62 44 95 [04:00:07]Write i2c OK [04:00:07]MH_I2C_Read... [04:00:07]Read from MH i2c: F0 [04:00:07]MH_I2C_Read... [04:00:07]Read from MH i2c: F0 09 00 [04:00:07]MH_I2C_Read... [04:00:07]Read from MH i2c: F0 09 00 62 44 00 4B 52 24 67 72 0D 1C 67 C8 [04:00:07]GetLastDocTimeStamp 1730433092 [04:00:07]current date 1730433611 [04:00:07]FM_GetShiftState [04:00:07]SAM_PROTO_GetShiftState [04:00:07]wFMCommunicate request_size=4 [04:00:07]MH_SAM_APDU [04:00:07]CAPDU: 80 13 01 00 [04:00:07]Write to MH i2c: E2 08 00 63 44 80 13 01 00 00 00 00 00 24 [04:00:07]Write i2c OK [04:00:07]MH_I2C_Read... [04:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:00:07]Read from MH i2c: E2 [04:00:07]MH_I2C_Read... [04:00:07]Read from MH i2c: E2 0E 00 [04:00:07]MH_I2C_Read... [04:00:07]Read from MH i2c: E2 0E 00 63 44 00 09 00 01 89 19 24 67 00 00 00 00 90 00 5D [04:00:07]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [04:00:07]wFMCommunicate OK [04:00:07]SAM_PROTO_GetShiftState done [04:00:07]FM_GetShiftState done [04:00:07]opened in 1730419081 [04:00:07]opened+sec_in_day 1730505481 [04:00:07]quantity*price = 5000 [04:00:07]sum+1 = 5001 [04:00:07]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700040114120 Султан чай 1л. чер персик 1.000 * 89.00 = 89.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 57 01.11.2024 04:01 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139876 ФПД: 167507821984774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T040133&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139876&fm=167507821984774&tin=02508201610067®Number=0000000000091631&sum=13900 0 [04:01:30]StoreToDocumentArchive [04:01:30]shift 558 fd 139876 [04:01:30]save to /storage/0558/doc_00139876 [04:01:30]save last doc name /storage/0558/doc_00139876 to /storage/kkm_last_doc_name [04:01:30]save OK [04:01:30]Clear old archive folders... [04:01:30]ProcessDocumentItem done err = 0, tmpTLVsize=391 [04:01:30]tlvbuf is 00BCC7E0 [04:01:30]SAM_PROTO_ClearQueue [04:01:30]wFMCommunicate request_size=4 [04:01:30]MH_SAM_APDU [04:01:30]CAPDU: 80 09 00 00 [04:01:30]Write to MH i2c: E2 08 00 B8 44 80 09 00 00 00 00 00 00 6E [04:01:30]Write i2c OK [04:01:30]MH_I2C_Read... [04:01:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:01:30]Read from MH i2c: E2 [04:01:30]MH_I2C_Read... [04:01:30]Read from MH i2c: E2 03 00 [04:01:30]MH_I2C_Read... [04:01:30]Read from MH i2c: E2 03 00 B8 44 00 90 00 70 [04:01:30]RAPDU: 90 00 [04:01:30]wFMCommunicate OK [04:01:30]SAM_PROTO_ClearQueue done [04:01:30]KKMCreateOFDPacket [04:01:30]OFDProtocolAddRootSTLVToBuf [04:01:30]FM_MakeSignedData [04:01:30]FM_MakeSignedData [04:01:30]SAM_PROTO_SignData [04:01:30]wFMCommunicate request_size=4 [04:01:30]MH_SAM_APDU [04:01:30]CAPDU: 80 0D 01 02 [04:01:30]Write to MH i2c: E2 08 00 B9 44 80 0D 01 02 00 00 00 00 76 [04:01:30]Write i2c OK [04:01:30]MH_I2C_Read... [04:01:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:01:30]Read from MH i2c: E2 [04:01:30]MH_I2C_Read... [04:01:30]Read from MH i2c: E2 03 00 [04:01:30]MH_I2C_Read... [04:01:30]Read from MH i2c: E2 03 00 B9 44 00 90 00 71 [04:01:30]RAPDU: 90 00 [04:01:30]wFMCommunicate OK [04:01:30]wFMCommunicate request_size=255 [04:01:30]MH_SAM_APDU [04:01:30]CAPDU: 80 0D 02 02 FA 03 00 87 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [04:01:30]Write to MH i2c: E2 02 01 BA 44 80 0D 02 02 FA 00 03 00 87 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 E6 [04:01:30]Write i2c OK [04:01:30]MH_I2C_Read... [04:01:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:01:31]Read from MH i2c: E2 [04:01:31]MH_I2C_Read... [04:01:31]Read from MH i2c: E2 03 00 [04:01:31]MH_I2C_Read... [04:01:31]Read from MH i2c: E2 03 00 BA 44 00 90 00 72 [04:01:31]RAPDU: 90 00 [04:01:31]wFMCommunicate OK [04:01:31]wFMCommunicate request_size=150 [04:01:31]MH_SAM_APDU [04:01:31]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 9D 52 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 64 22 02 00 35 04 06 00 98 58 F4 39 FC 06 [04:01:31]Write to MH i2c: E2 99 00 BB 44 80 0D 02 02 91 00 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 9D 52 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 64 22 02 00 35 04 06 00 98 58 F4 39 FC 06 00 00 1D [04:01:31]Write i2c OK [04:01:31]MH_I2C_Read... [04:01:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:01:31]Read from MH i2c: E2 [04:01:31]MH_I2C_Read... [04:01:31]Read from MH i2c: E2 03 00 [04:01:31]MH_I2C_Read... [04:01:31]Read from MH i2c: E2 03 00 BB 44 00 90 00 73 [04:01:31]RAPDU: 90 00 [04:01:31]wFMCommunicate OK [04:01:31]wFMCommunicate request_size=4 [04:01:31]MH_SAM_APDU [04:01:31]CAPDU: 80 0D 03 02 [04:01:31]Write to MH i2c: E2 08 00 BC 44 80 0D 03 02 00 00 00 00 7B [04:01:31]Write i2c OK [04:01:31]MH_I2C_Read... [04:01:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:01:31]Read from MH i2c: E2 [04:01:31]MH_I2C_Read... [04:01:31]Read from MH i2c: E2 0B 00 [04:01:31]MH_I2C_Read... [04:01:31]Read from MH i2c: E2 0B 00 BC 44 00 8D 01 3E 15 A6 2D 15 63 90 00 A8 [04:01:31]RAPDU: 8D 01 3E 15 A6 2D 15 63 90 00 [04:01:31]wFMCommunicate OK [04:01:31]SAM_PROTO_SignData done [04:01:31]FM_MakeSignedData done [04:01:31]CreateOFDProtocolMessage [04:01:31]wFMCommunicate request_size=4 [04:01:31]MH_SAM_APDU [04:01:31]CAPDU: 80 11 00 00 [04:01:31]Write to MH i2c: E2 08 00 BD 44 80 11 00 00 00 00 00 00 7B [04:01:31]Write i2c OK [04:01:31]MH_I2C_Read... [04:01:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:01:31]Read from MH i2c: E2 [04:01:31]MH_I2C_Read... [04:01:31]Read from MH i2c: E2 17 00 [04:01:31]MH_I2C_Read... [04:01:31]Read from MH i2c: E2 17 00 BD 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D6 [04:01:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:01:31]wFMCommunicate OK [04:01:31]CreateOFDProtocolMessage done [04:01:31]OFDSenderStorePacket 139876 [04:01:31]StoreOFDPacket docnum=139876 [04:01:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9B 01 00 00 E3 6D 93 01 78 F3 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 9D 52 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 64 22 02 00 35 04 06 00 98 58 F4 39 FC 06 8D 01 3E 15 A6 2D 15 63 [04:01:31]CheckFolder [04:01:31]dirname=/storage/ofd_packets [04:01:31]CheckFolder done [04:01:31]ProducePacketName [04:01:31]name=ofd_packets/00139876 [04:01:31]NVStorageSaveData ofd_packets/00139876 [04:01:31]File name is /storage/ofd_packets/00139876 [04:01:31]Write 441 bytes [04:01:31]NVStorageSaveData done [04:01:31]OFDSenderStorePacket done [04:01:31]KKMCreateOFDPacket done [04:01:31]NVStorageSaveData kkm_last_timestamp [04:01:31]File name is /storage/kkm_last_timestamp [04:01:31]Write 4 bytes [04:01:31]NVStorageSaveData done [04:01:31]ExternCall_PrintAddStr [04:01:31]wPrintStart [04:01:31]Write to MH i2c: 01 00 00 BE 44 02 [04:01:31]Write i2c OK [04:01:31]MH_I2C_Read... [04:01:31]Read from MH i2c: 01 [04:01:31]MH_I2C_Read... [04:01:31]Read from MH i2c: 01 07 00 [04:01:31]MH_I2C_Read... [04:01:31]Read from MH i2c: 01 07 00 BE 44 00 00 00 00 00 FF 0F 17 [04:01:31]RasterBufferAndPrint [04:01:31]line Счет N : (3)335699 [04:01:31]line ИНН: 02508201610067 [04:01:31]line Контрольно-Кассовый Чек [04:01:31]line ПРОДАЖА [04:01:31]line Товар: 5449000005489 [04:01:31]line Вода Бонаква 1л б/г [04:01:31]line 1.000 * 50.00 [04:01:31]line = 50.00 [04:01:31]line НДС 12% НСП 1% [04:01:31]line > о реализуемом товаре [04:01:31]line Товар: 4700040114120 [04:01:31]line Султан чай 1л. чер персик [04:01:31]line 1.000 * 89.00 [04:01:31]line = 89.00 [04:01:31]line НДС 12% НСП 1% [04:01:31]line > о реализуемом товаре [04:01:31]line ИТОГО: 139.00 [04:01:31]line НСП 1% : 1.23 [04:01:31]line НДС 12% : 14.76 [04:01:31]line Наличными: 139.00 [04:01:31]line Безнал.: 0.00 [04:01:31]line Место: АЗС № 101 "Партнер Нефть" [04:01:31]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [04:01:31]line СНО: Общий режим [04:01:31]line Чек 57 01.11.2024 04:01 [04:01:31]line Смена: 558 ФФД: 1.0 [04:01:31]line ЗНМ: 0300000081 [04:01:31]line РНМ: 0000000000091631 [04:01:31]line Версия ККМ: 001 [04:01:31]line ФМ: 0000000000874669 [04:01:31]line ФД: 139876 [04:01:31]line ФПД: 167507821984774 [04:01:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T040133&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139876&fm=167507821984774&tin=02508201610067®Number=0000000000091631&sum=13900 [04:01:31]line 0 [04:01:31]OFD Sender: Processing packet 139876 [packets to send 34, broken 33] [04:01:31]ProducePacketName [04:01:31]name=ofd_packets/00139876 [04:01:31]OFD Sender: To server: pG, [04:01:31]CommunicateWithHost lk.salyk.kg:30040 [04:01:31]ConnectInit lk.salyk.kg [04:01:31]written 0, free lines is 4095 [04:01:31]Connected sock=11 [04:01:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9B 01 00 00 E3 6D 93 01 78 F3 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 9D 52 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 64 22 02 00 35 04 06 00 98 58 F4 39 FC 06 8D 01 3E 15 A6 2D 15 63 [04:01:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 81 C8 47 00 09 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 64 22 02 00 F4 03 04 00 49 FE 23 67 B6 04 01 00 00 1F 56 3A C0 43 CC 34 3C [04:01:31]CommunicateWithHost err = 0 [04:01:31]CheckOFDResponse [04:01:31]1017 (14) - 77093643461234 [04:01:31]1041 (16) - 0000000000874669 [04:01:31]1040 (4) - 139876 [04:01:31]1012 (4) - 31.10.2024 22:01 [04:01:31]1206 (1) - 0 [04:01:31]OFD Sender: Remove packet 139876 [04:01:31]ProducePacketName [04:01:31]name=ofd_packets/00139876 [04:01:31]NVStorageDeleteData [04:01:32]Write to MH i2c: 01 00 00 EC 44 30 [04:01:32]Write i2c OK [04:01:32]MH_I2C_Read... [04:01:32]Read from MH i2c: 01 [04:01:32]MH_I2C_Read... [04:01:32]Read from MH i2c: 01 07 00 [04:01:32]MH_I2C_Read... [04:01:32]Read from MH i2c: 01 07 00 EC 44 00 00 00 00 00 CA 0C 0D [04:01:32]RasterBufferAndPrint [04:01:32]line [04:01:32]line [04:01:32]line [04:01:32]line [04:01:32]line [04:01:32]written 0, free lines is 3286 [04:01:32]MH_Cut [04:01:32]Write to MH i2c: D1 01 00 F3 44 01 09 [04:01:32]Write i2c OK [04:01:32]MH_I2C_Read... [04:01:32]Read from MH i2c: D1 [04:01:32]MH_I2C_Read... [04:01:32]Read from MH i2c: D1 01 00 [04:01:32]MH_I2C_Read... [04:01:32]Read from MH i2c: D1 01 00 F3 44 00 08 [04:01:32]Write to MH i2c: 01 00 00 F4 44 38 [04:01:32]Write i2c OK [04:01:32]MH_I2C_Read... [04:01:32]OFD Sender: No OFD packet to send [04:01:32]*** Cut start [04:01:32]*** Partial cut [04:01:32]*** CUTSNS_PIN = 1 [04:01:32]*** CUTSNS_PIN = 0 [04:01:33]*** Brake cut motor [04:01:33]Read from MH i2c: 01 [04:01:33]MH_I2C_Read... [04:01:33]*** Stop cut motor [04:01:33]*** Cut end [04:01:33]Read from MH i2c: 01 07 00 [04:01:33]MH_I2C_Read... [04:01:33]Read from MH i2c: 01 07 00 F4 44 00 00 00 00 00 FF 0F 4D [04:01:33]process_action close_receipt done [04:01:33]requested_data is exist [04:01:33]produce_requested_data [04:01:33]requested_item fm.sn is exist - process it [04:01:33]wFMCommunicate request_size=4 [04:01:33]MH_SAM_APDU [04:01:33]CAPDU: 80 11 00 00 [04:01:33]Write to MH i2c: E2 08 00 F5 44 80 11 00 00 00 00 00 00 B3 [04:01:33]Write i2c OK [04:01:33]MH_I2C_Read... [04:01:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:01:33]Read from MH i2c: E2 [04:01:33]MH_I2C_Read... [04:01:33]Read from MH i2c: E2 17 00 [04:01:33]MH_I2C_Read... [04:01:33]Read from MH i2c: E2 17 00 F5 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0E [04:01:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:01:33]wFMCommunicate OK [04:01:33]requested_item fd.num is exist - process it [04:01:33]SAM_PROTO_GetFieldsCounters [04:01:33]wFMCommunicate request_size=4 [04:01:33]MH_SAM_APDU [04:01:33]CAPDU: 80 13 00 00 [04:01:33]Write to MH i2c: E2 08 00 F6 44 80 13 00 00 00 00 00 00 B6 [04:01:33]Write i2c OK [04:01:33]MH_I2C_Read... [04:01:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:01:33]Read from MH i2c: E2 [04:01:33]MH_I2C_Read... [04:01:33]Read from MH i2c: E2 62 00 [04:01:33]MH_I2C_Read... [04:01:33]Read from MH i2c: E2 62 00 F6 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 64 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [04:01:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 64 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:01:33]wFMCommunicate OK [04:01:33]SAM_PROTO_GetFieldsCounters done [04:01:33]requested_item shift.num is exist - process it [04:01:33]requested_item shift.opened is exist - process it [04:01:33]req_shift_opened [04:01:33]FM_GetShiftState [04:01:33]SAM_PROTO_GetShiftState [04:01:33]wFMCommunicate request_size=4 [04:01:33]MH_SAM_APDU [04:01:33]CAPDU: 80 13 01 00 [04:01:33]Write to MH i2c: E2 08 00 F7 44 80 13 01 00 00 00 00 00 B8 [04:01:33]Write i2c OK [04:01:33]MH_I2C_Read... [04:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:01:33]Read from MH i2c: E2 [04:01:33]MH_I2C_Read... [04:01:33]Read from MH i2c: E2 0E 00 [04:01:33]MH_I2C_Read... [04:01:33]Read from MH i2c: E2 0E 00 F7 44 00 09 00 01 89 19 24 67 00 00 00 00 90 00 F1 [04:01:33]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [04:01:33]wFMCommunicate OK [04:01:33]SAM_PROTO_GetShiftState done [04:01:33]FM_GetShiftState done [04:01:33]req_shift_opened done [04:01:33]requested_item shift.open_date is exist - process it [04:01:33]req_shift_open_date [04:01:33]req_shift_open_date done [04:01:33]produce_requested_data done [04:01:33]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139876,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [04:01:33]process_action_free close_receipt [04:01:33]json_value_free [04:01:33]json_value_free done [04:01:33]process_json_proto returns [04:01:33]Send response to host [04:01:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139876,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [04:01:33]free response buf [04:01:33]execute_script done [04:01:33]execute_script returns [04:01:33]free content buf [04:01:33]Sock 7.Close socket [04:01:33]Sock 7.Thread stoped [04:01:37]OFD Sender: No OFD packet to send [04:01:41]accept exits with 10 [04:01:41]New connection [04:01:41]New thread 3066510692 created [04:01:41]Thread 3066654052 joined [04:01:41]Waiting for new connection... [04:01:41] Sock 10.Parse request [04:01:41]Sock 10.Check first char [04:01:41]Sock 10.First char is OK [04:01:41]request: POST /json_proto HTTP/1.0 [04:01:41]Method: POST [04:01:41]URL: /json_proto [04:01:41]Method is POST - this is cgi request [04:01:41]url: /json_proto [04:01:41]query_string will be loaded in cgi processing [04:01:41]execute_cgi json_proto POST (null) [04:01:41]execute_cgi path=json_proto method=POST [04:01:41]POST find Content-Length [04:01:41]Host: 172.17.50.196:8080 [04:01:41]Content-Length: 928 [04:01:41]Content-Type: application/json [04:01:41] [04:01:41]POST finish read [04:01:41]Found Content-Length = 928 [04:01:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335701", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 149.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:01:41]execute_script... [04:01:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335701", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 149.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:01:41]POST & json_proto [04:01:41]process_json_proto [04:01:41]json parsed OK: [04:01:41]protocol is kg_v1.0 [04:01:41]action value=close_receipt [04:01:41]process_action close_receipt [04:01:41]cmd_close_receipt [04:01:41]MH_GetDate [04:01:41]Write to MH i2c: F0 00 00 F8 44 2B [04:01:41]Write i2c OK [04:01:41]MH_I2C_Read... [04:01:41]Read from MH i2c: F0 [04:01:41]MH_I2C_Read... [04:01:41]Read from MH i2c: F0 09 00 [04:01:41]MH_I2C_Read... [04:01:41]Read from MH i2c: F0 09 00 F8 44 00 A9 52 24 67 72 0D 1C 67 BC [04:01:41]GetLastDocTimeStamp 1730433693 [04:01:41]current date 1730433705 [04:01:41]FM_GetShiftState [04:01:41]SAM_PROTO_GetShiftState [04:01:41]wFMCommunicate request_size=4 [04:01:41]MH_SAM_APDU [04:01:41]CAPDU: 80 13 01 00 [04:01:41]Write to MH i2c: E2 08 00 F9 44 80 13 01 00 00 00 00 00 BA [04:01:41]Write i2c OK [04:01:41]MH_I2C_Read... [04:01:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:01:41]Read from MH i2c: E2 [04:01:41]MH_I2C_Read... [04:01:41]Read from MH i2c: E2 0E 00 [04:01:41]MH_I2C_Read... [04:01:41]Read from MH i2c: E2 0E 00 F9 44 00 09 00 01 89 19 24 67 00 00 00 00 90 00 F3 [04:01:41]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [04:01:41]wFMCommunicate OK [04:01:41]SAM_PROTO_GetShiftState done [04:01:41]FM_GetShiftState done [04:01:41]opened in 1730419081 [04:01:41]opened+sec_in_day 1730505481 [04:01:41]quantity*price = 9900 [04:01:41]sum+1 = 9901 [04:01:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000005489 Вода Бонаква 1л б/г 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 149.00 НСП 1% : 1.32 НДС 12% : 15.82 Наличными: 149.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 58 01.11.2024 04:01 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139877 ФПД: 100895229978382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T040145&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139877&fm=100895229978382&tin=02508201610067®Number=0000000000091631&sum=14900 0 [04:01:42]StoreToDocumentArchive [04:01:42]shift 558 fd 139877 [04:01:42]save to /storage/0558/doc_00139877 [04:01:42]save last doc name /storage/0558/doc_00139877 to /storage/kkm_last_doc_name [04:01:42]save OK [04:01:42]Clear old archive folders... [04:01:42]ProcessDocumentItem done err = 0, tmpTLVsize=398 [04:01:42]tlvbuf is 00AFCA30 [04:01:42]SAM_PROTO_ClearQueue [04:01:42]wFMCommunicate request_size=4 [04:01:42]MH_SAM_APDU [04:01:42]CAPDU: 80 09 00 00 [04:01:42]Write to MH i2c: E2 08 00 06 45 80 09 00 00 00 00 00 00 BD [04:01:42]Write i2c OK [04:01:42]MH_I2C_Read... [04:01:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:01:42]Read from MH i2c: E2 [04:01:42]MH_I2C_Read... [04:01:42]Read from MH i2c: E2 03 00 [04:01:42]MH_I2C_Read... [04:01:42]Read from MH i2c: E2 03 00 06 45 00 90 00 BF [04:01:42]RAPDU: 90 00 [04:01:42]wFMCommunicate OK [04:01:42]SAM_PROTO_ClearQueue done [04:01:42]KKMCreateOFDPacket [04:01:42]OFDProtocolAddRootSTLVToBuf [04:01:42]FM_MakeSignedData [04:01:42]FM_MakeSignedData [04:01:42]SAM_PROTO_SignData [04:01:42]wFMCommunicate request_size=4 [04:01:42]MH_SAM_APDU [04:01:42]CAPDU: 80 0D 01 02 [04:01:42]Write to MH i2c: E2 08 00 07 45 80 0D 01 02 00 00 00 00 C5 [04:01:42]Write i2c OK [04:01:42]MH_I2C_Read... [04:01:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:01:42]Read from MH i2c: E2 [04:01:42]MH_I2C_Read... [04:01:42]Read from MH i2c: E2 03 00 [04:01:42]MH_I2C_Read... [04:01:42]Read from MH i2c: E2 03 00 07 45 00 90 00 C0 [04:01:42]RAPDU: 90 00 [04:01:42]wFMCommunicate OK [04:01:42]wFMCommunicate request_size=255 [04:01:42]MH_SAM_APDU [04:01:42]CAPDU: 80 0D 02 02 FA 03 00 8E 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 [04:01:43]Write to MH i2c: E2 02 01 08 45 80 0D 02 02 FA 00 03 00 8E 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 00 16 [04:01:43]Write i2c OK [04:01:43]MH_I2C_Read... [04:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:01:43]Read from MH i2c: E2 [04:01:43]MH_I2C_Read... [04:01:43]Read from MH i2c: E2 03 00 [04:01:43]MH_I2C_Read... [04:01:43]Read from MH i2c: E2 03 00 08 45 00 90 00 C1 [04:01:43]RAPDU: 90 00 [04:01:43]wFMCommunicate OK [04:01:43]wFMCommunicate request_size=157 [04:01:43]MH_SAM_APDU [04:01:43]CAPDU: 80 0D 02 02 98 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 A9 52 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 65 22 02 00 35 04 06 00 5B C3 80 57 A7 0E [04:01:43]Write to MH i2c: E2 A0 00 09 45 80 0D 02 02 98 00 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 A9 52 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 65 22 02 00 35 04 06 00 5B C3 80 57 A7 0E 00 00 6D [04:01:43]Write i2c OK [04:01:43]MH_I2C_Read... [04:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:01:43]Read from MH i2c: E2 [04:01:43]MH_I2C_Read... [04:01:43]Read from MH i2c: E2 03 00 [04:01:43]MH_I2C_Read... [04:01:43]Read from MH i2c: E2 03 00 09 45 00 90 00 C2 [04:01:43]RAPDU: 90 00 [04:01:43]wFMCommunicate OK [04:01:43]wFMCommunicate request_size=4 [04:01:43]MH_SAM_APDU [04:01:43]CAPDU: 80 0D 03 02 [04:01:43]Write to MH i2c: E2 08 00 0A 45 80 0D 03 02 00 00 00 00 CA [04:01:43]Write i2c OK [04:01:43]MH_I2C_Read... [04:01:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:01:43]Read from MH i2c: E2 [04:01:43]MH_I2C_Read... [04:01:43]Read from MH i2c: E2 0B 00 [04:01:43]MH_I2C_Read... [04:01:43]Read from MH i2c: E2 0B 00 0A 45 00 8E 94 26 EE 64 EC B2 1E 90 00 21 [04:01:43]RAPDU: 8E 94 26 EE 64 EC B2 1E 90 00 [04:01:43]wFMCommunicate OK [04:01:43]SAM_PROTO_SignData done [04:01:43]FM_MakeSignedData done [04:01:43]CreateOFDProtocolMessage [04:01:43]wFMCommunicate request_size=4 [04:01:43]MH_SAM_APDU [04:01:43]CAPDU: 80 11 00 00 [04:01:43]Write to MH i2c: E2 08 00 0B 45 80 11 00 00 00 00 00 00 CA [04:01:43]Write i2c OK [04:01:43]MH_I2C_Read... [04:01:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:01:43]Read from MH i2c: E2 [04:01:43]MH_I2C_Read... [04:01:43]Read from MH i2c: E2 17 00 [04:01:43]MH_I2C_Read... [04:01:43]Read from MH i2c: E2 17 00 0B 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 25 [04:01:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:01:43]wFMCommunicate OK [04:01:43]CreateOFDProtocolMessage done [04:01:43]OFDSenderStorePacket 139877 [04:01:43]StoreOFDPacket docnum=139877 [04:01:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 A2 01 00 00 21 82 9A 01 6A E9 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 A9 52 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 65 22 02 00 35 04 06 00 5B C3 80 57 A7 0E 8E 94 26 EE 64 EC B2 1E [04:01:43]CheckFolder [04:01:43]dirname=/storage/ofd_packets [04:01:43]CheckFolder done [04:01:43]ProducePacketName [04:01:43]name=ofd_packets/00139877 [04:01:43]NVStorageSaveData ofd_packets/00139877 [04:01:43]File name is /storage/ofd_packets/00139877 [04:01:43]Write 448 bytes [04:01:43]NVStorageSaveData done [04:01:43]OFDSenderStorePacket done [04:01:43]KKMCreateOFDPacket done [04:01:43]NVStorageSaveData kkm_last_timestamp [04:01:43]File name is /storage/kkm_last_timestamp [04:01:43]Write 4 bytes [04:01:43]NVStorageSaveData done [04:01:43]ExternCall_PrintAddStr [04:01:43]wPrintStart [04:01:43]Write to MH i2c: 01 00 00 0C 45 51 [04:01:43]Write i2c OK [04:01:43]MH_I2C_Read... [04:01:43]Read from MH i2c: 01 [04:01:43]MH_I2C_Read... [04:01:43]Read from MH i2c: 01 07 00 [04:01:43]MH_I2C_Read... [04:01:43]Read from MH i2c: 01 07 00 0C 45 00 00 00 00 00 FF 0F 66 [04:01:43]RasterBufferAndPrint [04:01:43]line Счет N : (3)335701 [04:01:43]line ИНН: 02508201610067 [04:01:43]line Контрольно-Кассовый Чек [04:01:43]line ПРОДАЖА [04:01:43]line Товар: 4870022003305 [04:01:43]line Напиток Gorilla эн нат ж/б 0,5/0,45л [04:01:43]line 1.000 * 99.00 [04:01:43]line = 99.00 [04:01:43]line НДС 12% НСП 1% [04:01:43]line > о реализуемом товаре [04:01:43]line Товар: 5449000005489 [04:01:43]line Вода Бонаква 1л б/г [04:01:43]line 1.000 * 50.00 [04:01:43]line = 50.00 [04:01:43]line НДС 12% НСП 1% [04:01:43]line > о реализуемом товаре [04:01:43]line ИТОГО: 149.00 [04:01:43]line НСП 1% : 1.32 [04:01:43]line НДС 12% : 15.82 [04:01:43]line Наличными: 149.00 [04:01:43]line Безнал.: 0.00 [04:01:43]line Место: АЗС № 101 "Партнер Нефть" [04:01:43]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [04:01:43]line СНО: Общий режим [04:01:43]line Чек 58 01.11.2024 04:01 [04:01:43]line Смена: 558 ФФД: 1.0 [04:01:43]line ЗНМ: 0300000081 [04:01:43]line РНМ: 0000000000091631 [04:01:43]line Версия ККМ: 001 [04:01:43]line ФМ: 0000000000874669 [04:01:43]line ФД: 139877 [04:01:43]line ФПД: 100895229978382 [04:01:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T040145&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139877&fm=100895229978382&tin=02508201610067®Number=0000000000091631&sum=14900 [04:01:43]line 0 [04:01:43]written 0, free lines is 4095 [04:01:43]OFD Sender: Processing packet 139877 [packets to send 34, broken 33] [04:01:43]ProducePacketName [04:01:43]name=ofd_packets/00139877 [04:01:43]OFD Sender: To server: pG, [04:01:43]CommunicateWithHost lk.salyk.kg:30040 [04:01:43]ConnectInit lk.salyk.kg [04:01:44]Connected sock=11 [04:01:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 A2 01 00 00 21 82 9A 01 6A E9 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 A9 52 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 65 22 02 00 35 04 06 00 5B C3 80 57 A7 0E 8E 94 26 EE 64 EC B2 1E [04:01:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 8E FE 47 00 DD F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 65 22 02 00 F4 03 04 00 55 FE 23 67 B6 04 01 00 00 E0 23 77 C1 5B 27 E3 90 [04:01:44]CommunicateWithHost err = 0 [04:01:44]CheckOFDResponse [04:01:44]1017 (14) - 77093643461234 [04:01:44]1041 (16) - 0000000000874669 [04:01:44]1040 (4) - 139877 [04:01:44]1012 (4) - 31.10.2024 22:01 [04:01:44]1206 (1) - 0 [04:01:44]OFD Sender: Remove packet 139877 [04:01:44]ProducePacketName [04:01:44]name=ofd_packets/00139877 [04:01:44]NVStorageDeleteData [04:01:44]Write to MH i2c: 01 00 00 3B 45 80 [04:01:44]Write i2c OK [04:01:44]MH_I2C_Read... [04:01:44]Read from MH i2c: 01 [04:01:44]MH_I2C_Read... [04:01:44]Read from MH i2c: 01 07 00 [04:01:44]MH_I2C_Read... [04:01:44]Read from MH i2c: 01 07 00 3B 45 00 00 00 00 00 61 0D F5 [04:01:44]RasterBufferAndPrint [04:01:44]line [04:01:44]line [04:01:44]line [04:01:44]line [04:01:44]line [04:01:44]written 0, free lines is 3450 [04:01:44]MH_Cut [04:01:44]Write to MH i2c: D1 01 00 42 45 01 59 [04:01:44]Write i2c OK [04:01:44]MH_I2C_Read... [04:01:44]Read from MH i2c: D1 [04:01:44]MH_I2C_Read... [04:01:44]Read from MH i2c: D1 01 00 [04:01:44]MH_I2C_Read... [04:01:44]Read from MH i2c: D1 01 00 42 45 00 58 [04:01:44]Write to MH i2c: 01 00 00 43 45 88 [04:01:44]Write i2c OK [04:01:44]MH_I2C_Read... [04:01:44]OFD Sender: No OFD packet to send [04:01:45]*** Cut start [04:01:45]*** Partial cut [04:01:45]*** CUTSNS_PIN = 1 [04:01:45]*** CUTSNS_PIN = 0 [04:01:45]*** Brake cut motor [04:01:45]Read from MH i2c: 01 [04:01:45]MH_I2C_Read... [04:01:45]*** Stop cut motor [04:01:45]*** Cut end [04:01:45]Read from MH i2c: 01 07 00 [04:01:45]MH_I2C_Read... [04:01:45]Read from MH i2c: 01 07 00 43 45 00 00 00 00 00 FF 0F 9D [04:01:45]process_action close_receipt done [04:01:45]requested_data is exist [04:01:45]produce_requested_data [04:01:45]requested_item fm.sn is exist - process it [04:01:45]wFMCommunicate request_size=4 [04:01:45]MH_SAM_APDU [04:01:45]CAPDU: 80 11 00 00 [04:01:45]Write to MH i2c: E2 08 00 44 45 80 11 00 00 00 00 00 00 03 [04:01:45]Write i2c OK [04:01:45]MH_I2C_Read... [04:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:01:45]Read from MH i2c: E2 [04:01:45]MH_I2C_Read... [04:01:45]Read from MH i2c: E2 17 00 [04:01:45]MH_I2C_Read... [04:01:45]Read from MH i2c: E2 17 00 44 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5E [04:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:01:45]wFMCommunicate OK [04:01:45]requested_item fd.num is exist - process it [04:01:45]SAM_PROTO_GetFieldsCounters [04:01:45]wFMCommunicate request_size=4 [04:01:45]MH_SAM_APDU [04:01:45]CAPDU: 80 13 00 00 [04:01:45]Write to MH i2c: E2 08 00 45 45 80 13 00 00 00 00 00 00 06 [04:01:45]Write i2c OK [04:01:45]MH_I2C_Read... [04:01:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:01:45]Read from MH i2c: E2 [04:01:45]MH_I2C_Read... [04:01:45]Read from MH i2c: E2 62 00 [04:01:45]MH_I2C_Read... [04:01:45]Read from MH i2c: E2 62 00 45 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 65 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [04:01:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 65 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:01:46]wFMCommunicate OK [04:01:46]SAM_PROTO_GetFieldsCounters done [04:01:46]requested_item shift.num is exist - process it [04:01:46]requested_item shift.opened is exist - process it [04:01:46]req_shift_opened [04:01:46]FM_GetShiftState [04:01:46]SAM_PROTO_GetShiftState [04:01:46]wFMCommunicate request_size=4 [04:01:46]MH_SAM_APDU [04:01:46]CAPDU: 80 13 01 00 [04:01:46]Write to MH i2c: E2 08 00 46 45 80 13 01 00 00 00 00 00 08 [04:01:46]Write i2c OK [04:01:46]MH_I2C_Read... [04:01:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:01:46]Read from MH i2c: E2 [04:01:46]MH_I2C_Read... [04:01:46]Read from MH i2c: E2 0E 00 [04:01:46]MH_I2C_Read... [04:01:46]Read from MH i2c: E2 0E 00 46 45 00 09 00 01 89 19 24 67 00 00 00 00 90 00 41 [04:01:46]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [04:01:46]wFMCommunicate OK [04:01:46]SAM_PROTO_GetShiftState done [04:01:46]FM_GetShiftState done [04:01:46]req_shift_opened done [04:01:46]requested_item shift.open_date is exist - process it [04:01:46]req_shift_open_date [04:01:46]req_shift_open_date done [04:01:46]produce_requested_data done [04:01:46]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139877,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [04:01:46]process_action_free close_receipt [04:01:46]json_value_free [04:01:46]json_value_free done [04:01:46]process_json_proto returns [04:01:46]Send response to host [04:01:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139877,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [04:01:46]free response buf [04:01:46]execute_script done [04:01:46]execute_script returns [04:01:46]free content buf [04:01:46]Sock 10.Close socket [04:01:46]Sock 10.Thread stoped [04:01:49]OFD Sender: No OFD packet to send [04:01:54]OFD Sender: No OFD packet to send [04:01:59]OFD Sender: No OFD packet to send [04:02:04]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:02:15]OFD Sender: No OFD packet to send [04:02:20]OFD Sender: No OFD packet to send [04:02:25]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]OFD Sender: No OFD packet to send [04:02:55]OFD Sender: No OFD packet to send [04:03:00]OFD Sender: No OFD packet to send [04:03:05]OFD Sender: No OFD packet to send [04:03:10]OFD Sender: No OFD packet to send [04:03:15]OFD Sender: No OFD packet to send [04:03:20]OFD Sender: No OFD packet to send [04:03:25]OFD Sender: No OFD packet to send [04:03:30]OFD Sender: No OFD packet to send [04:03:31]ConnectInit Can't connect to host [04:03:35]OFD Sender: No OFD packet to send [04:03:40]OFD Sender: No OFD packet to send [04:03:45]OFD Sender: No OFD packet to send [04:03:50]OFD Sender: No OFD packet to send [04:03:55]OFD Sender: No OFD packet to send [04:04:00]OFD Sender: No OFD packet to send [04:04:05]OFD Sender: No OFD packet to send [04:04:10]OFD Sender: No OFD packet to send [04:04:15]OFD Sender: No OFD packet to send [04:04:20]OFD Sender: No OFD packet to send [04:04:25]OFD Sender: No OFD packet to send [04:04:30]OFD Sender: No OFD packet to send [04:04:35]OFD Sender: No OFD packet to send [04:04:40]OFD Sender: No OFD packet to send [04:04:45]OFD Sender: No OFD packet to send [04:04:50]OFD Sender: No OFD packet to send [04:04:55]OFD Sender: No OFD packet to send [04:05:00]OFD Sender: No OFD packet to send [04:05:05]OFD Sender: No OFD packet to send [04:05:10]OFD Sender: No OFD packet to send [04:05:15]OFD Sender: No OFD packet to send [04:05:20]OFD Sender: No OFD packet to send [04:05:25]OFD Sender: No OFD packet to send [04:05:30]OFD Sender: No OFD packet to send [04:05:35]OFD Sender: No OFD packet to send [04:05:40]OFD Sender: No OFD packet to send [04:05:45]OFD Sender: No OFD packet to send [04:05:49]ConnectInit Can't connect to host [04:05:50]OFD Sender: No OFD packet to send [04:05:55]OFD Sender: No OFD packet to send [04:06:00]OFD Sender: No OFD packet to send [04:06:05]OFD Sender: No OFD packet to send [04:06:10]OFD Sender: No OFD packet to send [04:06:15]OFD Sender: No OFD packet to send [04:06:20]OFD Sender: No OFD packet to send [04:06:25]OFD Sender: No OFD packet to send [04:06:30]OFD Sender: No OFD packet to send [04:06:35]OFD Sender: No OFD packet to send [04:06:40]OFD Sender: No OFD packet to send [04:06:45]OFD Sender: No OFD packet to send [04:06:50]OFD Sender: No OFD packet to send [04:06:55]OFD Sender: No OFD packet to send [04:07:00]OFD Sender: No OFD packet to send [04:07:05]OFD Sender: No OFD packet to send [04:07:10]OFD Sender: No OFD packet to send [04:07:15]OFD Sender: No OFD packet to send [04:07:20]OFD Sender: No OFD packet to send [04:07:25]OFD Sender: No OFD packet to send [04:07:30]OFD Sender: No OFD packet to send [04:07:35]OFD Sender: No OFD packet to send [04:07:40]OFD Sender: No OFD packet to send [04:07:45]OFD Sender: No OFD packet to send [04:07:50]OFD Sender: No OFD packet to send [04:07:55]OFD Sender: No OFD packet to send [04:08:00]OFD Sender: No OFD packet to send [04:08:05]OFD Sender: No OFD packet to send [04:08:10]OFD Sender: No OFD packet to send [04:08:15]OFD Sender: No OFD packet to send [04:08:20]OFD Sender: No OFD packet to send [04:08:25]OFD Sender: No OFD packet to send [04:08:30]OFD Sender: No OFD packet to send [04:08:35]OFD Sender: No OFD packet to send [04:08:40]OFD Sender: No OFD packet to send [04:08:45]OFD Sender: No OFD packet to send [04:08:50]OFD Sender: No OFD packet to send [04:08:55]OFD Sender: No OFD packet to send [04:09:00]OFD Sender: No OFD packet to send [04:09:05]OFD Sender: No OFD packet to send [04:09:10]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]OFD Sender: No OFD packet to send [04:09:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:50]OFD Sender: No OFD packet to send [04:12:55]OFD Sender: No OFD packet to send [04:13:00]OFD Sender: No OFD packet to send [04:13:05]OFD Sender: No OFD packet to send [04:13:10]OFD Sender: No OFD packet to send [04:13:15]OFD Sender: No OFD packet to send [04:13:20]OFD Sender: No OFD packet to send [04:13:25]OFD Sender: No OFD packet to send [04:13:30]OFD Sender: No OFD packet to send [04:13:35]OFD Sender: No OFD packet to send [04:13:40]OFD Sender: No OFD packet to send [04:13:45]OFD Sender: No OFD packet to send [04:13:50]OFD Sender: No OFD packet to send [04:13:55]OFD Sender: No OFD packet to send [04:14:00]OFD Sender: No OFD packet to send [04:14:05]OFD Sender: No OFD packet to send [04:14:10]OFD Sender: No OFD packet to send [04:14:15]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14:25]OFD Sender: No OFD packet to send [04:14:30]OFD Sender: No OFD packet to send [04:14:35]OFD Sender: No OFD packet to send [04:14:40]OFD Sender: No OFD packet to send [04:14:45]OFD Sender: No OFD packet to send [04:14:50]OFD Sender: No OFD packet to send [04:14:55]OFD Sender: No OFD packet to send [04:15:00]OFD Sender: No OFD packet to send [04:15:05]OFD Sender: No OFD packet to send [04:15:10]OFD Sender: No OFD packet to send [04:15:15]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:30]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:20]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21:06]OFD Sender: No OFD packet to send [04:21:11]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21:56]OFD Sender: No OFD packet to send [04:22:01]OFD Sender: No OFD packet to send [04:22:06]OFD Sender: No OFD packet to send [04:22:11]OFD Sender: No OFD packet to send [04:22:16]OFD Sender: No OFD packet to send [04:22:21]OFD Sender: No OFD packet to send [04:22:26]OFD Sender: No OFD packet to send [04:22:31]OFD Sender: No OFD packet to send [04:22:36]OFD Sender: No OFD packet to send [04:22:41]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:51]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:41]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:16]OFD Sender: No OFD packet to send [04:29:21]OFD Sender: No OFD packet to send [04:29:26]OFD Sender: No OFD packet to send [04:29:31]OFD Sender: No OFD packet to send [04:29:36]OFD Sender: No OFD packet to send [04:29:41]OFD Sender: No OFD packet to send [04:29:46]OFD Sender: No OFD packet to send [04:29:51]OFD Sender: No OFD packet to send [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:21]OFD Sender: No OFD packet to send [04:30:26]OFD Sender: No OFD packet to send [04:30:31]OFD Sender: No OFD packet to send [04:30:36]OFD Sender: No OFD packet to send [04:30:41]OFD Sender: No OFD packet to send [04:30:46]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:30:56]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:11]OFD Sender: No OFD packet to send [04:31:16]OFD Sender: No OFD packet to send [04:31:21]OFD Sender: No OFD packet to send [04:31:26]OFD Sender: No OFD packet to send [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:23]accept exits with 7 [04:34:23]New connection [04:34:23]New thread 3066654052 created [04:34:23]Thread 3066510692 joined [04:34:23]Waiting for new connection... [04:34:23] Sock 7.Parse request [04:34:23]Sock 7.Check first char [04:34:23]Sock 7.First char is OK [04:34:23]request: POST /json_proto HTTP/1.0 [04:34:23]Method: POST [04:34:23]URL: /json_proto [04:34:23]Method is POST - this is cgi request [04:34:23]url: /json_proto [04:34:23]query_string will be loaded in cgi processing [04:34:23]execute_cgi json_proto POST (null) [04:34:23]execute_cgi path=json_proto method=POST [04:34:23]POST find Content-Length [04:34:23]Host: 172.17.50.196:8080 [04:34:23]Content-Length: 775 [04:34:23]Content-Type: application/json [04:34:23] [04:34:23]POST finish read [04:34:23]Found Content-Length = 775 [04:34:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:34:23]execute_script... [04:34:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:34:23]POST & json_proto [04:34:23]process_json_proto [04:34:23]json parsed OK: [04:34:23]protocol is kg_v1.0 [04:34:23]action value=close_receipt [04:34:23]process_action close_receipt [04:34:23]cmd_close_receipt [04:34:23]MH_GetDate [04:34:23]Write to MH i2c: F0 00 00 47 45 7B [04:34:23]Write i2c OK [04:34:23]MH_I2C_Read... [04:34:23]Read from MH i2c: F0 [04:34:23]MH_I2C_Read... [04:34:23]Read from MH i2c: F0 09 00 [04:34:23]MH_I2C_Read... [04:34:23]Read from MH i2c: F0 09 00 47 45 00 53 5A 24 67 72 0D 1C 67 BE [04:34:23]GetLastDocTimeStamp 1730433705 [04:34:23]current date 1730435667 [04:34:23]FM_GetShiftState [04:34:23]SAM_PROTO_GetShiftState [04:34:23]wFMCommunicate request_size=4 [04:34:23]MH_SAM_APDU [04:34:23]CAPDU: 80 13 01 00 [04:34:23]Write to MH i2c: E2 08 00 48 45 80 13 01 00 00 00 00 00 0A [04:34:23]Write i2c OK [04:34:23]MH_I2C_Read... [04:34:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:34:23]Read from MH i2c: E2 [04:34:23]MH_I2C_Read... [04:34:23]Read from MH i2c: E2 0E 00 [04:34:23]MH_I2C_Read... [04:34:23]Read from MH i2c: E2 0E 00 48 45 00 09 00 01 89 19 24 67 00 00 00 00 90 00 43 [04:34:23]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [04:34:23]wFMCommunicate OK [04:34:23]SAM_PROTO_GetShiftState done [04:34:23]FM_GetShiftState done [04:34:23]opened in 1730419081 [04:34:23]opened+sec_in_day 1730505481 [04:34:23]quantity*price = 400050 [04:34:23]sum+1 = 400051 [04:34:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.50 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.50 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 59 01.11.2024 04:34 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139878 ФПД: 164932305931404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T043427&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139878&fm=164932305931404&tin=02508201610067®Number=0000000000091631&sum=400050 [04:34:24]StoreToDocumentArchive [04:34:24]shift 558 fd 139878 [04:34:24]save to /storage/0558/doc_00139878 [04:34:24]save last doc name /storage/0558/doc_00139878 to /storage/kkm_last_doc_name [04:34:24]save OK [04:34:24]Clear old archive folders... [04:34:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [04:34:24]tlvbuf is 00A266C0 [04:34:24]SAM_PROTO_ClearQueue [04:34:24]wFMCommunicate request_size=4 [04:34:24]MH_SAM_APDU [04:34:24]CAPDU: 80 09 00 00 [04:34:24]Write to MH i2c: E2 08 00 55 45 80 09 00 00 00 00 00 00 0C [04:34:24]Write i2c OK [04:34:24]MH_I2C_Read... [04:34:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:34:24]Read from MH i2c: E2 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: E2 03 00 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: E2 03 00 55 45 00 90 00 0E [04:34:24]RAPDU: 90 00 [04:34:24]wFMCommunicate OK [04:34:24]SAM_PROTO_ClearQueue done [04:34:24]KKMCreateOFDPacket [04:34:24]OFDProtocolAddRootSTLVToBuf [04:34:24]FM_MakeSignedData [04:34:24]FM_MakeSignedData [04:34:24]SAM_PROTO_SignData [04:34:24]wFMCommunicate request_size=4 [04:34:24]MH_SAM_APDU [04:34:24]CAPDU: 80 0D 01 02 [04:34:24]Write to MH i2c: E2 08 00 56 45 80 0D 01 02 00 00 00 00 14 [04:34:24]Write i2c OK [04:34:24]MH_I2C_Read... [04:34:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:34:24]Read from MH i2c: E2 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: E2 03 00 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: E2 03 00 56 45 00 90 00 0F [04:34:24]RAPDU: 90 00 [04:34:24]wFMCommunicate OK [04:34:24]wFMCommunicate request_size=255 [04:34:24]MH_SAM_APDU [04:34:24]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 53 5A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 66 22 02 00 35 04 06 00 [04:34:24]Write to MH i2c: E2 02 01 57 45 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 53 5A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 66 22 02 00 35 04 06 00 00 00 37 [04:34:24]Write i2c OK [04:34:24]MH_I2C_Read... [04:34:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:34:24]Read from MH i2c: E2 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: E2 03 00 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: E2 03 00 57 45 00 90 00 10 [04:34:24]RAPDU: 90 00 [04:34:24]wFMCommunicate OK [04:34:24]wFMCommunicate request_size=11 [04:34:24]MH_SAM_APDU [04:34:24]CAPDU: 80 0D 02 02 06 96 01 4B 81 CC 8C [04:34:24]Write to MH i2c: E2 0E 00 58 45 80 0D 02 02 06 00 96 01 4B 81 CC 8C 00 00 DE [04:34:24]Write i2c OK [04:34:24]MH_I2C_Read... [04:34:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:34:24]Read from MH i2c: E2 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: E2 03 00 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: E2 03 00 58 45 00 90 00 11 [04:34:24]RAPDU: 90 00 [04:34:24]wFMCommunicate OK [04:34:24]wFMCommunicate request_size=4 [04:34:24]MH_SAM_APDU [04:34:24]CAPDU: 80 0D 03 02 [04:34:24]Write to MH i2c: E2 08 00 59 45 80 0D 03 02 00 00 00 00 19 [04:34:24]Write i2c OK [04:34:24]MH_I2C_Read... [04:34:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:34:24]Read from MH i2c: E2 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: E2 0B 00 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: E2 0B 00 59 45 00 A8 47 FD 63 EC 0F CB 2D 90 00 5C [04:34:24]RAPDU: A8 47 FD 63 EC 0F CB 2D 90 00 [04:34:24]wFMCommunicate OK [04:34:24]SAM_PROTO_SignData done [04:34:24]FM_MakeSignedData done [04:34:24]CreateOFDProtocolMessage [04:34:24]wFMCommunicate request_size=4 [04:34:24]MH_SAM_APDU [04:34:24]CAPDU: 80 11 00 00 [04:34:24]Write to MH i2c: E2 08 00 5A 45 80 11 00 00 00 00 00 00 19 [04:34:24]Write i2c OK [04:34:24]MH_I2C_Read... [04:34:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:34:24]Read from MH i2c: E2 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: E2 17 00 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: E2 17 00 5A 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 74 [04:34:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:34:24]wFMCommunicate OK [04:34:24]CreateOFDProtocolMessage done [04:34:24]OFDSenderStorePacket 139878 [04:34:24]StoreOFDPacket docnum=139878 [04:34:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 5F C6 08 01 18 B5 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 53 5A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 66 22 02 00 35 04 06 00 96 01 4B 81 CC 8C A8 47 FD 63 EC 0F CB 2D [04:34:24]CheckFolder [04:34:24]dirname=/storage/ofd_packets [04:34:24]CheckFolder done [04:34:24]ProducePacketName [04:34:24]name=ofd_packets/00139878 [04:34:24]NVStorageSaveData ofd_packets/00139878 [04:34:24]File name is /storage/ofd_packets/00139878 [04:34:24]Write 302 bytes [04:34:24]NVStorageSaveData done [04:34:24]OFDSenderStorePacket done [04:34:24]KKMCreateOFDPacket done [04:34:24]NVStorageSaveData kkm_last_timestamp [04:34:24]File name is /storage/kkm_last_timestamp [04:34:24]Write 4 bytes [04:34:24]NVStorageSaveData done [04:34:24]ExternCall_PrintAddStr [04:34:24]wPrintStart [04:34:24]Write to MH i2c: 01 00 00 5B 45 A0 [04:34:24]Write i2c OK [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: 01 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: 01 07 00 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: 01 07 00 5B 45 00 00 00 00 00 FF 0F B5 [04:34:24]RasterBufferAndPrint [04:34:24]line Счет N : (1)1095695 [04:34:24]line ИНН: 02508201610067 [04:34:24]line Контрольно-Кассовый Чек [04:34:24]line ПРОДАЖА [04:34:24]line ТРК (МРК, ГНК) : 41 [04:34:24]line Товар: 2710194210 [04:34:24]line ДТ(л)-К-2 [04:34:24]line 52.500 * 76.20 [04:34:24]line = 4000.50 [04:34:24]line НДС 12% НСП 1% [04:34:24]line > о реализуемом товаре [04:34:24]line ИТОГО: 4000.50 [04:34:24]line НСП 1% : 35.40 [04:34:24]line НДС 12% : 424.83 [04:34:24]line Наличными: 0.00 [04:34:24]line Безнал.: 4000.50 [04:34:24]line Место: АЗС № 101 "Партнер Нефть" [04:34:24]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [04:34:24]line СНО: Общий режим [04:34:24]line Чек 59 01.11.2024 04:34 [04:34:24]line Смена: 558 ФФД: 1.0 [04:34:24]line ЗНМ: 0300000081 [04:34:24]line РНМ: 0000000000091631 [04:34:24]line Версия ККМ: 001 [04:34:24]line Платежная система: Mbank [04:34:24]line ФМ: 0000000000874669 [04:34:24]line ФД: 139878 [04:34:24]line ФПД: 164932305931404 [04:34:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T043427&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139878&fm=164932305931404&tin=02508201610067®Number=0000000000091631&sum=400050 [04:34:25]OFD Sender: Processing packet 139878 [packets to send 34, broken 33] [04:34:25]ProducePacketName [04:34:25]name=ofd_packets/00139878 [04:34:25]OFD Sender: To server: pG, [04:34:25]CommunicateWithHost lk.salyk.kg:30040 [04:34:25]ConnectInit lk.salyk.kg [04:34:25]written 0, free lines is 4095 [04:34:25]Connected sock=10 [04:34:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 5F C6 08 01 18 B5 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 53 5A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 66 22 02 00 35 04 06 00 96 01 4B 81 CC 8C A8 47 FD 63 EC 0F CB 2D [04:34:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 D8 C4 47 00 AF DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 66 22 02 00 F4 03 04 00 FF 05 24 67 B6 04 01 00 00 29 40 7A 78 ED E5 71 8E [04:34:25]CommunicateWithHost err = 0 [04:34:25]CheckOFDResponse [04:34:25]1017 (14) - 77093643461234 [04:34:25]1041 (16) - 0000000000874669 [04:34:25]1040 (4) - 139878 [04:34:25]1012 (4) - 31.10.2024 22:34 [04:34:25]1206 (1) - 0 [04:34:25]OFD Sender: Remove packet 139878 [04:34:25]ProducePacketName [04:34:25]name=ofd_packets/00139878 [04:34:25]NVStorageDeleteData [04:34:25]Write to MH i2c: 01 00 00 84 45 C9 [04:34:25]Write i2c OK [04:34:25]MH_I2C_Read... [04:34:25]Read from MH i2c: 01 [04:34:25]MH_I2C_Read... [04:34:25]Read from MH i2c: 01 07 00 [04:34:25]MH_I2C_Read... [04:34:25]Read from MH i2c: 01 07 00 84 45 00 00 00 00 00 1D 0D FA [04:34:25]RasterBufferAndPrint [04:34:25]line [04:34:25]line [04:34:25]line [04:34:25]line [04:34:25]line [04:34:25]written 0, free lines is 3363 [04:34:25]MH_Cut [04:34:25]Write to MH i2c: D1 01 00 8B 45 01 A2 [04:34:25]Write i2c OK [04:34:25]MH_I2C_Read... [04:34:25]Read from MH i2c: D1 [04:34:25]MH_I2C_Read... [04:34:25]Read from MH i2c: D1 01 00 [04:34:25]MH_I2C_Read... [04:34:25]Read from MH i2c: D1 01 00 8B 45 00 A1 [04:34:25]Write to MH i2c: 01 00 00 8C 45 D1 [04:34:25]Write i2c OK [04:34:25]MH_I2C_Read... [04:34:25]OFD Sender: No OFD packet to send [04:34:26]*** Cut start [04:34:26]*** Partial cut [04:34:26]*** CUTSNS_PIN = 1 [04:34:26]*** CUTSNS_PIN = 0 [04:34:26]*** Brake cut motor [04:34:26]Read from MH i2c: 01 [04:34:26]MH_I2C_Read... [04:34:26]*** Stop cut motor [04:34:26]*** Cut end [04:34:26]Read from MH i2c: 01 07 00 [04:34:26]MH_I2C_Read... [04:34:26]Read from MH i2c: 01 07 00 8C 45 00 00 00 00 00 FF 0F E6 [04:34:26]process_action close_receipt done [04:34:26]requested_data is exist [04:34:26]produce_requested_data [04:34:26]requested_item fm.sn is exist - process it [04:34:26]wFMCommunicate request_size=4 [04:34:26]MH_SAM_APDU [04:34:26]CAPDU: 80 11 00 00 [04:34:26]Write to MH i2c: E2 08 00 8D 45 80 11 00 00 00 00 00 00 4C [04:34:26]Write i2c OK [04:34:26]MH_I2C_Read... [04:34:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:34:26]Read from MH i2c: E2 [04:34:26]MH_I2C_Read... [04:34:26]Read from MH i2c: E2 17 00 [04:34:26]MH_I2C_Read... [04:34:26]Read from MH i2c: E2 17 00 8D 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A7 [04:34:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:34:26]wFMCommunicate OK [04:34:26]requested_item fd.num is exist - process it [04:34:26]SAM_PROTO_GetFieldsCounters [04:34:26]wFMCommunicate request_size=4 [04:34:26]MH_SAM_APDU [04:34:26]CAPDU: 80 13 00 00 [04:34:26]Write to MH i2c: E2 08 00 8E 45 80 13 00 00 00 00 00 00 4F [04:34:26]Write i2c OK [04:34:26]MH_I2C_Read... [04:34:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:34:27]Read from MH i2c: E2 [04:34:27]MH_I2C_Read... [04:34:27]Read from MH i2c: E2 62 00 [04:34:27]MH_I2C_Read... [04:34:27]Read from MH i2c: E2 62 00 8E 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 66 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [04:34:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 66 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:34:27]wFMCommunicate OK [04:34:27]SAM_PROTO_GetFieldsCounters done [04:34:27]requested_item shift.num is exist - process it [04:34:27]requested_item shift.opened is exist - process it [04:34:27]req_shift_opened [04:34:27]FM_GetShiftState [04:34:27]SAM_PROTO_GetShiftState [04:34:27]wFMCommunicate request_size=4 [04:34:27]MH_SAM_APDU [04:34:27]CAPDU: 80 13 01 00 [04:34:27]Write to MH i2c: E2 08 00 8F 45 80 13 01 00 00 00 00 00 51 [04:34:27]Write i2c OK [04:34:27]MH_I2C_Read... [04:34:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:34:27]Read from MH i2c: E2 [04:34:27]MH_I2C_Read... [04:34:27]Read from MH i2c: E2 0E 00 [04:34:27]MH_I2C_Read... [04:34:27]Read from MH i2c: E2 0E 00 8F 45 00 09 00 01 89 19 24 67 00 00 00 00 90 00 8A [04:34:27]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [04:34:27]wFMCommunicate OK [04:34:27]SAM_PROTO_GetShiftState done [04:34:27]FM_GetShiftState done [04:34:27]req_shift_opened done [04:34:27]requested_item shift.open_date is exist - process it [04:34:27]req_shift_open_date [04:34:27]req_shift_open_date done [04:34:27]produce_requested_data done [04:34:27]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139878,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [04:34:27]process_action_free close_receipt [04:34:27]json_value_free [04:34:27]json_value_free done [04:34:27]process_json_proto returns [04:34:27]Send response to host [04:34:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139878,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [04:34:27]free response buf [04:34:27]execute_script done [04:34:27]execute_script returns [04:34:27]free content buf [04:34:27]Sock 7.Close socket [04:34:27]Sock 7.Thread stoped [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]accept exits with 9 [04:34:55]New connection [04:34:55]New thread 3066510692 created [04:34:55]Thread 3066654052 joined [04:34:55]Waiting for new connection... [04:34:55] Sock 9.Parse request [04:34:55]Sock 9.Check first char [04:34:55]Sock 9.First char is OK [04:34:55]request: POST /json_proto HTTP/1.0 [04:34:55]Method: POST [04:34:55]URL: /json_proto [04:34:55]Method is POST - this is cgi request [04:34:55]url: /json_proto [04:34:55]query_string will be loaded in cgi processing [04:34:55]execute_cgi json_proto POST (null) [04:34:55]execute_cgi path=json_proto method=POST [04:34:55]POST find Content-Length [04:34:55]Host: 172.17.50.196:8080 [04:34:55]Content-Length: 901 [04:34:55]Content-Type: application/json [04:34:55] [04:34:55]POST finish read [04:34:55]Found Content-Length = 901 [04:34:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335702", "tax_sys" : 0, "items" : [ { "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:34:55]execute_script... [04:34:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335702", "tax_sys" : 0, "items" : [ { "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:34:55]POST & json_proto [04:34:55]process_json_proto [04:34:55]json parsed OK: [04:34:55]protocol is kg_v1.0 [04:34:55]action value=close_receipt [04:34:55]process_action close_receipt [04:34:55]cmd_close_receipt [04:34:55]MH_GetDate [04:34:55]Write to MH i2c: F0 00 00 90 45 C4 [04:34:55]Write i2c OK [04:34:55]MH_I2C_Read... [04:34:55]Read from MH i2c: F0 [04:34:55]MH_I2C_Read... [04:34:55]Read from MH i2c: F0 09 00 [04:34:55]MH_I2C_Read... [04:34:55]Read from MH i2c: F0 09 00 90 45 00 73 5A 24 67 72 0D 1C 67 27 [04:34:55]GetLastDocTimeStamp 1730435667 [04:34:55]current date 1730435699 [04:34:55]FM_GetShiftState [04:34:55]SAM_PROTO_GetShiftState [04:34:55]wFMCommunicate request_size=4 [04:34:55]MH_SAM_APDU [04:34:55]CAPDU: 80 13 01 00 [04:34:55]Write to MH i2c: E2 08 00 91 45 80 13 01 00 00 00 00 00 53 [04:34:55]Write i2c OK [04:34:55]MH_I2C_Read... [04:34:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:34:55]Read from MH i2c: E2 [04:34:55]MH_I2C_Read... [04:34:55]Read from MH i2c: E2 0E 00 [04:34:55]MH_I2C_Read... [04:34:55]Read from MH i2c: E2 0E 00 91 45 00 09 00 01 89 19 24 67 00 00 00 00 90 00 8C [04:34:55]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [04:34:55]wFMCommunicate OK [04:34:55]SAM_PROTO_GetShiftState done [04:34:55]FM_GetShiftState done [04:34:55]opened in 1730419081 [04:34:55]opened+sec_in_day 1730505481 [04:34:55]quantity*price = 13000 [04:34:55]sum+1 = 13001 [04:34:55]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.17 НДС 12% : 26.01 Наличными: 245.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 60 01.11.2024 04:34 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139879 ФПД: 193576075950377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T043459&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139879&fm=193576075950377&tin=02508201610067®Number=0000000000091631&sum=24500 0 [04:34:56]StoreToDocumentArchive [04:34:56]shift 558 fd 139879 [04:34:56]save to /storage/0558/doc_00139879 [04:34:56]save last doc name /storage/0558/doc_00139879 to /storage/kkm_last_doc_name [04:34:56]save OK [04:34:56]Clear old archive folders... [04:34:56]ProcessDocumentItem done err = 0, tmpTLVsize=383 [04:34:56]tlvbuf is 00A3AB00 [04:34:56]SAM_PROTO_ClearQueue [04:34:56]wFMCommunicate request_size=4 [04:34:56]MH_SAM_APDU [04:34:56]CAPDU: 80 09 00 00 [04:34:56]Write to MH i2c: E2 08 00 9E 45 80 09 00 00 00 00 00 00 55 [04:34:56]Write i2c OK [04:34:56]MH_I2C_Read... [04:34:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:34:56]Read from MH i2c: E2 [04:34:56]MH_I2C_Read... [04:34:56]Read from MH i2c: E2 03 00 [04:34:56]MH_I2C_Read... [04:34:56]Read from MH i2c: E2 03 00 9E 45 00 90 00 57 [04:34:56]RAPDU: 90 00 [04:34:56]wFMCommunicate OK [04:34:56]SAM_PROTO_ClearQueue done [04:34:56]KKMCreateOFDPacket [04:34:56]OFDProtocolAddRootSTLVToBuf [04:34:56]FM_MakeSignedData [04:34:56]FM_MakeSignedData [04:34:56]SAM_PROTO_SignData [04:34:56]wFMCommunicate request_size=4 [04:34:56]MH_SAM_APDU [04:34:56]CAPDU: 80 0D 01 02 [04:34:56]Write to MH i2c: E2 08 00 9F 45 80 0D 01 02 00 00 00 00 5D [04:34:56]Write i2c OK [04:34:56]MH_I2C_Read... [04:34:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:34:56]Read from MH i2c: E2 [04:34:56]MH_I2C_Read... [04:34:56]Read from MH i2c: E2 03 00 [04:34:56]MH_I2C_Read... [04:34:56]Read from MH i2c: E2 03 00 9F 45 00 90 00 58 [04:34:56]RAPDU: 90 00 [04:34:56]wFMCommunicate OK [04:34:56]wFMCommunicate request_size=255 [04:34:56]MH_SAM_APDU [04:34:56]CAPDU: 80 0D 02 02 FA 03 00 7F 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 [04:34:56]Write to MH i2c: E2 02 01 A0 45 80 0D 02 02 FA 00 03 00 7F 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 98 [04:34:56]Write i2c OK [04:34:56]MH_I2C_Read... [04:34:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:34:57]Read from MH i2c: E2 [04:34:57]MH_I2C_Read... [04:34:57]Read from MH i2c: E2 03 00 [04:34:57]MH_I2C_Read... [04:34:57]Read from MH i2c: E2 03 00 A0 45 00 90 00 59 [04:34:57]RAPDU: 90 00 [04:34:57]wFMCommunicate OK [04:34:57]wFMCommunicate request_size=142 [04:34:57]MH_SAM_APDU [04:34:57]CAPDU: 80 0D 02 02 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 73 5A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 67 22 02 00 35 04 06 00 B0 0E 71 3E 79 29 [04:34:57]Write to MH i2c: E2 91 00 A1 45 80 0D 02 02 89 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 73 5A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 67 22 02 00 35 04 06 00 B0 0E 71 3E 79 29 00 00 46 [04:34:57]Write i2c OK [04:34:57]MH_I2C_Read... [04:34:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:34:57]Read from MH i2c: E2 [04:34:57]MH_I2C_Read... [04:34:57]Read from MH i2c: E2 03 00 [04:34:57]MH_I2C_Read... [04:34:57]Read from MH i2c: E2 03 00 A1 45 00 90 00 5A [04:34:57]RAPDU: 90 00 [04:34:57]wFMCommunicate OK [04:34:57]wFMCommunicate request_size=4 [04:34:57]MH_SAM_APDU [04:34:57]CAPDU: 80 0D 03 02 [04:34:57]Write to MH i2c: E2 08 00 A2 45 80 0D 03 02 00 00 00 00 62 [04:34:57]Write i2c OK [04:34:57]MH_I2C_Read... [04:34:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:34:57]Read from MH i2c: E2 [04:34:57]MH_I2C_Read... [04:34:57]Read from MH i2c: E2 0B 00 [04:34:57]MH_I2C_Read... [04:34:57]Read from MH i2c: E2 0B 00 A2 45 00 6F 4B F5 AF 30 C8 58 3B 90 00 4C [04:34:57]RAPDU: 6F 4B F5 AF 30 C8 58 3B 90 00 [04:34:57]wFMCommunicate OK [04:34:57]SAM_PROTO_SignData done [04:34:57]FM_MakeSignedData done [04:34:57]CreateOFDProtocolMessage [04:34:57]wFMCommunicate request_size=4 [04:34:57]MH_SAM_APDU [04:34:57]CAPDU: 80 11 00 00 [04:34:57]Write to MH i2c: E2 08 00 A3 45 80 11 00 00 00 00 00 00 62 [04:34:57]Write i2c OK [04:34:57]MH_I2C_Read... [04:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:34:57]Read from MH i2c: E2 [04:34:57]MH_I2C_Read... [04:34:57]Read from MH i2c: E2 17 00 [04:34:57]MH_I2C_Read... [04:34:57]Read from MH i2c: E2 17 00 A3 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BD [04:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:34:57]wFMCommunicate OK [04:34:57]CreateOFDProtocolMessage done [04:34:57]OFDSenderStorePacket 139879 [04:34:57]StoreOFDPacket docnum=139879 [04:34:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 93 01 00 00 E5 84 8B 01 6F 5C 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 73 5A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 67 22 02 00 35 04 06 00 B0 0E 71 3E 79 29 6F 4B F5 AF 30 C8 58 3B [04:34:57]CheckFolder [04:34:57]dirname=/storage/ofd_packets [04:34:57]CheckFolder done [04:34:57]ProducePacketName [04:34:57]name=ofd_packets/00139879 [04:34:57]NVStorageSaveData ofd_packets/00139879 [04:34:57]File name is /storage/ofd_packets/00139879 [04:34:57]Write 433 bytes [04:34:57]NVStorageSaveData done [04:34:57]OFDSenderStorePacket done [04:34:57]KKMCreateOFDPacket done [04:34:57]NVStorageSaveData kkm_last_timestamp [04:34:57]File name is /storage/kkm_last_timestamp [04:34:57]Write 4 bytes [04:34:57]NVStorageSaveData done [04:34:57]ExternCall_PrintAddStr [04:34:57]wPrintStart [04:34:57]Write to MH i2c: 01 00 00 A4 45 E9 [04:34:57]Write i2c OK [04:34:57]MH_I2C_Read... [04:34:57]Read from MH i2c: 01 [04:34:57]MH_I2C_Read... [04:34:57]Read from MH i2c: 01 07 00 [04:34:57]MH_I2C_Read... [04:34:57]Read from MH i2c: 01 07 00 A4 45 00 00 00 00 00 FF 0F FE [04:34:57]RasterBufferAndPrint [04:34:57]line Счет N : (3)335702 [04:34:57]line ИНН: 02508201610067 [04:34:57]line Контрольно-Кассовый Чек [04:34:57]line ПРОДАЖА [04:34:57]line Товар: 4630007400389 [04:34:57]line Семечки ДЖИНН 140г [04:34:57]line 1.000 * 130.00 [04:34:57]line = 130.00 [04:34:57]line НДС 12% НСП 1% [04:34:57]line > о реализуемом товаре [04:34:57]line Товар: 2000036210013 [04:34:57]line Кофе Капучино (GABB TRADE) [04:34:57]line 1.000 * 115.00 [04:34:57]line = 115.00 [04:34:57]line НДС 12% НСП 1% [04:34:57]line > о реализуемом товаре [04:34:57]line ИТОГО: 245.00 [04:34:57]line НСП 1% : 2.17 [04:34:57]line НДС 12% : 26.01 [04:34:57]line Наличными: 245.00 [04:34:57]line Безнал.: 0.00 [04:34:57]line Место: АЗС № 101 "Партнер Нефть" [04:34:57]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [04:34:57]line СНО: Общий режим [04:34:57]line Чек 60 01.11.2024 04:34 [04:34:57]line Смена: 558 ФФД: 1.0 [04:34:57]line ЗНМ: 0300000081 [04:34:57]line РНМ: 0000000000091631 [04:34:57]line Версия ККМ: 001 [04:34:57]line ФМ: 0000000000874669 [04:34:57]line ФД: 139879 [04:34:57]line ФПД: 193576075950377 [04:34:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T043459&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139879&fm=193576075950377&tin=02508201610067®Number=0000000000091631&sum=24500 [04:34:57]line 0 [04:34:57]OFD Sender: Processing packet 139879 [packets to send 34, broken 33] [04:34:57]ProducePacketName [04:34:57]name=ofd_packets/00139879 [04:34:57]OFD Sender: To server: pG, [04:34:57]CommunicateWithHost lk.salyk.kg:30040 [04:34:57]ConnectInit lk.salyk.kg [04:34:57]written 0, free lines is 4095 [04:34:57]Connected sock=10 [04:34:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 93 01 00 00 E5 84 8B 01 6F 5C 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 73 5A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 67 22 02 00 35 04 06 00 B0 0E 71 3E 79 29 6F 4B F5 AF 30 C8 58 3B [04:34:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 0C B5 47 00 03 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 67 22 02 00 F4 03 04 00 1F 06 24 67 B6 04 01 00 00 5E 56 A8 BE 43 96 49 17 [04:34:57]CommunicateWithHost err = 0 [04:34:57]CheckOFDResponse [04:34:57]1017 (14) - 77093643461234 [04:34:57]1041 (16) - 0000000000874669 [04:34:57]1040 (4) - 139879 [04:34:57]1012 (4) - 31.10.2024 22:35 [04:34:57]1206 (1) - 0 [04:34:57]OFD Sender: Remove packet 139879 [04:34:57]ProducePacketName [04:34:57]name=ofd_packets/00139879 [04:34:57]NVStorageDeleteData [04:34:58]Write to MH i2c: 01 00 00 D2 45 17 [04:34:58]Write i2c OK [04:34:58]MH_I2C_Read... [04:34:58]Read from MH i2c: 01 [04:34:58]MH_I2C_Read... [04:34:58]Read from MH i2c: 01 07 00 [04:34:58]MH_I2C_Read... [04:34:58]Read from MH i2c: 01 07 00 D2 45 00 00 00 00 00 E8 0C 12 [04:34:58]RasterBufferAndPrint [04:34:58]line [04:34:58]line [04:34:58]line [04:34:58]line [04:34:58]line [04:34:58]written 0, free lines is 3313 [04:34:58]MH_Cut [04:34:58]Write to MH i2c: D1 01 00 D9 45 01 F0 [04:34:58]Write i2c OK [04:34:58]MH_I2C_Read... [04:34:58]Read from MH i2c: D1 [04:34:58]MH_I2C_Read... [04:34:58]Read from MH i2c: D1 01 00 [04:34:58]MH_I2C_Read... [04:34:58]Read from MH i2c: D1 01 00 D9 45 00 EF [04:34:58]Write to MH i2c: 01 00 00 DA 45 1F [04:34:58]Write i2c OK [04:34:58]MH_I2C_Read... [04:34:58]OFD Sender: No OFD packet to send [04:34:58]*** Cut start [04:34:58]*** Partial cut [04:34:58]*** CUTSNS_PIN = 1 [04:34:58]*** CUTSNS_PIN = 0 [04:34:59]*** Brake cut motor [04:34:59]Read from MH i2c: 01 [04:34:59]MH_I2C_Read... [04:34:59]*** Stop cut motor [04:34:59]*** Cut end [04:34:59]Read from MH i2c: 01 07 00 [04:34:59]MH_I2C_Read... [04:34:59]Read from MH i2c: 01 07 00 DA 45 00 00 00 00 00 FF 0F 34 [04:34:59]process_action close_receipt done [04:34:59]requested_data is exist [04:34:59]produce_requested_data [04:34:59]requested_item fm.sn is exist - process it [04:34:59]wFMCommunicate request_size=4 [04:34:59]MH_SAM_APDU [04:34:59]CAPDU: 80 11 00 00 [04:34:59]Write to MH i2c: E2 08 00 DB 45 80 11 00 00 00 00 00 00 9A [04:34:59]Write i2c OK [04:34:59]MH_I2C_Read... [04:34:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:34:59]Read from MH i2c: E2 [04:34:59]MH_I2C_Read... [04:34:59]Read from MH i2c: E2 17 00 [04:34:59]MH_I2C_Read... [04:34:59]Read from MH i2c: E2 17 00 DB 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F5 [04:34:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:34:59]wFMCommunicate OK [04:34:59]requested_item fd.num is exist - process it [04:34:59]SAM_PROTO_GetFieldsCounters [04:34:59]wFMCommunicate request_size=4 [04:34:59]MH_SAM_APDU [04:34:59]CAPDU: 80 13 00 00 [04:34:59]Write to MH i2c: E2 08 00 DC 45 80 13 00 00 00 00 00 00 9D [04:34:59]Write i2c OK [04:34:59]MH_I2C_Read... [04:34:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:34:59]Read from MH i2c: E2 [04:34:59]MH_I2C_Read... [04:34:59]Read from MH i2c: E2 62 00 [04:34:59]MH_I2C_Read... [04:34:59]Read from MH i2c: E2 62 00 DC 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 67 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [04:34:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 67 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:34:59]wFMCommunicate OK [04:34:59]SAM_PROTO_GetFieldsCounters done [04:34:59]requested_item shift.num is exist - process it [04:34:59]requested_item shift.opened is exist - process it [04:34:59]req_shift_opened [04:34:59]FM_GetShiftState [04:34:59]SAM_PROTO_GetShiftState [04:34:59]wFMCommunicate request_size=4 [04:34:59]MH_SAM_APDU [04:34:59]CAPDU: 80 13 01 00 [04:34:59]Write to MH i2c: E2 08 00 DD 45 80 13 01 00 00 00 00 00 9F [04:34:59]Write i2c OK [04:34:59]MH_I2C_Read... [04:34:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:34:59]Read from MH i2c: E2 [04:34:59]MH_I2C_Read... [04:34:59]Read from MH i2c: E2 0E 00 [04:34:59]MH_I2C_Read... [04:34:59]Read from MH i2c: E2 0E 00 DD 45 00 09 00 01 89 19 24 67 00 00 00 00 90 00 D8 [04:34:59]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [04:34:59]wFMCommunicate OK [04:34:59]SAM_PROTO_GetShiftState done [04:34:59]FM_GetShiftState done [04:34:59]req_shift_opened done [04:34:59]requested_item shift.open_date is exist - process it [04:34:59]req_shift_open_date [04:34:59]req_shift_open_date done [04:34:59]produce_requested_data done [04:34:59]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139879,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [04:34:59]process_action_free close_receipt [04:34:59]json_value_free [04:34:59]json_value_free done [04:34:59]process_json_proto returns [04:34:59]Send response to host [04:34:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139879,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [04:34:59]free response buf [04:34:59]execute_script done [04:34:59]execute_script returns [04:34:59]free content buf [04:34:59]Sock 9.Close socket [04:34:59]Sock 9.Thread stoped [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: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:37]ConnectInit Can't connect to host [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:51]accept exits with 7 [04:40:51]New connection [04:40:51]New thread 3066654052 created [04:40:51]Thread 3066510692 joined [04:40:51]Waiting for new connection... [04:40:51] Sock 7.Parse request [04:40:51]Sock 7.Check first char [04:40:51]Sock 7.First char is OK [04:40:51]request: POST /json_proto HTTP/1.0 [04:40:51]Method: POST [04:40:51]URL: /json_proto [04:40:51]Method is POST - this is cgi request [04:40:51]url: /json_proto [04:40:51]query_string will be loaded in cgi processing [04:40:51]execute_cgi json_proto POST (null) [04:40:51]execute_cgi path=json_proto method=POST [04:40:51]POST find Content-Length [04:40:51]Host: 172.17.50.196:8080 [04:40:51]Content-Length: 655 [04:40:51]Content-Type: application/json [04:40:51] [04:40:51]POST finish read [04:40:51]Found Content-Length = 655 [04:40:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335704", "tax_sys" : 0, "items" : [ { "code": "4870001159955", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u041F\u042D\u0422 1\u043B", "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" ] } } [04:40:51]execute_script... [04:40: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)335704", "tax_sys" : 0, "items" : [ { "code": "4870001159955", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u041F\u042D\u0422 1\u043B", "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" ] } } [04:40:51]POST & json_proto [04:40:51]process_json_proto [04:40:51]json parsed OK: [04:40:51]protocol is kg_v1.0 [04:40:51]action value=close_receipt [04:40:51]process_action close_receipt [04:40:51]cmd_close_receipt [04:40:51]MH_GetDate [04:40:51]Write to MH i2c: F0 00 00 DE 45 12 [04:40:51]Write i2c OK [04:40:51]MH_I2C_Read... [04:40:51]Read from MH i2c: F0 [04:40:51]MH_I2C_Read... [04:40:51]Read from MH i2c: F0 09 00 [04:40:51]MH_I2C_Read... [04:40:51]Read from MH i2c: F0 09 00 DE 45 00 D7 5B 24 67 72 0D 1C 67 DA [04:40:51]GetLastDocTimeStamp 1730435699 [04:40:51]current date 1730436055 [04:40:51]FM_GetShiftState [04:40:51]SAM_PROTO_GetShiftState [04:40:51]wFMCommunicate request_size=4 [04:40:51]MH_SAM_APDU [04:40:51]CAPDU: 80 13 01 00 [04:40:51]Write to MH i2c: E2 08 00 DF 45 80 13 01 00 00 00 00 00 A1 [04:40:51]Write i2c OK [04:40:51]MH_I2C_Read... [04:40:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:51]Read from MH i2c: E2 [04:40:51]MH_I2C_Read... [04:40:51]Read from MH i2c: E2 0E 00 [04:40:51]MH_I2C_Read... [04:40:51]Read from MH i2c: E2 0E 00 DF 45 00 09 00 01 89 19 24 67 00 00 00 00 90 00 DA [04:40:51]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [04:40:51]wFMCommunicate OK [04:40:51]SAM_PROTO_GetShiftState done [04:40:51]FM_GetShiftState done [04:40:51]opened in 1730419081 [04:40:51]opened+sec_in_day 1730505481 [04:40:51]quantity*price = 4500 [04:40:51]sum+1 = 4501 [04:40:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 61 01.11.2024 04:40 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139880 ФПД: 94524114085901 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T044055&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139880&fm=94524114085901&tin=02508201610067®Number=0000000000091631&sum=4500 0 [04:40:52]StoreToDocumentArchive [04:40:52]shift 558 fd 139880 [04:40:52]save to /storage/0558/doc_00139880 [04:40:52]save last doc name /storage/0558/doc_00139880 to /storage/kkm_last_doc_name [04:40:52]save OK [04:40:52]Clear old archive folders... [04:40:52]ProcessDocumentItem done err = 0, tmpTLVsize=282 [04:40:52]tlvbuf is 00AFC8D0 [04:40:52]SAM_PROTO_ClearQueue [04:40:52]wFMCommunicate request_size=4 [04:40:52]MH_SAM_APDU [04:40:52]CAPDU: 80 09 00 00 [04:40:52]Write to MH i2c: E2 08 00 EC 45 80 09 00 00 00 00 00 00 A3 [04:40:52]Write i2c OK [04:40:52]MH_I2C_Read... [04:40:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:40:52]Read from MH i2c: E2 [04:40:52]MH_I2C_Read... [04:40:52]Read from MH i2c: E2 03 00 [04:40:52]MH_I2C_Read... [04:40:52]Read from MH i2c: E2 03 00 EC 45 00 90 00 A5 [04:40:52]RAPDU: 90 00 [04:40:52]wFMCommunicate OK [04:40:52]SAM_PROTO_ClearQueue done [04:40:52]KKMCreateOFDPacket [04:40:52]OFDProtocolAddRootSTLVToBuf [04:40:52]FM_MakeSignedData [04:40:52]FM_MakeSignedData [04:40:52]SAM_PROTO_SignData [04:40:52]wFMCommunicate request_size=4 [04:40:52]MH_SAM_APDU [04:40:52]CAPDU: 80 0D 01 02 [04:40:52]Write to MH i2c: E2 08 00 ED 45 80 0D 01 02 00 00 00 00 AB [04:40:52]Write i2c OK [04:40:52]MH_I2C_Read... [04:40:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:40:52]Read from MH i2c: E2 [04:40:52]MH_I2C_Read... [04:40:52]Read from MH i2c: E2 03 00 [04:40:52]MH_I2C_Read... [04:40:52]Read from MH i2c: E2 03 00 ED 45 00 90 00 A6 [04:40:52]RAPDU: 90 00 [04:40:52]wFMCommunicate OK [04:40:52]wFMCommunicate request_size=255 [04:40:52]MH_SAM_APDU [04:40:52]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 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 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 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 3D 00 00 00 F4 03 04 00 D7 5B 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 [04:40:52]Write to MH i2c: E2 02 01 EE 45 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 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 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 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 3D 00 00 00 F4 03 04 00 D7 5B 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 00 00 B5 [04:40:52]Write i2c OK [04:40:52]MH_I2C_Read... [04:40:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:40:52]Read from MH i2c: E2 [04:40:52]MH_I2C_Read... [04:40:52]Read from MH i2c: E2 03 00 [04:40:52]MH_I2C_Read... [04:40:52]Read from MH i2c: E2 03 00 EE 45 00 90 00 A7 [04:40:52]RAPDU: 90 00 [04:40:52]wFMCommunicate OK [04:40:52]wFMCommunicate request_size=41 [04:40:52]MH_SAM_APDU [04:40:52]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 68 22 02 00 35 04 06 00 55 F8 1C 3E 28 0D [04:40:52]Write to MH i2c: E2 2C 00 EF 45 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 68 22 02 00 35 04 06 00 55 F8 1C 3E 28 0D 00 00 ED [04:40:52]Write i2c OK [04:40:52]MH_I2C_Read... [04:40:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:40:52]Read from MH i2c: E2 [04:40:52]MH_I2C_Read... [04:40:52]Read from MH i2c: E2 03 00 [04:40:52]MH_I2C_Read... [04:40:52]Read from MH i2c: E2 03 00 EF 45 00 90 00 A8 [04:40:52]RAPDU: 90 00 [04:40:52]wFMCommunicate OK [04:40:52]wFMCommunicate request_size=4 [04:40:52]MH_SAM_APDU [04:40:52]CAPDU: 80 0D 03 02 [04:40:52]Write to MH i2c: E2 08 00 F0 45 80 0D 03 02 00 00 00 00 B0 [04:40:52]Write i2c OK [04:40:52]MH_I2C_Read... [04:40:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:40:52]Read from MH i2c: E2 [04:40:52]MH_I2C_Read... [04:40:52]Read from MH i2c: E2 0B 00 [04:40:52]MH_I2C_Read... [04:40:52]Read from MH i2c: E2 0B 00 F0 45 00 70 7B B9 7F 50 52 AD EF 90 00 12 [04:40:52]RAPDU: 70 7B B9 7F 50 52 AD EF 90 00 [04:40:52]wFMCommunicate OK [04:40:52]SAM_PROTO_SignData done [04:40:52]FM_MakeSignedData done [04:40:52]CreateOFDProtocolMessage [04:40:52]wFMCommunicate request_size=4 [04:40:52]MH_SAM_APDU [04:40:52]CAPDU: 80 11 00 00 [04:40:52]Write to MH i2c: E2 08 00 F1 45 80 11 00 00 00 00 00 00 B0 [04:40:52]Write i2c OK [04:40:52]MH_I2C_Read... [04:40:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:52]Read from MH i2c: E2 [04:40:52]MH_I2C_Read... [04:40:52]Read from MH i2c: E2 17 00 [04:40:52]MH_I2C_Read... [04:40:52]Read from MH i2c: E2 17 00 F1 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0B [04:40:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:40:52]wFMCommunicate OK [04:40:52]CreateOFDProtocolMessage done [04:40:52]OFDSenderStorePacket 139880 [04:40:52]StoreOFDPacket docnum=139880 [04:40:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2E 01 00 00 51 21 26 01 F1 1B 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 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 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 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 3D 00 00 00 F4 03 04 00 D7 5B 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 68 22 02 00 35 04 06 00 55 F8 1C 3E 28 0D 70 7B B9 7F 50 52 AD EF [04:40:52]CheckFolder [04:40:52]dirname=/storage/ofd_packets [04:40:52]CheckFolder done [04:40:52]ProducePacketName [04:40:52]name=ofd_packets/00139880 [04:40:52]NVStorageSaveData ofd_packets/00139880 [04:40:52]File name is /storage/ofd_packets/00139880 [04:40:52]Write 332 bytes [04:40:52]NVStorageSaveData done [04:40:52]OFDSenderStorePacket done [04:40:52]KKMCreateOFDPacket done [04:40:52]NVStorageSaveData kkm_last_timestamp [04:40:52]File name is /storage/kkm_last_timestamp [04:40:52]Write 4 bytes [04:40:52]NVStorageSaveData done [04:40:52]ExternCall_PrintAddStr [04:40:52]wPrintStart [04:40:52]Write to MH i2c: 01 00 00 F2 45 37 [04:40:52]Write i2c OK [04:40:52]MH_I2C_Read... [04:40:52]Read from MH i2c: 01 [04:40:52]MH_I2C_Read... [04:40:52]Read from MH i2c: 01 07 00 [04:40:52]MH_I2C_Read... [04:40:52]Read from MH i2c: 01 07 00 F2 45 00 00 00 00 00 FF 0F 4C [04:40:52]RasterBufferAndPrint [04:40:52]line Счет N : (3)335704 [04:40:52]line ИНН: 02508201610067 [04:40:52]line Контрольно-Кассовый Чек [04:40:52]line ПРОДАЖА [04:40:52]line Товар: 4870001159955 [04:40:52]line Вода ASU пит н.газ ПЭТ 1л [04:40:52]line 1.000 * 45.00 [04:40:52]line = 45.00 [04:40:52]line НДС 12% НСП 1% [04:40:52]line > о реализуемом товаре [04:40:52]line ИТОГО: 45.00 [04:40:52]line НСП 1% : 0.40 [04:40:52]line НДС 12% : 4.78 [04:40:52]line Наличными: 45.00 [04:40:52]line Безнал.: 0.00 [04:40:52]line Место: АЗС № 101 "Партнер Нефть" [04:40:52]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [04:40:52]line СНО: Общий режим [04:40:52]line Чек 61 01.11.2024 04:40 [04:40:52]line Смена: 558 ФФД: 1.0 [04:40:52]line ЗНМ: 0300000081 [04:40:52]line РНМ: 0000000000091631 [04:40:52]line Версия ККМ: 001 [04:40:52]line ФМ: 0000000000874669 [04:40:52]line ФД: 139880 [04:40:52]line ФПД: 94524114085901 [04:40:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T044055&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139880&fm=94524114085901&tin=02508201610067®Number=0000000000091631&sum=4500 [04:40:53]line 0 [04:40:53]OFD Sender: Processing packet 139880 [packets to send 34, broken 33] [04:40:53]ProducePacketName [04:40:53]name=ofd_packets/00139880 [04:40:53]OFD Sender: To server: pG, [04:40:53]CommunicateWithHost lk.salyk.kg:30040 [04:40:53]ConnectInit lk.salyk.kg [04:40:53]written 0, free lines is 4095 [04:40:53]Connected sock=10 [04:40:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2E 01 00 00 51 21 26 01 F1 1B 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 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 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 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 3D 00 00 00 F4 03 04 00 D7 5B 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 68 22 02 00 35 04 06 00 55 F8 1C 3E 28 0D 70 7B B9 7F 50 52 AD EF [04:40:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 7F EE 47 00 BF 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 34 36 36 39 10 04 04 00 68 22 02 00 F4 03 04 00 83 07 24 67 B6 04 01 00 00 6B E5 61 7B 25 BE B3 78 [04:40:53]CommunicateWithHost err = 0 [04:40:53]CheckOFDResponse [04:40:53]1017 (14) - 77093643461234 [04:40:53]1041 (16) - 0000000000874669 [04:40:53]1040 (4) - 139880 [04:40:53]1012 (4) - 31.10.2024 22:41 [04:40:53]1206 (1) - 0 [04:40:53]OFD Sender: Remove packet 139880 [04:40:53]ProducePacketName [04:40:53]name=ofd_packets/00139880 [04:40:53]NVStorageDeleteData [04:40:53]Write to MH i2c: 01 00 00 1A 46 60 [04:40:53]Write i2c OK [04:40:53]MH_I2C_Read... [04:40:53]Read from MH i2c: 01 [04:40:53]MH_I2C_Read... [04:40:53]Read from MH i2c: 01 07 00 [04:40:53]MH_I2C_Read... [04:40:53]Read from MH i2c: 01 07 00 1A 46 00 00 00 00 00 1E 0D 92 [04:40:53]RasterBufferAndPrint [04:40:53]line [04:40:53]line [04:40:53]line [04:40:53]line [04:40:53]line [04:40:53]written 0, free lines is 3366 [04:40:53]MH_Cut [04:40:53]Write to MH i2c: D1 01 00 21 46 01 39 [04:40:53]Write i2c OK [04:40:53]MH_I2C_Read... [04:40:53]Read from MH i2c: D1 [04:40:53]MH_I2C_Read... [04:40:53]Read from MH i2c: D1 01 00 [04:40:53]MH_I2C_Read... [04:40:53]Read from MH i2c: D1 01 00 21 46 00 38 [04:40:53]Write to MH i2c: 01 00 00 22 46 68 [04:40:53]Write i2c OK [04:40:53]MH_I2C_Read... [04:40:54]OFD Sender: No OFD packet to send [04:40:54]*** Cut start [04:40:54]*** Partial cut [04:40:54]*** CUTSNS_PIN = 1 [04:40:54]*** CUTSNS_PIN = 0 [04:40:54]*** Brake cut motor [04:40:54]Read from MH i2c: 01 [04:40:54]MH_I2C_Read... [04:40:54]*** Stop cut motor [04:40:54]*** Cut end [04:40:54]Read from MH i2c: 01 07 00 [04:40:54]MH_I2C_Read... [04:40:54]Read from MH i2c: 01 07 00 22 46 00 00 00 00 00 FF 0F 7D [04:40:54]process_action close_receipt done [04:40:54]requested_data is exist [04:40:54]produce_requested_data [04:40:54]requested_item fm.sn is exist - process it [04:40:54]wFMCommunicate request_size=4 [04:40:54]MH_SAM_APDU [04:40:54]CAPDU: 80 11 00 00 [04:40:54]Write to MH i2c: E2 08 00 23 46 80 11 00 00 00 00 00 00 E3 [04:40:54]Write i2c OK [04:40:54]MH_I2C_Read... [04:40:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:55]Read from MH i2c: E2 [04:40:55]MH_I2C_Read... [04:40:55]Read from MH i2c: E2 17 00 [04:40:55]MH_I2C_Read... [04:40:55]Read from MH i2c: E2 17 00 23 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3E [04:40:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:40:55]wFMCommunicate OK [04:40:55]requested_item fd.num is exist - process it [04:40:55]SAM_PROTO_GetFieldsCounters [04:40:55]wFMCommunicate request_size=4 [04:40:55]MH_SAM_APDU [04:40:55]CAPDU: 80 13 00 00 [04:40:55]Write to MH i2c: E2 08 00 24 46 80 13 00 00 00 00 00 00 E6 [04:40:55]Write i2c OK [04:40:55]MH_I2C_Read... [04:40:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:40:55]Read from MH i2c: E2 [04:40:55]MH_I2C_Read... [04:40:55]Read from MH i2c: E2 62 00 [04:40:55]MH_I2C_Read... [04:40:55]Read from MH i2c: E2 62 00 24 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 68 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [04:40:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 68 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:40:55]wFMCommunicate OK [04:40:55]SAM_PROTO_GetFieldsCounters done [04:40:55]requested_item shift.num is exist - process it [04:40:55]requested_item shift.opened is exist - process it [04:40:55]req_shift_opened [04:40:55]FM_GetShiftState [04:40:55]SAM_PROTO_GetShiftState [04:40:55]wFMCommunicate request_size=4 [04:40:55]MH_SAM_APDU [04:40:55]CAPDU: 80 13 01 00 [04:40:55]Write to MH i2c: E2 08 00 25 46 80 13 01 00 00 00 00 00 E8 [04:40:55]Write i2c OK [04:40:55]MH_I2C_Read... [04:40:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:55]Read from MH i2c: E2 [04:40:55]MH_I2C_Read... [04:40:55]Read from MH i2c: E2 0E 00 [04:40:55]MH_I2C_Read... [04:40:55]Read from MH i2c: E2 0E 00 25 46 00 09 00 01 89 19 24 67 00 00 00 00 90 00 21 [04:40:55]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [04:40:55]wFMCommunicate OK [04:40:55]SAM_PROTO_GetShiftState done [04:40:55]FM_GetShiftState done [04:40:55]req_shift_opened done [04:40:55]requested_item shift.open_date is exist - process it [04:40:55]req_shift_open_date [04:40:55]req_shift_open_date done [04:40:55]produce_requested_data done [04:40:55]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139880,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [04:40:55]process_action_free close_receipt [04:40:55]json_value_free [04:40:55]json_value_free done [04:40:55]process_json_proto returns [04:40:55]Send response to host [04:40:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139880,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [04:40:55]free response buf [04:40:55]execute_script done [04:40:55]execute_script returns [04:40:55]free content buf [04:40:55]Sock 7.Close socket [04:40:55]Sock 7.Thread stoped [04:40:57]accept exits with 9 [04:40:57]New connection [04:40:57]New thread 3066510692 created [04:40:57]Thread 3066654052 joined [04:40:57]Waiting for new connection... [04:40:57] Sock 9.Parse request [04:40:57]Sock 9.Check first char [04:40:57]Sock 9.First char is OK [04:40:57]request: POST /json_proto HTTP/1.0 [04:40:57]Method: POST [04:40:57]URL: /json_proto [04:40:57]Method is POST - this is cgi request [04:40:57]url: /json_proto [04:40:57]query_string will be loaded in cgi processing [04:40:57]execute_cgi json_proto POST (null) [04:40:57]execute_cgi path=json_proto method=POST [04:40:57]POST find Content-Length [04:40:57]Host: 172.17.50.196:8080 [04:40:57]Content-Length: 644 [04:40:57]Content-Type: application/json [04:40:57] [04:40:57]POST finish read [04:40:57]Found Content-Length = 644 [04:40:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335706", "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" ] } } [04:40:57]execute_script... [04:40:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335706", "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" ] } } [04:40:57]POST & json_proto [04:40:57]process_json_proto [04:40:57]json parsed OK: [04:40:57]protocol is kg_v1.0 [04:40:57]action value=close_receipt [04:40:57]process_action close_receipt [04:40:57]cmd_close_receipt [04:40:57]MH_GetDate [04:40:57]Write to MH i2c: F0 00 00 26 46 5B [04:40:57]Write i2c OK [04:40:57]MH_I2C_Read... [04:40:57]Read from MH i2c: F0 [04:40:57]MH_I2C_Read... [04:40:57]Read from MH i2c: F0 09 00 [04:40:57]MH_I2C_Read... [04:40:57]Read from MH i2c: F0 09 00 26 46 00 DD 5B 24 67 72 0D 1C 67 29 [04:40:57]GetLastDocTimeStamp 1730436055 [04:40:57]current date 1730436061 [04:40:57]FM_GetShiftState [04:40:57]SAM_PROTO_GetShiftState [04:40:57]wFMCommunicate request_size=4 [04:40:57]MH_SAM_APDU [04:40:57]CAPDU: 80 13 01 00 [04:40:57]Write to MH i2c: E2 08 00 27 46 80 13 01 00 00 00 00 00 EA [04:40:57]Write i2c OK [04:40:57]MH_I2C_Read... [04:40:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:57]Read from MH i2c: E2 [04:40:57]MH_I2C_Read... [04:40:57]Read from MH i2c: E2 0E 00 [04:40:57]MH_I2C_Read... [04:40:57]Read from MH i2c: E2 0E 00 27 46 00 09 00 01 89 19 24 67 00 00 00 00 90 00 23 [04:40:57]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [04:40:57]wFMCommunicate OK [04:40:57]SAM_PROTO_GetShiftState done [04:40:57]FM_GetShiftState done [04:40:57]opened in 1730419081 [04:40:57]opened+sec_in_day 1730505481 [04:40:57]quantity*price = 11500 [04:40:57]sum+1 = 11501 [04:40:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 62 01.11.2024 04:41 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139881 ФПД: 233320059243287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T044101&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139881&fm=233320059243287&tin=02508201610067®Number=0000000000091631&sum=11500 0 [04:40:58]StoreToDocumentArchive [04:40:58]shift 558 fd 139881 [04:40:58]save to /storage/0558/doc_00139881 [04:40:58]save last doc name /storage/0558/doc_00139881 to /storage/kkm_last_doc_name [04:40:58]save OK [04:40:58]Clear old archive folders... [04:40:58]ProcessDocumentItem done err = 0, tmpTLVsize=280 [04:40:58]tlvbuf is 00A1ABD0 [04:40:58]SAM_PROTO_ClearQueue [04:40:58]wFMCommunicate request_size=4 [04:40:58]MH_SAM_APDU [04:40:58]CAPDU: 80 09 00 00 [04:40:58]Write to MH i2c: E2 08 00 34 46 80 09 00 00 00 00 00 00 EC [04:40:58]Write i2c OK [04:40:58]MH_I2C_Read... [04:40:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:40:58]Read from MH i2c: E2 [04:40:58]MH_I2C_Read... [04:40:58]Read from MH i2c: E2 03 00 [04:40:58]MH_I2C_Read... [04:40:58]Read from MH i2c: E2 03 00 34 46 00 90 00 EE [04:40:58]RAPDU: 90 00 [04:40:58]wFMCommunicate OK [04:40:58]SAM_PROTO_ClearQueue done [04:40:58]KKMCreateOFDPacket [04:40:58]OFDProtocolAddRootSTLVToBuf [04:40:58]FM_MakeSignedData [04:40:58]FM_MakeSignedData [04:40:58]SAM_PROTO_SignData [04:40:58]wFMCommunicate request_size=4 [04:40:58]MH_SAM_APDU [04:40:58]CAPDU: 80 0D 01 02 [04:40:58]Write to MH i2c: E2 08 00 35 46 80 0D 01 02 00 00 00 00 F4 [04:40:58]Write i2c OK [04:40:58]MH_I2C_Read... [04:40:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:40:58]Read from MH i2c: E2 [04:40:58]MH_I2C_Read... [04:40:58]Read from MH i2c: E2 03 00 [04:40:58]MH_I2C_Read... [04:40:58]Read from MH i2c: E2 03 00 35 46 00 90 00 EF [04:40:58]RAPDU: 90 00 [04:40:58]wFMCommunicate OK [04:40:58]wFMCommunicate request_size=255 [04:40:58]MH_SAM_APDU [04:40:58]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 3E 00 00 00 F4 03 04 00 DD 5B 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 [04:40:58]Write to MH i2c: E2 02 01 36 46 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 3E 00 00 00 F4 03 04 00 DD 5B 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 00 00 60 [04:40:58]Write i2c OK [04:40:58]MH_I2C_Read... [04:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:40:58]Read from MH i2c: E2 [04:40:58]MH_I2C_Read... [04:40:58]Read from MH i2c: E2 03 00 [04:40:58]MH_I2C_Read... [04:40:58]Read from MH i2c: E2 03 00 36 46 00 90 00 F0 [04:40:58]RAPDU: 90 00 [04:40:58]wFMCommunicate OK [04:40:58]wFMCommunicate request_size=39 [04:40:58]MH_SAM_APDU [04:40:58]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 69 22 02 00 35 04 06 00 D4 34 0F 40 0B 17 [04:40:58]Write to MH i2c: E2 2A 00 37 46 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 69 22 02 00 35 04 06 00 D4 34 0F 40 0B 17 00 00 C0 [04:40:58]Write i2c OK [04:40:58]MH_I2C_Read... [04:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:40:58]Read from MH i2c: E2 [04:40:58]MH_I2C_Read... [04:40:58]Read from MH i2c: E2 03 00 [04:40:58]MH_I2C_Read... [04:40:58]Read from MH i2c: E2 03 00 37 46 00 90 00 F1 [04:40:58]RAPDU: 90 00 [04:40:58]wFMCommunicate OK [04:40:58]wFMCommunicate request_size=4 [04:40:58]MH_SAM_APDU [04:40:58]CAPDU: 80 0D 03 02 [04:40:58]Write to MH i2c: E2 08 00 38 46 80 0D 03 02 00 00 00 00 F9 [04:40:58]Write i2c OK [04:40:58]MH_I2C_Read... [04:40:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:40:58]Read from MH i2c: E2 [04:40:58]MH_I2C_Read... [04:40:58]Read from MH i2c: E2 0B 00 [04:40:58]MH_I2C_Read... [04:40:58]Read from MH i2c: E2 0B 00 38 46 00 9E D4 19 76 F7 EA 03 7E 90 00 5D [04:40:58]RAPDU: 9E D4 19 76 F7 EA 03 7E 90 00 [04:40:58]wFMCommunicate OK [04:40:58]SAM_PROTO_SignData done [04:40:58]FM_MakeSignedData done [04:40:58]CreateOFDProtocolMessage [04:40:58]wFMCommunicate request_size=4 [04:40:58]MH_SAM_APDU [04:40:58]CAPDU: 80 11 00 00 [04:40:58]Write to MH i2c: E2 08 00 39 46 80 11 00 00 00 00 00 00 F9 [04:40:58]Write i2c OK [04:40:58]MH_I2C_Read... [04:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:58]Read from MH i2c: E2 [04:40:58]MH_I2C_Read... [04:40:58]Read from MH i2c: E2 17 00 [04:40:58]MH_I2C_Read... [04:40:58]Read from MH i2c: E2 17 00 39 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 54 [04:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:40:58]wFMCommunicate OK [04:40:58]CreateOFDProtocolMessage done [04:40:58]OFDSenderStorePacket 139881 [04:40:58]StoreOFDPacket docnum=139881 [04:40:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2C 01 00 00 45 BF 24 01 19 A0 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 3E 00 00 00 F4 03 04 00 DD 5B 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 69 22 02 00 35 04 06 00 D4 34 0F 40 0B 17 9E D4 19 76 F7 EA 03 7E [04:40:58]CheckFolder [04:40:58]dirname=/storage/ofd_packets [04:40:58]CheckFolder done [04:40:58]ProducePacketName [04:40:58]name=ofd_packets/00139881 [04:40:58]NVStorageSaveData ofd_packets/00139881 [04:40:58]File name is /storage/ofd_packets/00139881 [04:40:58]Write 330 bytes [04:40:58]NVStorageSaveData done [04:40:58]OFDSenderStorePacket done [04:40:58]KKMCreateOFDPacket done [04:40:58]NVStorageSaveData kkm_last_timestamp [04:40:58]File name is /storage/kkm_last_timestamp [04:40:58]Write 4 bytes [04:40:58]NVStorageSaveData done [04:40:58]ExternCall_PrintAddStr [04:40:58]wPrintStart [04:40:58]Write to MH i2c: 01 00 00 3A 46 80 [04:40:58]Write i2c OK [04:40:58]MH_I2C_Read... [04:40:58]Read from MH i2c: 01 [04:40:58]MH_I2C_Read... [04:40:58]Read from MH i2c: 01 07 00 [04:40:58]MH_I2C_Read... [04:40:58]Read from MH i2c: 01 07 00 3A 46 00 00 00 00 00 FF 0F 95 [04:40:58]RasterBufferAndPrint [04:40:58]line Счет N : (3)335706 [04:40:58]line ИНН: 02508201610067 [04:40:58]line Контрольно-Кассовый Чек [04:40:58]line ПРОДАЖА [04:40:58]line Товар: 2000036210013 [04:40:58]line Кофе Капучино (GABB TRADE) [04:40:58]line 1.000 * 115.00 [04:40:58]line = 115.00 [04:40:58]line НДС 12% НСП 1% [04:40:58]line > о реализуемом товаре [04:40:58]line ИТОГО: 115.00 [04:40:58]line НСП 1% : 1.02 [04:40:58]line НДС 12% : 12.21 [04:40:58]line Наличными: 115.00 [04:40:58]line Безнал.: 0.00 [04:40:58]line Место: АЗС № 101 "Партнер Нефть" [04:40:58]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [04:40:58]line СНО: Общий режим [04:40:58]line Чек 62 01.11.2024 04:41 [04:40:58]line Смена: 558 ФФД: 1.0 [04:40:58]line ЗНМ: 0300000081 [04:40:58]line РНМ: 0000000000091631 [04:40:58]line Версия ККМ: 001 [04:40:58]line ФМ: 0000000000874669 [04:40:58]line ФД: 139881 [04:40:58]line ФПД: 233320059243287 [04:40:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T044101&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139881&fm=233320059243287&tin=02508201610067®Number=0000000000091631&sum=11500 [04:40:58]line 0 [04:40:58]written 0, free lines is 4095 [04:40:59]OFD Sender: Processing packet 139881 [packets to send 34, broken 33] [04:40:59]ProducePacketName [04:40:59]name=ofd_packets/00139881 [04:40:59]OFD Sender: To server: pG, [04:40:59]CommunicateWithHost lk.salyk.kg:30040 [04:40:59]ConnectInit lk.salyk.kg [04:40:59]Connected sock=10 [04:40:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2C 01 00 00 45 BF 24 01 19 A0 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 3E 00 00 00 F4 03 04 00 DD 5B 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 69 22 02 00 35 04 06 00 D4 34 0F 40 0B 17 9E D4 19 76 F7 EA 03 7E [04:40:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 31 1D 47 00 D5 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 69 22 02 00 F4 03 04 00 88 07 24 67 B6 04 01 00 00 41 FD 63 D7 F5 49 50 D7 [04:40:59]CommunicateWithHost err = 0 [04:40:59]CheckOFDResponse [04:40:59]1017 (14) - 77093643461234 [04:40:59]1041 (16) - 0000000000874669 [04:40:59]1040 (4) - 139881 [04:40:59]1012 (4) - 31.10.2024 22:41 [04:40:59]1206 (1) - 0 [04:40:59]OFD Sender: Remove packet 139881 [04:40:59]ProducePacketName [04:40:59]name=ofd_packets/00139881 [04:40:59]NVStorageDeleteData [04:40:59]Write to MH i2c: 01 00 00 62 46 A8 [04:40:59]Write i2c OK [04:40:59]MH_I2C_Read... [04:40:59]Read from MH i2c: 01 [04:40:59]MH_I2C_Read... [04:40:59]Read from MH i2c: 01 07 00 [04:40:59]MH_I2C_Read... [04:40:59]Read from MH i2c: 01 07 00 62 46 00 00 00 00 00 2A 0D E6 [04:40:59]RasterBufferAndPrint [04:40:59]line [04:40:59]line [04:40:59]line [04:40:59]line [04:40:59]line [04:40:59]written 0, free lines is 3387 [04:40:59]MH_Cut [04:40:59]Write to MH i2c: D1 01 00 69 46 01 81 [04:40:59]Write i2c OK [04:40:59]MH_I2C_Read... [04:40:59]Read from MH i2c: D1 [04:40:59]MH_I2C_Read... [04:40:59]Read from MH i2c: D1 01 00 [04:40:59]MH_I2C_Read... [04:40:59]Read from MH i2c: D1 01 00 69 46 00 80 [04:40:59]Write to MH i2c: 01 00 00 6A 46 B0 [04:40:59]Write i2c OK [04:40:59]MH_I2C_Read... [04:40:59]OFD Sender: No OFD packet to send [04:41:00]*** Cut start [04:41:00]*** Partial cut [04:41:00]*** CUTSNS_PIN = 1 [04:41:00]*** CUTSNS_PIN = 0 [04:41:00]*** Brake cut motor [04:41:00]Read from MH i2c: 01 [04:41:00]MH_I2C_Read... [04:41:00]*** Stop cut motor [04:41:00]*** Cut end [04:41:00]Read from MH i2c: 01 07 00 [04:41:00]MH_I2C_Read... [04:41:00]Read from MH i2c: 01 07 00 6A 46 00 00 00 00 00 FF 0F C5 [04:41:00]process_action close_receipt done [04:41:00]requested_data is exist [04:41:00]produce_requested_data [04:41:00]requested_item fm.sn is exist - process it [04:41:00]wFMCommunicate request_size=4 [04:41:00]MH_SAM_APDU [04:41:00]CAPDU: 80 11 00 00 [04:41:00]Write to MH i2c: E2 08 00 6B 46 80 11 00 00 00 00 00 00 2B [04:41:00]Write i2c OK [04:41:00]MH_I2C_Read... [04:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:41:00]Read from MH i2c: E2 [04:41:00]MH_I2C_Read... [04:41:00]Read from MH i2c: E2 17 00 [04:41:00]MH_I2C_Read... [04:41:00]Read from MH i2c: E2 17 00 6B 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 86 [04:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:41:00]wFMCommunicate OK [04:41:00]requested_item fd.num is exist - process it [04:41:00]SAM_PROTO_GetFieldsCounters [04:41:00]wFMCommunicate request_size=4 [04:41:00]MH_SAM_APDU [04:41:00]CAPDU: 80 13 00 00 [04:41:00]Write to MH i2c: E2 08 00 6C 46 80 13 00 00 00 00 00 00 2E [04:41:00]Write i2c OK [04:41:00]MH_I2C_Read... [04:41:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:41:00]Read from MH i2c: E2 [04:41:00]MH_I2C_Read... [04:41:00]Read from MH i2c: E2 62 00 [04:41:00]MH_I2C_Read... [04:41:00]Read from MH i2c: E2 62 00 6C 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 69 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [04: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 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 69 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:41:00]wFMCommunicate OK [04:41:00]SAM_PROTO_GetFieldsCounters done [04:41:00]requested_item shift.num is exist - process it [04:41:00]requested_item shift.opened is exist - process it [04:41:00]req_shift_opened [04:41:00]FM_GetShiftState [04:41:00]SAM_PROTO_GetShiftState [04:41:00]wFMCommunicate request_size=4 [04:41:00]MH_SAM_APDU [04:41:00]CAPDU: 80 13 01 00 [04:41:00]Write to MH i2c: E2 08 00 6D 46 80 13 01 00 00 00 00 00 30 [04:41:00]Write i2c OK [04:41:00]MH_I2C_Read... [04:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:41:00]Read from MH i2c: E2 [04:41:00]MH_I2C_Read... [04:41:00]Read from MH i2c: E2 0E 00 [04:41:00]MH_I2C_Read... [04:41:00]Read from MH i2c: E2 0E 00 6D 46 00 09 00 01 89 19 24 67 00 00 00 00 90 00 69 [04:41:00]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [04:41:01]wFMCommunicate OK [04:41:01]SAM_PROTO_GetShiftState done [04:41:01]FM_GetShiftState done [04:41:01]req_shift_opened done [04:41:01]requested_item shift.open_date is exist - process it [04:41:01]req_shift_open_date [04:41:01]req_shift_open_date done [04:41:01]produce_requested_data done [04:41:01]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139881,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [04:41:01]process_action_free close_receipt [04:41:01]json_value_free [04:41:01]json_value_free done [04:41:01]process_json_proto returns [04:41:01]Send response to host [04:41:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139881,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [04:41:01]free response buf [04:41:01]execute_script done [04:41:01]execute_script returns [04:41:01]free content buf [04:41:01]Sock 9.Close socket [04:41:01]Sock 9.Thread stoped [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:14]OFD Sender: No OFD packet to send [04:41:19]OFD Sender: No OFD packet to send [04:41:24]OFD Sender: No OFD packet to send [04:41:29]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41:54]OFD Sender: No OFD packet to send [04:41:59]OFD Sender: No OFD packet to send [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]OFD Sender: No OFD packet to send [04:42:44]OFD Sender: No OFD packet to send [04:42:49]OFD Sender: No OFD packet to send [04:42:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:20]OFD Sender: No OFD packet to send [04:43:25]OFD Sender: No OFD packet to send [04:43:30]OFD Sender: No OFD packet to send [04:43:35]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:25]OFD Sender: No OFD packet to send [04:50:30]OFD Sender: No OFD packet to send [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:55:00]OFD Sender: No OFD packet to send [04:55:05]OFD Sender: No OFD packet to send [04:55:10]OFD Sender: No OFD packet to send [04:55:15]OFD Sender: No OFD packet to send [04:55:20]OFD Sender: No OFD packet to send [04:55:25]OFD Sender: No OFD packet to send [04:55:30]OFD Sender: No OFD packet to send [04:55:35]OFD Sender: No OFD packet to send [04:55:40]OFD Sender: No OFD packet to send [04:55:45]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:55]OFD Sender: No OFD packet to send [04:56:00]OFD Sender: No OFD packet to send [04:56:05]OFD Sender: No OFD packet to send [04:56:10]OFD Sender: No OFD packet to send [04:56:15]OFD Sender: No OFD packet to send [04:56:20]OFD Sender: No OFD packet to send [04:56:25]OFD Sender: No OFD packet to send [04:56:30]OFD Sender: No OFD packet to send [04:56:35]OFD Sender: No OFD packet to send [04:56:40]OFD Sender: No OFD packet to send [04:56:45]OFD Sender: No OFD packet to send [04:56:50]OFD Sender: No OFD packet to send [04:56:55]OFD Sender: No OFD packet to send [04:57:00]OFD Sender: No OFD packet to send [04:57:05]OFD Sender: No OFD packet to send [04:57:10]OFD Sender: No OFD packet to send [04:57:15]OFD Sender: No OFD packet to send [04:57:20]OFD Sender: No OFD packet to send [04:57:25]OFD Sender: No OFD packet to send [04:57:30]OFD Sender: No OFD packet to send [04:57:35]OFD Sender: No OFD packet to send [04:57:40]OFD Sender: No OFD packet to send [04:57:45]OFD Sender: No OFD packet to send [04:57:50]OFD Sender: No OFD packet to send [04:57:55]OFD Sender: No OFD packet to send [04:58:00]OFD Sender: No OFD packet to send [04:58:05]OFD Sender: No OFD packet to send [04:58:10]OFD Sender: No OFD packet to send [04:58:15]OFD Sender: No OFD packet to send [04:58:20]OFD Sender: No OFD packet to send [04:58:25]OFD Sender: No OFD packet to send [04:58:30]OFD Sender: No OFD packet to send [04:58:35]OFD Sender: No OFD packet to send [04:58:40]OFD Sender: No OFD packet to send [04:58:45]OFD Sender: No OFD packet to send [04:58:50]OFD Sender: No OFD packet to send [04:58:55]OFD Sender: No OFD packet to send [04:59:00]OFD Sender: No OFD packet to send [04:59:05]OFD Sender: No OFD packet to send [04:59:10]OFD Sender: No OFD packet to send [04:59:15]OFD Sender: No OFD packet to send [04:59:20]OFD Sender: No OFD packet to send [04:59:25]OFD Sender: No OFD packet to send [04:59:30]OFD Sender: No OFD packet to send [04:59:35]OFD Sender: No OFD packet to send [04:59:40]OFD Sender: No OFD packet to send [04:59:45]OFD Sender: No OFD packet to send [04:59:50]OFD Sender: No OFD packet to send [04:59:55]OFD Sender: No OFD packet to send [05:00:00]OFD Sender: No OFD packet to send [05:00:05]OFD Sender: No OFD packet to send [05:00:10]OFD Sender: No OFD packet to send [05:00:15]OFD Sender: No OFD packet to send [05:00:20]OFD Sender: No OFD packet to send [05:00:25]OFD Sender: No OFD packet to send [05:00:30]OFD Sender: No OFD packet to send [05:00:35]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:01:00]OFD Sender: No OFD packet to send [05:01:05]OFD Sender: No OFD packet to send [05:01:10]OFD Sender: No OFD packet to send [05:01:15]OFD Sender: No OFD packet to send [05:01:20]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:30]OFD Sender: No OFD packet to send [05:01:35]OFD Sender: No OFD packet to send [05:01:40]OFD Sender: No OFD packet to send [05:01:45]OFD Sender: No OFD packet to send [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:52]accept exits with 7 [05:32:52]New connection [05:32:52]New thread 3066654052 created [05:32:52]Thread 3066510692 joined [05:32:52]Waiting for new connection... [05:32:52] Sock 7.Parse request [05:32:52]Sock 7.Check first char [05:32:52]Sock 7.First char is OK [05:32:52]request: POST /json_proto HTTP/1.0 [05:32:52]Method: POST [05:32:52]URL: /json_proto [05:32:52]Method is POST - this is cgi request [05:32:52]url: /json_proto [05:32:52]query_string will be loaded in cgi processing [05:32:52]execute_cgi json_proto POST (null) [05:32:52]execute_cgi path=json_proto method=POST [05:32:52]POST find Content-Length [05:32:52]Host: 172.17.50.196:8080 [05:32:52]Content-Length: 656 [05:32:52]Content-Type: application/json [05:32:52] [05:32:52]POST finish read [05:32:52]Found Content-Length = 656 [05:32:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335707", "tax_sys" : 0, "items" : [ { "code": "4603290004831", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A.\u0432\u043A.", "price" : 86.00, "quantity" : 1.000, "sum" : 86.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 86.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:32:52]execute_script... [05:32:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335707", "tax_sys" : 0, "items" : [ { "code": "4603290004831", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A.\u0432\u043A.", "price" : 86.00, "quantity" : 1.000, "sum" : 86.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 86.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:32:52]POST & json_proto [05:32:52]process_json_proto [05:32:52]json parsed OK: [05:32:52]protocol is kg_v1.0 [05:32:52]action value=close_receipt [05:32:52]process_action close_receipt [05:32:52]cmd_close_receipt [05:32:52]MH_GetDate [05:32:52]Write to MH i2c: F0 00 00 6E 46 A3 [05:32:52]Write i2c OK [05:32:52]MH_I2C_Read... [05:32:52]Read from MH i2c: F0 [05:32:52]MH_I2C_Read... [05:32:52]Read from MH i2c: F0 09 00 [05:32:52]MH_I2C_Read... [05:32:52]Read from MH i2c: F0 09 00 6E 46 00 09 68 24 67 72 0D 1C 67 AA [05:32:52]GetLastDocTimeStamp 1730436061 [05:32:52]current date 1730439177 [05:32:52]FM_GetShiftState [05:32:52]SAM_PROTO_GetShiftState [05:32:52]wFMCommunicate request_size=4 [05:32:52]MH_SAM_APDU [05:32:52]CAPDU: 80 13 01 00 [05:32:52]Write to MH i2c: E2 08 00 6F 46 80 13 01 00 00 00 00 00 32 [05:32:52]Write i2c OK [05:32:52]MH_I2C_Read... [05:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:32:52]Read from MH i2c: E2 [05:32:52]MH_I2C_Read... [05:32:52]Read from MH i2c: E2 0E 00 [05:32:52]MH_I2C_Read... [05:32:52]Read from MH i2c: E2 0E 00 6F 46 00 09 00 01 89 19 24 67 00 00 00 00 90 00 6B [05:32:52]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [05:32:52]wFMCommunicate OK [05:32:52]SAM_PROTO_GetShiftState done [05:32:52]FM_GetShiftState done [05:32:52]opened in 1730419081 [05:32:52]opened+sec_in_day 1730505481 [05:32:52]quantity*price = 8600 [05:32:52]sum+1 = 8601 [05:32:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 86.00 НСП 1% : 0.76 НДС 12% : 9.13 Наличными: 86.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 63 01.11.2024 05:32 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139882 ФПД: 200730467489323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T053257&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139882&fm=200730467489323&tin=02508201610067®Number=0000000000091631&sum=8600 0 [05:32:54]StoreToDocumentArchive [05:32:54]shift 558 fd 139882 [05:32:54]save to /storage/0558/doc_00139882 [05:32:54]save last doc name /storage/0558/doc_00139882 to /storage/kkm_last_doc_name [05:32:54]save OK [05:32:54]Clear old archive folders... [05:32:54]ProcessDocumentItem done err = 0, tmpTLVsize=283 [05:32:54]tlvbuf is 00AC3470 [05:32:54]SAM_PROTO_ClearQueue [05:32:54]wFMCommunicate request_size=4 [05:32:54]MH_SAM_APDU [05:32:54]CAPDU: 80 09 00 00 [05:32:54]Write to MH i2c: E2 08 00 7C 46 80 09 00 00 00 00 00 00 34 [05:32:54]Write i2c OK [05:32:54]MH_I2C_Read... [05:32:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:32:54]Read from MH i2c: E2 [05:32:54]MH_I2C_Read... [05:32:54]Read from MH i2c: E2 03 00 [05:32:54]MH_I2C_Read... [05:32:54]Read from MH i2c: E2 03 00 7C 46 00 90 00 36 [05:32:54]RAPDU: 90 00 [05:32:54]wFMCommunicate OK [05:32:54]SAM_PROTO_ClearQueue done [05:32:54]KKMCreateOFDPacket [05:32:54]OFDProtocolAddRootSTLVToBuf [05:32:54]FM_MakeSignedData [05:32:54]FM_MakeSignedData [05:32:54]SAM_PROTO_SignData [05:32:54]wFMCommunicate request_size=4 [05:32:54]MH_SAM_APDU [05:32:54]CAPDU: 80 0D 01 02 [05:32:54]Write to MH i2c: E2 08 00 7D 46 80 0D 01 02 00 00 00 00 3C [05:32:54]Write i2c OK [05:32:54]MH_I2C_Read... [05:32:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:32:54]Read from MH i2c: E2 [05:32:54]MH_I2C_Read... [05:32:54]Read from MH i2c: E2 03 00 [05:32:54]MH_I2C_Read... [05:32:54]Read from MH i2c: E2 03 00 7D 46 00 90 00 37 [05:32:54]RAPDU: 90 00 [05:32:54]wFMCommunicate OK [05:32:54]wFMCommunicate request_size=255 [05:32:54]MH_SAM_APDU [05:32:54]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 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 03 00 00 00 00 07 04 06 00 98 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 09 68 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 [05:32:54]Write to MH i2c: E2 02 01 7E 46 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 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 03 00 00 00 00 07 04 06 00 98 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 09 68 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 00 00 E2 [05:32:54]Write i2c OK [05:32:54]MH_I2C_Read... [05:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:32:54]Read from MH i2c: E2 [05:32:54]MH_I2C_Read... [05:32:54]Read from MH i2c: E2 03 00 [05:32:54]MH_I2C_Read... [05:32:54]Read from MH i2c: E2 03 00 7E 46 00 90 00 38 [05:32:54]RAPDU: 90 00 [05:32:54]wFMCommunicate OK [05:32:54]wFMCommunicate request_size=42 [05:32:54]MH_SAM_APDU [05:32:54]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6A 22 02 00 35 04 06 00 B6 90 34 35 D6 2B [05:32:54]Write to MH i2c: E2 2D 00 7F 46 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6A 22 02 00 35 04 06 00 B6 90 34 35 D6 2B 00 00 5A [05:32:54]Write i2c OK [05:32:54]MH_I2C_Read... [05:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:32:54]Read from MH i2c: E2 [05:32:54]MH_I2C_Read... [05:32:54]Read from MH i2c: E2 03 00 [05:32:54]MH_I2C_Read... [05:32:54]Read from MH i2c: E2 03 00 7F 46 00 90 00 39 [05:32:54]RAPDU: 90 00 [05:32:54]wFMCommunicate OK [05:32:54]wFMCommunicate request_size=4 [05:32:54]MH_SAM_APDU [05:32:54]CAPDU: 80 0D 03 02 [05:32:54]Write to MH i2c: E2 08 00 80 46 80 0D 03 02 00 00 00 00 41 [05:32:54]Write i2c OK [05:32:54]MH_I2C_Read... [05:32:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:32:54]Read from MH i2c: E2 [05:32:54]MH_I2C_Read... [05:32:54]Read from MH i2c: E2 0B 00 [05:32:54]MH_I2C_Read... [05:32:54]Read from MH i2c: E2 0B 00 80 46 00 5A 6F 79 72 CA CF 78 B6 90 00 BD [05:32:54]RAPDU: 5A 6F 79 72 CA CF 78 B6 90 00 [05:32:54]wFMCommunicate OK [05:32:54]SAM_PROTO_SignData done [05:32:54]FM_MakeSignedData done [05:32:54]CreateOFDProtocolMessage [05:32:54]wFMCommunicate request_size=4 [05:32:54]MH_SAM_APDU [05:32:54]CAPDU: 80 11 00 00 [05:32:54]Write to MH i2c: E2 08 00 81 46 80 11 00 00 00 00 00 00 41 [05:32:54]Write i2c OK [05:32:54]MH_I2C_Read... [05:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:32:54]Read from MH i2c: E2 [05:32:54]MH_I2C_Read... [05:32:54]Read from MH i2c: E2 17 00 [05:32:54]MH_I2C_Read... [05:32:54]Read from MH i2c: E2 17 00 81 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9C [05:32:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:32:54]wFMCommunicate OK [05:32:54]CreateOFDProtocolMessage done [05:32:54]OFDSenderStorePacket 139882 [05:32:54]StoreOFDPacket docnum=139882 [05:32:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2F 01 00 00 7C CB 27 01 39 ED 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 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 03 00 00 00 00 07 04 06 00 98 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 09 68 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6A 22 02 00 35 04 06 00 B6 90 34 35 D6 2B 5A 6F 79 72 CA CF 78 B6 [05:32:54]CheckFolder [05:32:54]dirname=/storage/ofd_packets [05:32:54]CheckFolder done [05:32:54]ProducePacketName [05:32:54]name=ofd_packets/00139882 [05:32:54]NVStorageSaveData ofd_packets/00139882 [05:32:54]File name is /storage/ofd_packets/00139882 [05:32:54]Write 333 bytes [05:32:54]NVStorageSaveData done [05:32:54]OFDSenderStorePacket done [05:32:54]KKMCreateOFDPacket done [05:32:54]NVStorageSaveData kkm_last_timestamp [05:32:54]File name is /storage/kkm_last_timestamp [05:32:54]Write 4 bytes [05:32:54]NVStorageSaveData done [05:32:54]ExternCall_PrintAddStr [05:32:54]wPrintStart [05:32:54]Write to MH i2c: 01 00 00 82 46 C8 [05:32:54]Write i2c OK [05:32:54]MH_I2C_Read... [05:32:54]Read from MH i2c: 01 [05:32:54]MH_I2C_Read... [05:32:54]Read from MH i2c: 01 07 00 [05:32:54]MH_I2C_Read... [05:32:54]Read from MH i2c: 01 07 00 82 46 00 00 00 00 00 FF 0F DD [05:32:54]RasterBufferAndPrint [05:32:54]line Счет N : (3)335707 [05:32:54]line ИНН: 02508201610067 [05:32:54]line Контрольно-Кассовый Чек [05:32:54]line ПРОДАЖА [05:32:54]line Товар: 4603290004831 [05:32:54]line Печ.зат.TONDI Сэнд.шок.вк. [05:32:54]line 1.000 * 86.00 [05:32:54]line = 86.00 [05:32:54]line НДС 12% НСП 1% [05:32:54]line > о реализуемом товаре [05:32:54]line ИТОГО: 86.00 [05:32:54]line НСП 1% : 0.76 [05:32:54]line НДС 12% : 9.13 [05:32:54]line Наличными: 86.00 [05:32:54]line Безнал.: 0.00 [05:32:54]line Место: АЗС № 101 "Партнер Нефть" [05:32:54]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [05:32:54]line СНО: Общий режим [05:32:54]line Чек 63 01.11.2024 05:32 [05:32:54]line Смена: 558 ФФД: 1.0 [05:32:54]line ЗНМ: 0300000081 [05:32:54]line РНМ: 0000000000091631 [05:32:54]line Версия ККМ: 001 [05:32:54]line ФМ: 0000000000874669 [05:32:54]line ФД: 139882 [05:32:54]line ФПД: 200730467489323 [05:32:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T053257&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139882&fm=200730467489323&tin=02508201610067®Number=0000000000091631&sum=8600 [05:32:54]line 0 [05:32:54]OFD Sender: Processing packet 139882 [packets to send 34, broken 33] [05:32:54]ProducePacketName [05:32:54]name=ofd_packets/00139882 [05:32:54]OFD Sender: To server: pG, [05:32:54]CommunicateWithHost lk.salyk.kg:30040 [05:32:54]ConnectInit lk.salyk.kg [05:32:54]written 0, free lines is 4095 [05:32:55]Connected sock=10 [05: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 34 36 36 39 2F 01 00 00 7C CB 27 01 39 ED 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 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 03 00 00 00 00 07 04 06 00 98 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 09 68 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6A 22 02 00 35 04 06 00 B6 90 34 35 D6 2B 5A 6F 79 72 CA CF 78 B6 [05:32:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 27 AB 47 00 CE 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 34 36 36 39 10 04 04 00 6A 22 02 00 F4 03 04 00 B4 13 24 67 B6 04 01 00 00 03 BD 6C 3E 47 B3 4A C9 [05:32:55]CommunicateWithHost err = 0 [05:32:55]CheckOFDResponse [05:32:55]1017 (14) - 77093643461234 [05:32:55]1041 (16) - 0000000000874669 [05:32:55]1040 (4) - 139882 [05:32:55]1012 (4) - 31.10.2024 23:33 [05:32:55]1206 (1) - 0 [05:32:55]OFD Sender: Remove packet 139882 [05:32:55]ProducePacketName [05:32:55]name=ofd_packets/00139882 [05:32:55]NVStorageDeleteData [05:32:55]Write to MH i2c: 01 00 00 AA 46 F0 [05:32:55]Write i2c OK [05:32:55]MH_I2C_Read... [05:32:55]Read from MH i2c: 01 [05:32:55]MH_I2C_Read... [05:32:55]Read from MH i2c: 01 07 00 [05:32:55]MH_I2C_Read... [05:32:55]Read from MH i2c: 01 07 00 AA 46 00 00 00 00 00 11 0D 15 [05:32:55]RasterBufferAndPrint [05:32:55]line [05:32:55]line [05:32:55]line [05:32:55]line [05:32:55]line [05:32:55]written 0, free lines is 3354 [05:32:55]MH_Cut [05:32:55]Write to MH i2c: D1 01 00 B1 46 01 C9 [05:32:55]Write i2c OK [05:32:55]MH_I2C_Read... [05:32:55]Read from MH i2c: D1 [05:32:55]MH_I2C_Read... [05:32:55]Read from MH i2c: D1 01 00 [05:32:55]MH_I2C_Read... [05:32:55]Read from MH i2c: D1 01 00 B1 46 00 C8 [05:32:55]Write to MH i2c: 01 00 00 B2 46 F8 [05:32:55]Write i2c OK [05:32:55]MH_I2C_Read... [05:32:55]OFD Sender: No OFD packet to send [05:32:56]*** Cut start [05:32:56]*** Partial cut [05:32:56]*** CUTSNS_PIN = 1 [05:32:56]*** CUTSNS_PIN = 0 [05:32:56]*** Brake cut motor [05:32:56]Read from MH i2c: 01 [05:32:56]MH_I2C_Read... [05:32:56]*** Stop cut motor [05:32:56]*** Cut end [05:32:56]Read from MH i2c: 01 07 00 [05:32:56]MH_I2C_Read... [05:32:56]Read from MH i2c: 01 07 00 B2 46 00 00 00 00 00 FF 0F 0D [05:32:56]process_action close_receipt done [05:32:56]requested_data is exist [05:32:56]produce_requested_data [05:32:56]requested_item fm.sn is exist - process it [05:32:56]wFMCommunicate request_size=4 [05:32:56]MH_SAM_APDU [05:32:56]CAPDU: 80 11 00 00 [05:32:56]Write to MH i2c: E2 08 00 B3 46 80 11 00 00 00 00 00 00 73 [05:32:56]Write i2c OK [05:32:56]MH_I2C_Read... [05:32:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:32:56]Read from MH i2c: E2 [05:32:56]MH_I2C_Read... [05:32:56]Read from MH i2c: E2 17 00 [05:32:56]MH_I2C_Read... [05:32:56]Read from MH i2c: E2 17 00 B3 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CE [05:32:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:32:56]wFMCommunicate OK [05:32:56]requested_item fd.num is exist - process it [05:32:56]SAM_PROTO_GetFieldsCounters [05:32:56]wFMCommunicate request_size=4 [05:32:56]MH_SAM_APDU [05:32:56]CAPDU: 80 13 00 00 [05:32:56]Write to MH i2c: E2 08 00 B4 46 80 13 00 00 00 00 00 00 76 [05:32:56]Write i2c OK [05:32:56]MH_I2C_Read... [05:32:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:32:56]Read from MH i2c: E2 [05:32:56]MH_I2C_Read... [05:32:56]Read from MH i2c: E2 62 00 [05:32:56]MH_I2C_Read... [05:32:56]Read from MH i2c: E2 62 00 B4 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 6A 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [05:32:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 6A 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:32:56]wFMCommunicate OK [05:32:56]SAM_PROTO_GetFieldsCounters done [05:32:56]requested_item shift.num is exist - process it [05:32:56]requested_item shift.opened is exist - process it [05:32:56]req_shift_opened [05:32:56]FM_GetShiftState [05:32:56]SAM_PROTO_GetShiftState [05:32:56]wFMCommunicate request_size=4 [05:32:56]MH_SAM_APDU [05:32:56]CAPDU: 80 13 01 00 [05:32:56]Write to MH i2c: E2 08 00 B5 46 80 13 01 00 00 00 00 00 78 [05:32:56]Write i2c OK [05:32:56]MH_I2C_Read... [05:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:32:56]Read from MH i2c: E2 [05:32:56]MH_I2C_Read... [05:32:56]Read from MH i2c: E2 0E 00 [05:32:56]MH_I2C_Read... [05:32:56]Read from MH i2c: E2 0E 00 B5 46 00 09 00 01 89 19 24 67 00 00 00 00 90 00 B1 [05:32:56]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [05:32:56]wFMCommunicate OK [05:32:56]SAM_PROTO_GetShiftState done [05:32:56]FM_GetShiftState done [05:32:56]req_shift_opened done [05:32:56]requested_item shift.open_date is exist - process it [05:32:56]req_shift_open_date [05:32:56]req_shift_open_date done [05:32:56]produce_requested_data done [05:32:56]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139882,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [05:32:56]process_action_free close_receipt [05:32:56]json_value_free [05:32:56]json_value_free done [05:32:56]process_json_proto returns [05:32:56]Send response to host [05:32:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139882,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [05:32:56]free response buf [05:32:56]execute_script done [05:32:56]execute_script returns [05:32:56]free content buf [05:32:56]Sock 7.Close socket [05:32:56]Sock 7.Thread stoped [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:16]OFD Sender: No OFD packet to send [05:37:21]OFD Sender: No OFD packet to send [05:37:26]OFD Sender: No OFD packet to send [05:37:31]OFD Sender: No OFD packet to send [05:37:36]OFD Sender: No OFD packet to send [05:37:41]OFD Sender: No OFD packet to send [05:37:46]OFD Sender: No OFD packet to send [05:37:51]OFD Sender: No OFD packet to send [05:37:56]OFD Sender: No OFD packet to send [05:38:01]OFD Sender: No OFD packet to send [05:38:06]OFD Sender: No OFD packet to send [05:38:11]OFD Sender: No OFD packet to send [05:38:16]OFD Sender: No OFD packet to send [05:38:21]OFD Sender: No OFD packet to send [05:38:26]OFD Sender: No OFD packet to send [05:38:31]OFD Sender: No OFD packet to send [05:38:36]OFD Sender: No OFD packet to send [05:38:41]OFD Sender: No OFD packet to send [05:38:46]OFD Sender: No OFD packet to send [05:38:51]OFD Sender: No OFD packet to send [05:38:56]OFD Sender: No OFD packet to send [05:39:01]OFD Sender: No OFD packet to send [05:39:06]OFD Sender: No OFD packet to send [05:39:11]OFD Sender: No OFD packet to send [05:39:16]OFD Sender: No OFD packet to send [05:39:21]OFD Sender: No OFD packet to send [05:39:26]OFD Sender: No OFD packet to send [05:39:31]OFD Sender: No OFD packet to send [05:39:36]OFD Sender: No OFD packet to send [05:39:41]OFD Sender: No OFD packet to send [05:39:46]OFD Sender: No OFD packet to send [05:39:51]OFD Sender: No OFD packet to send [05:39:56]OFD Sender: No OFD packet to send [05:40:01]OFD Sender: No OFD packet to send [05:40:06]OFD Sender: No OFD packet to send [05:40:11]OFD Sender: No OFD packet to send [05:40:16]OFD Sender: No OFD packet to send [05:40:21]OFD Sender: No OFD packet to send [05:40:26]OFD Sender: No OFD packet to send [05:40:31]OFD Sender: No OFD packet to send [05:40:36]OFD Sender: No OFD packet to send [05:40:41]OFD Sender: No OFD packet to send [05:40:46]OFD Sender: No OFD packet to send [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:39]accept exits with 9 [05:43:39]New connection [05:43:39]New thread 3066510692 created [05:43:39]Thread 3066654052 joined [05:43:39]Waiting for new connection... [05:43:39] Sock 9.Parse request [05:43:39]Sock 9.Check first char [05:43:39]Sock 9.First char is OK [05:43:39]request: POST /json_proto HTTP/1.0 [05:43:39]Method: POST [05:43:39]URL: /json_proto [05:43:39]Method is POST - this is cgi request [05:43:39]url: /json_proto [05:43:39]query_string will be loaded in cgi processing [05:43:39]execute_cgi json_proto POST (null) [05:43:39]execute_cgi path=json_proto method=POST [05:43:39]POST find Content-Length [05:43:39]Host: 172.17.50.196:8080 [05:43:39]Content-Length: 687 [05:43:39]Content-Type: application/json [05:43:39] [05:43:39]POST finish read [05:43:39]Found Content-Length = 687 [05:43:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335708", "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" ] } } [05:43:39]execute_script... [05:43: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)335708", "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" ] } } [05:43:39]POST & json_proto [05:43:39]process_json_proto [05:43:39]json parsed OK: [05:43:39]protocol is kg_v1.0 [05:43:39]action value=close_receipt [05:43:39]process_action close_receipt [05:43:39]cmd_close_receipt [05:43:39]MH_GetDate [05:43:39]Write to MH i2c: F0 00 00 B6 46 EB [05:43:39]Write i2c OK [05:43:39]MH_I2C_Read... [05:43:39]Read from MH i2c: F0 [05:43:39]MH_I2C_Read... [05:43:39]Read from MH i2c: F0 09 00 [05:43:39]MH_I2C_Read... [05:43:39]Read from MH i2c: F0 09 00 B6 46 00 8F 6A 24 67 72 0D 1C 67 7A [05:43:39]GetLastDocTimeStamp 1730439177 [05:43:39]current date 1730439823 [05:43:39]FM_GetShiftState [05:43:39]SAM_PROTO_GetShiftState [05:43:39]wFMCommunicate request_size=4 [05:43:39]MH_SAM_APDU [05:43:39]CAPDU: 80 13 01 00 [05:43:39]Write to MH i2c: E2 08 00 B7 46 80 13 01 00 00 00 00 00 7A [05:43:39]Write i2c OK [05:43:39]MH_I2C_Read... [05:43:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:43:39]Read from MH i2c: E2 [05:43:39]MH_I2C_Read... [05:43:39]Read from MH i2c: E2 0E 00 [05:43:39]MH_I2C_Read... [05:43:39]Read from MH i2c: E2 0E 00 B7 46 00 09 00 01 89 19 24 67 00 00 00 00 90 00 B3 [05:43:39]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [05:43:39]wFMCommunicate OK [05:43:39]SAM_PROTO_GetShiftState done [05:43:39]FM_GetShiftState done [05:43:39]opened in 1730419081 [05:43:39]opened+sec_in_day 1730505481 [05:43:39]quantity*price = 5000 [05:43:39]sum+1 = 5001 [05:43:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 64 01.11.2024 05:43 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139883 ФПД: 174296649415696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T054343&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139883&fm=174296649415696&tin=02508201610067®Number=0000000000091631&sum=5000 0 [05:43:40]StoreToDocumentArchive [05:43:40]shift 558 fd 139883 [05:43:40]save to /storage/0558/doc_00139883 [05:43:40]save last doc name /storage/0558/doc_00139883 to /storage/kkm_last_doc_name [05:43:40]save OK [05:43:40]Clear old archive folders... [05:43:40]ProcessDocumentItem done err = 0, tmpTLVsize=298 [05:43:40]tlvbuf is 00AC6FC0 [05:43:40]SAM_PROTO_ClearQueue [05:43:40]wFMCommunicate request_size=4 [05:43:40]MH_SAM_APDU [05:43:40]CAPDU: 80 09 00 00 [05:43:40]Write to MH i2c: E2 08 00 C4 46 80 09 00 00 00 00 00 00 7C [05:43:40]Write i2c OK [05:43:40]MH_I2C_Read... [05:43:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:43:40]Read from MH i2c: E2 [05:43:40]MH_I2C_Read... [05:43:40]Read from MH i2c: E2 03 00 [05:43:40]MH_I2C_Read... [05:43:40]Read from MH i2c: E2 03 00 C4 46 00 90 00 7E [05:43:40]RAPDU: 90 00 [05:43:40]wFMCommunicate OK [05:43:40]SAM_PROTO_ClearQueue done [05:43:40]KKMCreateOFDPacket [05:43:40]OFDProtocolAddRootSTLVToBuf [05:43:40]FM_MakeSignedData [05:43:40]FM_MakeSignedData [05:43:40]SAM_PROTO_SignData [05:43:40]wFMCommunicate request_size=4 [05:43:40]MH_SAM_APDU [05:43:40]CAPDU: 80 0D 01 02 [05:43:40]Write to MH i2c: E2 08 00 C5 46 80 0D 01 02 00 00 00 00 84 [05:43:40]Write i2c OK [05:43:40]MH_I2C_Read... [05:43:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:43:40]Read from MH i2c: E2 [05:43:40]MH_I2C_Read... [05:43:40]Read from MH i2c: E2 03 00 [05:43:40]MH_I2C_Read... [05:43:40]Read from MH i2c: E2 03 00 C5 46 00 90 00 7F [05:43:40]RAPDU: 90 00 [05:43:40]wFMCommunicate OK [05:43:40]wFMCommunicate request_size=255 [05:43:40]MH_SAM_APDU [05:43:40]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 40 00 00 00 F4 03 04 00 8F 6A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [05:43:40]Write to MH i2c: E2 02 01 C6 46 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 40 00 00 00 F4 03 04 00 8F 6A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 78 [05:43:40]Write i2c OK [05:43:40]MH_I2C_Read... [05:43:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:43:40]Read from MH i2c: E2 [05:43:40]MH_I2C_Read... [05:43:40]Read from MH i2c: E2 03 00 [05:43:40]MH_I2C_Read... [05:43:40]Read from MH i2c: E2 03 00 C6 46 00 90 00 80 [05:43:40]RAPDU: 90 00 [05:43:40]wFMCommunicate OK [05:43:40]wFMCommunicate request_size=57 [05:43:40]MH_SAM_APDU [05:43:40]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6B 22 02 00 35 04 06 00 9E 85 99 DF BC 10 [05:43:40]Write to MH i2c: E2 3C 00 C7 46 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6B 22 02 00 35 04 06 00 9E 85 99 DF BC 10 00 00 3D [05:43:40]Write i2c OK [05:43:40]MH_I2C_Read... [05:43:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:43:40]Read from MH i2c: E2 [05:43:40]MH_I2C_Read... [05:43:40]Read from MH i2c: E2 03 00 [05:43:40]MH_I2C_Read... [05:43:40]Read from MH i2c: E2 03 00 C7 46 00 90 00 81 [05:43:40]RAPDU: 90 00 [05:43:40]wFMCommunicate OK [05:43:40]wFMCommunicate request_size=4 [05:43:40]MH_SAM_APDU [05:43:40]CAPDU: 80 0D 03 02 [05:43:40]Write to MH i2c: E2 08 00 C8 46 80 0D 03 02 00 00 00 00 89 [05:43:40]Write i2c OK [05:43:40]MH_I2C_Read... [05:43:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:43:40]Read from MH i2c: E2 [05:43:40]MH_I2C_Read... [05:43:40]Read from MH i2c: E2 0B 00 [05:43:40]MH_I2C_Read... [05:43:40]Read from MH i2c: E2 0B 00 C8 46 00 86 B7 0D 61 B1 F2 05 5E 90 00 3B [05:43:40]RAPDU: 86 B7 0D 61 B1 F2 05 5E 90 00 [05:43:40]wFMCommunicate OK [05:43:40]SAM_PROTO_SignData done [05:43:40]FM_MakeSignedData done [05:43:40]CreateOFDProtocolMessage [05:43:40]wFMCommunicate request_size=4 [05:43:40]MH_SAM_APDU [05:43:40]CAPDU: 80 11 00 00 [05:43:40]Write to MH i2c: E2 08 00 C9 46 80 11 00 00 00 00 00 00 89 [05:43:40]Write i2c OK [05:43:40]MH_I2C_Read... [05:43:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:43:40]Read from MH i2c: E2 [05:43:40]MH_I2C_Read... [05:43:40]Read from MH i2c: E2 17 00 [05:43:40]MH_I2C_Read... [05:43:40]Read from MH i2c: E2 17 00 C9 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E4 [05:43:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:43:40]wFMCommunicate OK [05:43:40]CreateOFDProtocolMessage done [05:43:40]OFDSenderStorePacket 139883 [05:43:40]StoreOFDPacket docnum=139883 [05:43:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3E 01 00 00 C2 7A 36 01 E0 98 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 40 00 00 00 F4 03 04 00 8F 6A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6B 22 02 00 35 04 06 00 9E 85 99 DF BC 10 86 B7 0D 61 B1 F2 05 5E [05:43:40]CheckFolder [05:43:40]dirname=/storage/ofd_packets [05:43:40]CheckFolder done [05:43:40]ProducePacketName [05:43:40]name=ofd_packets/00139883 [05:43:40]NVStorageSaveData ofd_packets/00139883 [05:43:40]File name is /storage/ofd_packets/00139883 [05:43:40]Write 348 bytes [05:43:40]NVStorageSaveData done [05:43:40]OFDSenderStorePacket done [05:43:40]KKMCreateOFDPacket done [05:43:40]NVStorageSaveData kkm_last_timestamp [05:43:40]File name is /storage/kkm_last_timestamp [05:43:40]Write 4 bytes [05:43:40]NVStorageSaveData done [05:43:40]ExternCall_PrintAddStr [05:43:40]wPrintStart [05:43:40]Write to MH i2c: 01 00 00 CA 46 10 [05:43:40]Write i2c OK [05:43:40]MH_I2C_Read... [05:43:40]Read from MH i2c: 01 [05:43:40]MH_I2C_Read... [05:43:40]Read from MH i2c: 01 07 00 [05:43:40]MH_I2C_Read... [05:43:40]Read from MH i2c: 01 07 00 CA 46 00 00 00 00 00 FF 0F 25 [05:43:40]RasterBufferAndPrint [05:43:40]line Счет N : (3)335708 [05:43:40]line ИНН: 02508201610067 [05:43:40]line Контрольно-Кассовый Чек [05:43:40]line ПРОДАЖА [05:43:40]line Товар: 4700003010032 [05:43:40]line Чай хол Let`s Go! чер персик ПЭТ 0,5л [05:43:40]line 1.000 * 50.00 [05:43:40]line = 50.00 [05:43:40]line НДС 12% НСП 1% [05:43:40]line > о реализуемом товаре [05:43:40]line ИТОГО: 50.00 [05:43:40]line НСП 1% : 0.44 [05:43:40]line НДС 12% : 5.31 [05:43:40]line Наличными: 50.00 [05:43:40]line Безнал.: 0.00 [05:43:40]line Место: АЗС № 101 "Партнер Нефть" [05:43:40]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [05:43:40]line СНО: Общий режим [05:43:40]line Чек 64 01.11.2024 05:43 [05:43:40]line Смена: 558 ФФД: 1.0 [05:43:40]line ЗНМ: 0300000081 [05:43:40]line РНМ: 0000000000091631 [05:43:40]line Версия ККМ: 001 [05:43:40]line ФМ: 0000000000874669 [05:43:40]line ФД: 139883 [05:43:40]line ФПД: 174296649415696 [05:43:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T054343&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139883&fm=174296649415696&tin=02508201610067®Number=0000000000091631&sum=5000 [05:43:41]line 0 [05:43:41]OFD Sender: Processing packet 139883 [packets to send 34, broken 33] [05:43:41]ProducePacketName [05:43:41]name=ofd_packets/00139883 [05:43:41]OFD Sender: To server: pG, [05:43:41]CommunicateWithHost lk.salyk.kg:30040 [05:43:41]ConnectInit lk.salyk.kg [05:43:41]written 0, free lines is 4095 [05:43:41]Connected sock=10 [05:43:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3E 01 00 00 C2 7A 36 01 E0 98 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 40 00 00 00 F4 03 04 00 8F 6A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6B 22 02 00 35 04 06 00 9E 85 99 DF BC 10 86 B7 0D 61 B1 F2 05 5E [05:43:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 EE 2A 47 00 DE 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 34 36 36 39 10 04 04 00 6B 22 02 00 F4 03 04 00 3B 16 24 67 B6 04 01 00 00 8F 10 54 87 A8 64 42 70 [05:43:41]CommunicateWithHost err = 0 [05:43:41]CheckOFDResponse [05:43:41]1017 (14) - 77093643461234 [05:43:41]1041 (16) - 0000000000874669 [05:43:41]1040 (4) - 139883 [05:43:41]1012 (4) - 31.10.2024 23:43 [05:43:41]1206 (1) - 0 [05:43:41]OFD Sender: Remove packet 139883 [05:43:41]ProducePacketName [05:43:41]name=ofd_packets/00139883 [05:43:41]NVStorageDeleteData [05:43:41]Write to MH i2c: 01 00 00 F3 46 39 [05:43:41]Write i2c OK [05:43:41]MH_I2C_Read... [05:43:41]Read from MH i2c: 01 [05:43:41]MH_I2C_Read... [05:43:41]Read from MH i2c: 01 07 00 [05:43:41]MH_I2C_Read... [05:43:41]Read from MH i2c: 01 07 00 F3 46 00 00 00 00 00 F8 0C 44 [05:43:41]RasterBufferAndPrint [05:43:41]line [05:43:41]line [05:43:41]line [05:43:41]line [05:43:41]line [05:43:41]written 0, free lines is 3326 [05:43:41]MH_Cut [05:43:41]Write to MH i2c: D1 01 00 FA 46 01 12 [05:43:41]Write i2c OK [05:43:41]MH_I2C_Read... [05:43:41]Read from MH i2c: D1 [05:43:41]MH_I2C_Read... [05:43:41]Read from MH i2c: D1 01 00 [05:43:41]MH_I2C_Read... [05:43:41]Read from MH i2c: D1 01 00 FA 46 00 11 [05:43:41]Write to MH i2c: 01 00 00 FB 46 41 [05:43:41]Write i2c OK [05:43:41]MH_I2C_Read... [05:43:41]OFD Sender: No OFD packet to send [05:43:42]*** Cut start [05:43:42]*** Partial cut [05:43:42]*** CUTSNS_PIN = 1 [05:43:42]*** CUTSNS_PIN = 0 [05:43:42]*** Brake cut motor [05:43:42]Read from MH i2c: 01 [05:43:42]MH_I2C_Read... [05:43:42]*** Stop cut motor [05:43:42]*** Cut end [05:43:42]Read from MH i2c: 01 07 00 [05:43:42]MH_I2C_Read... [05:43:42]Read from MH i2c: 01 07 00 FB 46 00 00 00 00 00 FF 0F 56 [05:43:42]process_action close_receipt done [05:43:42]requested_data is exist [05:43:42]produce_requested_data [05:43:42]requested_item fm.sn is exist - process it [05:43:42]wFMCommunicate request_size=4 [05:43:42]MH_SAM_APDU [05:43:42]CAPDU: 80 11 00 00 [05:43:42]Write to MH i2c: E2 08 00 FC 46 80 11 00 00 00 00 00 00 BC [05:43:42]Write i2c OK [05:43:42]MH_I2C_Read... [05:43:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:43:42]Read from MH i2c: E2 [05:43:42]MH_I2C_Read... [05:43:42]Read from MH i2c: E2 17 00 [05:43:42]MH_I2C_Read... [05:43:42]Read from MH i2c: E2 17 00 FC 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 17 [05:43:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:43:42]wFMCommunicate OK [05:43:42]requested_item fd.num is exist - process it [05:43:42]SAM_PROTO_GetFieldsCounters [05:43:42]wFMCommunicate request_size=4 [05:43:42]MH_SAM_APDU [05:43:42]CAPDU: 80 13 00 00 [05:43:42]Write to MH i2c: E2 08 00 FD 46 80 13 00 00 00 00 00 00 BF [05:43:42]Write i2c OK [05:43:42]MH_I2C_Read... [05:43:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:43:43]Read from MH i2c: E2 [05:43:43]MH_I2C_Read... [05:43:43]Read from MH i2c: E2 62 00 [05:43:43]MH_I2C_Read... [05:43:43]Read from MH i2c: E2 62 00 FD 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 6B 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [05:43:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 6B 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:43:43]wFMCommunicate OK [05:43:43]SAM_PROTO_GetFieldsCounters done [05:43:43]requested_item shift.num is exist - process it [05:43:43]requested_item shift.opened is exist - process it [05:43:43]req_shift_opened [05:43:43]FM_GetShiftState [05:43:43]SAM_PROTO_GetShiftState [05:43:43]wFMCommunicate request_size=4 [05:43:43]MH_SAM_APDU [05:43:43]CAPDU: 80 13 01 00 [05:43:43]Write to MH i2c: E2 08 00 FE 46 80 13 01 00 00 00 00 00 C1 [05:43:43]Write i2c OK [05:43:43]MH_I2C_Read... [05:43:43]Read from MH i2c: E2 [05:43:43]MH_I2C_Read... [05:43:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:43:43]Read from MH i2c: E2 0E 00 [05:43:43]MH_I2C_Read... [05:43:43]Read from MH i2c: E2 0E 00 FE 46 00 09 00 01 89 19 24 67 00 00 00 00 90 00 FA [05:43:43]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [05:43:43]wFMCommunicate OK [05:43:43]SAM_PROTO_GetShiftState done [05:43:43]FM_GetShiftState done [05:43:43]req_shift_opened done [05:43:43]requested_item shift.open_date is exist - process it [05:43:43]req_shift_open_date [05:43:43]req_shift_open_date done [05:43:43]produce_requested_data done [05:43:43]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139883,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [05:43:43]process_action_free close_receipt [05:43:43]json_value_free [05:43:43]json_value_free done [05:43:43]process_json_proto returns [05:43:43]Send response to host [05:43:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139883,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [05:43:43]free response buf [05:43:43]execute_script done [05:43:43]execute_script returns [05:43:43]free content buf [05:43:43]Sock 9.Close socket [05:43:43]Sock 9.Thread stoped [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:38]accept exits with 7 [05:44:38]New connection [05:44:38]New thread 3066654052 created [05:44:38]Thread 3066510692 joined [05:44:38]Waiting for new connection... [05:44:38] Sock 7.Parse request [05:44:38]Sock 7.Check first char [05:44:38]Sock 7.First char is OK [05:44:38]request: POST /json_proto HTTP/1.0 [05:44:38]Method: POST [05:44:38]URL: /json_proto [05:44:38]Method is POST - this is cgi request [05:44:38]url: /json_proto [05:44:38]query_string will be loaded in cgi processing [05:44:38]execute_cgi json_proto POST (null) [05:44:38]execute_cgi path=json_proto method=POST [05:44:38]POST find Content-Length [05:44:38]Host: 172.17.50.196:8080 [05:44:38]Content-Length: 1008 [05:44:38]Content-Type: application/json [05:44:38] [05:44:38]POST finish read [05:44:38]Found Content-Length = 1008 [05:44:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335709", "tax_sys" : 0, "items" : [ { "code": "46227720", "name": "\u0420/\u0436 mentos pure fresh \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u0440\u043E\u043B\u043B 15,5", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 44.00, "quantity" : 1.000, "sum" : 44.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 93.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:44:38]execute_script... [05:44: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)335709", "tax_sys" : 0, "items" : [ { "code": "46227720", "name": "\u0420/\u0436 mentos pure fresh \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u0440\u043E\u043B\u043B 15,5", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 44.00, "quantity" : 1.000, "sum" : 44.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 93.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:44:38]POST & json_proto [05:44:38]process_json_proto [05:44:38]json parsed OK: [05:44:38]protocol is kg_v1.0 [05:44:38]action value=close_receipt [05:44:38]process_action close_receipt [05:44:38]cmd_close_receipt [05:44:38]MH_GetDate [05:44:38]Write to MH i2c: F0 00 00 FF 46 34 [05:44:38]Write i2c OK [05:44:38]MH_I2C_Read... [05:44:38]Read from MH i2c: F0 [05:44:38]MH_I2C_Read... [05:44:38]Read from MH i2c: F0 09 00 [05:44:38]MH_I2C_Read... [05:44:38]Read from MH i2c: F0 09 00 FF 46 00 CA 6A 24 67 72 0D 1C 67 FE [05:44:38]GetLastDocTimeStamp 1730439823 [05:44:38]current date 1730439882 [05:44:38]FM_GetShiftState [05:44:38]SAM_PROTO_GetShiftState [05:44:38]wFMCommunicate request_size=4 [05:44:38]MH_SAM_APDU [05:44:38]CAPDU: 80 13 01 00 [05:44:38]Write to MH i2c: E2 08 00 00 47 80 13 01 00 00 00 00 00 C4 [05:44:38]Write i2c OK [05:44:38]MH_I2C_Read... [05:44:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:44:38]Read from MH i2c: E2 [05:44:38]MH_I2C_Read... [05:44:38]Read from MH i2c: E2 0E 00 [05:44:38]MH_I2C_Read... [05:44:38]Read from MH i2c: E2 0E 00 00 47 00 09 00 01 89 19 24 67 00 00 00 00 90 00 FD [05:44:38]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [05:44:38]wFMCommunicate OK [05:44:38]SAM_PROTO_GetShiftState done [05:44:38]FM_GetShiftState done [05:44:38]opened in 1730419081 [05:44:38]opened+sec_in_day 1730505481 [05:44:38]quantity*price = 4900 [05:44:38]sum+1 = 4901 [05:44:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112003925 Конд ULKER-Albeni 40gr (6*24) 1.000 * 44.00 = 44.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 93.00 НСП 1% : 0.82 НДС 12% : 9.87 Наличными: 0.00 Безнал.: 93.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 65 01.11.2024 05:44 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139884 ФПД: 220523283001373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T054442&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139884&fm=220523283001373&tin=02508201610067®Number=0000000000091631&sum=9300 0 [05:44:39]StoreToDocumentArchive [05:44:39]shift 558 fd 139884 [05:44:39]save to /storage/0558/doc_00139884 [05:44:39]save last doc name /storage/0558/doc_00139884 to /storage/kkm_last_doc_name [05:44:39]save OK [05:44:39]Clear old archive folders... [05:44:39]ProcessDocumentItem done err = 0, tmpTLVsize=396 [05:44:39]tlvbuf is 00A43A40 [05:44:39]SAM_PROTO_ClearQueue [05:44:39]wFMCommunicate request_size=4 [05:44:39]MH_SAM_APDU [05:44:39]CAPDU: 80 09 00 00 [05:44:39]Write to MH i2c: E2 08 00 0D 47 80 09 00 00 00 00 00 00 C6 [05:44:39]Write i2c OK [05:44:39]MH_I2C_Read... [05:44:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:44:39]Read from MH i2c: E2 [05:44:39]MH_I2C_Read... [05:44:39]Read from MH i2c: E2 03 00 [05:44:39]MH_I2C_Read... [05:44:39]Read from MH i2c: E2 03 00 0D 47 00 90 00 C8 [05:44:39]RAPDU: 90 00 [05:44:39]wFMCommunicate OK [05:44:39]SAM_PROTO_ClearQueue done [05:44:39]KKMCreateOFDPacket [05:44:39]OFDProtocolAddRootSTLVToBuf [05:44:39]FM_MakeSignedData [05:44:39]FM_MakeSignedData [05:44:39]SAM_PROTO_SignData [05:44:39]wFMCommunicate request_size=4 [05:44:39]MH_SAM_APDU [05:44:39]CAPDU: 80 0D 01 02 [05:44:39]Write to MH i2c: E2 08 00 0E 47 80 0D 01 02 00 00 00 00 CE [05:44:39]Write i2c OK [05:44:39]MH_I2C_Read... [05:44:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:44:39]Read from MH i2c: E2 [05:44:39]MH_I2C_Read... [05:44:39]Read from MH i2c: E2 03 00 [05:44:39]MH_I2C_Read... [05:44:39]Read from MH i2c: E2 03 00 0E 47 00 90 00 C9 [05:44:39]RAPDU: 90 00 [05:44:39]wFMCommunicate OK [05:44:39]wFMCommunicate request_size=255 [05:44:39]MH_SAM_APDU [05:44:39]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 30 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 24 00 00 00 00 EB 03 26 00 EF [05:44:39]Write to MH i2c: E2 02 01 0F 47 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 30 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 24 00 00 00 00 EB 03 26 00 EF 00 00 B9 [05:44:39]Write i2c OK [05:44:39]MH_I2C_Read... [05:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:44:39]Read from MH i2c: E2 [05:44:39]MH_I2C_Read... [05:44:39]Read from MH i2c: E2 03 00 [05:44:39]MH_I2C_Read... [05:44:39]Read from MH i2c: E2 03 00 0F 47 00 90 00 CA [05:44:39]RAPDU: 90 00 [05:44:39]wFMCommunicate OK [05:44:39]wFMCommunicate request_size=155 [05:44:39]MH_SAM_APDU [05:44:39]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 24 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CA 6A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6C 22 02 00 35 04 06 00 C8 90 93 F2 B0 1D [05:44:39]Write to MH i2c: E2 9E 00 10 47 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 24 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CA 6A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6C 22 02 00 35 04 06 00 C8 90 93 F2 B0 1D 00 00 4C [05:44:39]Write i2c OK [05:44:39]MH_I2C_Read... [05:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:44:39]Read from MH i2c: E2 [05:44:39]MH_I2C_Read... [05:44:39]Read from MH i2c: E2 03 00 [05:44:39]MH_I2C_Read... [05:44:39]Read from MH i2c: E2 03 00 10 47 00 90 00 CB [05:44:39]RAPDU: 90 00 [05:44:39]wFMCommunicate OK [05:44:39]wFMCommunicate request_size=4 [05:44:39]MH_SAM_APDU [05:44:39]CAPDU: 80 0D 03 02 [05:44:39]Write to MH i2c: E2 08 00 11 47 80 0D 03 02 00 00 00 00 D3 [05:44:39]Write i2c OK [05:44:39]MH_I2C_Read... [05:44:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:44:40]Read from MH i2c: E2 [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: E2 0B 00 [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: E2 0B 00 11 47 00 8E 3A B2 F8 14 3C 8D 59 90 00 7C [05:44:40]RAPDU: 8E 3A B2 F8 14 3C 8D 59 90 00 [05:44:40]wFMCommunicate OK [05:44:40]SAM_PROTO_SignData done [05:44:40]FM_MakeSignedData done [05:44:40]CreateOFDProtocolMessage [05:44:40]wFMCommunicate request_size=4 [05:44:40]MH_SAM_APDU [05:44:40]CAPDU: 80 11 00 00 [05:44:40]Write to MH i2c: E2 08 00 12 47 80 11 00 00 00 00 00 00 D3 [05:44:40]Write i2c OK [05:44:40]MH_I2C_Read... [05:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:44:40]Read from MH i2c: E2 [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: E2 17 00 [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: E2 17 00 12 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2E [05:44:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:44:40]wFMCommunicate OK [05:44:40]CreateOFDProtocolMessage done [05:44:40]OFDSenderStorePacket 139884 [05:44:40]StoreOFDPacket docnum=139884 [05:44:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 A0 01 00 00 33 1A 98 01 DB BF 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 30 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 24 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 24 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CA 6A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6C 22 02 00 35 04 06 00 C8 90 93 F2 B0 1D 8E 3A B2 F8 14 3C 8D 59 [05:44:40]CheckFolder [05:44:40]dirname=/storage/ofd_packets [05:44:40]CheckFolder done [05:44:40]ProducePacketName [05:44:40]name=ofd_packets/00139884 [05:44:40]NVStorageSaveData ofd_packets/00139884 [05:44:40]File name is /storage/ofd_packets/00139884 [05:44:40]Write 446 bytes [05:44:40]NVStorageSaveData done [05:44:40]OFDSenderStorePacket done [05:44:40]KKMCreateOFDPacket done [05:44:40]NVStorageSaveData kkm_last_timestamp [05:44:40]File name is /storage/kkm_last_timestamp [05:44:40]Write 4 bytes [05:44:40]NVStorageSaveData done [05:44:40]ExternCall_PrintAddStr [05:44:40]wPrintStart [05:44:40]Write to MH i2c: 01 00 00 13 47 5A [05:44:40]Write i2c OK [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: 01 [05:44:40]MH_I2C_Read... [05:44:40]OFD Sender: Processing packet 139884 [packets to send 34, broken 33] [05:44:40]Read from MH i2c: ProducePacketName [05:44:40]01 name=ofd_packets/00139884 [05:44:40]07 00 OFD Sender: To server: pG, [05:44:40] [05:44:40]CommunicateWithHost lk.salyk.kg:30040 [05:44:40]MH_I2C_Read... [05:44:40]ConnectInit lk.salyk.kg [05:44:40]Read from MH i2c: 01 07 00 13 47 00 00 00 00 00 FF 0F 6F [05:44:40]RasterBufferAndPrint [05:44:40]line Счет N : (3)335709 [05:44:40]line ИНН: 02508201610067 [05:44:40]line Контрольно-Кассовый Чек [05:44:40]line ПРОДАЖА [05:44:40]line Товар: 46227720 [05:44:40]line Р/ж mentos pure fresh виноград ролл 15,5 [05:44:40]line 1.000 * 49.00 [05:44:40]line = 49.00 [05:44:40]line НДС 12% НСП 1% [05:44:40]line > о реализуемом товаре [05:44:40]line Товар: 4870112003925 [05:44:40]line Конд ULKER-Albeni 40gr (6*24) [05:44:40]line 1.000 * 44.00 [05:44:40]line = 44.00 [05:44:40]line НДС 12% НСП 1% [05:44:40]line > о реализуемом товаре [05:44:40]line ИТОГО: 93.00 [05:44:40]line НСП 1% : 0.82 [05:44:40]line НДС 12% : 9.87 [05:44:40]line Наличными: 0.00 [05:44:40]line Безнал.: 93.00 [05:44:40]line Место: АЗС № 101 "Партнер Нефть" [05:44:40]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [05:44:40]line СНО: Общий режим [05:44:40]line Чек 65 01.11.2024 05:44 [05:44:40]line Смена: 558 ФФД: 1.0 [05:44:40]line ЗНМ: 0300000081 [05:44:40]line РНМ: 0000000000091631 [05:44:40]line Версия ККМ: 001 [05:44:40]line Платежная система: Mbank [05:44:40]line ФМ: 0000000000874669 [05:44:40]line ФД: 139884 [05:44:40]line ФПД: 220523283001373 [05:44:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T054442&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139884&fm=220523283001373&tin=02508201610067®Number=0000000000091631&sum=9300 [05:44:40]line 0 [05:44:40]written 0, free lines is 4095 [05:44:40]Connected sock=10 [05:44:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 A0 01 00 00 33 1A 98 01 DB BF 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 30 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 24 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 24 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CA 6A 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6C 22 02 00 35 04 06 00 C8 90 93 F2 B0 1D 8E 3A B2 F8 14 3C 8D 59 [05:44:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 5F 6B 47 00 09 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6C 22 02 00 F4 03 04 00 76 16 24 67 B6 04 01 00 00 36 C0 0B 62 6E 25 2D 76 [05:44:40]CommunicateWithHost err = 0 [05:44:40]CheckOFDResponse [05:44:40]1017 (14) - 77093643461234 [05:44:40]1041 (16) - 0000000000874669 [05:44:40]1040 (4) - 139884 [05:44:40]1012 (4) - 31.10.2024 23:44 [05:44:40]1206 (1) - 0 [05:44:40]OFD Sender: Remove packet 139884 [05:44:40]ProducePacketName [05:44:40]name=ofd_packets/00139884 [05:44:40]NVStorageDeleteData [05:44:40]Write to MH i2c: 01 00 00 43 47 8A [05:44:40]Write i2c OK [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: 01 [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: 01 07 00 [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: 01 07 00 43 47 00 00 00 00 00 C5 0C 62 [05:44:40]RasterBufferAndPrint [05:44:40]line [05:44:40]line [05:44:40]line [05:44:40]line [05:44:40]line [05:44:40]written 0, free lines is 3278 [05:44:40]MH_Cut [05:44:40]Write to MH i2c: D1 01 00 4A 47 01 63 [05:44:40]Write i2c OK [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: D1 [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: D1 01 00 [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: D1 01 00 4A 47 00 62 [05:44:40]Write to MH i2c: 01 00 00 4B 47 92 [05:44:40]Write i2c OK [05:44:40]MH_I2C_Read... [05:44:41]OFD Sender: No OFD packet to send [05:44:41]*** Cut start [05:44:41]*** Partial cut [05:44:41]*** CUTSNS_PIN = 1 [05:44:41]*** CUTSNS_PIN = 0 [05:44:41]*** Brake cut motor [05:44:42]Read from MH i2c: 01 [05:44:42]MH_I2C_Read... [05:44:42]*** Stop cut motor [05:44:42]*** Cut end [05:44:42]Read from MH i2c: 01 07 00 [05:44:42]MH_I2C_Read... [05:44:42]Read from MH i2c: 01 07 00 4B 47 00 00 00 00 00 FF 0F A7 [05:44:42]process_action close_receipt done [05:44:42]requested_data is exist [05:44:42]produce_requested_data [05:44:42]requested_item fm.sn is exist - process it [05:44:42]wFMCommunicate request_size=4 [05:44:42]MH_SAM_APDU [05:44:42]CAPDU: 80 11 00 00 [05:44:42]Write to MH i2c: E2 08 00 4C 47 80 11 00 00 00 00 00 00 0D [05:44:42]Write i2c OK [05:44:42]MH_I2C_Read... [05:44:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:44:42]Read from MH i2c: E2 [05:44:42]MH_I2C_Read... [05:44:42]Read from MH i2c: E2 17 00 [05:44:42]MH_I2C_Read... [05:44:42]Read from MH i2c: E2 17 00 4C 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 68 [05:44:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:44:42]wFMCommunicate OK [05:44:42]requested_item fd.num is exist - process it [05:44:42]SAM_PROTO_GetFieldsCounters [05:44:42]wFMCommunicate request_size=4 [05:44:42]MH_SAM_APDU [05:44:42]CAPDU: 80 13 00 00 [05:44:42]Write to MH i2c: E2 08 00 4D 47 80 13 00 00 00 00 00 00 10 [05:44:42]Write i2c OK [05:44:42]MH_I2C_Read... [05:44:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:44:42]Read from MH i2c: E2 [05:44:42]MH_I2C_Read... [05:44:42]Read from MH i2c: E2 62 00 [05:44:42]MH_I2C_Read... [05:44:42]Read from MH i2c: E2 62 00 4D 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 6C 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [05:44:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 6C 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:44:42]wFMCommunicate OK [05:44:42]SAM_PROTO_GetFieldsCounters done [05:44:42]requested_item shift.num is exist - process it [05:44:42]requested_item shift.opened is exist - process it [05:44:42]req_shift_opened [05:44:42]FM_GetShiftState [05:44:42]SAM_PROTO_GetShiftState [05:44:42]wFMCommunicate request_size=4 [05:44:42]MH_SAM_APDU [05:44:42]CAPDU: 80 13 01 00 [05:44:42]Write to MH i2c: E2 08 00 4E 47 80 13 01 00 00 00 00 00 12 [05:44:42]Write i2c OK [05:44:42]MH_I2C_Read... [05:44:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:44:42]Read from MH i2c: E2 [05:44:42]MH_I2C_Read... [05:44:42]Read from MH i2c: E2 0E 00 [05:44:42]MH_I2C_Read... [05:44:42]Read from MH i2c: E2 0E 00 4E 47 00 09 00 01 89 19 24 67 00 00 00 00 90 00 4B [05:44:42]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [05:44:42]wFMCommunicate OK [05:44:42]SAM_PROTO_GetShiftState done [05:44:42]FM_GetShiftState done [05:44:42]req_shift_opened done [05:44:42]requested_item shift.open_date is exist - process it [05:44:42]req_shift_open_date [05:44:42]req_shift_open_date done [05:44:42]produce_requested_data done [05:44:42]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139884,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [05:44:42]process_action_free close_receipt [05:44:42]json_value_free [05:44:42]json_value_free done [05:44:42]process_json_proto returns [05:44:42]Send response to host [05:44:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139884,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [05:44:42]free response buf [05:44:42]execute_script done [05:44:42]execute_script returns [05:44:42]free content buf [05:44:42]Sock 7.Close socket [05:44:42]Sock 7.Thread stoped [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:34]accept exits with 9 [05:45:34]New connection [05:45:34]New thread 3066510692 created [05:45:34]Thread 3066654052 joined [05:45:34]Waiting for new connection... [05:45:34] Sock 9.Parse request [05:45:34]Sock 9.Check first char [05:45:34]Sock 9.First char is OK [05:45:34]request: POST /json_proto HTTP/1.0 [05:45:34]Method: POST [05:45:34]URL: /json_proto [05:45:34]Method is POST - this is cgi request [05:45:34]url: /json_proto [05:45:34]query_string will be loaded in cgi processing [05:45:34]execute_cgi json_proto POST (null) [05:45:34]execute_cgi path=json_proto method=POST [05:45:34]POST find Content-Length [05:45:34]Host: 172.17.50.196:8080 [05:45:34]Content-Length: 757 [05:45:34]Content-Type: application/json [05:45:34] [05:45:34]POST finish read [05:45:34]Found Content-Length = 757 [05:45:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335710", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:45:34]execute_script... [05:45: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)335710", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:45:34]POST & json_proto [05:45:34]process_json_proto [05:45:34]json parsed OK: [05:45:34]protocol is kg_v1.0 [05:45:34]action value=close_receipt [05:45:34]process_action close_receipt [05:45:34]cmd_close_receipt [05:45:34]MH_GetDate [05:45:34]Write to MH i2c: F0 00 00 4F 47 85 [05:45:34]Write i2c OK [05:45:34]MH_I2C_Read... [05:45:34]Read from MH i2c: F0 [05:45:34]MH_I2C_Read... [05:45:34]Read from MH i2c: F0 09 00 [05:45:34]MH_I2C_Read... [05:45:34]Read from MH i2c: F0 09 00 4F 47 00 03 6B 24 67 72 0D 1C 67 89 [05:45:34]GetLastDocTimeStamp 1730439882 [05:45:34]current date 1730439939 [05:45:34]FM_GetShiftState [05:45:34]SAM_PROTO_GetShiftState [05:45:34]wFMCommunicate request_size=4 [05:45:34]MH_SAM_APDU [05:45:34]CAPDU: 80 13 01 00 [05:45:34]Write to MH i2c: E2 08 00 50 47 80 13 01 00 00 00 00 00 14 [05:45:34]Write i2c OK [05:45:34]MH_I2C_Read... [05:45:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:45:34]Read from MH i2c: E2 [05:45:34]MH_I2C_Read... [05:45:34]Read from MH i2c: E2 0E 00 [05:45:34]MH_I2C_Read... [05:45:34]Read from MH i2c: E2 0E 00 50 47 00 09 00 01 89 19 24 67 00 00 00 00 90 00 4D [05:45:34]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [05:45:34]wFMCommunicate OK [05:45:34]SAM_PROTO_GetShiftState done [05:45:34]FM_GetShiftState done [05:45:34]opened in 1730419081 [05:45:34]opened+sec_in_day 1730505481 [05:45:34]quantity*price = 5000 [05:45:34]sum+1 = 5001 [05:45:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 0.00 Безнал.: 50.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 66 01.11.2024 05:45 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139885 ФПД: 66086741835668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T054539&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139885&fm=66086741835668&tin=02508201610067®Number=0000000000091631&sum=5000 0 [05:45:36]StoreToDocumentArchive [05:45:36]shift 558 fd 139885 [05:45:36]save to /storage/0558/doc_00139885 [05:45:36]save last doc name /storage/0558/doc_00139885 to /storage/kkm_last_doc_name [05:45:36]save OK [05:45:36]Clear old archive folders... [05:45:36]ProcessDocumentItem done err = 0, tmpTLVsize=269 [05:45:36]tlvbuf is 00A59620 [05:45:36]SAM_PROTO_ClearQueue [05:45:36]wFMCommunicate request_size=4 [05:45:36]MH_SAM_APDU [05:45:36]CAPDU: 80 09 00 00 [05:45:36]Write to MH i2c: E2 08 00 5D 47 80 09 00 00 00 00 00 00 16 [05:45:36]Write i2c OK [05:45:36]MH_I2C_Read... [05:45:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:45:36]Read from MH i2c: E2 [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: E2 03 00 [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: E2 03 00 5D 47 00 90 00 18 [05:45:36]RAPDU: 90 00 [05:45:36]wFMCommunicate OK [05:45:36]SAM_PROTO_ClearQueue done [05:45:36]KKMCreateOFDPacket [05:45:36]OFDProtocolAddRootSTLVToBuf [05:45:36]FM_MakeSignedData [05:45:36]FM_MakeSignedData [05:45:36]SAM_PROTO_SignData [05:45:36]wFMCommunicate request_size=4 [05:45:36]MH_SAM_APDU [05:45:36]CAPDU: 80 0D 01 02 [05:45:36]Write to MH i2c: E2 08 00 5E 47 80 0D 01 02 00 00 00 00 1E [05:45:36]Write i2c OK [05:45:36]MH_I2C_Read... [05:45:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:45:36]Read from MH i2c: E2 [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: E2 03 00 [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: E2 03 00 5E 47 00 90 00 19 [05:45:36]RAPDU: 90 00 [05:45:36]wFMCommunicate OK [05:45:36]wFMCommunicate request_size=255 [05:45:36]MH_SAM_APDU [05:45:36]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 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 42 00 00 00 F4 03 04 00 03 6B 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [05:45:36]Write to MH i2c: E2 02 01 5F 47 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 03 6B 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 9B [05:45:36]Write i2c OK [05:45:36]MH_I2C_Read... [05:45:36]OFD Sender: No OFD packet to send [05:45:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:45:36]Read from MH i2c: E2 [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: E2 03 00 [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: E2 03 00 5F 47 00 90 00 1A [05:45:36]RAPDU: 90 00 [05:45:36]wFMCommunicate OK [05:45:36]wFMCommunicate request_size=28 [05:45:36]MH_SAM_APDU [05:45:36]CAPDU: 80 0D 02 02 17 37 34 36 36 39 10 04 04 00 6D 22 02 00 35 04 06 00 3C 1B 04 C5 7F 94 [05:45:36]Write to MH i2c: E2 1F 00 60 47 80 0D 02 02 17 00 37 34 36 36 39 10 04 04 00 6D 22 02 00 35 04 06 00 3C 1B 04 C5 7F 94 00 00 7A [05:45:36]Write i2c OK [05:45:36]MH_I2C_Read... [05:45:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:45:36]Read from MH i2c: E2 [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: E2 03 00 [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: E2 03 00 60 47 00 90 00 1B [05:45:36]RAPDU: 90 00 [05:45:36]wFMCommunicate OK [05:45:36]wFMCommunicate request_size=4 [05:45:36]MH_SAM_APDU [05:45:36]CAPDU: 80 0D 03 02 [05:45:36]Write to MH i2c: E2 08 00 61 47 80 0D 03 02 00 00 00 00 23 [05:45:36]Write i2c OK [05:45:36]MH_I2C_Read... [05:45:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:45:36]Read from MH i2c: E2 [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: E2 0B 00 [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: E2 0B 00 61 47 00 C9 34 D6 F2 23 4C 49 E8 90 00 89 [05:45:36]RAPDU: C9 34 D6 F2 23 4C 49 E8 90 00 [05:45:36]wFMCommunicate OK [05:45:36]SAM_PROTO_SignData done [05:45:36]FM_MakeSignedData done [05:45:36]CreateOFDProtocolMessage [05:45:36]wFMCommunicate request_size=4 [05:45:36]MH_SAM_APDU [05:45:36]CAPDU: 80 11 00 00 [05:45:36]Write to MH i2c: E2 08 00 62 47 80 11 00 00 00 00 00 00 23 [05:45:36]Write i2c OK [05:45:36]MH_I2C_Read... [05:45:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:45:36]Read from MH i2c: E2 [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: E2 17 00 [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: E2 17 00 62 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 7E [05:45:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:45:36]wFMCommunicate OK [05:45:36]CreateOFDProtocolMessage done [05:45:36]OFDSenderStorePacket 139885 [05:45:36]StoreOFDPacket docnum=139885 [05:45:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 21 01 00 00 7A 41 19 01 B2 62 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 03 6B 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6D 22 02 00 35 04 06 00 3C 1B 04 C5 7F 94 C9 34 D6 F2 23 4C 49 E8 [05:45:36]CheckFolder [05:45:36]dirname=/storage/ofd_packets [05:45:36]CheckFolder done [05:45:36]ProducePacketName [05:45:36]name=ofd_packets/00139885 [05:45:36]NVStorageSaveData ofd_packets/00139885 [05:45:36]File name is /storage/ofd_packets/00139885 [05:45:36]Write 319 bytes [05:45:36]NVStorageSaveData done [05:45:36]OFDSenderStorePacket done [05:45:36]KKMCreateOFDPacket done [05:45:36]NVStorageSaveData kkm_last_timestamp [05:45:36]File name is /storage/kkm_last_timestamp [05:45:36]Write 4 bytes [05:45:36]NVStorageSaveData done [05:45:36]ExternCall_PrintAddStr [05:45:36]wPrintStart [05:45:36]Write to MH i2c: 01 00 00 63 47 AA [05:45:36]Write i2c OK [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: 01 [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: 01 07 00 [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: 01 07 00 63 47 00 00 00 00 00 FF 0F BF [05:45:36]RasterBufferAndPrint [05:45:36]line Счет N : (3)335710 [05:45:36]line ИНН: 02508201610067 [05:45:36]line Контрольно-Кассовый Чек [05:45:36]line ПРОДАЖА [05:45:36]line Товар: 4700000160358 [05:45:36]line Вода Легенда 1л [05:45:36]line 1.000 * 50.00 [05:45:36]line = 50.00 [05:45:36]line НДС 12% НСП 1% [05:45:36]line > о реализуемом товаре [05:45:36]line ИТОГО: 50.00 [05:45:36]line НСП 1% : 0.44 [05:45:36]line НДС 12% : 5.31 [05:45:36]line Наличными: 0.00 [05:45:36]line Безнал.: 50.00 [05:45:36]line Место: АЗС № 101 "Партнер Нефть" [05:45:36]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [05:45:36]line СНО: Общий режим [05:45:36]line Чек 66 01.11.2024 05:45 [05:45:36]line Смена: 558 ФФД: 1.0 [05:45:36]line ЗНМ: 0300000081 [05:45:36]line РНМ: 0000000000091631 [05:45:36]line Версия ККМ: 001 [05:45:36]line Платежная система: Mbank [05:45:36]line ФМ: 0000000000874669 [05:45:36]line ФД: 139885 [05:45:36]line ФПД: 66086741835668 [05:45:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T054539&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139885&fm=66086741835668&tin=02508201610067®Number=0000000000091631&sum=5000 [05:45:36]line 0 [05:45:36]OFD Sender: Processing packet 139885 [packets to send 34, broken 33] [05:45:36]ProducePacketName [05:45:36]name=ofd_packets/00139885 [05:45:37]OFD Sender: To server: pG, [05:45:37]CommunicateWithHost lk.salyk.kg:30040 [05:45:37]ConnectInit lk.salyk.kg [05:45:37]written 0, free lines is 4095 [05:45:37]Connected sock=10 [05:45:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 21 01 00 00 7A 41 19 01 B2 62 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 03 6B 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6D 22 02 00 35 04 06 00 3C 1B 04 C5 7F 94 C9 34 D6 F2 23 4C 49 E8 [05:45:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 7D 29 47 00 73 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 34 36 36 39 10 04 04 00 6D 22 02 00 F4 03 04 00 AE 16 24 67 B6 04 01 00 00 3E F2 D9 9D B8 36 76 AB [05:45:37]CommunicateWithHost err = 0 [05:45:37]CheckOFDResponse [05:45:37]1017 (14) - 77093643461234 [05:45:37]1041 (16) - 0000000000874669 [05:45:37]1040 (4) - 139885 [05:45:37]1012 (4) - 31.10.2024 23:45 [05:45:37]1206 (1) - 0 [05:45:37]OFD Sender: Remove packet 139885 [05:45:37]ProducePacketName [05:45:37]name=ofd_packets/00139885 [05:45:37]NVStorageDeleteData [05:45:37]Write to MH i2c: 01 00 00 8C 47 D3 [05:45:37]Write i2c OK [05:45:37]MH_I2C_Read... [05:45:37]Read from MH i2c: 01 [05:45:37]MH_I2C_Read... [05:45:37]Read from MH i2c: 01 07 00 [05:45:37]MH_I2C_Read... [05:45:37]Read from MH i2c: 01 07 00 8C 47 00 00 00 00 00 13 0D FA [05:45:37]RasterBufferAndPrint [05:45:37]line [05:45:37]line [05:45:37]line [05:45:37]line [05:45:37]line [05:45:37]written 0, free lines is 3353 [05:45:37]MH_Cut [05:45:37]Write to MH i2c: D1 01 00 93 47 01 AC [05:45:37]Write i2c OK [05:45:37]MH_I2C_Read... [05:45:37]Read from MH i2c: D1 [05:45:37]MH_I2C_Read... [05:45:37]Read from MH i2c: D1 01 00 [05:45:37]MH_I2C_Read... [05:45:37]Read from MH i2c: D1 01 00 93 47 00 AB [05:45:37]Write to MH i2c: 01 00 00 94 47 DB [05:45:37]Write i2c OK [05:45:37]MH_I2C_Read... [05:45:37]OFD Sender: No OFD packet to send [05:45:38]*** Cut start [05:45:38]*** Partial cut [05:45:38]*** CUTSNS_PIN = 1 [05:45:38]*** CUTSNS_PIN = 0 [05:45:38]*** Brake cut motor [05:45:38]Read from MH i2c: 01 [05:45:38]MH_I2C_Read... [05:45:38]*** Stop cut motor [05:45:38]*** Cut end [05:45:38]Read from MH i2c: 01 07 00 [05:45:38]MH_I2C_Read... [05:45:38]Read from MH i2c: 01 07 00 94 47 00 00 00 00 00 FF 0F F0 [05:45:38]process_action close_receipt done [05:45:38]requested_data is exist [05:45:38]produce_requested_data [05:45:38]requested_item fm.sn is exist - process it [05:45:38]wFMCommunicate request_size=4 [05:45:38]MH_SAM_APDU [05:45:38]CAPDU: 80 11 00 00 [05:45:38]Write to MH i2c: E2 08 00 95 47 80 11 00 00 00 00 00 00 56 [05:45:38]Write i2c OK [05:45:38]MH_I2C_Read... [05:45:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:45:38]Read from MH i2c: E2 [05:45:38]MH_I2C_Read... [05:45:38]Read from MH i2c: E2 17 00 [05:45:38]MH_I2C_Read... [05:45:38]Read from MH i2c: E2 17 00 95 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B1 [05:45:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:45:38]wFMCommunicate OK [05:45:38]requested_item fd.num is exist - process it [05:45:38]SAM_PROTO_GetFieldsCounters [05:45:38]wFMCommunicate request_size=4 [05:45:38]MH_SAM_APDU [05:45:38]CAPDU: 80 13 00 00 [05:45:38]Write to MH i2c: E2 08 00 96 47 80 13 00 00 00 00 00 00 59 [05:45:38]Write i2c OK [05:45:38]MH_I2C_Read... [05:45:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:45:38]Read from MH i2c: E2 [05:45:38]MH_I2C_Read... [05:45:38]Read from MH i2c: E2 62 00 [05:45:38]MH_I2C_Read... [05:45:38]Read from MH i2c: E2 62 00 96 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 6D 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [05:45:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 6D 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:45:38]wFMCommunicate OK [05:45:38]SAM_PROTO_GetFieldsCounters done [05:45:38]requested_item shift.num is exist - process it [05:45:38]requested_item shift.opened is exist - process it [05:45:38]req_shift_opened [05:45:38]FM_GetShiftState [05:45:38]SAM_PROTO_GetShiftState [05:45:38]wFMCommunicate request_size=4 [05:45:38]MH_SAM_APDU [05:45:38]CAPDU: 80 13 01 00 [05:45:38]Write to MH i2c: E2 08 00 97 47 80 13 01 00 00 00 00 00 5B [05:45:38]Write i2c OK [05:45:38]MH_I2C_Read... [05:45:38]Read from MH i2c: E2 [05:45:38]MH_I2C_Read... [05:45:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:45:38]Read from MH i2c: E2 0E 00 [05:45:38]MH_I2C_Read... [05:45:38]Read from MH i2c: E2 0E 00 97 47 00 09 00 01 89 19 24 67 00 00 00 00 90 00 94 [05:45:38]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [05:45:38]wFMCommunicate OK [05:45:38]SAM_PROTO_GetShiftState done [05:45:38]FM_GetShiftState done [05:45:38]req_shift_opened done [05:45:38]requested_item shift.open_date is exist - process it [05:45:38]req_shift_open_date [05:45:38]req_shift_open_date done [05:45:38]produce_requested_data done [05:45:38]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139885,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [05:45:38]process_action_free close_receipt [05:45:38]json_value_free [05:45:38]json_value_free done [05:45:38]process_json_proto returns [05:45:38]Send response to host [05:45:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139885,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [05:45:38]free response buf [05:45:38]execute_script done [05:45:38]execute_script returns [05:45:38]free content buf [05:45:38]Sock 9.Close socket [05:45:38]Sock 9.Thread stoped [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]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:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:47]accept exits with 7 [05:53:47]New connection [05:53:47]New thread 3066654052 created [05:53:47]Thread 3066510692 joined [05:53:47]Waiting for new connection... [05:53:47] Sock 7.Parse request [05:53:47]Sock 7.Check first char [05:53:47]Sock 7.First char is OK [05:53:47]request: POST /json_proto HTTP/1.0 [05:53:47]Method: POST [05:53:47]URL: /json_proto [05:53:47]Method is POST - this is cgi request [05:53:47]url: /json_proto [05:53:47]query_string will be loaded in cgi processing [05:53:47]execute_cgi json_proto POST (null) [05:53:47]execute_cgi path=json_proto method=POST [05:53:47]POST find Content-Length [05:53:47]Host: 172.17.50.196:8080 [05:53:47]Content-Length: 833 [05:53:47]Content-Type: application/json [05:53:47] [05:53:47]POST finish read [05:53:47]Found Content-Length = 833 [05:53:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335711", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:53:47]execute_script... [05:53: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)335711", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:53:47]POST & json_proto [05:53:47]process_json_proto [05:53:47]json parsed OK: [05:53:47]protocol is kg_v1.0 [05:53:47]action value=close_receipt [05:53:47]process_action close_receipt [05:53:47]cmd_close_receipt [05:53:47]MH_GetDate [05:53:47]Write to MH i2c: F0 00 00 98 47 CE [05:53:47]Write i2c OK [05:53:47]MH_I2C_Read... [05:53:47]Read from MH i2c: F0 [05:53:47]MH_I2C_Read... [05:53:47]Read from MH i2c: F0 09 00 [05:53:47]MH_I2C_Read... [05:53:47]Read from MH i2c: F0 09 00 98 47 00 F0 6C 24 67 72 0D 1C 67 C0 [05:53:47]GetLastDocTimeStamp 1730439939 [05:53:47]current date 1730440432 [05:53:47]FM_GetShiftState [05:53:47]SAM_PROTO_GetShiftState [05:53:47]wFMCommunicate request_size=4 [05:53:47]MH_SAM_APDU [05:53:47]CAPDU: 80 13 01 00 [05:53:47]Write to MH i2c: E2 08 00 99 47 80 13 01 00 00 00 00 00 5D [05:53:47]Write i2c OK [05:53:47]MH_I2C_Read... [05:53:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:53:47]Read from MH i2c: E2 [05:53:47]MH_I2C_Read... [05:53:47]Read from MH i2c: E2 0E 00 [05:53:47]MH_I2C_Read... [05:53:47]Read from MH i2c: E2 0E 00 99 47 00 09 00 01 89 19 24 67 00 00 00 00 90 00 96 [05:53:47]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [05:53:47]wFMCommunicate OK [05:53:47]SAM_PROTO_GetShiftState done [05:53:47]FM_GetShiftState done [05:53:47]opened in 1730419081 [05:53:47]opened+sec_in_day 1730505481 [05:53:47]quantity*price = 12000 [05:53:47]sum+1 = 12001 [05:53:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 0.00 Безнал.: 120.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 67 01.11.2024 05:53 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139886 ФПД: 190093836958034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T055352&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139886&fm=190093836958034&tin=02508201610067®Number=0000000000091631&sum=12000 0 [05:53:49]StoreToDocumentArchive [05:53:49]shift 558 fd 139886 [05:53:49]save to /storage/0558/doc_00139886 [05:53:49]save last doc name /storage/0558/doc_00139886 to /storage/kkm_last_doc_name [05:53:49]save OK [05:53:49]Clear old archive folders... [05:53:49]ProcessDocumentItem done err = 0, tmpTLVsize=298 [05:53:49]tlvbuf is B6F0C130 [05:53:49]SAM_PROTO_ClearQueue [05:53:49]wFMCommunicate request_size=4 [05:53:49]MH_SAM_APDU [05:53:49]CAPDU: 80 09 00 00 [05:53:49]Write to MH i2c: E2 08 00 A6 47 80 09 00 00 00 00 00 00 5F [05:53:49]Write i2c OK [05:53:49]MH_I2C_Read... [05:53:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:53:49]Read from MH i2c: E2 [05:53:49]MH_I2C_Read... [05:53:49]Read from MH i2c: E2 03 00 [05:53:49]MH_I2C_Read... [05:53:49]Read from MH i2c: E2 03 00 A6 47 00 90 00 61 [05:53:49]RAPDU: 90 00 [05:53:49]wFMCommunicate OK [05:53:49]SAM_PROTO_ClearQueue done [05:53:49]KKMCreateOFDPacket [05:53:49]OFDProtocolAddRootSTLVToBuf [05:53:49]FM_MakeSignedData [05:53:49]FM_MakeSignedData [05:53:49]SAM_PROTO_SignData [05:53:49]wFMCommunicate request_size=4 [05:53:49]MH_SAM_APDU [05:53:49]CAPDU: 80 0D 01 02 [05:53:49]Write to MH i2c: E2 08 00 A7 47 80 0D 01 02 00 00 00 00 67 [05:53:49]Write i2c OK [05:53:49]MH_I2C_Read... [05:53:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:53:49]Read from MH i2c: E2 [05:53:49]MH_I2C_Read... [05:53:49]Read from MH i2c: E2 03 00 [05:53:49]MH_I2C_Read... [05:53:49]Read from MH i2c: E2 03 00 A7 47 00 90 00 62 [05:53:49]RAPDU: 90 00 [05:53:49]wFMCommunicate OK [05:53:49]wFMCommunicate request_size=255 [05:53:49]MH_SAM_APDU [05:53:49]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 F0 6C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [05:53:49]Write to MH i2c: E2 02 01 A8 47 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 F0 6C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 BF [05:53:49]Write i2c OK [05:53:49]MH_I2C_Read... [05:53:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:53:49]Read from MH i2c: E2 [05:53:49]MH_I2C_Read... [05:53:49]Read from MH i2c: E2 03 00 [05:53:49]MH_I2C_Read... [05:53:49]Read from MH i2c: E2 03 00 A8 47 00 90 00 63 [05:53:49]RAPDU: 90 00 [05:53:49]wFMCommunicate OK [05:53:49]wFMCommunicate request_size=57 [05:53:49]MH_SAM_APDU [05:53:49]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6E 22 02 00 35 04 06 00 AC E3 AB A0 39 52 [05:53:49]Write to MH i2c: E2 3C 00 A9 47 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6E 22 02 00 35 04 06 00 AC E3 AB A0 39 52 00 00 21 [05:53:49]Write i2c OK [05:53:49]MH_I2C_Read... [05:53:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:53:49]Read from MH i2c: E2 [05:53:49]MH_I2C_Read... [05:53:49]Read from MH i2c: E2 03 00 [05:53:49]MH_I2C_Read... [05:53:49]Read from MH i2c: E2 03 00 A9 47 00 90 00 64 [05:53:49]RAPDU: 90 00 [05:53:49]wFMCommunicate OK [05:53:49]wFMCommunicate request_size=4 [05:53:49]MH_SAM_APDU [05:53:49]CAPDU: 80 0D 03 02 [05:53:49]Write to MH i2c: E2 08 00 AA 47 80 0D 03 02 00 00 00 00 6C [05:53:49]Write i2c OK [05:53:49]MH_I2C_Read... [05:53:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:53:49]Read from MH i2c: E2 [05:53:49]MH_I2C_Read... [05:53:49]Read from MH i2c: E2 0B 00 [05:53:49]MH_I2C_Read... [05:53:49]Read from MH i2c: E2 0B 00 AA 47 00 E4 6A 3F 07 9A AA 2B 59 90 00 C9 [05:53:49]RAPDU: E4 6A 3F 07 9A AA 2B 59 90 00 [05:53:49]wFMCommunicate OK [05:53:49]SAM_PROTO_SignData done [05:53:49]FM_MakeSignedData done [05:53:49]CreateOFDProtocolMessage [05:53:49]wFMCommunicate request_size=4 [05:53:49]MH_SAM_APDU [05:53:49]CAPDU: 80 11 00 00 [05:53:49]Write to MH i2c: E2 08 00 AB 47 80 11 00 00 00 00 00 00 6C [05:53:49]Write i2c OK [05:53:49]MH_I2C_Read... [05:53:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:53:49]Read from MH i2c: E2 [05:53:49]MH_I2C_Read... [05:53:49]Read from MH i2c: E2 17 00 [05:53:49]MH_I2C_Read... [05:53:49]Read from MH i2c: E2 17 00 AB 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C7 [05:53:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:53:49]wFMCommunicate OK [05:53:49]CreateOFDProtocolMessage done [05:53:49]OFDSenderStorePacket 139886 [05:53:49]StoreOFDPacket docnum=139886 [05:53:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3E 01 00 00 AF 93 36 01 3D 55 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 F0 6C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6E 22 02 00 35 04 06 00 AC E3 AB A0 39 52 E4 6A 3F 07 9A AA 2B 59 [05:53:49]CheckFolder [05:53:49]dirname=/storage/ofd_packets [05:53:49]CheckFolder done [05:53:49]ProducePacketName [05:53:49]name=ofd_packets/00139886 [05:53:49]NVStorageSaveData ofd_packets/00139886 [05:53:49]File name is /storage/ofd_packets/00139886 [05:53:49]Write 348 bytes [05:53:49]NVStorageSaveData done [05:53:49]OFDSenderStorePacket done [05:53:49]KKMCreateOFDPacket done [05:53:49]NVStorageSaveData kkm_last_timestamp [05:53:49]File name is /storage/kkm_last_timestamp [05:53:49]Write 4 bytes [05:53:49]NVStorageSaveData done [05:53:49]ExternCall_PrintAddStr [05:53:49]wPrintStart [05:53:49]Write to MH i2c: 01 00 00 AC 47 F3 [05:53:49]Write i2c OK [05:53:49]MH_I2C_Read... [05:53:49]Read from MH i2c: 01 [05:53:49]MH_I2C_Read... [05:53:49]Read from MH i2c: 01 07 00 [05:53:49]MH_I2C_Read... [05:53:49]Read from MH i2c: 01 07 00 AC 47 00 00 00 00 00 FF 0F 08 [05:53:49]RasterBufferAndPrint [05:53:49]line Счет N : (3)335711 [05:53:49]line ИНН: 02508201610067 [05:53:49]line Контрольно-Кассовый Чек [05:53:49]line ПРОДАЖА [05:53:49]line Товар: 5449000189356 [05:53:49]line Холодный чай Fuse манго ананас 1л [05:53:49]line 1.000 * 120.00 [05:53:49]line = 120.00 [05:53:49]line НДС 12% НСП 1% [05:53:49]line > о реализуемом товаре [05:53:49]line ИТОГО: 120.00 [05:53:49]line НСП 1% : 1.06 [05:53:49]line НДС 12% : 12.74 [05:53:49]line Наличными: 0.00 [05:53:49]line Безнал.: 120.00 [05:53:49]line Место: АЗС № 101 "Партнер Нефть" [05:53:49]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [05:53:49]line СНО: Общий режим [05:53:49]line Чек 67 01.11.2024 05:53 [05:53:49]line Смена: 558 ФФД: 1.0 [05:53:49]line ЗНМ: 0300000081 [05:53:49]line РНМ: 0000000000091631 [05:53:49]line Версия ККМ: 001 [05:53:49]line Платежная система: Mbank [05:53:49]line ФМ: 0000000000874669 [05:53:49]line ФД: 139886 [05:53:49]line ФПД: 190093836958034 [05:53:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T055352&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139886&fm=190093836958034&tin=02508201610067®Number=0000000000091631&sum=12000 [05:53:49]line 0 [05:53:49]OFD Sender: Processing packet 139886 [packets to send 34, broken 33] [05:53:49]ProducePacketName [05:53:49]name=ofd_packets/00139886 [05:53:49]OFD Sender: To server: pG, [05:53:49]CommunicateWithHost lk.salyk.kg:30040 [05:53:49]ConnectInit lk.salyk.kg [05:53:49]written 0, free lines is 4095 [05:53:50]Connected sock=10 [05:53:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3E 01 00 00 AF 93 36 01 3D 55 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 F0 6C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6E 22 02 00 35 04 06 00 AC E3 AB A0 39 52 E4 6A 3F 07 9A AA 2B 59 [05:53:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 E0 B4 47 00 30 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 34 36 36 39 10 04 04 00 6E 22 02 00 F4 03 04 00 9B 18 24 67 B6 04 01 00 00 A3 31 77 C5 4E E0 58 57 [05:53:50]CommunicateWithHost err = 0 [05:53:50]CheckOFDResponse [05:53:50]1017 (14) - 77093643461234 [05:53:50]1041 (16) - 0000000000874669 [05:53:50]1040 (4) - 139886 [05:53:50]1012 (4) - 31.10.2024 23:54 [05:53:50]1206 (1) - 0 [05:53:50]OFD Sender: Remove packet 139886 [05:53:50]ProducePacketName [05:53:50]name=ofd_packets/00139886 [05:53:50]NVStorageDeleteData [05:53:50]Write to MH i2c: 01 00 00 D6 47 1D [05:53:50]Write i2c OK [05:53:50]MH_I2C_Read... [05:53:50]Read from MH i2c: 01 [05:53:50]MH_I2C_Read... [05:53:50]Read from MH i2c: 01 07 00 [05:53:50]MH_I2C_Read... [05:53:50]Read from MH i2c: 01 07 00 D6 47 00 00 00 00 00 FF 0C 2F [05:53:50]RasterBufferAndPrint [05:53:50]line [05:53:50]line [05:53:50]line [05:53:50]line [05:53:50]line [05:53:50]written 0, free lines is 3332 [05:53:50]MH_Cut [05:53:50]Write to MH i2c: D1 01 00 DD 47 01 F6 [05:53:50]Write i2c OK [05:53:50]MH_I2C_Read... [05:53:50]Read from MH i2c: D1 [05:53:50]MH_I2C_Read... [05:53:50]Read from MH i2c: D1 01 00 [05:53:50]MH_I2C_Read... [05:53:50]Read from MH i2c: D1 01 00 DD 47 00 F5 [05:53:50]Write to MH i2c: 01 00 00 DE 47 25 [05:53:50]Write i2c OK [05:53:50]MH_I2C_Read... [05:53:50]OFD Sender: No OFD packet to send [05:53:51]*** Cut start [05:53:51]*** Partial cut [05:53:51]*** CUTSNS_PIN = 1 [05:53:51]*** CUTSNS_PIN = 0 [05:53:51]*** Brake cut motor [05:53:51]Read from MH i2c: 01 [05:53:51]MH_I2C_Read... [05:53:51]*** Stop cut motor [05:53:51]*** Cut end [05:53:51]Read from MH i2c: 01 07 00 [05:53:51]MH_I2C_Read... [05:53:51]Read from MH i2c: 01 07 00 DE 47 00 00 00 00 00 FF 0F 3A [05:53:51]process_action close_receipt done [05:53:51]requested_data is exist [05:53:51]produce_requested_data [05:53:51]requested_item fm.sn is exist - process it [05:53:51]wFMCommunicate request_size=4 [05:53:51]MH_SAM_APDU [05:53:51]CAPDU: 80 11 00 00 [05:53:51]Write to MH i2c: E2 08 00 DF 47 80 11 00 00 00 00 00 00 A0 [05:53:51]Write i2c OK [05:53:51]MH_I2C_Read... [05:53:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:53:51]Read from MH i2c: E2 [05:53:51]MH_I2C_Read... [05:53:51]Read from MH i2c: E2 17 00 [05:53:51]MH_I2C_Read... [05:53:51]Read from MH i2c: E2 17 00 DF 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FB [05:53:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:53:51]wFMCommunicate OK [05:53:51]requested_item fd.num is exist - process it [05:53:51]SAM_PROTO_GetFieldsCounters [05:53:51]wFMCommunicate request_size=4 [05:53:51]MH_SAM_APDU [05:53:51]CAPDU: 80 13 00 00 [05:53:51]Write to MH i2c: E2 08 00 E0 47 80 13 00 00 00 00 00 00 A3 [05:53:51]Write i2c OK [05:53:51]MH_I2C_Read... [05:53:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:53:51]Read from MH i2c: E2 [05:53:51]MH_I2C_Read... [05:53:51]Read from MH i2c: E2 62 00 [05:53:51]MH_I2C_Read... [05:53:51]Read from MH i2c: E2 62 00 E0 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 6E 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [05:53:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 6E 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:53:51]wFMCommunicate OK [05:53:51]SAM_PROTO_GetFieldsCounters done [05:53:51]requested_item shift.num is exist - process it [05:53:51]requested_item shift.opened is exist - process it [05:53:51]req_shift_opened [05:53:51]FM_GetShiftState [05:53:51]SAM_PROTO_GetShiftState [05:53:51]wFMCommunicate request_size=4 [05:53:51]MH_SAM_APDU [05:53:51]CAPDU: 80 13 01 00 [05:53:51]Write to MH i2c: E2 08 00 E1 47 80 13 01 00 00 00 00 00 A5 [05:53:51]Write i2c OK [05:53:51]MH_I2C_Read... [05:53:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:53:51]Read from MH i2c: E2 [05:53:51]MH_I2C_Read... [05:53:51]Read from MH i2c: E2 0E 00 [05:53:51]MH_I2C_Read... [05:53:51]Read from MH i2c: E2 0E 00 E1 47 00 09 00 01 89 19 24 67 00 00 00 00 90 00 DE [05:53:51]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [05:53:51]wFMCommunicate OK [05:53:51]SAM_PROTO_GetShiftState done [05:53:51]FM_GetShiftState done [05:53:51]req_shift_opened done [05:53:51]requested_item shift.open_date is exist - process it [05:53:51]req_shift_open_date [05:53:51]req_shift_open_date done [05:53:51]produce_requested_data done [05:53:51]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139886,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [05:53:51]process_action_free close_receipt [05:53:51]json_value_free [05:53:51]json_value_free done [05:53:51]process_json_proto returns [05:53:51]Send response to host [05:53:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139886,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [05:53:51]free response buf [05:53:51]execute_script done [05:53:51]execute_script returns [05:53:51]free content buf [05:53:51]Sock 7.Close socket [05:53:51]Sock 7.Thread stoped [05:53:55]OFD Sender: No OFD packet to send [05:54:00]OFD Sender: No OFD packet to send [05:54:05]OFD Sender: No OFD packet to send [05:54:10]OFD Sender: No OFD packet to send [05:54:15]OFD Sender: No OFD packet to send [05:54:20]OFD Sender: No OFD packet to send [05:54:25]OFD Sender: No OFD packet to send [05:54:30]OFD Sender: No OFD packet to send [05:54:35]OFD Sender: No OFD packet to send [05:54:40]OFD Sender: No OFD packet to send [05:54:45]OFD Sender: No OFD packet to send [05:54:50]OFD Sender: No OFD packet to send [05:54:55]OFD Sender: No OFD packet to send [05:55:00]OFD Sender: No OFD packet to send [05:55:05]OFD Sender: No OFD packet to send [05:55:10]OFD Sender: No OFD packet to send [05:55:15]OFD Sender: No OFD packet to send [05:55:20]OFD Sender: No OFD packet to send [05:55:25]OFD Sender: No OFD packet to send [05:55:30]OFD Sender: No OFD packet to send [05:55:35]OFD Sender: No OFD packet to send [05:55:40]OFD Sender: No OFD packet to send [05:55:45]OFD Sender: No OFD packet to send [05:55:50]OFD Sender: No OFD packet to send [05:55:55]OFD Sender: No OFD packet to send [05:56:00]OFD Sender: No OFD packet to send [05:56:05]OFD Sender: No OFD packet to send [05:56:10]OFD Sender: No OFD packet to send [05:56:15]OFD Sender: No OFD packet to send [05:56:20]OFD Sender: No OFD packet to send [05:56:25]OFD Sender: No OFD packet to send [05:56:30]OFD Sender: No OFD packet to send [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57:15]OFD Sender: No OFD packet to send [05:57:20]OFD Sender: No OFD packet to send [05:57:25]OFD Sender: No OFD packet to send [05:57:30]OFD Sender: No OFD packet to send [05:57:35]OFD Sender: No OFD packet to send [05:57:40]OFD Sender: No OFD packet to send [05:57:45]OFD Sender: No OFD packet to send [05:57:50]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:25]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:51]OFD Sender: No OFD packet to send [05:58:56]OFD Sender: No OFD packet to send [05:59:01]OFD Sender: No OFD packet to send [05:59:06]OFD Sender: No OFD packet to send [05:59:11]OFD Sender: No OFD packet to send [05:59:16]OFD Sender: No OFD packet to send [05:59:21]OFD Sender: No OFD packet to send [05:59:26]OFD Sender: No OFD packet to send [05:59:31]OFD Sender: No OFD packet to send [05:59:36]OFD Sender: No OFD packet to send [05:59:41]OFD Sender: No OFD packet to send [05:59:46]OFD Sender: No OFD packet to send [05:59:51]OFD Sender: No OFD packet to send [05:59:56]OFD Sender: No OFD packet to send [06:00:01]OFD Sender: No OFD packet to send [06:00:06]OFD Sender: No OFD packet to send [06:00:11]OFD Sender: No OFD packet to send [06:00:16]OFD Sender: No OFD packet to send [06:00:21]OFD Sender: No OFD packet to send [06:00:26]OFD Sender: No OFD packet to send [06:00:31]OFD Sender: No OFD packet to send [06:00:36]OFD Sender: No OFD packet to send [06:00:41]OFD Sender: No OFD packet to send [06:00:41]accept exits with 9 [06:00:41]New connection [06:00:41]New thread 3066510692 created [06:00:41]Thread 3066654052 joined [06:00:41]Waiting for new connection... [06:00:41] Sock 9.Parse request [06:00:41]Sock 9.Check first char [06:00:41]Sock 9.First char is OK [06:00:41]request: POST /json_proto HTTP/1.0 [06:00:41]Method: POST [06:00:41]URL: /json_proto [06:00:41]Method is POST - this is cgi request [06:00:41]url: /json_proto [06:00:41]query_string will be loaded in cgi processing [06:00:41]execute_cgi json_proto POST (null) [06:00:41]execute_cgi path=json_proto method=POST [06:00:41]POST find Content-Length [06:00:41]Host: 172.17.50.196:8080 [06:00:41]Content-Length: 623 [06:00:41]Content-Type: application/json [06:00:41] [06:00:41]POST finish read [06:00:41]Found Content-Length = 623 [06:00:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335713", "tax_sys" : 0, "items" : [ { "code": "4630002599859", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Standart 15w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:00:41]execute_script... [06:00: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)335713", "tax_sys" : 0, "items" : [ { "code": "4630002599859", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Standart 15w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:00:41]POST & json_proto [06:00:41]process_json_proto [06:00:41]json parsed OK: [06:00:41]protocol is kg_v1.0 [06:00:41]action value=close_receipt [06:00:41]process_action close_receipt [06:00:41]cmd_close_receipt [06:00:41]MH_GetDate [06:00:41]Write to MH i2c: F0 00 00 E2 47 18 [06:00:41]Write i2c OK [06:00:41]MH_I2C_Read... [06:00:41]Read from MH i2c: F0 [06:00:41]MH_I2C_Read... [06:00:41]Read from MH i2c: F0 09 00 [06:00:41]MH_I2C_Read... [06:00:41]Read from MH i2c: F0 09 00 E2 47 00 8E 6E 24 67 72 0D 1C 67 AA [06:00:41]GetLastDocTimeStamp 1730440432 [06:00:41]current date 1730440846 [06:00:41]FM_GetShiftState [06:00:41]SAM_PROTO_GetShiftState [06:00:41]wFMCommunicate request_size=4 [06:00:41]MH_SAM_APDU [06:00:41]CAPDU: 80 13 01 00 [06:00:41]Write to MH i2c: E2 08 00 E3 47 80 13 01 00 00 00 00 00 A7 [06:00:41]Write i2c OK [06:00:41]MH_I2C_Read... [06:00:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:00:41]Read from MH i2c: E2 [06:00:41]MH_I2C_Read... [06:00:41]Read from MH i2c: E2 0E 00 [06:00:41]MH_I2C_Read... [06:00:41]Read from MH i2c: E2 0E 00 E3 47 00 09 00 01 89 19 24 67 00 00 00 00 90 00 E0 [06:00:41]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:00:41]wFMCommunicate OK [06:00:41]SAM_PROTO_GetShiftState done [06:00:41]FM_GetShiftState done [06:00:41]opened in 1730419081 [06:00:41]opened+sec_in_day 1730505481 [06:00:41]quantity*price = 40500 [06:00:41]sum+1 = 40501 [06:00:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 68 01.11.2024 06:00 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139887 ФПД: 63907202114452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T060046&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139887&fm=63907202114452&tin=02508201610067®Number=0000000000091631&sum=40500 0 [06:00:43]StoreToDocumentArchive [06:00:43]shift 558 fd 139887 [06:00:43]save to /storage/0558/doc_00139887 [06:00:43]save last doc name /storage/0558/doc_00139887 to /storage/kkm_last_doc_name [06:00:43]save OK [06:00:43]Clear old archive folders... [06:00:43]ProcessDocumentItem done err = 0, tmpTLVsize=283 [06:00:43]tlvbuf is 00BB3EE0 [06:00:43]SAM_PROTO_ClearQueue [06:00:43]wFMCommunicate request_size=4 [06:00:43]MH_SAM_APDU [06:00:43]CAPDU: 80 09 00 00 [06:00:43]Write to MH i2c: E2 08 00 F0 47 80 09 00 00 00 00 00 00 A9 [06:00:43]Write i2c OK [06:00:43]MH_I2C_Read... [06:00:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:00:43]Read from MH i2c: E2 [06:00:43]MH_I2C_Read... [06:00:43]Read from MH i2c: E2 03 00 [06:00:43]MH_I2C_Read... [06:00:43]Read from MH i2c: E2 03 00 F0 47 00 90 00 AB [06:00:43]RAPDU: 90 00 [06:00:43]wFMCommunicate OK [06:00:43]SAM_PROTO_ClearQueue done [06:00:43]KKMCreateOFDPacket [06:00:43]OFDProtocolAddRootSTLVToBuf [06:00:43]FM_MakeSignedData [06:00:43]FM_MakeSignedData [06:00:43]SAM_PROTO_SignData [06:00:43]wFMCommunicate request_size=4 [06:00:43]MH_SAM_APDU [06:00:43]CAPDU: 80 0D 01 02 [06:00:43]Write to MH i2c: E2 08 00 F1 47 80 0D 01 02 00 00 00 00 B1 [06:00:43]Write i2c OK [06:00:43]MH_I2C_Read... [06:00:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:00:43]Read from MH i2c: E2 [06:00:43]MH_I2C_Read... [06:00:43]Read from MH i2c: E2 03 00 [06:00:43]MH_I2C_Read... [06:00:43]Read from MH i2c: E2 03 00 F1 47 00 90 00 AC [06:00:43]RAPDU: 90 00 [06:00:43]wFMCommunicate OK [06:00:43]wFMCommunicate request_size=255 [06:00:43]MH_SAM_APDU [06:00:43]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 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 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 8E 6E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 [06:00:43]Write to MH i2c: E2 02 01 F2 47 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 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 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 8E 6E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 00 00 DE [06:00:43]Write i2c OK [06:00:43]MH_I2C_Read... [06:00:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:00:43]Read from MH i2c: E2 [06:00:43]MH_I2C_Read... [06:00:43]Read from MH i2c: E2 03 00 [06:00:43]MH_I2C_Read... [06:00:43]Read from MH i2c: E2 03 00 F2 47 00 90 00 AD [06:00:43]RAPDU: 90 00 [06:00:43]wFMCommunicate OK [06:00:43]wFMCommunicate request_size=42 [06:00:43]MH_SAM_APDU [06:00:43]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6F 22 02 00 35 04 06 00 3A 1F 8E 14 A3 94 [06:00:43]Write to MH i2c: E2 2D 00 F3 47 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6F 22 02 00 35 04 06 00 3A 1F 8E 14 A3 94 00 00 56 [06:00:43]Write i2c OK [06:00:43]MH_I2C_Read... [06:00:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:00:43]Read from MH i2c: E2 [06:00:43]MH_I2C_Read... [06:00:43]Read from MH i2c: E2 03 00 [06:00:43]MH_I2C_Read... [06:00:43]Read from MH i2c: E2 03 00 F3 47 00 90 00 AE [06:00:43]RAPDU: 90 00 [06:00:43]wFMCommunicate OK [06:00:43]wFMCommunicate request_size=4 [06:00:43]MH_SAM_APDU [06:00:43]CAPDU: 80 0D 03 02 [06:00:43]Write to MH i2c: E2 08 00 F4 47 80 0D 03 02 00 00 00 00 B6 [06:00:43]Write i2c OK [06:00:43]MH_I2C_Read... [06:00:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:00:43]Read from MH i2c: E2 [06:00:43]MH_I2C_Read... [06:00:43]Read from MH i2c: E2 0B 00 [06:00:43]MH_I2C_Read... [06:00:43]Read from MH i2c: E2 0B 00 F4 47 00 B9 36 89 8B 00 67 F2 9F 90 00 B2 [06:00:43]RAPDU: B9 36 89 8B 00 67 F2 9F 90 00 [06:00:43]wFMCommunicate OK [06:00:43]SAM_PROTO_SignData done [06:00:43]FM_MakeSignedData done [06:00:43]CreateOFDProtocolMessage [06:00:43]wFMCommunicate request_size=4 [06:00:43]MH_SAM_APDU [06:00:43]CAPDU: 80 11 00 00 [06:00:43]Write to MH i2c: E2 08 00 F5 47 80 11 00 00 00 00 00 00 B6 [06:00:43]Write i2c OK [06:00:43]MH_I2C_Read... [06:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:00:43]Read from MH i2c: E2 [06:00:43]MH_I2C_Read... [06:00:43]Read from MH i2c: E2 17 00 [06:00:43]MH_I2C_Read... [06:00:43]Read from MH i2c: E2 17 00 F5 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 11 [06:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:00:43]wFMCommunicate OK [06:00:43]CreateOFDProtocolMessage done [06:00:43]OFDSenderStorePacket 139887 [06:00:43]StoreOFDPacket docnum=139887 [06:00:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2F 01 00 00 38 32 27 01 59 24 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 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 8E 6E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6F 22 02 00 35 04 06 00 3A 1F 8E 14 A3 94 B9 36 89 8B 00 67 F2 9F [06:00:43]CheckFolder [06:00:43]dirname=/storage/ofd_packets [06:00:43]CheckFolder done [06:00:43]ProducePacketName [06:00:43]name=ofd_packets/00139887 [06:00:43]NVStorageSaveData ofd_packets/00139887 [06:00:43]File name is /storage/ofd_packets/00139887 [06:00:43]Write 333 bytes [06:00:43]NVStorageSaveData done [06:00:43]OFDSenderStorePacket done [06:00:43]KKMCreateOFDPacket done [06:00:43]NVStorageSaveData kkm_last_timestamp [06:00:43]File name is /storage/kkm_last_timestamp [06:00:43]Write 4 bytes [06:00:43]NVStorageSaveData done [06:00:43]ExternCall_PrintAddStr [06:00:43]wPrintStart [06:00:43]Write to MH i2c: 01 00 00 F6 47 3D [06:00:43]Write i2c OK [06:00:43]MH_I2C_Read... [06:00:43]Read from MH i2c: 01 [06:00:43]MH_I2C_Read... [06:00:43]Read from MH i2c: 01 07 00 [06:00:43]MH_I2C_Read... [06:00:43]Read from MH i2c: 01 07 00 F6 47 00 00 00 00 00 FF 0F 52 [06:00:43]RasterBufferAndPrint [06:00:43]line Счет N : (3)335713 [06:00:43]line ИНН: 02508201610067 [06:00:43]line Контрольно-Кассовый Чек [06:00:43]line ПРОДАЖА [06:00:43]line Товар: 4630002599859 [06:00:43]line Масло Gazpromneft Standart 15w40 1л [06:00:43]line 1.000 * 405.00 [06:00:43]line = 405.00 [06:00:43]line НДС 12% НСП 1% [06:00:43]line > о реализуемом товаре [06:00:43]line ИТОГО: 405.00 [06:00:43]line НСП 1% : 3.58 [06:00:43]line НДС 12% : 43.01 [06:00:43]line Наличными: 405.00 [06:00:43]line Безнал.: 0.00 [06:00:43]line Место: АЗС № 101 "Партнер Нефть" [06:00:43]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:00:43]line СНО: Общий режим [06:00:43]line Чек 68 01.11.2024 06:00 [06:00:43]line Смена: 558 ФФД: 1.0 [06:00:43]line ЗНМ: 0300000081 [06:00:43]line РНМ: 0000000000091631 [06:00:43]line Версия ККМ: 001 [06:00:43]line ФМ: 0000000000874669 [06:00:43]line ФД: 139887 [06:00:43]line ФПД: 63907202114452 [06:00:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T060046&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139887&fm=63907202114452&tin=02508201610067®Number=0000000000091631&sum=40500 [06:00:43]line 0 [06:00:43]OFD Sender: Processing packet 139887 [packets to send 34, broken 33] [06:00:43]ProducePacketName [06:00:43]name=ofd_packets/00139887 [06:00:43]OFD Sender: To server: pG, [06:00:43]CommunicateWithHost lk.salyk.kg:30040 [06:00:43]ConnectInit lk.salyk.kg [06:00:43]written 0, free lines is 4095 [06:00:44]Connected sock=10 [06:00:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2F 01 00 00 38 32 27 01 59 24 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 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 8E 6E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6F 22 02 00 35 04 06 00 3A 1F 8E 14 A3 94 B9 36 89 8B 00 67 F2 9F [06:00:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 EE 75 47 00 85 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6F 22 02 00 F4 03 04 00 3A 1A 24 67 B6 04 01 00 00 08 6B 7D 61 F9 32 67 0E [06:00:44]CommunicateWithHost err = 0 [06:00:44]CheckOFDResponse [06:00:44]1017 (14) - 77093643461234 [06:00:44]1041 (16) - 0000000000874669 [06:00:44]1040 (4) - 139887 [06:00:44]1012 (4) - 01.11.2024 00:00 [06:00:44]1206 (1) - 0 [06:00:44]OFD Sender: Remove packet 139887 [06:00:44]ProducePacketName [06:00:44]name=ofd_packets/00139887 [06:00:44]NVStorageDeleteData [06:00:44]Write to MH i2c: 01 00 00 1F 48 67 [06:00:44]Write i2c OK [06:00:44]MH_I2C_Read... [06:00:44]Read from MH i2c: 01 [06:00:44]MH_I2C_Read... [06:00:44]Read from MH i2c: 01 07 00 [06:00:44]MH_I2C_Read... [06:00:44]Read from MH i2c: 01 07 00 1F 48 00 00 00 00 00 05 0D 80 [06:00:44]RasterBufferAndPrint [06:00:44]line [06:00:44]line [06:00:44]line [06:00:44]line [06:00:44]line [06:00:44]written 0, free lines is 3342 [06:00:44]MH_Cut [06:00:44]Write to MH i2c: D1 01 00 26 48 01 40 [06:00:44]Write i2c OK [06:00:44]MH_I2C_Read... [06:00:44]Read from MH i2c: D1 [06:00:44]MH_I2C_Read... [06:00:44]Read from MH i2c: D1 01 00 [06:00:44]MH_I2C_Read... [06:00:44]Read from MH i2c: D1 01 00 26 48 00 3F [06:00:44]Write to MH i2c: 01 00 00 27 48 6F [06:00:44]Write i2c OK [06:00:44]MH_I2C_Read... [06:00:44]OFD Sender: No OFD packet to send [06:00:45]*** Cut start [06:00:45]*** Partial cut [06:00:45]*** CUTSNS_PIN = 1 [06:00:45]*** CUTSNS_PIN = 0 [06:00:45]*** Brake cut motor [06:00:45]Read from MH i2c: 01 [06:00:45]MH_I2C_Read... [06:00:45]*** Stop cut motor [06:00:45]*** Cut end [06:00:45]Read from MH i2c: 01 07 00 [06:00:45]MH_I2C_Read... [06:00:45]Read from MH i2c: 01 07 00 27 48 00 00 00 00 00 FF 0F 84 [06:00:45]process_action close_receipt done [06:00:45]requested_data is exist [06:00:45]produce_requested_data [06:00:45]requested_item fm.sn is exist - process it [06:00:45]wFMCommunicate request_size=4 [06:00:45]MH_SAM_APDU [06:00:45]CAPDU: 80 11 00 00 [06:00:45]Write to MH i2c: E2 08 00 28 48 80 11 00 00 00 00 00 00 EA [06:00:45]Write i2c OK [06:00:45]MH_I2C_Read... [06:00:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:00:45]Read from MH i2c: E2 [06:00:45]MH_I2C_Read... [06:00:45]Read from MH i2c: E2 17 00 [06:00:45]MH_I2C_Read... [06:00:45]Read from MH i2c: E2 17 00 28 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 45 [06:00:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:00:45]wFMCommunicate OK [06:00:45]requested_item fd.num is exist - process it [06:00:45]SAM_PROTO_GetFieldsCounters [06:00:45]wFMCommunicate request_size=4 [06:00:45]MH_SAM_APDU [06:00:45]CAPDU: 80 13 00 00 [06:00:45]Write to MH i2c: E2 08 00 29 48 80 13 00 00 00 00 00 00 ED [06:00:45]Write i2c OK [06:00:45]MH_I2C_Read... [06:00:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:00:45]Read from MH i2c: E2 [06:00:45]MH_I2C_Read... [06:00:45]Read from MH i2c: E2 62 00 [06:00:45]MH_I2C_Read... [06:00:45]Read from MH i2c: E2 62 00 29 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 6F 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [06:00:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 6F 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:00:45]wFMCommunicate OK [06:00:45]SAM_PROTO_GetFieldsCounters done [06:00:45]requested_item shift.num is exist - process it [06:00:45]requested_item shift.opened is exist - process it [06:00:45]req_shift_opened [06:00:45]FM_GetShiftState [06:00:45]SAM_PROTO_GetShiftState [06:00:45]wFMCommunicate request_size=4 [06:00:45]MH_SAM_APDU [06:00:45]CAPDU: 80 13 01 00 [06:00:45]Write to MH i2c: E2 08 00 2A 48 80 13 01 00 00 00 00 00 EF [06:00:45]Write i2c OK [06:00:45]MH_I2C_Read... [06:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:00:45]Read from MH i2c: E2 [06:00:45]MH_I2C_Read... [06:00:45]Read from MH i2c: E2 0E 00 [06:00:45]MH_I2C_Read... [06:00:45]Read from MH i2c: E2 0E 00 2A 48 00 09 00 01 89 19 24 67 00 00 00 00 90 00 28 [06:00:45]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:00:45]wFMCommunicate OK [06:00:45]SAM_PROTO_GetShiftState done [06:00:45]FM_GetShiftState done [06:00:45]req_shift_opened done [06:00:45]requested_item shift.open_date is exist - process it [06:00:45]req_shift_open_date [06:00:45]req_shift_open_date done [06:00:45]produce_requested_data done [06:00:45]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139887,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [06:00:45]process_action_free close_receipt [06:00:45]json_value_free [06:00:45]json_value_free done [06:00:45]process_json_proto returns [06:00:45]Send response to host [06:00:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139887,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [06:00:45]free response buf [06:00:45]execute_script done [06:00:45]execute_script returns [06:00:45]free content buf [06:00:45]Sock 9.Close socket [06:00:45]Sock 9.Thread stoped [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:09]OFD Sender: No OFD packet to send [06:01:14]OFD Sender: No OFD packet to send [06:01:15]accept exits with 7 [06:01:15]New connection [06:01:15]New thread 3066654052 created [06:01:15]Thread 3066510692 joined [06:01:15]Waiting for new connection... [06:01:15] Sock 7.Parse request [06:01:15]Sock 7.Check first char [06:01:15]Sock 7.First char is OK [06:01:15]request: POST /json_proto HTTP/1.0 [06:01:15]Method: POST [06:01:15]URL: /json_proto [06:01:15]Method is POST - this is cgi request [06:01:15]url: /json_proto [06:01:15]query_string will be loaded in cgi processing [06:01:15]execute_cgi json_proto POST (null) [06:01:15]execute_cgi path=json_proto method=POST [06:01:15]POST find Content-Length [06:01:15]Host: 172.17.50.196:8080 [06:01:15]Content-Length: 623 [06:01:15]Content-Type: application/json [06:01:15] [06:01:15]POST finish read [06:01:15]Found Content-Length = 623 [06:01:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335714", "tax_sys" : 0, "items" : [ { "code": "4606532011642", "name": "\u041F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 Felix \u0445/\u0431", "price" : 63.00, "quantity" : 1.000, "sum" : 63.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 63.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:01:15]execute_script... [06:01:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335714", "tax_sys" : 0, "items" : [ { "code": "4606532011642", "name": "\u041F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 Felix \u0445/\u0431", "price" : 63.00, "quantity" : 1.000, "sum" : 63.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 63.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:01:15]POST & json_proto [06:01:15]process_json_proto [06:01:15]json parsed OK: [06:01:15]protocol is kg_v1.0 [06:01:15]action value=close_receipt [06:01:15]process_action close_receipt [06:01:15]cmd_close_receipt [06:01:15]MH_GetDate [06:01:15]Write to MH i2c: F0 00 00 2B 48 62 [06:01:15]Write i2c OK [06:01:15]MH_I2C_Read... [06:01:15]Read from MH i2c: F0 [06:01:15]MH_I2C_Read... [06:01:15]Read from MH i2c: F0 09 00 [06:01:15]MH_I2C_Read... [06:01:15]Read from MH i2c: F0 09 00 2B 48 00 B0 6E 24 67 72 0D 1C 67 16 [06:01:15]GetLastDocTimeStamp 1730440846 [06:01:15]current date 1730440880 [06:01:15]FM_GetShiftState [06:01:15]SAM_PROTO_GetShiftState [06:01:15]wFMCommunicate request_size=4 [06:01:15]MH_SAM_APDU [06:01:15]CAPDU: 80 13 01 00 [06:01:15]Write to MH i2c: E2 08 00 2C 48 80 13 01 00 00 00 00 00 F1 [06:01:15]Write i2c OK [06:01:15]MH_I2C_Read... [06:01:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:01:15]Read from MH i2c: E2 [06:01:15]MH_I2C_Read... [06:01:15]Read from MH i2c: E2 0E 00 [06:01:15]MH_I2C_Read... [06:01:15]Read from MH i2c: E2 0E 00 2C 48 00 09 00 01 89 19 24 67 00 00 00 00 90 00 2A [06:01:15]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:01:15]wFMCommunicate OK [06:01:15]SAM_PROTO_GetShiftState done [06:01:15]FM_GetShiftState done [06:01:15]opened in 1730419081 [06:01:15]opened+sec_in_day 1730505481 [06:01:15]quantity*price = 6300 [06:01:15]sum+1 = 6301 [06:01:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 63.00 НСП 1% : 0.56 НДС 12% : 6.69 Наличными: 63.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 69 01.11.2024 06:01 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139888 ФПД: 194467218057042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T060120&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139888&fm=194467218057042&tin=02508201610067®Number=0000000000091631&sum=6300 0 [06:01:17]StoreToDocumentArchive [06:01:17]shift 558 fd 139888 [06:01:17]save to /storage/0558/doc_00139888 [06:01:17]save last doc name /storage/0558/doc_00139888 to /storage/kkm_last_doc_name [06:01:17]save OK [06:01:17]Clear old archive folders... [06:01:17]ProcessDocumentItem done err = 0, tmpTLVsize=270 [06:01:17]tlvbuf is B6F0FBA0 [06:01:17]SAM_PROTO_ClearQueue [06:01:17]wFMCommunicate request_size=4 [06:01:17]MH_SAM_APDU [06:01:17]CAPDU: 80 09 00 00 [06:01:17]Write to MH i2c: E2 08 00 39 48 80 09 00 00 00 00 00 00 F3 [06:01:17]Write i2c OK [06:01:17]MH_I2C_Read... [06:01:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:01:17]Read from MH i2c: E2 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: E2 03 00 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: E2 03 00 39 48 00 90 00 F5 [06:01:17]RAPDU: 90 00 [06:01:17]wFMCommunicate OK [06:01:17]SAM_PROTO_ClearQueue done [06:01:17]KKMCreateOFDPacket [06:01:17]OFDProtocolAddRootSTLVToBuf [06:01:17]FM_MakeSignedData [06:01:17]FM_MakeSignedData [06:01:17]SAM_PROTO_SignData [06:01:17]wFMCommunicate request_size=4 [06:01:17]MH_SAM_APDU [06:01:17]CAPDU: 80 0D 01 02 [06:01:17]Write to MH i2c: E2 08 00 3A 48 80 0D 01 02 00 00 00 00 FB [06:01:17]Write i2c OK [06:01:17]MH_I2C_Read... [06:01:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:01:17]Read from MH i2c: E2 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: E2 03 00 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: E2 03 00 3A 48 00 90 00 F6 [06:01:17]RAPDU: 90 00 [06:01:17]wFMCommunicate OK [06:01:17]wFMCommunicate request_size=255 [06:01:17]MH_SAM_APDU [06:01:17]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 36 35 33 32 30 31 31 36 34 32 06 04 1C 00 D0 9F D0 B5 D1 80 D1 87 D0 B0 D1 82 D0 BA D0 B8 20 46 65 6C 69 78 20 D1 85 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 9C 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 02 00 00 00 00 07 04 06 00 9C 18 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 B0 6E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [06:01:17]Write to MH i2c: E2 02 01 3B 48 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 36 35 33 32 30 31 31 36 34 32 06 04 1C 00 D0 9F D0 B5 D1 80 D1 87 D0 B0 D1 82 D0 BA D0 B8 20 46 65 6C 69 78 20 D1 85 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 9C 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 02 00 00 00 00 07 04 06 00 9C 18 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 B0 6E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 3D [06:01:17]Write i2c OK [06:01:17]MH_I2C_Read... [06:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:01:17]Read from MH i2c: E2 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: E2 03 00 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: E2 03 00 3B 48 00 90 00 F7 [06:01:17]RAPDU: 90 00 [06:01:17]wFMCommunicate OK [06:01:17]wFMCommunicate request_size=29 [06:01:17]MH_SAM_APDU [06:01:17]CAPDU: 80 0D 02 02 18 38 37 34 36 36 39 10 04 04 00 70 22 02 00 35 04 06 00 B0 DD ED 73 E7 52 [06:01:17]Write to MH i2c: E2 20 00 3C 48 80 0D 02 02 18 00 38 37 34 36 36 39 10 04 04 00 70 22 02 00 35 04 06 00 B0 DD ED 73 E7 52 00 00 87 [06:01:17]Write i2c OK [06:01:17]MH_I2C_Read... [06:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:01:17]Read from MH i2c: E2 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: E2 03 00 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: E2 03 00 3C 48 00 90 00 F8 [06:01:17]RAPDU: 90 00 [06:01:17]wFMCommunicate OK [06:01:17]wFMCommunicate request_size=4 [06:01:17]MH_SAM_APDU [06:01:17]CAPDU: 80 0D 03 02 [06:01:17]Write to MH i2c: E2 08 00 3D 48 80 0D 03 02 00 00 00 00 00 [06:01:17]Write i2c OK [06:01:17]MH_I2C_Read... [06:01:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:01:17]Read from MH i2c: E2 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: E2 0B 00 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: E2 0B 00 3D 48 00 36 5B FB 80 60 7F 3D D0 90 00 F9 [06:01:17]RAPDU: 36 5B FB 80 60 7F 3D D0 90 00 [06:01:17]wFMCommunicate OK [06:01:17]SAM_PROTO_SignData done [06:01:17]FM_MakeSignedData done [06:01:17]CreateOFDProtocolMessage [06:01:17]wFMCommunicate request_size=4 [06:01:17]MH_SAM_APDU [06:01:17]CAPDU: 80 11 00 00 [06:01:17]Write to MH i2c: E2 08 00 3E 48 80 11 00 00 00 00 00 00 00 [06:01:17]Write i2c OK [06:01:17]MH_I2C_Read... [06:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:01:17]Read from MH i2c: E2 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: E2 17 00 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: E2 17 00 3E 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5B [06:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:01:17]wFMCommunicate OK [06:01:17]CreateOFDProtocolMessage done [06:01:17]OFDSenderStorePacket 139888 [06:01:17]StoreOFDPacket docnum=139888 [06:01:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 22 01 00 00 C0 7A 1A 01 8C 6A 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 36 35 33 32 30 31 31 36 34 32 06 04 1C 00 D0 9F D0 B5 D1 80 D1 87 D0 B0 D1 82 D0 BA D0 B8 20 46 65 6C 69 78 20 D1 85 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 9C 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 02 00 00 00 00 07 04 06 00 9C 18 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 B0 6E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 70 22 02 00 35 04 06 00 B0 DD ED 73 E7 52 36 5B FB 80 60 7F 3D D0 [06:01:17]CheckFolder [06:01:17]dirname=/storage/ofd_packets [06:01:17]CheckFolder done [06:01:17]ProducePacketName [06:01:17]name=ofd_packets/00139888 [06:01:17]NVStorageSaveData ofd_packets/00139888 [06:01:17]File name is /storage/ofd_packets/00139888 [06:01:17]Write 320 bytes [06:01:17]NVStorageSaveData done [06:01:17]OFDSenderStorePacket done [06:01:17]KKMCreateOFDPacket done [06:01:17]NVStorageSaveData kkm_last_timestamp [06:01:17]File name is /storage/kkm_last_timestamp [06:01:17]Write 4 bytes [06:01:17]NVStorageSaveData done [06:01:17]ExternCall_PrintAddStr [06:01:17]wPrintStart [06:01:17]Write to MH i2c: 01 00 00 3F 48 87 [06:01:17]Write i2c OK [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: 01 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: 01 07 00 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: 01 07 00 3F 48 00 00 00 00 00 FF 0F 9C [06:01:17]RasterBufferAndPrint [06:01:17]line Счет N : (3)335714 [06:01:17]line ИНН: 02508201610067 [06:01:17]line Контрольно-Кассовый Чек [06:01:17]line ПРОДАЖА [06:01:17]line Товар: 4606532011642 [06:01:17]line Перчатки Felix х/б [06:01:17]line 1.000 * 63.00 [06:01:17]line = 63.00 [06:01:17]line НДС 12% НСП 1% [06:01:17]line > о реализуемом товаре [06:01:17]line ИТОГО: 63.00 [06:01:17]line НСП 1% : 0.56 [06:01:17]line НДС 12% : 6.69 [06:01:17]line Наличными: 63.00 [06:01:17]line Безнал.: 0.00 [06:01:17]line Место: АЗС № 101 "Партнер Нефть" [06:01:17]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:01:17]line СНО: Общий режим [06:01:17]line Чек 69 01.11.2024 06:01 [06:01:17]line Смена: 558 ФФД: 1.0 [06:01:17]line ЗНМ: 0300000081 [06:01:17]line РНМ: 0000000000091631 [06:01:17]line Версия ККМ: 001 [06:01:17]line ФМ: 0000000000874669 [06:01:17]line ФД: 139888 [06:01:17]line ФПД: 194467218057042 [06:01:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T060120&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139888&fm=194467218057042&tin=02508201610067®Number=0000000000091631&sum=6300 [06:01:17]line 0 [06:01:17]written 0, free lines is 4095 [06:01:17]OFD Sender: Processing packet 139888 [packets to send 34, broken 33] [06:01:17]ProducePacketName [06:01:17]name=ofd_packets/00139888 [06:01:17]OFD Sender: To server: pG, [06:01:17]CommunicateWithHost lk.salyk.kg:30040 [06:01:17]ConnectInit lk.salyk.kg [06:01:17]Connected sock=11 [06:01:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 22 01 00 00 C0 7A 1A 01 8C 6A 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 36 35 33 32 30 31 31 36 34 32 06 04 1C 00 D0 9F D0 B5 D1 80 D1 87 D0 B0 D1 82 D0 BA D0 B8 20 46 65 6C 69 78 20 D1 85 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 9C 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 02 00 00 00 00 07 04 06 00 9C 18 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 B0 6E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 70 22 02 00 35 04 06 00 B0 DD ED 73 E7 52 36 5B FB 80 60 7F 3D D0 [06:01:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 8C C0 47 00 8C 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 70 22 02 00 F4 03 04 00 5B 1A 24 67 B6 04 01 00 00 7B 60 60 85 E4 02 76 D8 [06:01:17]CommunicateWithHost err = 0 [06:01:17]CheckOFDResponse [06:01:17]1017 (14) - 77093643461234 [06:01:17]1041 (16) - 0000000000874669 [06:01:17]1040 (4) - 139888 [06:01:17]1012 (4) - 01.11.2024 00:01 [06:01:17]1206 (1) - 0 [06:01:17]OFD Sender: Remove packet 139888 [06:01:17]ProducePacketName [06:01:17]name=ofd_packets/00139888 [06:01:17]NVStorageDeleteData [06:01:18]Write to MH i2c: 01 00 00 67 48 AF [06:01:18]Write i2c OK [06:01:18]MH_I2C_Read... [06:01:18]Read from MH i2c: 01 [06:01:18]MH_I2C_Read... [06:01:18]Read from MH i2c: 01 07 00 [06:01:18]MH_I2C_Read... [06:01:18]Read from MH i2c: 01 07 00 67 48 00 00 00 00 00 1A 0D DD [06:01:18]RasterBufferAndPrint [06:01:18]line [06:01:18]line [06:01:18]line [06:01:18]line [06:01:18]line [06:01:18]written 0, free lines is 3360 [06:01:18]MH_Cut [06:01:18]Write to MH i2c: D1 01 00 6E 48 01 88 [06:01:18]Write i2c OK [06:01:18]MH_I2C_Read... [06:01:18]Read from MH i2c: D1 [06:01:18]MH_I2C_Read... [06:01:18]Read from MH i2c: D1 01 00 [06:01:18]MH_I2C_Read... [06:01:18]Read from MH i2c: D1 01 00 6E 48 00 87 [06:01:18]Write to MH i2c: 01 00 00 6F 48 B7 [06:01:18]Write i2c OK [06:01:18]MH_I2C_Read... [06:01:18]OFD Sender: No OFD packet to send [06:01:18]*** Cut start [06:01:18]*** Partial cut [06:01:18]*** CUTSNS_PIN = 1 [06:01:18]*** CUTSNS_PIN = 0 [06:01:18]*** Brake cut motor [06:01:19]Read from MH i2c: 01 [06:01:19]MH_I2C_Read... [06:01:19]*** Stop cut motor [06:01:19]*** Cut end [06:01:19]Read from MH i2c: 01 07 00 [06:01:19]MH_I2C_Read... [06:01:19]Read from MH i2c: 01 07 00 6F 48 00 00 00 00 00 FF 0F CC [06:01:19]process_action close_receipt done [06:01:19]requested_data is exist [06:01:19]produce_requested_data [06:01:19]requested_item fm.sn is exist - process it [06:01:19]wFMCommunicate request_size=4 [06:01:19]MH_SAM_APDU [06:01:19]CAPDU: 80 11 00 00 [06:01:19]Write to MH i2c: E2 08 00 70 48 80 11 00 00 00 00 00 00 32 [06:01:19]Write i2c OK [06:01:19]MH_I2C_Read... [06:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:01:19]Read from MH i2c: E2 [06:01:19]MH_I2C_Read... [06:01:19]Read from MH i2c: E2 17 00 [06:01:19]MH_I2C_Read... [06:01:19]Read from MH i2c: E2 17 00 70 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8D [06:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:01:19]wFMCommunicate OK [06:01:19]requested_item fd.num is exist - process it [06:01:19]SAM_PROTO_GetFieldsCounters [06:01:19]wFMCommunicate request_size=4 [06:01:19]MH_SAM_APDU [06:01:19]CAPDU: 80 13 00 00 [06:01:19]Write to MH i2c: E2 08 00 71 48 80 13 00 00 00 00 00 00 35 [06:01:19]Write i2c OK [06:01:19]MH_I2C_Read... [06:01:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:01:19]Read from MH i2c: E2 [06:01:19]MH_I2C_Read... [06:01:19]Read from MH i2c: E2 62 00 [06:01:19]MH_I2C_Read... [06:01:19]Read from MH i2c: E2 62 00 71 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 70 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [06:01:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 70 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:01:19]wFMCommunicate OK [06:01:19]SAM_PROTO_GetFieldsCounters done [06:01:19]requested_item shift.num is exist - process it [06:01:19]requested_item shift.opened is exist - process it [06:01:19]req_shift_opened [06:01:19]FM_GetShiftState [06:01:19]SAM_PROTO_GetShiftState [06:01:19]wFMCommunicate request_size=4 [06:01:19]MH_SAM_APDU [06:01:19]CAPDU: 80 13 01 00 [06:01:19]Write to MH i2c: E2 08 00 72 48 80 13 01 00 00 00 00 00 37 [06:01:19]Write i2c OK [06:01:19]MH_I2C_Read... [06:01:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:01:19]Read from MH i2c: E2 [06:01:19]MH_I2C_Read... [06:01:19]Read from MH i2c: E2 0E 00 [06:01:19]MH_I2C_Read... [06:01:19]Read from MH i2c: E2 0E 00 72 48 00 09 00 01 89 19 24 67 00 00 00 00 90 00 70 [06:01:19]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:01:19]wFMCommunicate OK [06:01:19]SAM_PROTO_GetShiftState done [06:01:19]FM_GetShiftState done [06:01:19]req_shift_opened done [06:01:19]requested_item shift.open_date is exist - process it [06:01:19]req_shift_open_date [06:01:19]req_shift_open_date done [06:01:19]produce_requested_data done [06:01:19]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139888,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [06:01:19]process_action_free close_receipt [06:01:19]json_value_free [06:01:19]json_value_free done [06:01:19]process_json_proto returns [06:01:19]Send response to host [06:01:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139888,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [06:01:19]free response buf [06:01:19]execute_script done [06:01:19]execute_script returns [06:01:19]free content buf [06:01:19]Sock 7.Close socket [06:01:19]Sock 7.Thread stoped [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:14]accept exits with 9 [06:02:14]New connection [06:02:14]New thread 3066510692 created [06:02:14]Thread 3066654052 joined [06:02:14]Waiting for new connection... [06:02:14] Sock 9.Parse request [06:02:14]Sock 9.Check first char [06:02:14]Sock 9.First char is OK [06:02:14]request: POST /json_proto HTTP/1.0 [06:02:14]Method: POST [06:02:14]URL: /json_proto [06:02:14]Method is POST - this is cgi request [06:02:14]url: /json_proto [06:02:14]query_string will be loaded in cgi processing [06:02:14]execute_cgi json_proto POST (null) [06:02:14]execute_cgi path=json_proto method=POST [06:02:14]POST find Content-Length [06:02:14]Host: 172.17.50.196:8080 [06:02:14]Content-Length: 670 [06:02:14]Content-Type: application/json [06:02:14] [06:02:14]POST finish read [06:02:14]Found Content-Length = 670 [06:02:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335715", "tax_sys" : 0, "items" : [ { "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\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" ] } } [06:02:14]execute_script... [06:02: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)335715", "tax_sys" : 0, "items" : [ { "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\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" ] } } [06:02:14]POST & json_proto [06:02:14]process_json_proto [06:02:14]json parsed OK: [06:02:14]protocol is kg_v1.0 [06:02:14]action value=close_receipt [06:02:14]process_action close_receipt [06:02:14]cmd_close_receipt [06:02:14]MH_GetDate [06:02:14]Write to MH i2c: F0 00 00 73 48 AA [06:02:14]Write i2c OK [06:02:14]MH_I2C_Read... [06:02:14]Read from MH i2c: F0 [06:02:14]MH_I2C_Read... [06:02:14]Read from MH i2c: F0 09 00 [06:02:14]MH_I2C_Read... [06:02:14]Read from MH i2c: F0 09 00 73 48 00 EB 6E 24 67 72 0D 1C 67 99 [06:02:14]GetLastDocTimeStamp 1730440880 [06:02:14]current date 1730440939 [06:02:14]FM_GetShiftState [06:02:14]SAM_PROTO_GetShiftState [06:02:14]wFMCommunicate request_size=4 [06:02:14]MH_SAM_APDU [06:02:14]CAPDU: 80 13 01 00 [06:02:14]Write to MH i2c: E2 08 00 74 48 80 13 01 00 00 00 00 00 39 [06:02:14]Write i2c OK [06:02:14]MH_I2C_Read... [06:02:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:02:14]Read from MH i2c: E2 [06:02:14]MH_I2C_Read... [06:02:14]Read from MH i2c: E2 0E 00 [06:02:14]MH_I2C_Read... [06:02:14]Read from MH i2c: E2 0E 00 74 48 00 09 00 01 89 19 24 67 00 00 00 00 90 00 72 [06:02:14]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:02:14]wFMCommunicate OK [06:02:14]SAM_PROTO_GetShiftState done [06:02:14]FM_GetShiftState done [06:02:14]opened in 1730419081 [06:02:14]opened+sec_in_day 1730505481 [06:02:14]quantity*price = 9500 [06:02:14]sum+1 = 9501 [06:02:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 70 01.11.2024 06:02 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139889 ФПД: 100025483346425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T060219&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139889&fm=100025483346425&tin=02508201610067®Number=0000000000091631&sum=9500 0 [06:02:16]StoreToDocumentArchive [06:02:16]shift 558 fd 139889 [06:02:16]save to /storage/0558/doc_00139889 [06:02:16]save last doc name /storage/0558/doc_00139889 to /storage/kkm_last_doc_name [06:02:16]save OK [06:02:16]Clear old archive folders... [06:02:16]ProcessDocumentItem done err = 0, tmpTLVsize=293 [06:02:16]tlvbuf is 00A5D820 [06:02:16]SAM_PROTO_ClearQueue [06:02:16]wFMCommunicate request_size=4 [06:02:16]MH_SAM_APDU [06:02:16]CAPDU: 80 09 00 00 [06:02:16]Write to MH i2c: E2 08 00 81 48 80 09 00 00 00 00 00 00 3B [06:02:16]Write i2c OK [06:02:16]MH_I2C_Read... [06:02:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:02:16]Read from MH i2c: E2 [06:02:16]MH_I2C_Read... [06:02:16]Read from MH i2c: E2 03 00 [06:02:16]MH_I2C_Read... [06:02:16]Read from MH i2c: E2 03 00 81 48 00 90 00 3D [06:02:16]RAPDU: 90 00 [06:02:16]wFMCommunicate OK [06:02:16]SAM_PROTO_ClearQueue done [06:02:16]KKMCreateOFDPacket [06:02:16]OFDProtocolAddRootSTLVToBuf [06:02:16]FM_MakeSignedData [06:02:16]FM_MakeSignedData [06:02:16]SAM_PROTO_SignData [06:02:16]wFMCommunicate request_size=4 [06:02:16]MH_SAM_APDU [06:02:16]CAPDU: 80 0D 01 02 [06:02:16]Write to MH i2c: E2 08 00 82 48 80 0D 01 02 00 00 00 00 43 [06:02:16]Write i2c OK [06:02:16]MH_I2C_Read... [06:02:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:02:16]Read from MH i2c: E2 [06:02:16]MH_I2C_Read... [06:02:16]Read from MH i2c: E2 03 00 [06:02:16]MH_I2C_Read... [06:02:16]Read from MH i2c: E2 03 00 82 48 00 90 00 3E [06:02:16]RAPDU: 90 00 [06:02:16]wFMCommunicate OK [06:02:16]wFMCommunicate request_size=255 [06:02:16]MH_SAM_APDU [06:02:16]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 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 46 00 00 00 F4 03 04 00 EB 6E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [06:02:16]Write to MH i2c: E2 02 01 83 48 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 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 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 46 00 00 00 F4 03 04 00 EB 6E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 95 [06:02:16]Write i2c OK [06:02:16]MH_I2C_Read... [06:02:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:02:16]Read from MH i2c: E2 [06:02:16]MH_I2C_Read... [06:02:16]Read from MH i2c: E2 03 00 [06:02:16]MH_I2C_Read... [06:02:16]Read from MH i2c: E2 03 00 83 48 00 90 00 3F [06:02:16]RAPDU: 90 00 [06:02:16]wFMCommunicate OK [06:02:16]wFMCommunicate request_size=52 [06:02:16]MH_SAM_APDU [06:02:16]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 71 22 02 00 35 04 06 00 5A F8 FF 67 41 F9 [06:02:16]Write to MH i2c: E2 37 00 84 48 80 0D 02 02 2F 00 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 71 22 02 00 35 04 06 00 5A F8 FF 67 41 F9 00 00 93 [06:02:16]Write i2c OK [06:02:16]MH_I2C_Read... [06:02:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:02:16]Read from MH i2c: E2 [06:02:16]MH_I2C_Read... [06:02:16]Read from MH i2c: E2 03 00 [06:02:16]MH_I2C_Read... [06:02:16]Read from MH i2c: E2 03 00 84 48 00 90 00 40 [06:02:16]RAPDU: 90 00 [06:02:16]wFMCommunicate OK [06:02:16]wFMCommunicate request_size=4 [06:02:16]MH_SAM_APDU [06:02:16]CAPDU: 80 0D 03 02 [06:02:16]Write to MH i2c: E2 08 00 85 48 80 0D 03 02 00 00 00 00 48 [06:02:16]Write i2c OK [06:02:16]MH_I2C_Read... [06:02:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:02:16]Read from MH i2c: E2 [06:02:16]MH_I2C_Read... [06:02:16]Read from MH i2c: E2 0B 00 [06:02:16]MH_I2C_Read... [06:02:16]Read from MH i2c: E2 0B 00 85 48 00 7C 22 B4 CB 1E 56 AD 7B 90 00 02 [06:02:16]RAPDU: 7C 22 B4 CB 1E 56 AD 7B 90 00 [06:02:16]wFMCommunicate OK [06:02:16]SAM_PROTO_SignData done [06:02:16]FM_MakeSignedData done [06:02:16]CreateOFDProtocolMessage [06:02:16]wFMCommunicate request_size=4 [06:02:16]MH_SAM_APDU [06:02:16]CAPDU: 80 11 00 00 [06:02:16]Write to MH i2c: E2 08 00 86 48 80 11 00 00 00 00 00 00 48 [06:02:16]Write i2c OK [06:02:16]MH_I2C_Read... [06:02:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:02:16]Read from MH i2c: E2 [06:02:16]MH_I2C_Read... [06:02:16]Read from MH i2c: E2 17 00 [06:02:16]MH_I2C_Read... [06:02:16]Read from MH i2c: E2 17 00 86 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A3 [06:02:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:02:16]wFMCommunicate OK [06:02:16]CreateOFDProtocolMessage done [06:02:16]OFDSenderStorePacket 139889 [06:02:16]StoreOFDPacket docnum=139889 [06:02:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 39 01 00 00 2E 4C 31 01 B7 88 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 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 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 46 00 00 00 F4 03 04 00 EB 6E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 71 22 02 00 35 04 06 00 5A F8 FF 67 41 F9 7C 22 B4 CB 1E 56 AD 7B [06:02:16]CheckFolder [06:02:16]dirname=/storage/ofd_packets [06:02:16]CheckFolder done [06:02:16]ProducePacketName [06:02:16]name=ofd_packets/00139889 [06:02:16]NVStorageSaveData ofd_packets/00139889 [06:02:16]File name is /storage/ofd_packets/00139889 [06:02:16]Write 343 bytes [06:02:16]NVStorageSaveData done [06:02:16]OFDSenderStorePacket done [06:02:16]KKMCreateOFDPacket done [06:02:16]NVStorageSaveData kkm_last_timestamp [06:02:16]File name is /storage/kkm_last_timestamp [06:02:16]Write 4 bytes [06:02:16]NVStorageSaveData done [06:02:16]OFD Sender: Processing packet 139889 [packets to send 34, broken 33] [06:02:16]ProducePacketName [06:02:16]name=ofd_packets/00139889 [06:02:16]OFD Sender: To server: pG, [06:02:16]CommunicateWithHost lk.salyk.kg:30040 [06:02:16]ConnectInit lk.salyk.kg [06:02:16]ExternCall_PrintAddStr [06:02:16]wPrintStart [06:02:16]Write to MH i2c: 01 00 00 87 48 CF [06:02:16]Write i2c OK [06:02:16]MH_I2C_Read... [06:02:16]Read from MH i2c: 01 [06:02:16]MH_I2C_Read... [06:02:16]Read from MH i2c: 01 07 00 [06:02:16]MH_I2C_Read... [06:02:16]Read from MH i2c: 01 07 00 87 48 00 00 00 00 00 FF 0F E4 [06:02:16]RasterBufferAndPrint [06:02:16]line Счет N : (3)335715 [06:02:16]line ИНН: 02508201610067 [06:02:16]line Контрольно-Кассовый Чек [06:02:16]line ПРОДАЖА [06:02:16]line Товар: 4700003010056 [06:02:16]line Чай хол Let`s Go! зел лим ПЭТ 1,25л [06:02:16]line 1.000 * 95.00 [06:02:16]line = 95.00 [06:02:16]line НДС 12% НСП 1% [06:02:16]line > о реализуемом товаре [06:02:16]line ИТОГО: 95.00 [06:02:16]line НСП 1% : 0.84 [06:02:16]line НДС 12% : 10.09 [06:02:16]line Наличными: 95.00 [06:02:16]line Безнал.: 0.00 [06:02:16]line Место: АЗС № 101 "Партнер Нефть" [06:02:16]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:02:16]line СНО: Общий режим [06:02:16]line Чек 70 01.11.2024 06:02 [06:02:16]line Смена: 558 ФФД: 1.0 [06:02:16]line ЗНМ: 0300000081 [06:02:16]line РНМ: 0000000000091631 [06:02:16]line Версия ККМ: 001 [06:02:16]line ФМ: 0000000000874669 [06:02:16]line ФД: 139889 [06:02:16]line ФПД: 100025483346425 [06:02:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T060219&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139889&fm=100025483346425&tin=02508201610067®Number=0000000000091631&sum=9500 [06:02:17]line 0 [06:02:17]Connected sock=11 [06:02:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 39 01 00 00 2E 4C 31 01 B7 88 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 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 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 46 00 00 00 F4 03 04 00 EB 6E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 71 22 02 00 35 04 06 00 5A F8 FF 67 41 F9 7C 22 B4 CB 1E 56 AD 7B [06:02:17]written 0, free lines is 4095 [06:02:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 09 BF 47 00 1C 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 34 36 36 39 10 04 04 00 71 22 02 00 F4 03 04 00 96 1A 24 67 B6 04 01 00 00 79 1E 7C 14 7B 7D 3D E4 [06:02:17]CommunicateWithHost err = 0 [06:02:17]CheckOFDResponse [06:02:17]1017 (14) - 77093643461234 [06:02:17]1041 (16) - 0000000000874669 [06:02:17]1040 (4) - 139889 [06:02:17]1012 (4) - 01.11.2024 00:02 [06:02:17]1206 (1) - 0 [06:02:17]OFD Sender: Remove packet 139889 [06:02:17]ProducePacketName [06:02:17]name=ofd_packets/00139889 [06:02:17]NVStorageDeleteData [06:02:17]Write to MH i2c: 01 00 00 B0 48 F8 [06:02:17]Write i2c OK [06:02:17]MH_I2C_Read... [06:02:17]Read from MH i2c: 01 [06:02:17]MH_I2C_Read... [06:02:17]Read from MH i2c: 01 07 00 [06:02:17]MH_I2C_Read... [06:02:17]Read from MH i2c: 01 07 00 B0 48 00 00 00 00 00 03 0D 0F [06:02:17]RasterBufferAndPrint [06:02:17]line [06:02:17]line [06:02:17]line [06:02:17]line [06:02:17]line [06:02:17]written 0, free lines is 3340 [06:02:17]MH_Cut [06:02:17]Write to MH i2c: D1 01 00 B7 48 01 D1 [06:02:17]Write i2c OK [06:02:17]MH_I2C_Read... [06:02:17]Read from MH i2c: D1 [06:02:17]MH_I2C_Read... [06:02:17]Read from MH i2c: D1 01 00 [06:02:17]MH_I2C_Read... [06:02:17]Read from MH i2c: D1 01 00 B7 48 00 D0 [06:02:17]Write to MH i2c: 01 00 00 B8 48 00 [06:02:17]Write i2c OK [06:02:17]MH_I2C_Read... [06:02:17]OFD Sender: No OFD packet to send [06:02:18]*** Cut start [06:02:18]*** Partial cut [06:02:18]*** CUTSNS_PIN = 1 [06:02:18]*** CUTSNS_PIN = 0 [06:02:18]*** Brake cut motor [06:02:18]Read from MH i2c: 01 [06:02:18]MH_I2C_Read... [06:02:18]*** Stop cut motor [06:02:18]*** Cut end [06:02:18]Read from MH i2c: 01 07 00 [06:02:18]MH_I2C_Read... [06:02:18]Read from MH i2c: 01 07 00 B8 48 00 00 00 00 00 FF 0F 15 [06:02:18]process_action close_receipt done [06:02:18]requested_data is exist [06:02:18]produce_requested_data [06:02:18]requested_item fm.sn is exist - process it [06:02:18]wFMCommunicate request_size=4 [06:02:18]MH_SAM_APDU [06:02:18]CAPDU: 80 11 00 00 [06:02:18]Write to MH i2c: E2 08 00 B9 48 80 11 00 00 00 00 00 00 7B [06:02:18]Write i2c OK [06:02:18]MH_I2C_Read... [06:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:02:18]Read from MH i2c: E2 [06:02:18]MH_I2C_Read... [06:02:18]Read from MH i2c: E2 17 00 [06:02:18]MH_I2C_Read... [06:02:18]Read from MH i2c: E2 17 00 B9 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D6 [06:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:02:18]wFMCommunicate OK [06:02:18]requested_item fd.num is exist - process it [06:02:18]SAM_PROTO_GetFieldsCounters [06:02:18]wFMCommunicate request_size=4 [06:02:18]MH_SAM_APDU [06:02:18]CAPDU: 80 13 00 00 [06:02:18]Write to MH i2c: E2 08 00 BA 48 80 13 00 00 00 00 00 00 7E [06:02:18]Write i2c OK [06:02:18]MH_I2C_Read... [06:02:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:02:18]Read from MH i2c: E2 [06:02:18]MH_I2C_Read... [06:02:18]Read from MH i2c: E2 62 00 [06:02:18]MH_I2C_Read... [06:02:18]Read from MH i2c: E2 62 00 BA 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 71 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [06:02:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 71 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:02:18]wFMCommunicate OK [06:02:18]SAM_PROTO_GetFieldsCounters done [06:02:18]requested_item shift.num is exist - process it [06:02:18]requested_item shift.opened is exist - process it [06:02:18]req_shift_opened [06:02:18]FM_GetShiftState [06:02:18]SAM_PROTO_GetShiftState [06:02:18]wFMCommunicate request_size=4 [06:02:18]MH_SAM_APDU [06:02:18]CAPDU: 80 13 01 00 [06:02:18]Write to MH i2c: E2 08 00 BB 48 80 13 01 00 00 00 00 00 80 [06:02:18]Write i2c OK [06:02:18]MH_I2C_Read... [06:02:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:02:19]Read from MH i2c: E2 [06:02:19]MH_I2C_Read... [06:02:19]Read from MH i2c: E2 0E 00 [06:02:19]MH_I2C_Read... [06:02:19]Read from MH i2c: E2 0E 00 BB 48 00 09 00 01 89 19 24 67 00 00 00 00 90 00 B9 [06:02:19]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:02:19]wFMCommunicate OK [06:02:19]SAM_PROTO_GetShiftState done [06:02:19]FM_GetShiftState done [06:02:19]req_shift_opened done [06:02:19]requested_item shift.open_date is exist - process it [06:02:19]req_shift_open_date [06:02:19]req_shift_open_date done [06:02:19]produce_requested_data done [06:02:19]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139889,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [06:02:19]process_action_free close_receipt [06:02:19]json_value_free [06:02:19]json_value_free done [06:02:19]process_json_proto returns [06:02:19]Send response to host [06:02:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139889,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [06:02:19]free response buf [06:02:19]execute_script done [06:02:19]execute_script returns [06:02:19]free content buf [06:02:19]Sock 9.Close socket [06:02:19]Sock 9.Thread stoped [06:02:21]accept exits with 7 [06:02:21]New connection [06:02:21]New thread 3066654052 created [06:02:21]Thread 3066510692 joined [06:02:21]Waiting for new connection... [06:02:21] Sock 7.Parse request [06:02:21]Sock 7.Check first char [06:02:21]Sock 7.First char is OK [06:02:21]request: POST /json_proto HTTP/1.0 [06:02:21]Method: POST [06:02:21]URL: /json_proto [06:02:21]Method is POST - this is cgi request [06:02:21]url: /json_proto [06:02:21]query_string will be loaded in cgi processing [06:02:21]execute_cgi json_proto POST (null) [06:02:21]execute_cgi path=json_proto method=POST [06:02:21]POST find Content-Length [06:02:21]Host: 172.17.50.196:8080 [06:02:21]Content-Length: 630 [06:02:21]Content-Type: application/json [06:02:21] [06:02:21]POST finish read [06:02:21]Found Content-Length = 630 [06:02:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335716", "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" ] } } [06:02:21]execute_script... [06:02:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335716", "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" ] } } [06:02:21]POST & json_proto [06:02:21]process_json_proto [06:02:21]json parsed OK: [06:02:21]protocol is kg_v1.0 [06:02:21]action value=close_receipt [06:02:21]process_action close_receipt [06:02:21]cmd_close_receipt [06:02:21]MH_GetDate [06:02:21]Write to MH i2c: F0 00 00 BC 48 F3 [06:02:21]Write i2c OK [06:02:21]MH_I2C_Read... [06:02:21]Read from MH i2c: F0 [06:02:21]MH_I2C_Read... [06:02:21]Read from MH i2c: F0 09 00 [06:02:21]MH_I2C_Read... [06:02:21]Read from MH i2c: F0 09 00 BC 48 00 F2 6E 24 67 72 0D 1C 67 E9 [06:02:21]GetLastDocTimeStamp 1730440939 [06:02:21]current date 1730440946 [06:02:21]FM_GetShiftState [06:02:21]SAM_PROTO_GetShiftState [06:02:21]wFMCommunicate request_size=4 [06:02:21]MH_SAM_APDU [06:02:21]CAPDU: 80 13 01 00 [06:02:21]Write to MH i2c: E2 08 00 BD 48 80 13 01 00 00 00 00 00 82 [06:02:21]Write i2c OK [06:02:21]MH_I2C_Read... [06:02:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:02:21]Read from MH i2c: E2 [06:02:21]MH_I2C_Read... [06:02:21]Read from MH i2c: E2 0E 00 [06:02:21]MH_I2C_Read... [06:02:21]Read from MH i2c: E2 0E 00 BD 48 00 09 00 01 89 19 24 67 00 00 00 00 90 00 BB [06:02:21]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:02:21]wFMCommunicate OK [06:02:21]SAM_PROTO_GetShiftState done [06:02:21]FM_GetShiftState done [06:02:21]opened in 1730419081 [06:02:21]opened+sec_in_day 1730505481 [06:02:21]quantity*price = 5000 [06:02:21]sum+1 = 5001 [06:02:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 71 01.11.2024 06:02 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139890 ФПД: 84633333359994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T060226&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139890&fm=84633333359994&tin=02508201610067®Number=0000000000091631&sum=5000 0 [06:02:23]StoreToDocumentArchive [06:02:23]shift 558 fd 139890 [06:02:23]save to /storage/0558/doc_00139890 [06:02:23]save last doc name /storage/0558/doc_00139890 to /storage/kkm_last_doc_name [06:02:23]save OK [06:02:23]Clear old archive folders... [06:02:23]ProcessDocumentItem done err = 0, tmpTLVsize=269 [06:02:23]tlvbuf is 00A93FF0 [06:02:23]SAM_PROTO_ClearQueue [06:02:23]wFMCommunicate request_size=4 [06:02:23]MH_SAM_APDU [06:02:23]CAPDU: 80 09 00 00 [06:02:23]Write to MH i2c: E2 08 00 CA 48 80 09 00 00 00 00 00 00 84 [06:02:23]Write i2c OK [06:02:23]MH_I2C_Read... [06:02:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:02:23]Read from MH i2c: E2 [06:02:23]MH_I2C_Read... [06:02:23]Read from MH i2c: E2 03 00 [06:02:23]MH_I2C_Read... [06:02:23]Read from MH i2c: E2 03 00 CA 48 00 90 00 86 [06:02:23]RAPDU: 90 00 [06:02:23]wFMCommunicate OK [06:02:23]SAM_PROTO_ClearQueue done [06:02:23]KKMCreateOFDPacket [06:02:23]OFDProtocolAddRootSTLVToBuf [06:02:23]FM_MakeSignedData [06:02:23]FM_MakeSignedData [06:02:23]SAM_PROTO_SignData [06:02:23]wFMCommunicate request_size=4 [06:02:23]MH_SAM_APDU [06:02:23]CAPDU: 80 0D 01 02 [06:02:23]Write to MH i2c: E2 08 00 CB 48 80 0D 01 02 00 00 00 00 8C [06:02:23]Write i2c OK [06:02:23]MH_I2C_Read... [06:02:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:02:23]Read from MH i2c: E2 [06:02:23]MH_I2C_Read... [06:02:23]Read from MH i2c: E2 03 00 [06:02:23]MH_I2C_Read... [06:02:23]Read from MH i2c: E2 03 00 CB 48 00 90 00 87 [06:02:23]RAPDU: 90 00 [06:02:23]wFMCommunicate OK [06:02:23]wFMCommunicate request_size=255 [06:02:23]MH_SAM_APDU [06:02:23]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 F2 6E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [06:02:23]Write to MH i2c: E2 02 01 CC 48 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 47 00 00 00 F4 03 04 00 F2 6E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 00 [06:02:23]Write i2c OK [06:02:23]MH_I2C_Read... [06:02:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:02:23]Read from MH i2c: E2 [06:02:23]MH_I2C_Read... [06:02:23]Read from MH i2c: E2 03 00 [06:02:23]MH_I2C_Read... [06:02:23]Read from MH i2c: E2 03 00 CC 48 00 90 00 88 [06:02:23]RAPDU: 90 00 [06:02:23]wFMCommunicate OK [06:02:23]wFMCommunicate request_size=28 [06:02:23]MH_SAM_APDU [06:02:23]CAPDU: 80 0D 02 02 17 37 34 36 36 39 10 04 04 00 72 22 02 00 35 04 06 00 4C F9 3B C5 65 7A [06:02:23]Write to MH i2c: E2 1F 00 CD 48 80 0D 02 02 17 00 37 34 36 36 39 10 04 04 00 72 22 02 00 35 04 06 00 4C F9 3B C5 65 7A 00 00 DE [06:02:23]Write i2c OK [06:02:23]MH_I2C_Read... [06:02:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:02:23]Read from MH i2c: E2 [06:02:23]MH_I2C_Read... [06:02:23]Read from MH i2c: E2 03 00 [06:02:23]MH_I2C_Read... [06:02:23]Read from MH i2c: E2 03 00 CD 48 00 90 00 89 [06:02:23]RAPDU: 90 00 [06:02:23]wFMCommunicate OK [06:02:23]wFMCommunicate request_size=4 [06:02:23]MH_SAM_APDU [06:02:23]CAPDU: 80 0D 03 02 [06:02:23]Write to MH i2c: E2 08 00 CE 48 80 0D 03 02 00 00 00 00 91 [06:02:23]Write i2c OK [06:02:23]MH_I2C_Read... [06:02:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:02:23]Read from MH i2c: E2 [06:02:23]MH_I2C_Read... [06:02:23]Read from MH i2c: E2 0B 00 [06:02:23]MH_I2C_Read... [06:02:23]Read from MH i2c: E2 0B 00 CE 48 00 E5 B1 9E BC 02 07 09 A6 90 00 3A [06:02:23]RAPDU: E5 B1 9E BC 02 07 09 A6 90 00 [06:02:23]wFMCommunicate OK [06:02:23]SAM_PROTO_SignData done [06:02:23]FM_MakeSignedData done [06:02:23]CreateOFDProtocolMessage [06:02:23]wFMCommunicate request_size=4 [06:02:23]MH_SAM_APDU [06:02:23]CAPDU: 80 11 00 00 [06:02:23]Write to MH i2c: E2 08 00 CF 48 80 11 00 00 00 00 00 00 91 [06:02:23]Write i2c OK [06:02:23]MH_I2C_Read... [06:02:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:02:23]Read from MH i2c: E2 [06:02:23]MH_I2C_Read... [06:02:23]Read from MH i2c: E2 17 00 [06:02:23]MH_I2C_Read... [06:02:23]Read from MH i2c: E2 17 00 CF 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EC [06:02:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:02:23]wFMCommunicate OK [06:02:23]CreateOFDProtocolMessage done [06:02:23]OFDSenderStorePacket 139890 [06:02:23]StoreOFDPacket docnum=139890 [06:02:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 21 01 00 00 9A CB 19 01 5D BA 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 47 00 00 00 F4 03 04 00 F2 6E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 72 22 02 00 35 04 06 00 4C F9 3B C5 65 7A E5 B1 9E BC 02 07 09 A6 [06:02:23]CheckFolder [06:02:23]dirname=/storage/ofd_packets [06:02:23]CheckFolder done [06:02:23]ProducePacketName [06:02:23]name=ofd_packets/00139890 [06:02:23]NVStorageSaveData ofd_packets/00139890 [06:02:23]File name is /storage/ofd_packets/00139890 [06:02:23]Write 319 bytes [06:02:23]NVStorageSaveData done [06:02:23]OFDSenderStorePacket done [06:02:23]KKMCreateOFDPacket done [06:02:23]NVStorageSaveData kkm_last_timestamp [06:02:23]File name is /storage/kkm_last_timestamp [06:02:23]Write 4 bytes [06:02:23]NVStorageSaveData done [06:02:23]ExternCall_PrintAddStr [06:02:23]wPrintStart [06:02:23]Write to MH i2c: 01 00 00 D0 48 18 [06:02:23]Write i2c OK [06:02:23]MH_I2C_Read... [06:02:23]Read from MH i2c: 01 [06:02:23]MH_I2C_Read... [06:02:23]Read from MH i2c: 01 07 00 [06:02:23]MH_I2C_Read... [06:02:23]Read from MH i2c: 01 07 00 D0 48 00 00 00 00 00 FF 0F 2D [06:02:23]RasterBufferAndPrint [06:02:23]line Счет N : (3)335716 [06:02:23]line ИНН: 02508201610067 [06:02:23]line Контрольно-Кассовый Чек [06:02:23]line ПРОДАЖА [06:02:23]line Товар: 4700000160358 [06:02:23]line Вода Легенда 1л [06:02:23]line 1.000 * 50.00 [06:02:23]line = 50.00 [06:02:23]line НДС 12% НСП 1% [06:02:23]line > о реализуемом товаре [06:02:23]line ИТОГО: 50.00 [06:02:23]line НСП 1% : 0.44 [06:02:23]line НДС 12% : 5.31 [06:02:23]line Наличными: 50.00 [06:02:23]line Безнал.: 0.00 [06:02:23]line Место: АЗС № 101 "Партнер Нефть" [06:02:23]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:02:23]line СНО: Общий режим [06:02:23]line Чек 71 01.11.2024 06:02 [06:02:23]line Смена: 558 ФФД: 1.0 [06:02:23]line ЗНМ: 0300000081 [06:02:23]line РНМ: 0000000000091631 [06:02:23]line Версия ККМ: 001 [06:02:23]line ФМ: 0000000000874669 [06:02:23]line ФД: 139890 [06:02:23]line ФПД: 84633333359994 [06:02:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T060226&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139890&fm=84633333359994&tin=02508201610067®Number=0000000000091631&sum=5000 [06:02:23]line 0 [06:02:23]written 0, free lines is 4095 [06:02:23]OFD Sender: Processing packet 139890 [packets to send 34, broken 33] [06:02:23]ProducePacketName [06:02:23]name=ofd_packets/00139890 [06:02:23]OFD Sender: To server: pG, [06:02:23]CommunicateWithHost lk.salyk.kg:30040 [06:02:23]ConnectInit lk.salyk.kg [06:02:23]Connected sock=10 [06:02:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 21 01 00 00 9A CB 19 01 5D BA 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 47 00 00 00 F4 03 04 00 F2 6E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 72 22 02 00 35 04 06 00 4C F9 3B C5 65 7A E5 B1 9E BC 02 07 09 A6 [06:02:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 39 F2 47 00 9A DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 72 22 02 00 F4 03 04 00 9D 1A 24 67 B6 04 01 00 00 64 AE 9C BA 2D 42 27 19 [06:02:24]CommunicateWithHost err = 0 [06:02:24]CheckOFDResponse [06:02:24]1017 (14) - 77093643461234 [06:02:24]1041 (16) - 0000000000874669 [06:02:24]1040 (4) - 139890 [06:02:24]1012 (4) - 01.11.2024 00:02 [06:02:24]1206 (1) - 0 [06:02:24]OFD Sender: Remove packet 139890 [06:02:24]ProducePacketName [06:02:24]name=ofd_packets/00139890 [06:02:24]NVStorageDeleteData [06:02:24]Write to MH i2c: 01 00 00 F8 48 40 [06:02:24]Write i2c OK [06:02:24]MH_I2C_Read... [06:02:24]Read from MH i2c: 01 [06:02:24]MH_I2C_Read... [06:02:24]Read from MH i2c: 01 07 00 [06:02:24]MH_I2C_Read... [06:02:24]Read from MH i2c: 01 07 00 F8 48 00 00 00 00 00 1F 0D 73 [06:02:24]RasterBufferAndPrint [06:02:24]line [06:02:24]line [06:02:24]line [06:02:24]line [06:02:24]line [06:02:24]written 0, free lines is 3372 [06:02:24]MH_Cut [06:02:24]Write to MH i2c: D1 01 00 FF 48 01 19 [06:02:24]Write i2c OK [06:02:24]MH_I2C_Read... [06:02:24]Read from MH i2c: D1 [06:02:24]MH_I2C_Read... [06:02:24]Read from MH i2c: D1 01 00 [06:02:24]MH_I2C_Read... [06:02:24]Read from MH i2c: D1 01 00 FF 48 00 18 [06:02:24]Write to MH i2c: 01 00 00 00 49 49 [06:02:24]Write i2c OK [06:02:24]MH_I2C_Read... [06:02:24]OFD Sender: No OFD packet to send [06:02:24]*** Cut start [06:02:24]*** Partial cut [06:02:24]*** CUTSNS_PIN = 1 [06:02:24]*** CUTSNS_PIN = 0 [06:02:25]*** Brake cut motor [06:02:25]Read from MH i2c: 01 [06:02:25]MH_I2C_Read... [06:02:25]*** Stop cut motor [06:02:25]*** Cut end [06:02:25]Read from MH i2c: 01 07 00 [06:02:25]MH_I2C_Read... [06:02:25]Read from MH i2c: 01 07 00 00 49 00 00 00 00 00 FF 0F 5E [06:02:25]process_action close_receipt done [06:02:25]requested_data is exist [06:02:25]produce_requested_data [06:02:25]requested_item fm.sn is exist - process it [06:02:25]wFMCommunicate request_size=4 [06:02:25]MH_SAM_APDU [06:02:25]CAPDU: 80 11 00 00 [06:02:25]Write to MH i2c: E2 08 00 01 49 80 11 00 00 00 00 00 00 C4 [06:02:25]Write i2c OK [06:02:25]MH_I2C_Read... [06:02:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:02:25]Read from MH i2c: E2 [06:02:25]MH_I2C_Read... [06:02:25]Read from MH i2c: E2 17 00 [06:02:25]MH_I2C_Read... [06:02:25]Read from MH i2c: E2 17 00 01 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1F [06:02:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:02:25]wFMCommunicate OK [06:02:25]requested_item fd.num is exist - process it [06:02:25]SAM_PROTO_GetFieldsCounters [06:02:25]wFMCommunicate request_size=4 [06:02:25]MH_SAM_APDU [06:02:25]CAPDU: 80 13 00 00 [06:02:25]Write to MH i2c: E2 08 00 02 49 80 13 00 00 00 00 00 00 C7 [06:02:25]Write i2c OK [06:02:25]MH_I2C_Read... [06:02:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:02:25]Read from MH i2c: E2 [06:02:25]MH_I2C_Read... [06:02:25]Read from MH i2c: E2 62 00 [06:02:25]MH_I2C_Read... [06:02:25]Read from MH i2c: E2 62 00 02 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 72 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [06:02:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 72 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:02:25]wFMCommunicate OK [06:02:25]SAM_PROTO_GetFieldsCounters done [06:02:25]requested_item shift.num is exist - process it [06:02:25]requested_item shift.opened is exist - process it [06:02:25]req_shift_opened [06:02:25]FM_GetShiftState [06:02:25]SAM_PROTO_GetShiftState [06:02:25]wFMCommunicate request_size=4 [06:02:25]MH_SAM_APDU [06:02:25]CAPDU: 80 13 01 00 [06:02:25]Write to MH i2c: E2 08 00 03 49 80 13 01 00 00 00 00 00 C9 [06:02:25]Write i2c OK [06:02:25]MH_I2C_Read... [06:02:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:02:25]Read from MH i2c: E2 [06:02:25]MH_I2C_Read... [06:02:25]Read from MH i2c: E2 0E 00 [06:02:25]MH_I2C_Read... [06:02:25]Read from MH i2c: E2 0E 00 03 49 00 09 00 01 89 19 24 67 00 00 00 00 90 00 02 [06:02:25]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:02:25]wFMCommunicate OK [06:02:25]SAM_PROTO_GetShiftState done [06:02:25]FM_GetShiftState done [06:02:25]req_shift_opened done [06:02:25]requested_item shift.open_date is exist - process it [06:02:25]req_shift_open_date [06:02:25]req_shift_open_date done [06:02:25]produce_requested_data done [06:02:25]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139890,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [06:02:25]process_action_free close_receipt [06:02:25]json_value_free [06:02:25]json_value_free done [06:02:25]process_json_proto returns [06:02:25]Send response to host [06:02:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139890,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [06:02:25]free response buf [06:02:25]execute_script done [06:02:25]execute_script returns [06:02:25]free content buf [06:02:25]Sock 7.Close socket [06:02:25]Sock 7.Thread stoped [06:02:29]OFD Sender: No OFD packet to send [06:02:34]OFD Sender: No OFD packet to send [06:02:39]OFD Sender: No OFD packet to send [06:02:44]OFD Sender: No OFD packet to send [06:02:49]OFD Sender: No OFD packet to send [06:02:54]OFD Sender: No OFD packet to send [06:02:59]OFD Sender: No OFD packet to send [06:03:04]OFD Sender: No OFD packet to send [06:03:09]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:24]OFD Sender: No OFD packet to send [06:03:29]OFD Sender: No OFD packet to send [06:03:34]accept exits with 9 [06:03:34]New connection [06:03:34]New thread 3066510692 created [06:03:34]Thread 3066654052 joined [06:03:34]Waiting for new connection... [06:03:34] Sock 9.Parse request [06:03:34]Sock 9.Check first char [06:03:34]Sock 9.First char is OK [06:03:34]request: POST /json_proto HTTP/1.0 [06:03:34]Method: POST [06:03:34]URL: /json_proto [06:03:34]Method is POST - this is cgi request [06:03:34]url: /json_proto [06:03:34]query_string will be loaded in cgi processing [06:03:34]execute_cgi json_proto POST (null) [06:03:34]execute_cgi path=json_proto method=POST [06:03:34]POST find Content-Length [06:03:34]Host: 172.17.50.196:8080 [06:03:34]Content-Length: 688 [06:03:34]Content-Type: application/json [06:03:34] [06:03:34]POST finish read [06:03:34]Found Content-Length = 688 [06:03:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 30.530, "sum" : 2326.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2326.00, "payments": [ { "type": 0, "sum" : 2326.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:34]execute_script... [06:03:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 30.530, "sum" : 2326.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2326.00, "payments": [ { "type": 0, "sum" : 2326.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:34]POST & json_proto [06:03:34]process_json_proto [06:03:34]json parsed OK: [06:03:34]protocol is kg_v1.0 [06:03:34]action value=close_receipt [06:03:34]process_action close_receipt [06:03:34]cmd_close_receipt [06:03:34]MH_GetDate [06:03:34]Write to MH i2c: F0 00 00 04 49 3C [06:03:34]Write i2c OK [06:03:34]MH_I2C_Read... [06:03:34]Read from MH i2c: F0 [06:03:34]MH_I2C_Read... [06:03:34]Read from MH i2c: F0 09 00 [06:03:34]MH_I2C_Read... [06:03:34]Read from MH i2c: F0 09 00 04 49 00 3A 6F 24 67 72 0D 1C 67 7B [06:03:34]GetLastDocTimeStamp 1730440946 [06:03:34]current date 1730441018 [06:03:34]FM_GetShiftState [06:03:34]SAM_PROTO_GetShiftState [06:03:34]wFMCommunicate request_size=4 [06:03:34]MH_SAM_APDU [06:03:34]CAPDU: 80 13 01 00 [06:03:34]Write to MH i2c: E2 08 00 05 49 80 13 01 00 00 00 00 00 CB [06:03:34]Write i2c OK [06:03:34]MH_I2C_Read... [06:03:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:34]Read from MH i2c: E2 [06:03:34]MH_I2C_Read... [06:03:34]Read from MH i2c: E2 0E 00 [06:03:34]MH_I2C_Read... [06:03:34]Read from MH i2c: E2 0E 00 05 49 00 09 00 01 89 19 24 67 00 00 00 00 90 00 04 [06:03:34]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:03:34]wFMCommunicate OK [06:03:34]SAM_PROTO_GetShiftState done [06:03:34]FM_GetShiftState done [06:03:34]opened in 1730419081 [06:03:34]opened+sec_in_day 1730505481 [06:03:34]quantity*price = 232638 [06:03:34]sum+1 = 232640 [06:03:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 2326.00 Внесено: 3000.00 СДАЧА: 674.00 НСП 1% : 20.59 НДС 12% : 247.05 Наличными: 2326.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 72 01.11.2024 06:03 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139891 ФПД: 18946560272178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T060338&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139891&fm=18946560272178&tin=02508201610067®Number=0000000000091631&sum=232600 [06:03:35]StoreToDocumentArchive [06:03:35]shift 558 fd 139891 [06:03:35]save to /storage/0558/doc_00139891 [06:03:35]save last doc name /storage/0558/doc_00139891 to /storage/kkm_last_doc_name [06:03:35]save OK [06:03:35]Clear old archive folders... [06:03:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:03:35]tlvbuf is 00B362F0 [06:03:35]SAM_PROTO_ClearQueue [06:03:35]wFMCommunicate request_size=4 [06:03:35]MH_SAM_APDU [06:03:35]CAPDU: 80 09 00 00 [06:03:35]Write to MH i2c: E2 08 00 12 49 80 09 00 00 00 00 00 00 CD [06:03:35]Write i2c OK [06:03:35]MH_I2C_Read... [06:03:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:03:35]Read from MH i2c: E2 [06:03:35]MH_I2C_Read... [06:03:35]Read from MH i2c: E2 03 00 [06:03:35]MH_I2C_Read... [06:03:35]Read from MH i2c: E2 03 00 12 49 00 90 00 CF [06:03:35]RAPDU: 90 00 [06:03:35]wFMCommunicate OK [06:03:35]SAM_PROTO_ClearQueue done [06:03:35]KKMCreateOFDPacket [06:03:35]OFDProtocolAddRootSTLVToBuf [06:03:35]FM_MakeSignedData [06:03:35]FM_MakeSignedData [06:03:35]SAM_PROTO_SignData [06:03:35]wFMCommunicate request_size=4 [06:03:35]MH_SAM_APDU [06:03:35]CAPDU: 80 0D 01 02 [06:03:35]Write to MH i2c: E2 08 00 13 49 80 0D 01 02 00 00 00 00 D5 [06:03:35]Write i2c OK [06:03:35]MH_I2C_Read... [06:03:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:03:35]Read from MH i2c: E2 [06:03:35]MH_I2C_Read... [06:03:35]Read from MH i2c: E2 03 00 [06:03:35]MH_I2C_Read... [06:03:35]Read from MH i2c: E2 03 00 13 49 00 90 00 D0 [06:03:35]RAPDU: 90 00 [06:03:35]wFMCommunicate OK [06:03:35]wFMCommunicate request_size=255 [06:03:35]MH_SAM_APDU [06:03:35]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 42 77 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 BF 8C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 8C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 60 00 00 00 00 07 04 06 00 98 8C 03 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 3A 6F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 73 22 02 00 35 04 06 00 [06:03:35]Write to MH i2c: E2 02 01 14 49 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 42 77 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 BF 8C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 8C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 60 00 00 00 00 07 04 06 00 98 8C 03 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 3A 6F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 73 22 02 00 35 04 06 00 00 00 87 [06:03:35]Write i2c OK [06:03:35]MH_I2C_Read... [06:03:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:35]Read from MH i2c: E2 [06:03:35]MH_I2C_Read... [06:03:35]Read from MH i2c: E2 03 00 [06:03:35]MH_I2C_Read... [06:03:35]Read from MH i2c: E2 03 00 14 49 00 90 00 D1 [06:03:35]RAPDU: 90 00 [06:03:35]wFMCommunicate OK [06:03:35]wFMCommunicate request_size=11 [06:03:35]MH_SAM_APDU [06:03:35]CAPDU: 80 0D 02 02 06 11 3B 56 FE A7 32 [06:03:35]Write to MH i2c: E2 0E 00 15 49 80 0D 02 02 06 00 11 3B 56 FE A7 32 00 00 5D [06:03:35]Write i2c OK [06:03:35]MH_I2C_Read... [06:03:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:35]Read from MH i2c: E2 [06:03:35]MH_I2C_Read... [06:03:35]Read from MH i2c: E2 03 00 [06:03:35]MH_I2C_Read... [06:03:35]Read from MH i2c: E2 03 00 15 49 00 90 00 D2 [06:03:35]RAPDU: 90 00 [06:03:35]wFMCommunicate OK [06:03:35]wFMCommunicate request_size=4 [06:03:35]MH_SAM_APDU [06:03:35]CAPDU: 80 0D 03 02 [06:03:35]Write to MH i2c: E2 08 00 16 49 80 0D 03 02 00 00 00 00 DA [06:03:35]Write i2c OK [06:03:35]MH_I2C_Read... [06:03:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:03:35]Read from MH i2c: E2 [06:03:35]MH_I2C_Read... [06:03:35]Read from MH i2c: E2 0B 00 [06:03:35]MH_I2C_Read... [06:03:35]Read from MH i2c: E2 0B 00 16 49 00 FE 6E 9F 96 F3 5B 23 9C 90 00 89 [06:03:35]RAPDU: FE 6E 9F 96 F3 5B 23 9C 90 00 [06:03:35]wFMCommunicate OK [06:03:35]SAM_PROTO_SignData done [06:03:35]FM_MakeSignedData done [06:03:35]CreateOFDProtocolMessage [06:03:35]wFMCommunicate request_size=4 [06:03:35]MH_SAM_APDU [06:03:35]CAPDU: 80 11 00 00 [06:03:35]Write to MH i2c: E2 08 00 17 49 80 11 00 00 00 00 00 00 DA [06:03:35]Write i2c OK [06:03:35]MH_I2C_Read... [06:03:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:35]Read from MH i2c: E2 [06:03:35]MH_I2C_Read... [06:03:35]Read from MH i2c: E2 17 00 [06:03:35]MH_I2C_Read... [06:03:36]Read from MH i2c: E2 17 00 17 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 35 [06:03:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:03:36]wFMCommunicate OK [06:03:36]CreateOFDProtocolMessage done [06:03:36]OFDSenderStorePacket 139891 [06:03:36]StoreOFDPacket docnum=139891 [06:03:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 44 11 08 01 98 64 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 42 77 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 BF 8C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 8C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 60 00 00 00 00 07 04 06 00 98 8C 03 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 3A 6F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 73 22 02 00 35 04 06 00 11 3B 56 FE A7 32 FE 6E 9F 96 F3 5B 23 9C [06:03:36]CheckFolder [06:03:36]dirname=/storage/ofd_packets [06:03:36]CheckFolder done [06:03:36]ProducePacketName [06:03:36]name=ofd_packets/00139891 [06:03:36]NVStorageSaveData ofd_packets/00139891 [06:03:36]File name is /storage/ofd_packets/00139891 [06:03:36]Write 302 bytes [06:03:36]NVStorageSaveData done [06:03:36]OFDSenderStorePacket done [06:03:36]KKMCreateOFDPacket done [06:03:36]NVStorageSaveData kkm_last_timestamp [06:03:36]File name is /storage/kkm_last_timestamp [06:03:36]Write 4 bytes [06:03:36]NVStorageSaveData done [06:03:36]ExternCall_PrintAddStr [06:03:36]wPrintStart [06:03:36]Write to MH i2c: 01 00 00 18 49 61 [06:03:36]Write i2c OK [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: 01 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: 01 07 00 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: 01 07 00 18 49 00 00 00 00 00 FF 0F 76 [06:03:36]RasterBufferAndPrint [06:03:36]line Счет N : (1)1095714 [06:03:36]line ИНН: 02508201610067 [06:03:36]line Контрольно-Кассовый Чек [06:03:36]line ПРОДАЖА [06:03:36]line ТРК (МРК, ГНК) : 51 [06:03:36]line Товар: 2710194210 [06:03:36]line ДТ(л)-К-2 [06:03:36]line 30.530 * 76.20 [06:03:36]line = 2326.39 [06:03:36]line НДС 12% НСП 1% [06:03:36]line > о реализуемом товаре [06:03:36]line ОКРУГЛЕНИЕ: -0.39 [06:03:36]line ИТОГО: 2326.00 [06:03:36]line Внесено: 3000.00 [06:03:36]line СДАЧА: 674.00 [06:03:36]line НСП 1% : 20.59 [06:03:36]line НДС 12% : 247.05 [06:03:36]line Наличными: 2326.00 [06:03:36]line Безнал.: 0.00 [06:03:36]line Место: АЗС № 101 "Партнер Нефть" [06:03:36]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:03:36]line СНО: Общий режим [06:03:36]line Чек 72 01.11.2024 06:03 [06:03:36]line Смена: 558 ФФД: 1.0 [06:03:36]line ЗНМ: 0300000081 [06:03:36]line РНМ: 0000000000091631 [06:03:36]line Версия ККМ: 001 [06:03:36]line ФМ: 0000000000874669 [06:03:36]line ФД: 139891 [06:03:36]line ФПД: 18946560272178 [06:03:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T060338&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139891&fm=18946560272178&tin=02508201610067®Number=0000000000091631&sum=232600 [06:03:36]OFD Sender: Processing packet 139891 [packets to send 34, broken 33] [06:03:36]ProducePacketName [06:03:36]name=ofd_packets/00139891 [06:03:36]OFD Sender: To server: pG, [06:03:36]CommunicateWithHost lk.salyk.kg:30040 [06:03:36]ConnectInit lk.salyk.kg [06:03:36]written 0, free lines is 4095 [06:03:36]Connected sock=7 [06:03:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 44 11 08 01 98 64 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 42 77 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 BF 8C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 8C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 60 00 00 00 00 07 04 06 00 98 8C 03 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 3A 6F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 73 22 02 00 35 04 06 00 11 3B 56 FE A7 32 FE 6E 9F 96 F3 5B 23 9C [06:03:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 7F 77 47 00 FA 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 34 36 36 39 10 04 04 00 73 22 02 00 F4 03 04 00 E6 1A 24 67 B6 04 01 00 00 F2 A6 8D BF B1 DB FF 9F [06:03:36]CommunicateWithHost err = 0 [06:03:36]CheckOFDResponse [06:03:36]1017 (14) - 77093643461234 [06:03:36]1041 (16) - 0000000000874669 [06:03:36]1040 (4) - 139891 [06:03:36]1012 (4) - 01.11.2024 00:03 [06:03:36]1206 (1) - 0 [06:03:36]OFD Sender: Remove packet 139891 [06:03:36]ProducePacketName [06:03:36]name=ofd_packets/00139891 [06:03:36]NVStorageDeleteData [06:03:36]Write to MH i2c: 01 00 00 43 49 8C [06:03:36]Write i2c OK [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: 01 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: 01 07 00 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: 01 07 00 43 49 00 00 00 00 00 F3 0C 92 [06:03:36]RasterBufferAndPrint [06:03:36]line [06:03:36]line [06:03:36]line [06:03:36]line [06:03:36]line [06:03:36]written 0, free lines is 3321 [06:03:36]MH_Cut [06:03:36]Write to MH i2c: D1 01 00 4A 49 01 65 [06:03:36]Write i2c OK [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: D1 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: D1 01 00 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: D1 01 00 4A 49 00 64 [06:03:36]Write to MH i2c: 01 00 00 4B 49 94 [06:03:36]Write i2c OK [06:03:36]MH_I2C_Read... [06:03:37]OFD Sender: No OFD packet to send [06:03:37]*** Cut start [06:03:37]*** Partial cut [06:03:37]*** CUTSNS_PIN = 1 [06:03:37]*** CUTSNS_PIN = 0 [06:03:37]*** Brake cut motor [06:03:38]Read from MH i2c: 01 [06:03:38]MH_I2C_Read... [06:03:38]*** Stop cut motor [06:03:38]*** Cut end [06:03:38]Read from MH i2c: 01 07 00 [06:03:38]MH_I2C_Read... [06:03:38]Read from MH i2c: 01 07 00 4B 49 00 00 00 00 00 FF 0F A9 [06:03:38]process_action close_receipt done [06:03:38]requested_data is exist [06:03:38]produce_requested_data [06:03:38]requested_item fm.sn is exist - process it [06:03:38]wFMCommunicate request_size=4 [06:03:38]MH_SAM_APDU [06:03:38]CAPDU: 80 11 00 00 [06:03:38]Write to MH i2c: E2 08 00 4C 49 80 11 00 00 00 00 00 00 0F [06:03:38]Write i2c OK [06:03:38]MH_I2C_Read... [06:03:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:38]Read from MH i2c: E2 [06:03:38]MH_I2C_Read... [06:03:38]Read from MH i2c: E2 17 00 [06:03:38]MH_I2C_Read... [06:03:38]Read from MH i2c: E2 17 00 4C 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6A [06:03:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:03:38]wFMCommunicate OK [06:03:38]requested_item fd.num is exist - process it [06:03:38]SAM_PROTO_GetFieldsCounters [06:03:38]wFMCommunicate request_size=4 [06:03:38]MH_SAM_APDU [06:03:38]CAPDU: 80 13 00 00 [06:03:38]Write to MH i2c: E2 08 00 4D 49 80 13 00 00 00 00 00 00 12 [06:03:38]Write i2c OK [06:03:38]MH_I2C_Read... [06:03:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:03:38]Read from MH i2c: E2 [06:03:38]MH_I2C_Read... [06:03:38]Read from MH i2c: E2 62 00 [06:03:38]MH_I2C_Read... [06:03:38]Read from MH i2c: E2 62 00 4D 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 73 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [06:03:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 73 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:03:38]wFMCommunicate OK [06:03:38]SAM_PROTO_GetFieldsCounters done [06:03:38]requested_item shift.num is exist - process it [06:03:38]requested_item shift.opened is exist - process it [06:03:38]req_shift_opened [06:03:38]FM_GetShiftState [06:03:38]SAM_PROTO_GetShiftState [06:03:38]wFMCommunicate request_size=4 [06:03:38]MH_SAM_APDU [06:03:38]CAPDU: 80 13 01 00 [06:03:38]Write to MH i2c: E2 08 00 4E 49 80 13 01 00 00 00 00 00 14 [06:03:38]Write i2c OK [06:03:38]MH_I2C_Read... [06:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:38]Read from MH i2c: E2 [06:03:38]MH_I2C_Read... [06:03:38]Read from MH i2c: E2 0E 00 [06:03:38]MH_I2C_Read... [06:03:38]Read from MH i2c: E2 0E 00 4E 49 00 09 00 01 89 19 24 67 00 00 00 00 90 00 4D [06:03:38]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:03:38]wFMCommunicate OK [06:03:38]SAM_PROTO_GetShiftState done [06:03:38]FM_GetShiftState done [06:03:38]req_shift_opened done [06:03:38]requested_item shift.open_date is exist - process it [06:03:38]req_shift_open_date [06:03:38]req_shift_open_date done [06:03:38]produce_requested_data done [06:03:38]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139891,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [06:03:38]process_action_free close_receipt [06:03:38]json_value_free [06:03:38]json_value_free done [06:03:38]process_json_proto returns [06:03:38]Send response to host [06:03:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139891,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [06:03:38]free response buf [06:03:38]execute_script done [06:03:38]execute_script returns [06:03:38]free content buf [06:03:38]Sock 9.Close socket [06:03:38]Sock 9.Thread stoped [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:25]accept exits with 10 [06:04:25]New connection [06:04:25]New thread 3066654052 created [06:04:25]Thread 3066510692 joined [06:04:25]Waiting for new connection... [06:04:25] Sock 10.Parse request [06:04:25]Sock 10.Check first char [06:04:25]Sock 10.First char is OK [06:04:25]request: POST /json_proto HTTP/1.0 [06:04:25]Method: POST [06:04:25]URL: /json_proto [06:04:25]Method is POST - this is cgi request [06:04:25]url: /json_proto [06:04:25]query_string will be loaded in cgi processing [06:04:25]execute_cgi json_proto POST (null) [06:04:25]execute_cgi path=json_proto method=POST [06:04:25]POST find Content-Length [06:04:25]Host: 172.17.50.196:8080 [06:04:25]Content-Length: 709 [06:04:25]Content-Type: application/json [06:04:25] [06:04:25]POST finish read [06:04:25]Found Content-Length = 709 [06:04:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335717", "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" ] } } [06:04:25]execute_script... [06:04: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)335717", "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" ] } } [06:04:25]POST & json_proto [06:04:25]process_json_proto [06:04:25]json parsed OK: [06:04:25]protocol is kg_v1.0 [06:04:25]action value=close_receipt [06:04:25]process_action close_receipt [06:04:25]cmd_close_receipt [06:04:25]MH_GetDate [06:04:25]Write to MH i2c: F0 00 00 4F 49 87 [06:04:25]Write i2c OK [06:04:25]MH_I2C_Read... [06:04:25]Read from MH i2c: F0 [06:04:25]MH_I2C_Read... [06:04:25]Read from MH i2c: F0 09 00 [06:04:25]MH_I2C_Read... [06:04:25]Read from MH i2c: F0 09 00 4F 49 00 6E 6F 24 67 72 0D 1C 67 FA [06:04:25]GetLastDocTimeStamp 1730441018 [06:04:25]current date 1730441070 [06:04:25]FM_GetShiftState [06:04:25]SAM_PROTO_GetShiftState [06:04:25]wFMCommunicate request_size=4 [06:04:25]MH_SAM_APDU [06:04:25]CAPDU: 80 13 01 00 [06:04:25]Write to MH i2c: E2 08 00 50 49 80 13 01 00 00 00 00 00 16 [06:04:25]Write i2c OK [06:04:25]MH_I2C_Read... [06:04:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:04:26]Read from MH i2c: E2 [06:04:26]MH_I2C_Read... [06:04:26]Read from MH i2c: E2 0E 00 [06:04:26]MH_I2C_Read... [06:04:26]Read from MH i2c: E2 0E 00 50 49 00 09 00 01 89 19 24 67 00 00 00 00 90 00 4F [06:04:26]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:04:26]wFMCommunicate OK [06:04:26]SAM_PROTO_GetShiftState done [06:04:26]FM_GetShiftState done [06:04:26]opened in 1730419081 [06:04:26]opened+sec_in_day 1730505481 [06:04:26]quantity*price = 9500 [06:04:26]sum+1 = 9501 [06:04:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 73 01.11.2024 06:04 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139892 ФПД: 118372301901568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T060430&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139892&fm=118372301901568&tin=02508201610067®Number=0000000000091631&sum=9500 0 [06:04:27]StoreToDocumentArchive [06:04:27]shift 558 fd 139892 [06:04:27]save to /storage/0558/doc_00139892 [06:04:27]save last doc name /storage/0558/doc_00139892 to /storage/kkm_last_doc_name [06:04:27]save OK [06:04:27]Clear old archive folders... [06:04:27]ProcessDocumentItem done err = 0, tmpTLVsize=304 [06:04:27]tlvbuf is 00BCEE20 [06:04:27]SAM_PROTO_ClearQueue [06:04:27]wFMCommunicate request_size=4 [06:04:27]MH_SAM_APDU [06:04:27]CAPDU: 80 09 00 00 [06:04:27]Write to MH i2c: E2 08 00 5D 49 80 09 00 00 00 00 00 00 18 [06:04:27]Write i2c OK [06:04:27]MH_I2C_Read... [06:04:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:04:27]Read from MH i2c: E2 [06:04:27]MH_I2C_Read... [06:04:27]Read from MH i2c: E2 03 00 [06:04:27]MH_I2C_Read... [06:04:27]Read from MH i2c: E2 03 00 5D 49 00 90 00 1A [06:04:27]RAPDU: 90 00 [06:04:27]wFMCommunicate OK [06:04:27]SAM_PROTO_ClearQueue done [06:04:27]KKMCreateOFDPacket [06:04:27]OFDProtocolAddRootSTLVToBuf [06:04:27]FM_MakeSignedData [06:04:27]FM_MakeSignedData [06:04:27]SAM_PROTO_SignData [06:04:27]wFMCommunicate request_size=4 [06:04:27]MH_SAM_APDU [06:04:27]CAPDU: 80 0D 01 02 [06:04:27]Write to MH i2c: E2 08 00 5E 49 80 0D 01 02 00 00 00 00 20 [06:04:27]Write i2c OK [06:04:27]MH_I2C_Read... [06:04:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:04:27]OFD Sender: No OFD packet to send [06:04:27]Read from MH i2c: E2 [06:04:27]MH_I2C_Read... [06:04:27]Read from MH i2c: E2 03 00 [06:04:27]MH_I2C_Read... [06:04:27]Read from MH i2c: E2 03 00 5E 49 00 90 00 1B [06:04:27]RAPDU: 90 00 [06:04:27]wFMCommunicate OK [06:04:27]wFMCommunicate request_size=255 [06:04:27]MH_SAM_APDU [06:04:27]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 49 00 00 00 F4 03 04 00 6E 6F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 [06:04:27]Write to MH i2c: E2 02 01 5F 49 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 49 00 00 00 F4 03 04 00 6E 6F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 00 00 47 [06:04:27]Write i2c OK [06:04:27]MH_I2C_Read... [06:04:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:04:27]Read from MH i2c: E2 [06:04:27]MH_I2C_Read... [06:04:27]Read from MH i2c: E2 03 00 [06:04:27]MH_I2C_Read... [06:04:27]Read from MH i2c: E2 03 00 5F 49 00 90 00 1C [06:04:27]RAPDU: 90 00 [06:04:27]wFMCommunicate OK [06:04:27]wFMCommunicate request_size=63 [06:04:27]MH_SAM_APDU [06:04:27]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 74 22 02 00 35 04 06 00 6B A8 B3 01 8F 00 [06:04:27]Write to MH i2c: E2 42 00 60 49 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 74 22 02 00 35 04 06 00 6B A8 B3 01 8F 00 00 00 5E [06:04:27]Write i2c OK [06:04:27]MH_I2C_Read... [06:04:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:04:27]Read from MH i2c: E2 [06:04:27]MH_I2C_Read... [06:04:27]Read from MH i2c: E2 03 00 [06:04:27]MH_I2C_Read... [06:04:27]Read from MH i2c: E2 03 00 60 49 00 90 00 1D [06:04:27]RAPDU: 90 00 [06:04:27]wFMCommunicate OK [06:04:27]wFMCommunicate request_size=4 [06:04:27]MH_SAM_APDU [06:04:27]CAPDU: 80 0D 03 02 [06:04:27]Write to MH i2c: E2 08 00 61 49 80 0D 03 02 00 00 00 00 25 [06:04:27]Write i2c OK [06:04:27]MH_I2C_Read... [06:04:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:04:27]Read from MH i2c: E2 [06:04:27]MH_I2C_Read... [06:04:27]Read from MH i2c: E2 0B 00 [06:04:27]MH_I2C_Read... [06:04:27]Read from MH i2c: E2 0B 00 61 49 00 39 82 71 87 A5 2C A2 1F 90 00 6B [06:04:27]RAPDU: 39 82 71 87 A5 2C A2 1F 90 00 [06:04:27]wFMCommunicate OK [06:04:27]SAM_PROTO_SignData done [06:04:27]FM_MakeSignedData done [06:04:27]CreateOFDProtocolMessage [06:04:27]wFMCommunicate request_size=4 [06:04:27]MH_SAM_APDU [06:04:27]CAPDU: 80 11 00 00 [06:04:27]Write to MH i2c: E2 08 00 62 49 80 11 00 00 00 00 00 00 25 [06:04:27]Write i2c OK [06:04:27]MH_I2C_Read... [06:04:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:04:27]Read from MH i2c: E2 [06:04:27]MH_I2C_Read... [06:04:27]Read from MH i2c: E2 17 00 [06:04:27]MH_I2C_Read... [06:04:27]Read from MH i2c: E2 17 00 62 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 80 [06:04:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:04:27]wFMCommunicate OK [06:04:27]CreateOFDProtocolMessage done [06:04:27]OFDSenderStorePacket 139892 [06:04:27]StoreOFDPacket docnum=139892 [06:04:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 44 01 00 00 58 CF 3C 01 F6 18 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 49 00 00 00 F4 03 04 00 6E 6F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 74 22 02 00 35 04 06 00 6B A8 B3 01 8F 00 39 82 71 87 A5 2C A2 1F [06:04:27]CheckFolder [06:04:27]dirname=/storage/ofd_packets [06:04:27]CheckFolder done [06:04:27]ProducePacketName [06:04:27]name=ofd_packets/00139892 [06:04:27]NVStorageSaveData ofd_packets/00139892 [06:04:27]File name is /storage/ofd_packets/00139892 [06:04:27]Write 354 bytes [06:04:27]NVStorageSaveData done [06:04:27]OFDSenderStorePacket done [06:04:27]KKMCreateOFDPacket done [06:04:27]NVStorageSaveData kkm_last_timestamp [06:04:27]File name is /storage/kkm_last_timestamp [06:04:27]Write 4 bytes [06:04:27]NVStorageSaveData done [06:04:27]ExternCall_PrintAddStr [06:04:27]wPrintStart [06:04:27]Write to MH i2c: 01 00 00 63 49 AC [06:04:27]Write i2c OK [06:04:27]MH_I2C_Read... [06:04:27]Read from MH i2c: 01 [06:04:27]MH_I2C_Read... [06:04:27]Read from MH i2c: 01 07 00 [06:04:27]MH_I2C_Read... [06:04:27]Read from MH i2c: 01 07 00 63 49 00 00 00 00 00 FF 0F C1 [06:04:27]RasterBufferAndPrint [06:04:27]line Счет N : (3)335717 [06:04:27]line ИНН: 02508201610067 [06:04:27]line Контрольно-Кассовый Чек [06:04:27]line ПРОДАЖА [06:04:27]line Товар: 4700000480302 [06:04:27]line Напиток энерг Nitro манго-клуб 0.45 ж/б [06:04:27]line 1.000 * 95.00 [06:04:27]line = 95.00 [06:04:27]line НДС 12% НСП 1% [06:04:27]line > о реализуемом товаре [06:04:27]line ИТОГО: 95.00 [06:04:27]line НСП 1% : 0.84 [06:04:27]line НДС 12% : 10.09 [06:04:27]line Наличными: 95.00 [06:04:27]line Безнал.: 0.00 [06:04:27]line Место: АЗС № 101 "Партнер Нефть" [06:04:27]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:04:27]line СНО: Общий режим [06:04:27]line Чек 73 01.11.2024 06:04 [06:04:28]line Смена: 558 ФФД: 1.0 [06:04:28]line ЗНМ: 0300000081 [06:04:28]line РНМ: 0000000000091631 [06:04:28]line Версия ККМ: 001 [06:04:28]line ФМ: 0000000000874669 [06:04:28]line ФД: 139892 [06:04:28]line ФПД: 118372301901568 [06:04:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T060430&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139892&fm=118372301901568&tin=02508201610067®Number=0000000000091631&sum=9500 [06:04:28]line 0 [06:04:28]OFD Sender: Processing packet 139892 [packets to send 34, broken 33] [06:04:28]ProducePacketName [06:04:28]name=ofd_packets/00139892 [06:04:28]OFD Sender: To server: pG, [06:04:28]CommunicateWithHost lk.salyk.kg:30040 [06:04:28]ConnectInit lk.salyk.kg [06:04:28]written 0, free lines is 4095 [06:04:28]Connected sock=9 [06:04:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 44 01 00 00 58 CF 3C 01 F6 18 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 49 00 00 00 F4 03 04 00 6E 6F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 74 22 02 00 35 04 06 00 6B A8 B3 01 8F 00 39 82 71 87 A5 2C A2 1F [06:04:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 7C 30 47 00 75 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 34 36 36 39 10 04 04 00 74 22 02 00 F4 03 04 00 1A 1B 24 67 B6 04 01 00 00 48 16 DA A1 51 DD 8B A8 [06:04:28]CommunicateWithHost err = 0 [06:04:28]CheckOFDResponse [06:04:28]1017 (14) - 77093643461234 [06:04:28]1041 (16) - 0000000000874669 [06:04:28]1040 (4) - 139892 [06:04:28]1012 (4) - 01.11.2024 00:04 [06:04:28]1206 (1) - 0 [06:04:28]OFD Sender: Remove packet 139892 [06:04:28]ProducePacketName [06:04:28]name=ofd_packets/00139892 [06:04:28]NVStorageDeleteData [06:04:28]Write to MH i2c: 01 00 00 8C 49 D5 [06:04:28]Write i2c OK [06:04:28]MH_I2C_Read... [06:04:28]Read from MH i2c: 01 [06:04:28]MH_I2C_Read... [06:04:28]Read from MH i2c: 01 07 00 [06:04:28]MH_I2C_Read... [06:04:28]Read from MH i2c: 01 07 00 8C 49 00 00 00 00 00 05 0D EE [06:04:28]RasterBufferAndPrint [06:04:28]line [06:04:28]line [06:04:28]line [06:04:28]line [06:04:28]line [06:04:28]written 0, free lines is 3339 [06:04:28]MH_Cut [06:04:28]Write to MH i2c: D1 01 00 93 49 01 AE [06:04:28]Write i2c OK [06:04:28]MH_I2C_Read... [06:04:28]Read from MH i2c: D1 [06:04:28]MH_I2C_Read... [06:04:28]Read from MH i2c: D1 01 00 [06:04:28]MH_I2C_Read... [06:04:28]Read from MH i2c: D1 01 00 93 49 00 AD [06:04:28]Write to MH i2c: 01 00 00 94 49 DD [06:04:28]Write i2c OK [06:04:28]MH_I2C_Read... [06:04:28]OFD Sender: No OFD packet to send [06:04:29]*** Cut start [06:04:29]*** Partial cut [06:04:29]*** CUTSNS_PIN = 1 [06:04:29]*** CUTSNS_PIN = 0 [06:04:29]*** Brake cut motor [06:04:29]Read from MH i2c: 01 [06:04:29]MH_I2C_Read... [06:04:29]*** Stop cut motor [06:04:29]*** Cut end [06:04:29]Read from MH i2c: 01 07 00 [06:04:29]MH_I2C_Read... [06:04:29]Read from MH i2c: 01 07 00 94 49 00 00 00 00 00 FF 0F F2 [06:04:29]process_action close_receipt done [06:04:29]requested_data is exist [06:04:29]produce_requested_data [06:04:29]requested_item fm.sn is exist - process it [06:04:29]wFMCommunicate request_size=4 [06:04:29]MH_SAM_APDU [06:04:29]CAPDU: 80 11 00 00 [06:04:29]Write to MH i2c: E2 08 00 95 49 80 11 00 00 00 00 00 00 58 [06:04:29]Write i2c OK [06:04:29]MH_I2C_Read... [06:04:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:04:29]Read from MH i2c: E2 [06:04:29]MH_I2C_Read... [06:04:29]Read from MH i2c: E2 17 00 [06:04:29]MH_I2C_Read... [06:04:29]Read from MH i2c: E2 17 00 95 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B3 [06:04:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:04:29]wFMCommunicate OK [06:04:29]requested_item fd.num is exist - process it [06:04:29]SAM_PROTO_GetFieldsCounters [06:04:29]wFMCommunicate request_size=4 [06:04:29]MH_SAM_APDU [06:04:29]CAPDU: 80 13 00 00 [06:04:29]Write to MH i2c: E2 08 00 96 49 80 13 00 00 00 00 00 00 5B [06:04:29]Write i2c OK [06:04:29]MH_I2C_Read... [06:04:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:04:29]Read from MH i2c: E2 [06:04:29]MH_I2C_Read... [06:04:29]Read from MH i2c: E2 62 00 [06:04:29]MH_I2C_Read... [06:04:29]Read from MH i2c: E2 62 00 96 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 74 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [06:04:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 74 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:04:29]wFMCommunicate OK [06:04:29]SAM_PROTO_GetFieldsCounters done [06:04:29]requested_item shift.num is exist - process it [06:04:29]requested_item shift.opened is exist - process it [06:04:29]req_shift_opened [06:04:29]FM_GetShiftState [06:04:29]SAM_PROTO_GetShiftState [06:04:29]wFMCommunicate request_size=4 [06:04:29]MH_SAM_APDU [06:04:29]CAPDU: 80 13 01 00 [06:04:29]Write to MH i2c: E2 08 00 97 49 80 13 01 00 00 00 00 00 5D [06:04:29]Write i2c OK [06:04:29]MH_I2C_Read... [06:04:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:04:29]Read from MH i2c: E2 [06:04:29]MH_I2C_Read... [06:04:29]Read from MH i2c: E2 0E 00 [06:04:29]MH_I2C_Read... [06:04:29]Read from MH i2c: E2 0E 00 97 49 00 09 00 01 89 19 24 67 00 00 00 00 90 00 96 [06:04:29]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:04:29]wFMCommunicate OK [06:04:29]SAM_PROTO_GetShiftState done [06:04:29]FM_GetShiftState done [06:04:29]req_shift_opened done [06:04:29]requested_item shift.open_date is exist - process it [06:04:29]req_shift_open_date [06:04:29]req_shift_open_date done [06:04:29]produce_requested_data done [06:04:29]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139892,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [06:04:29]process_action_free close_receipt [06:04:29]json_value_free [06:04:29]json_value_free done [06:04:29]process_json_proto returns [06:04:29]Send response to host [06:04:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139892,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [06:04:29]free response buf [06:04:29]execute_script done [06:04:29]execute_script returns [06:04:29]free content buf [06:04:29]Sock 10.Close socket [06:04:29]Sock 10.Thread stoped [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:37]accept exits with 7 [06:05:37]New connection [06:05:37]New thread 3066510692 created [06:05:37]Thread 3066654052 joined [06:05:37]Waiting for new connection... [06:05:37] Sock 7.Parse request [06:05:37]Sock 7.Check first char [06:05:37]Sock 7.First char is OK [06:05:37]request: POST /json_proto HTTP/1.0 [06:05:37]Method: POST [06:05:37]URL: /json_proto [06:05:37]Method is POST - this is cgi request [06:05:37]url: /json_proto [06:05:37]query_string will be loaded in cgi processing [06:05:37]execute_cgi json_proto POST (null) [06:05:37]execute_cgi path=json_proto method=POST [06:05:37]POST find Content-Length [06:05:37]Host: 172.17.50.196:8080 [06:05:37]Content-Length: 689 [06:05:37]Content-Type: application/json [06:05:37] [06:05:37]POST finish read [06:05:37]Found Content-Length = 689 [06:05:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194800", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:05:37]execute_script... [06:05:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194800", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:05:37]POST & json_proto [06:05:37]process_json_proto [06:05:37]json parsed OK: [06:05:37]protocol is kg_v1.0 [06:05:37]action value=close_receipt [06:05:37]process_action close_receipt [06:05:37]cmd_close_receipt [06:05:37]MH_GetDate [06:05:37]Write to MH i2c: F0 00 00 98 49 D0 [06:05:37]Write i2c OK [06:05:37]MH_I2C_Read... [06:05:37]Read from MH i2c: F0 [06:05:37]MH_I2C_Read... [06:05:37]Read from MH i2c: F0 09 00 [06:05:37]MH_I2C_Read... [06:05:37]Read from MH i2c: F0 09 00 98 49 00 B5 6F 24 67 72 0D 1C 67 8A [06:05:37]GetLastDocTimeStamp 1730441070 [06:05:37]current date 1730441141 [06:05:37]FM_GetShiftState [06:05:37]SAM_PROTO_GetShiftState [06:05:37]wFMCommunicate request_size=4 [06:05:37]MH_SAM_APDU [06:05:37]CAPDU: 80 13 01 00 [06:05:37]Write to MH i2c: E2 08 00 99 49 80 13 01 00 00 00 00 00 5F [06:05:37]Write i2c OK [06:05:37]MH_I2C_Read... [06:05:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:05:37]Read from MH i2c: E2 [06:05:37]MH_I2C_Read... [06:05:37]Read from MH i2c: E2 0E 00 [06:05:37]MH_I2C_Read... [06:05:37]Read from MH i2c: E2 0E 00 99 49 00 09 00 01 89 19 24 67 00 00 00 00 90 00 98 [06:05:37]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:05:37]wFMCommunicate OK [06:05:37]SAM_PROTO_GetShiftState done [06:05:37]FM_GetShiftState done [06:05:37]opened in 1730419081 [06:05:37]opened+sec_in_day 1730505481 [06:05:37]quantity*price = 250050 [06:05:37]sum+1 = 250052 [06:05:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 74 01.11.2024 06:05 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139893 ФПД: 88781072254216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T060541&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139893&fm=88781072254216&tin=02508201610067®Number=0000000000091631&sum=250000 [06:05:38]StoreToDocumentArchive [06:05:38]shift 558 fd 139893 [06:05:38]save to /storage/0558/doc_00139893 [06:05:38]save last doc name /storage/0558/doc_00139893 to /storage/kkm_last_doc_name [06:05:38]save OK [06:05:38]Clear old archive folders... [06:05:38]ProcessDocumentItem done err = 0, tmpTLVsize=257 [06:05:38]tlvbuf is 00A7CBB0 [06:05:38]SAM_PROTO_ClearQueue [06:05:38]wFMCommunicate request_size=4 [06:05:38]MH_SAM_APDU [06:05:38]CAPDU: 80 09 00 00 [06:05:38]Write to MH i2c: E2 08 00 A6 49 80 09 00 00 00 00 00 00 61 [06:05:38]Write i2c OK [06:05:38]MH_I2C_Read... [06:05:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:05:38]Read from MH i2c: E2 [06:05:38]MH_I2C_Read... [06:05:38]Read from MH i2c: E2 03 00 [06:05:38]MH_I2C_Read... [06:05:38]Read from MH i2c: E2 03 00 A6 49 00 90 00 63 [06:05:38]RAPDU: 90 00 [06:05:38]wFMCommunicate OK [06:05:38]SAM_PROTO_ClearQueue done [06:05:38]KKMCreateOFDPacket [06:05:38]OFDProtocolAddRootSTLVToBuf [06:05:38]FM_MakeSignedData [06:05:38]FM_MakeSignedData [06:05:38]SAM_PROTO_SignData [06:05:38]wFMCommunicate request_size=4 [06:05:38]MH_SAM_APDU [06:05:38]CAPDU: 80 0D 01 02 [06:05:38]Write to MH i2c: E2 08 00 A7 49 80 0D 01 02 00 00 00 00 69 [06:05:38]Write i2c OK [06:05:38]MH_I2C_Read... [06:05:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:05:38]Read from MH i2c: E2 [06:05:38]MH_I2C_Read... [06:05:38]Read from MH i2c: E2 03 00 [06:05:38]MH_I2C_Read... [06:05:38]Read from MH i2c: E2 03 00 A7 49 00 90 00 64 [06:05:38]RAPDU: 90 00 [06:05:38]wFMCommunicate OK [06:05:38]wFMCommunicate request_size=255 [06:05:38]MH_SAM_APDU [06:05:38]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 B5 6F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 75 22 02 [06:05:38]Write to MH i2c: E2 02 01 A8 49 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 B5 6F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 75 22 02 00 00 1A [06:05:38]Write i2c OK [06:05:38]MH_I2C_Read... [06:05:38]OFD Sender: No OFD packet to send [06:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:05:39]Read from MH i2c: E2 [06:05:39]MH_I2C_Read... [06:05:39]Read from MH i2c: E2 03 00 [06:05:39]MH_I2C_Read... [06:05:39]Read from MH i2c: E2 03 00 A8 49 00 90 00 65 [06:05:39]RAPDU: 90 00 [06:05:39]wFMCommunicate OK [06:05:39]wFMCommunicate request_size=16 [06:05:39]MH_SAM_APDU [06:05:39]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 50 BE F4 46 45 08 [06:05:39]Write to MH i2c: E2 13 00 A9 49 80 0D 02 02 0B 00 00 35 04 06 00 50 BE F4 46 45 08 00 00 56 [06:05:39]Write i2c OK [06:05:39]MH_I2C_Read... [06:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:05:39]Read from MH i2c: E2 [06:05:39]MH_I2C_Read... [06:05:39]Read from MH i2c: E2 03 00 [06:05:39]MH_I2C_Read... [06:05:39]Read from MH i2c: E2 03 00 A9 49 00 90 00 66 [06:05:39]RAPDU: 90 00 [06:05:39]wFMCommunicate OK [06:05:39]wFMCommunicate request_size=4 [06:05:39]MH_SAM_APDU [06:05:39]CAPDU: 80 0D 03 02 [06:05:39]Write to MH i2c: E2 08 00 AA 49 80 0D 03 02 00 00 00 00 6E [06:05:39]Write i2c OK [06:05:39]MH_I2C_Read... [06:05:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:05:39]Read from MH i2c: E2 [06:05:39]MH_I2C_Read... [06:05:39]Read from MH i2c: E2 0B 00 [06:05:39]MH_I2C_Read... [06:05:39]Read from MH i2c: E2 0B 00 AA 49 00 7C 0A 17 4E 02 0A 8A 66 90 00 56 [06:05:39]RAPDU: 7C 0A 17 4E 02 0A 8A 66 90 00 [06:05:39]wFMCommunicate OK [06:05:39]SAM_PROTO_SignData done [06:05:39]FM_MakeSignedData done [06:05:39]CreateOFDProtocolMessage [06:05:39]wFMCommunicate request_size=4 [06:05:39]MH_SAM_APDU [06:05:39]CAPDU: 80 11 00 00 [06:05:39]Write to MH i2c: E2 08 00 AB 49 80 11 00 00 00 00 00 00 6E [06:05:39]Write i2c OK [06:05:39]MH_I2C_Read... [06:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:05:39]Read from MH i2c: E2 [06:05:39]MH_I2C_Read... [06:05:39]Read from MH i2c: E2 17 00 [06:05:39]MH_I2C_Read... [06:05:39]Read from MH i2c: E2 17 00 AB 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C9 [06:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:05:39]wFMCommunicate OK [06:05:39]CreateOFDProtocolMessage done [06:05:39]OFDSenderStorePacket 139893 [06:05:39]StoreOFDPacket docnum=139893 [06:05:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 15 01 00 00 F3 4B 0D 01 FA 79 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 B5 6F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 75 22 02 00 35 04 06 00 50 BE F4 46 45 08 7C 0A 17 4E 02 0A 8A 66 [06:05:39]CheckFolder [06:05:39]dirname=/storage/ofd_packets [06:05:39]CheckFolder done [06:05:39]ProducePacketName [06:05:39]name=ofd_packets/00139893 [06:05:39]NVStorageSaveData ofd_packets/00139893 [06:05:39]File name is /storage/ofd_packets/00139893 [06:05:39]Write 307 bytes [06:05:39]NVStorageSaveData done [06:05:39]OFDSenderStorePacket done [06:05:39]KKMCreateOFDPacket done [06:05:39]NVStorageSaveData kkm_last_timestamp [06:05:39]File name is /storage/kkm_last_timestamp [06:05:39]Write 4 bytes [06:05:39]NVStorageSaveData done [06:05:39]ExternCall_PrintAddStr [06:05:39]wPrintStart [06:05:39]Write to MH i2c: 01 00 00 AC 49 F5 [06:05:39]Write i2c OK [06:05:39]MH_I2C_Read... [06:05:39]Read from MH i2c: 01 [06:05:39]MH_I2C_Read... [06:05:39]Read from MH i2c: 01 07 00 [06:05:39]MH_I2C_Read... [06:05:39]Read from MH i2c: 01 07 00 AC 49 00 00 00 00 00 FF 0F 0A [06:05:39]RasterBufferAndPrint [06:05:39]line Счет N : (1)1095715 [06:05:39]line ИНН: 02508201610067 [06:05:39]line Контрольно-Кассовый Чек [06:05:39]line ПРОДАЖА [06:05:39]line ТРК (МРК, ГНК) : 22 [06:05:39]line Товар: 2710194800 [06:05:39]line D-ENERGY Дт-К-2 [06:05:39]line 32.390 * 77.20 [06:05:39]line = 2500.51 [06:05:39]line НДС 12% НСП 1% [06:05:39]line > о реализуемом товаре [06:05:39]line ОКРУГЛЕНИЕ: -0.51 [06:05:39]line ИТОГО: 2500.00 [06:05:39]line Внесено: 2500.00 [06:05:39]line СДАЧА: 0.00 [06:05:39]line НСП 1% : 22.13 [06:05:39]line НДС 12% : 265.54 [06:05:39]line Наличными: 2500.00 [06:05:39]line Безнал.: 0.00 [06:05:39]line Место: АЗС № 101 "Партнер Нефть" [06:05:39]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:05:39]line СНО: Общий режим [06:05:39]line Чек 74 01.11.2024 06:05 [06:05:39]line Смена: 558 ФФД: 1.0 [06:05:39]line ЗНМ: 0300000081 [06:05:39]line РНМ: 0000000000091631 [06:05:39]line Версия ККМ: 001 [06:05:39]line ФМ: 0000000000874669 [06:05:39]line ФД: 139893 [06:05:39]line ФПД: 88781072254216 [06:05:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T060541&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139893&fm=88781072254216&tin=02508201610067®Number=0000000000091631&sum=250000 [06:05:39]OFD Sender: Processing packet 139893 [packets to send 34, broken 33] [06:05:39]ProducePacketName [06:05:39]name=ofd_packets/00139893 [06:05:39]OFD Sender: To server: pG, [06:05:39]CommunicateWithHost lk.salyk.kg:30040 [06:05:39]ConnectInit lk.salyk.kg [06:05:39]written 0, free lines is 4095 [06:05:39]Connected sock=10 [06:05:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 15 01 00 00 F3 4B 0D 01 FA 79 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 B5 6F 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 75 22 02 00 35 04 06 00 50 BE F4 46 45 08 7C 0A 17 4E 02 0A 8A 66 [06:05:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 36 7A 47 00 F8 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 75 22 02 00 F4 03 04 00 61 1B 24 67 B6 04 01 00 00 7D FA 7E 54 A9 44 0B F9 [06:05:39]CommunicateWithHost err = 0 [06:05:39]CheckOFDResponse [06:05:39]1017 (14) - 77093643461234 [06:05:39]1041 (16) - 0000000000874669 [06:05:39]1040 (4) - 139893 [06:05:39]1012 (4) - 01.11.2024 00:05 [06:05:39]1206 (1) - 0 [06:05:39]OFD Sender: Remove packet 139893 [06:05:39]ProducePacketName [06:05:39]name=ofd_packets/00139893 [06:05:39]NVStorageDeleteData [06:05:40]Write to MH i2c: 01 00 00 D7 49 20 [06:05:40]Write i2c OK [06:05:40]MH_I2C_Read... [06:05:40]Read from MH i2c: 01 [06:05:40]MH_I2C_Read... [06:05:40]Read from MH i2c: 01 07 00 [06:05:40]MH_I2C_Read... [06:05:40]Read from MH i2c: 01 07 00 D7 49 00 00 00 00 00 02 0D 36 [06:05:40]RasterBufferAndPrint [06:05:40]line [06:05:40]line [06:05:40]line [06:05:40]line [06:05:40]line [06:05:40]written 0, free lines is 3336 [06:05:40]MH_Cut [06:05:40]Write to MH i2c: D1 01 00 DE 49 01 F9 [06:05:40]Write i2c OK [06:05:40]MH_I2C_Read... [06:05:40]Read from MH i2c: D1 [06:05:40]MH_I2C_Read... [06:05:40]Read from MH i2c: D1 01 00 [06:05:40]MH_I2C_Read... [06:05:40]Read from MH i2c: D1 01 00 DE 49 00 F8 [06:05:40]Write to MH i2c: 01 00 00 DF 49 28 [06:05:40]Write i2c OK [06:05:40]MH_I2C_Read... [06:05:40]OFD Sender: No OFD packet to send [06:05:40]*** Cut start [06:05:40]*** Partial cut [06:05:40]*** CUTSNS_PIN = 1 [06:05:40]*** CUTSNS_PIN = 0 [06:05:41]*** Brake cut motor [06:05:41]Read from MH i2c: 01 [06:05:41]MH_I2C_Read... [06:05:41]*** Stop cut motor [06:05:41]*** Cut end [06:05:41]Read from MH i2c: 01 07 00 [06:05:41]MH_I2C_Read... [06:05:41]Read from MH i2c: 01 07 00 DF 49 00 00 00 00 00 FF 0F 3D [06:05:41]process_action close_receipt done [06:05:41]requested_data is exist [06:05:41]produce_requested_data [06:05:41]requested_item fm.sn is exist - process it [06:05:41]wFMCommunicate request_size=4 [06:05:41]MH_SAM_APDU [06:05:41]CAPDU: 80 11 00 00 [06:05:41]Write to MH i2c: E2 08 00 E0 49 80 11 00 00 00 00 00 00 A3 [06:05:41]Write i2c OK [06:05:41]MH_I2C_Read... [06:05:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:05:41]Read from MH i2c: E2 [06:05:41]MH_I2C_Read... [06:05:41]Read from MH i2c: E2 17 00 [06:05:41]MH_I2C_Read... [06:05:41]Read from MH i2c: E2 17 00 E0 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FE [06:05:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:05:41]wFMCommunicate OK [06:05:41]requested_item fd.num is exist - process it [06:05:41]SAM_PROTO_GetFieldsCounters [06:05:41]wFMCommunicate request_size=4 [06:05:41]MH_SAM_APDU [06:05:41]CAPDU: 80 13 00 00 [06:05:41]Write to MH i2c: E2 08 00 E1 49 80 13 00 00 00 00 00 00 A6 [06:05:41]Write i2c OK [06:05:41]MH_I2C_Read... [06:05:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:05:41]Read from MH i2c: E2 [06:05:41]MH_I2C_Read... [06:05:41]Read from MH i2c: E2 62 00 [06:05:41]MH_I2C_Read... [06:05:41]Read from MH i2c: E2 62 00 E1 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 75 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [06:05:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 75 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:05:41]wFMCommunicate OK [06:05:41]SAM_PROTO_GetFieldsCounters done [06:05:41]requested_item shift.num is exist - process it [06:05:41]requested_item shift.opened is exist - process it [06:05:41]req_shift_opened [06:05:41]FM_GetShiftState [06:05:41]SAM_PROTO_GetShiftState [06:05:41]wFMCommunicate request_size=4 [06:05:41]MH_SAM_APDU [06:05:41]CAPDU: 80 13 01 00 [06:05:41]Write to MH i2c: E2 08 00 E2 49 80 13 01 00 00 00 00 00 A8 [06:05:41]Write i2c OK [06:05:41]MH_I2C_Read... [06:05:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:05:41]Read from MH i2c: E2 [06:05:41]MH_I2C_Read... [06:05:41]Read from MH i2c: E2 0E 00 [06:05:41]MH_I2C_Read... [06:05:41]Read from MH i2c: E2 0E 00 E2 49 00 09 00 01 89 19 24 67 00 00 00 00 90 00 E1 [06:05:41]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:05:41]wFMCommunicate OK [06:05:41]SAM_PROTO_GetShiftState done [06:05:41]FM_GetShiftState done [06:05:41]req_shift_opened done [06:05:41]requested_item shift.open_date is exist - process it [06:05:41]req_shift_open_date [06:05:41]req_shift_open_date done [06:05:41]produce_requested_data done [06:05:41]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139893,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [06:05:41]process_action_free close_receipt [06:05:41]json_value_free [06:05:41]json_value_free done [06:05:41]process_json_proto returns [06:05:41]Send response to host [06:05:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139893,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [06:05:41]free response buf [06:05:41]execute_script done [06:05:41]execute_script returns [06:05:41]free content buf [06:05:41]Sock 7.Close socket [06:05:41]Sock 7.Thread stoped [06:05:45]OFD Sender: No OFD packet to send [06:05:50]OFD Sender: No OFD packet to send [06:05:55]OFD Sender: No OFD packet to send [06:06:00]OFD Sender: No OFD packet to send [06:06:05]OFD Sender: No OFD packet to send [06:06:10]OFD Sender: No OFD packet to send [06:06:15]OFD Sender: No OFD packet to send [06:06:20]OFD Sender: No OFD packet to send [06:06:25]OFD Sender: No OFD packet to send [06:06:30]OFD Sender: No OFD packet to send [06:06:35]OFD Sender: No OFD packet to send [06:06:40]OFD Sender: No OFD packet to send [06:06:45]OFD Sender: No OFD packet to send [06:06:50]OFD Sender: No OFD packet to send [06:06:55]OFD Sender: No OFD packet to send [06:07:00]OFD Sender: No OFD packet to send [06:07:05]OFD Sender: No OFD packet to send [06:07:10]OFD Sender: No OFD packet to send [06:07:15]OFD Sender: No OFD packet to send [06:07:20]OFD Sender: No OFD packet to send [06:07:25]OFD Sender: No OFD packet to send [06:07:30]OFD Sender: No OFD packet to send [06:07:35]OFD Sender: No OFD packet to send [06:07:40]OFD Sender: No OFD packet to send [06:07:45]OFD Sender: No OFD packet to send [06:07:50]OFD Sender: No OFD packet to send [06:07:55]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:10]OFD Sender: No OFD packet to send [06:08:15]OFD Sender: No OFD packet to send [06:08:20]OFD Sender: No OFD packet to send [06:08:25]OFD Sender: No OFD packet to send [06:08:30]OFD Sender: No OFD packet to send [06:08:35]OFD Sender: No OFD packet to send [06:08:40]OFD Sender: No OFD packet to send [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:10]OFD Sender: No OFD packet to send [06:09:15]OFD Sender: No OFD packet to send [06:09:20]OFD Sender: No OFD packet to send [06:09:25]OFD Sender: No OFD packet to send [06:09:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:30]accept exits with 9 [06:12:30]New connection [06:12:30]New thread 3066654052 created [06:12:30]Thread 3066510692 joined [06:12:30]Waiting for new connection... [06:12:30] Sock 9.Parse request [06:12:30]Sock 9.Check first char [06:12:30]Sock 9.First char is OK [06:12:30]request: POST /json_proto HTTP/1.0 [06:12:30]Method: POST [06:12:30]URL: /json_proto [06:12:30]Method is POST - this is cgi request [06:12:30]url: /json_proto [06:12:30]query_string will be loaded in cgi processing [06:12:30]execute_cgi json_proto POST (null) [06:12:30]execute_cgi path=json_proto method=POST [06:12:30]POST find Content-Length [06:12:30]Host: 172.17.50.196:8080 [06:12:30]Content-Length: 614 [06:12:30]Content-Type: application/json [06:12:30] [06:12:30]POST finish read [06:12:30]Found Content-Length = 614 [06:12:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335718", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 119.00, "quantity" : 1.000, "sum" : 119.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 119.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:12:30]execute_script... [06:12:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335718", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 119.00, "quantity" : 1.000, "sum" : 119.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 119.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:12:30]POST & json_proto [06:12:30]process_json_proto [06:12:30]json parsed OK: [06:12:30]protocol is kg_v1.0 [06:12:30]action value=close_receipt [06:12:30]process_action close_receipt [06:12:30]cmd_close_receipt [06:12:30]MH_GetDate [06:12:30]Write to MH i2c: F0 00 00 E3 49 1B [06:12:30]Write i2c OK [06:12:30]MH_I2C_Read... [06:12:30]Read from MH i2c: F0 [06:12:30]MH_I2C_Read... [06:12:30]Read from MH i2c: F0 09 00 [06:12:30]MH_I2C_Read... [06:12:30]Read from MH i2c: F0 09 00 E3 49 00 53 71 24 67 72 0D 1C 67 75 [06:12:30]GetLastDocTimeStamp 1730441141 [06:12:30]current date 1730441555 [06:12:30]FM_GetShiftState [06:12:30]SAM_PROTO_GetShiftState [06:12:30]wFMCommunicate request_size=4 [06:12:30]MH_SAM_APDU [06:12:30]CAPDU: 80 13 01 00 [06:12:30]Write to MH i2c: E2 08 00 E4 49 80 13 01 00 00 00 00 00 AA [06:12:30]Write i2c OK [06:12:30]MH_I2C_Read... [06:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:12:30]Read from MH i2c: E2 [06:12:30]MH_I2C_Read... [06:12:30]Read from MH i2c: E2 0E 00 [06:12:30]MH_I2C_Read... [06:12:30]Read from MH i2c: E2 0E 00 E4 49 00 09 00 01 89 19 24 67 00 00 00 00 90 00 E3 [06:12:30]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:12:30]wFMCommunicate OK [06:12:30]SAM_PROTO_GetShiftState done [06:12:30]FM_GetShiftState done [06:12:30]opened in 1730419081 [06:12:30]opened+sec_in_day 1730505481 [06:12:30]quantity*price = 11900 [06:12:30]sum+1 = 11901 [06:12:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 119.00 НСП 1% : 1.05 НДС 12% : 12.64 Наличными: 119.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 75 01.11.2024 06:12 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139894 ФПД: 139439130757493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T061235&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139894&fm=139439130757493&tin=02508201610067®Number=0000000000091631&sum=11900 0 [06:12:31]StoreToDocumentArchive [06:12:31]shift 558 fd 139894 [06:12:31]save to /storage/0558/doc_00139894 [06:12:31]save last doc name /storage/0558/doc_00139894 to /storage/kkm_last_doc_name [06:12:31]save OK [06:12:31]Clear old archive folders... [06:12:31]ProcessDocumentItem done err = 0, tmpTLVsize=266 [06:12:31]tlvbuf is 00B289C0 [06:12:31]SAM_PROTO_ClearQueue [06:12:31]wFMCommunicate request_size=4 [06:12:31]MH_SAM_APDU [06:12:31]CAPDU: 80 09 00 00 [06:12:31]Write to MH i2c: E2 08 00 F1 49 80 09 00 00 00 00 00 00 AC [06:12:31]Write i2c OK [06:12:31]MH_I2C_Read... [06:12:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:12:31]Read from MH i2c: E2 [06:12:31]MH_I2C_Read... [06:12:31]Read from MH i2c: E2 03 00 [06:12:31]MH_I2C_Read... [06:12:31]Read from MH i2c: E2 03 00 F1 49 00 90 00 AE [06:12:31]RAPDU: 90 00 [06:12:31]wFMCommunicate OK [06:12:31]SAM_PROTO_ClearQueue done [06:12:31]KKMCreateOFDPacket [06:12:31]OFDProtocolAddRootSTLVToBuf [06:12:31]FM_MakeSignedData [06:12:31]FM_MakeSignedData [06:12:31]SAM_PROTO_SignData [06:12:31]wFMCommunicate request_size=4 [06:12:31]MH_SAM_APDU [06:12:31]CAPDU: 80 0D 01 02 [06:12:31]Write to MH i2c: E2 08 00 F2 49 80 0D 01 02 00 00 00 00 B4 [06:12:31]Write i2c OK [06:12:31]MH_I2C_Read... [06:12:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:12:32]Read from MH i2c: E2 [06:12:32]MH_I2C_Read... [06:12:32]Read from MH i2c: E2 03 00 [06:12:32]MH_I2C_Read... [06:12:32]Read from MH i2c: E2 03 00 F2 49 00 90 00 AF [06:12:32]RAPDU: 90 00 [06:12:32]wFMCommunicate OK [06:12:32]wFMCommunicate request_size=255 [06:12:32]MH_SAM_APDU [06:12:32]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 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 7C 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 53 71 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 [06:12:32]Write to MH i2c: E2 02 01 F3 49 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 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 7C 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 53 71 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 00 00 79 [06:12:32]Write i2c OK [06:12:32]MH_I2C_Read... [06:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:12:32]Read from MH i2c: E2 [06:12:32]MH_I2C_Read... [06:12:32]Read from MH i2c: E2 03 00 [06:12:32]MH_I2C_Read... [06:12:32]Read from MH i2c: E2 03 00 F3 49 00 90 00 B0 [06:12:32]RAPDU: 90 00 [06:12:32]wFMCommunicate OK [06:12:32]wFMCommunicate request_size=25 [06:12:32]MH_SAM_APDU [06:12:32]CAPDU: 80 0D 02 02 14 36 39 10 04 04 00 76 22 02 00 35 04 06 00 7E D1 B3 DB 49 75 [06:12:32]Write to MH i2c: E2 1C 00 F4 49 80 0D 02 02 14 00 36 39 10 04 04 00 76 22 02 00 35 04 06 00 7E D1 B3 DB 49 75 00 00 DA [06:12:32]Write i2c OK [06:12:32]MH_I2C_Read... [06:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:12:32]Read from MH i2c: E2 [06:12:32]MH_I2C_Read... [06:12:32]Read from MH i2c: E2 03 00 [06:12:32]MH_I2C_Read... [06:12:32]Read from MH i2c: E2 03 00 F4 49 00 90 00 B1 [06:12:32]RAPDU: 90 00 [06:12:32]wFMCommunicate OK [06:12:32]wFMCommunicate request_size=4 [06:12:32]MH_SAM_APDU [06:12:32]CAPDU: 80 0D 03 02 [06:12:32]Write to MH i2c: E2 08 00 F5 49 80 0D 03 02 00 00 00 00 B9 [06:12:32]Write i2c OK [06:12:32]MH_I2C_Read... [06:12:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:12:32]Read from MH i2c: E2 [06:12:32]MH_I2C_Read... [06:12:32]Read from MH i2c: E2 0B 00 [06:12:32]MH_I2C_Read... [06:12:32]Read from MH i2c: E2 0B 00 F5 49 00 BB 82 84 DC C2 40 94 C9 90 00 B6 [06:12:32]RAPDU: BB 82 84 DC C2 40 94 C9 90 00 [06:12:32]wFMCommunicate OK [06:12:32]SAM_PROTO_SignData done [06:12:32]FM_MakeSignedData done [06:12:32]CreateOFDProtocolMessage [06:12:32]wFMCommunicate request_size=4 [06:12:32]MH_SAM_APDU [06:12:32]CAPDU: 80 11 00 00 [06:12:32]Write to MH i2c: E2 08 00 F6 49 80 11 00 00 00 00 00 00 B9 [06:12:32]Write i2c OK [06:12:32]MH_I2C_Read... [06:12:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:12:32]Read from MH i2c: E2 [06:12:32]MH_I2C_Read... [06:12:32]Read from MH i2c: E2 17 00 [06:12:32]MH_I2C_Read... [06:12:32]Read from MH i2c: E2 17 00 F6 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 14 [06:12:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:12:32]wFMCommunicate OK [06:12:32]CreateOFDProtocolMessage done [06:12:32]OFDSenderStorePacket 139894 [06:12:32]StoreOFDPacket docnum=139894 [06:12:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1E 01 00 00 36 7F 16 01 53 9C 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 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 7C 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 53 71 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 76 22 02 00 35 04 06 00 7E D1 B3 DB 49 75 BB 82 84 DC C2 40 94 C9 [06:12:32]CheckFolder [06:12:32]dirname=/storage/ofd_packets [06:12:32]CheckFolder done [06:12:32]ProducePacketName [06:12:32]name=ofd_packets/00139894 [06:12:32]NVStorageSaveData ofd_packets/00139894 [06:12:32]File name is /storage/ofd_packets/00139894 [06:12:32]Write 316 bytes [06:12:32]NVStorageSaveData done [06:12:32]OFDSenderStorePacket done [06:12:32]KKMCreateOFDPacket done [06:12:32]NVStorageSaveData kkm_last_timestamp [06:12:32]File name is /storage/kkm_last_timestamp [06:12:32]Write 4 bytes [06:12:32]NVStorageSaveData done [06:12:32]ExternCall_PrintAddStr [06:12:32]wPrintStart [06:12:32]Write to MH i2c: 01 00 00 F7 49 40 [06:12:32]Write i2c OK [06:12:32]MH_I2C_Read... [06:12:32]Read from MH i2c: 01 [06:12:32]MH_I2C_Read... [06:12:32]Read from MH i2c: 01 07 00 [06:12:32]MH_I2C_Read... [06:12:32]Read from MH i2c: 01 07 00 F7 49 00 00 00 00 00 FF 0F 55 [06:12:32]RasterBufferAndPrint [06:12:32]line Счет N : (3)335718 [06:12:32]line ИНН: 02508201610067 [06:12:32]line Контрольно-Кассовый Чек [06:12:32]line ПРОДАЖА [06:12:32]line Товар: 4870001570071 [06:12:32]line Напиток Pepsi 1л [06:12:32]line 1.000 * 119.00 [06:12:32]line = 119.00 [06:12:32]line НДС 12% НСП 1% [06:12:32]line > о реализуемом товаре [06:12:32]line ИТОГО: 119.00 [06:12:32]line НСП 1% : 1.05 [06:12:32]line НДС 12% : 12.64 [06:12:32]line Наличными: 119.00 [06:12:32]line Безнал.: 0.00 [06:12:32]line Место: АЗС № 101 "Партнер Нефть" [06:12:32]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:12:32]line СНО: Общий режим [06:12:32]line Чек 75 01.11.2024 06:12 [06:12:32]line Смена: 558 ФФД: 1.0 [06:12:32]line ЗНМ: 0300000081 [06:12:32]line РНМ: 0000000000091631 [06:12:32]line Версия ККМ: 001 [06:12:32]line ФМ: 0000000000874669 [06:12:32]line ФД: 139894 [06:12:32]line ФПД: 139439130757493 [06:12:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T061235&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139894&fm=139439130757493&tin=02508201610067®Number=0000000000091631&sum=11900 [06:12:32]OFD Sender: Processing packet 139894 [packets to send 34, broken 33] [06:12:32]ProducePacketName [06:12:32]name=ofd_packets/00139894 [06:12:32]OFD Sender: To server: pG, [06:12:32]CommunicateWithHost lk.salyk.kg:30040 [06:12:32]ConnectInit lk.salyk.kg [06:12:32]line 0 [06:12:32]written 0, free lines is 4095 [06:12:32]Connected sock=11 [06:12:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1E 01 00 00 36 7F 16 01 53 9C 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 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 7C 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 53 71 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 76 22 02 00 35 04 06 00 7E D1 B3 DB 49 75 BB 82 84 DC C2 40 94 C9 [06:12:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 8D CD 47 00 C2 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 76 22 02 00 F4 03 04 00 FE 1C 24 67 B6 04 01 00 00 F2 B1 55 39 43 2C 13 8D [06:12:33]CommunicateWithHost err = 0 [06:12:33]CheckOFDResponse [06:12:33]1017 (14) - 77093643461234 [06:12:33]1041 (16) - 0000000000874669 [06:12:33]1040 (4) - 139894 [06:12:33]1012 (4) - 01.11.2024 00:12 [06:12:33]1206 (1) - 0 [06:12:33]OFD Sender: Remove packet 139894 [06:12:33]ProducePacketName [06:12:33]name=ofd_packets/00139894 [06:12:33]NVStorageDeleteData [06:12:33]Write to MH i2c: 01 00 00 1F 4A 69 [06:12:33]Write i2c OK [06:12:33]MH_I2C_Read... [06:12:33]Read from MH i2c: 01 [06:12:33]MH_I2C_Read... [06:12:33]Read from MH i2c: 01 07 00 [06:12:33]MH_I2C_Read... [06:12:33]Read from MH i2c: 01 07 00 1F 4A 00 00 00 00 00 10 0D 8D [06:12:33]RasterBufferAndPrint [06:12:33]line [06:12:33]line [06:12:33]line [06:12:33]line [06:12:33]line [06:12:33]written 0, free lines is 3354 [06:12:33]MH_Cut [06:12:33]Write to MH i2c: D1 01 00 26 4A 01 42 [06:12:33]Write i2c OK [06:12:33]MH_I2C_Read... [06:12:33]Read from MH i2c: D1 [06:12:33]MH_I2C_Read... [06:12:33]Read from MH i2c: D1 01 00 [06:12:33]MH_I2C_Read... [06:12:33]Read from MH i2c: D1 01 00 26 4A 00 41 [06:12:33]Write to MH i2c: 01 00 00 27 4A 71 [06:12:33]Write i2c OK [06:12:33]MH_I2C_Read... [06:12:33]OFD Sender: No OFD packet to send [06:12:33]*** Cut start [06:12:33]*** Partial cut [06:12:33]*** CUTSNS_PIN = 1 [06:12:33]*** CUTSNS_PIN = 0 [06:12:34]*** Brake cut motor [06:12:34]Read from MH i2c: 01 [06:12:34]MH_I2C_Read... [06:12:34]*** Stop cut motor [06:12:34]*** Cut end [06:12:34]Read from MH i2c: 01 07 00 [06:12:34]MH_I2C_Read... [06:12:34]Read from MH i2c: 01 07 00 27 4A 00 00 00 00 00 FF 0F 86 [06:12:34]process_action close_receipt done [06:12:34]requested_data is exist [06:12:34]produce_requested_data [06:12:34]requested_item fm.sn is exist - process it [06:12:34]wFMCommunicate request_size=4 [06:12:34]MH_SAM_APDU [06:12:34]CAPDU: 80 11 00 00 [06:12:34]Write to MH i2c: E2 08 00 28 4A 80 11 00 00 00 00 00 00 EC [06:12:34]Write i2c OK [06:12:34]MH_I2C_Read... [06:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:12:34]Read from MH i2c: E2 [06:12:34]MH_I2C_Read... [06:12:34]Read from MH i2c: E2 17 00 [06:12:34]MH_I2C_Read... [06:12:34]Read from MH i2c: E2 17 00 28 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 47 [06:12:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:12:34]wFMCommunicate OK [06:12:34]requested_item fd.num is exist - process it [06:12:34]SAM_PROTO_GetFieldsCounters [06:12:34]wFMCommunicate request_size=4 [06:12:34]MH_SAM_APDU [06:12:34]CAPDU: 80 13 00 00 [06:12:34]Write to MH i2c: E2 08 00 29 4A 80 13 00 00 00 00 00 00 EF [06:12:34]Write i2c OK [06:12:34]MH_I2C_Read... [06:12:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:12:34]Read from MH i2c: E2 [06:12:34]MH_I2C_Read... [06:12:34]Read from MH i2c: E2 62 00 [06:12:34]MH_I2C_Read... [06:12:34]Read from MH i2c: E2 62 00 29 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 76 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [06:12:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 76 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:12:34]wFMCommunicate OK [06:12:34]SAM_PROTO_GetFieldsCounters done [06:12:34]requested_item shift.num is exist - process it [06:12:34]requested_item shift.opened is exist - process it [06:12:34]req_shift_opened [06:12:34]FM_GetShiftState [06:12:34]SAM_PROTO_GetShiftState [06:12:34]wFMCommunicate request_size=4 [06:12:34]MH_SAM_APDU [06:12:34]CAPDU: 80 13 01 00 [06:12:34]Write to MH i2c: E2 08 00 2A 4A 80 13 01 00 00 00 00 00 F1 [06:12:34]Write i2c OK [06:12:34]MH_I2C_Read... [06:12:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:12:34]Read from MH i2c: E2 [06:12:34]MH_I2C_Read... [06:12:34]Read from MH i2c: E2 0E 00 [06:12:34]MH_I2C_Read... [06:12:34]Read from MH i2c: E2 0E 00 2A 4A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 2A [06:12:34]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:12:34]wFMCommunicate OK [06:12:34]SAM_PROTO_GetShiftState done [06:12:34]FM_GetShiftState done [06:12:34]req_shift_opened done [06:12:34]requested_item shift.open_date is exist - process it [06:12:34]req_shift_open_date [06:12:34]req_shift_open_date done [06:12:34]produce_requested_data done [06:12:34]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139894,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [06:12:34]process_action_free close_receipt [06:12:34]json_value_free [06:12:34]json_value_free done [06:12:34]process_json_proto returns [06:12:34]Send response to host [06:12:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139894,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [06:12:34]free response buf [06:12:34]execute_script done [06:12:34]execute_script returns [06:12:34]free content buf [06:12:34]Sock 9.Close socket [06:12:34]Sock 9.Thread stoped [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:32]accept exits with 10 [06:18:32]New connection [06:18:32]New thread 3066510692 created [06:18:32]Thread 3066654052 joined [06:18:32]Waiting for new connection... [06:18:32] Sock 10.Parse request [06:18:32]Sock 10.Check first char [06:18:32]Sock 10.First char is OK [06:18:32]request: POST /json_proto HTTP/1.0 [06:18:32]Method: POST [06:18:32]URL: /json_proto [06:18:32]Method is POST - this is cgi request [06:18:32]url: /json_proto [06:18:32]query_string will be loaded in cgi processing [06:18:32]execute_cgi json_proto POST (null) [06:18:32]execute_cgi path=json_proto method=POST [06:18:32]POST find Content-Length [06:18:32]Host: 172.17.50.196:8080 [06:18:32]Content-Length: 770 [06:18:32]Content-Type: application/json [06:18:32] [06:18:32]POST finish read [06:18:32]Found Content-Length = 770 [06:18:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:18:32]execute_script... [06:18:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:18:32]POST & json_proto [06:18:32]process_json_proto [06:18:32]json parsed OK: [06:18:32]protocol is kg_v1.0 [06:18:32]action value=close_receipt [06:18:32]process_action close_receipt [06:18:32]cmd_close_receipt [06:18:32]MH_GetDate [06:18:32]Write to MH i2c: F0 00 00 2B 4A 64 [06:18:32]Write i2c OK [06:18:32]MH_I2C_Read... [06:18:32]Read from MH i2c: F0 [06:18:32]MH_I2C_Read... [06:18:32]Read from MH i2c: F0 09 00 [06:18:32]MH_I2C_Read... [06:18:32]Read from MH i2c: F0 09 00 2B 4A 00 BC 72 24 67 72 0D 1C 67 28 [06:18:32]GetLastDocTimeStamp 1730441555 [06:18:32]current date 1730441916 [06:18:32]FM_GetShiftState [06:18:32]SAM_PROTO_GetShiftState [06:18:32]wFMCommunicate request_size=4 [06:18:32]MH_SAM_APDU [06:18:32]CAPDU: 80 13 01 00 [06:18:32]Write to MH i2c: E2 08 00 2C 4A 80 13 01 00 00 00 00 00 F3 [06:18:32]Write i2c OK [06:18:32]MH_I2C_Read... [06:18:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:18:32]Read from MH i2c: E2 [06:18:32]MH_I2C_Read... [06:18:32]Read from MH i2c: E2 0E 00 [06:18:32]MH_I2C_Read... [06:18:32]Read from MH i2c: E2 0E 00 2C 4A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 2C [06:18:32]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:18:32]wFMCommunicate OK [06:18:32]SAM_PROTO_GetShiftState done [06:18:32]FM_GetShiftState done [06:18:32]opened in 1730419081 [06:18:32]opened+sec_in_day 1730505481 [06:18:32]quantity*price = 300064 [06:18:32]sum+1 = 300066 [06:18:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.65 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 0.00 Безнал.: 3000.65 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 76 01.11.2024 06:18 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139895 ФПД: 214161296340547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T061836&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139895&fm=214161296340547&tin=02508201610067®Number=0000000000091631&sum=300065 [06:18:33]StoreToDocumentArchive [06:18:33]shift 558 fd 139895 [06:18:33]save to /storage/0558/doc_00139895 [06:18:33]save last doc name /storage/0558/doc_00139895 to /storage/kkm_last_doc_name [06:18:33]save OK [06:18:33]Clear old archive folders... [06:18:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:18:33]tlvbuf is 00AC3030 [06:18:33]SAM_PROTO_ClearQueue [06:18:33]wFMCommunicate request_size=4 [06:18:33]MH_SAM_APDU [06:18:33]CAPDU: 80 09 00 00 [06:18:33]Write to MH i2c: E2 08 00 39 4A 80 09 00 00 00 00 00 00 F5 [06:18:33]Write i2c OK [06:18:33]MH_I2C_Read... [06:18:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:18:33]Read from MH i2c: E2 [06:18:33]MH_I2C_Read... [06:18:33]Read from MH i2c: E2 03 00 [06:18:33]MH_I2C_Read... [06:18:33]Read from MH i2c: E2 03 00 39 4A 00 90 00 F7 [06:18:33]RAPDU: 90 00 [06:18:33]wFMCommunicate OK [06:18:33]SAM_PROTO_ClearQueue done [06:18:33]KKMCreateOFDPacket [06:18:33]OFDProtocolAddRootSTLVToBuf [06:18:33]FM_MakeSignedData [06:18:33]FM_MakeSignedData [06:18:33]SAM_PROTO_SignData [06:18:33]wFMCommunicate request_size=4 [06:18:33]MH_SAM_APDU [06:18:33]CAPDU: 80 0D 01 02 [06:18:33]Write to MH i2c: E2 08 00 3A 4A 80 0D 01 02 00 00 00 00 FD [06:18:33]Write i2c OK [06:18:33]MH_I2C_Read... [06:18:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:18:33]Read from MH i2c: E2 [06:18:33]MH_I2C_Read... [06:18:33]Read from MH i2c: E2 03 00 [06:18:33]MH_I2C_Read... [06:18:33]Read from MH i2c: E2 03 00 3A 4A 00 90 00 F8 [06:18:33]RAPDU: 90 00 [06:18:33]wFMCommunicate OK [06:18:33]wFMCommunicate request_size=255 [06:18:33]MH_SAM_APDU [06:18:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 BC 72 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 77 22 02 00 35 04 06 00 C2 [06:18:33]Write to MH i2c: E2 02 01 3B 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 BC 72 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 77 22 02 00 35 04 06 00 C2 00 00 D4 [06:18:33]Write i2c OK [06:18:33]MH_I2C_Read... [06:18:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:18:33]Read from MH i2c: E2 [06:18:33]MH_I2C_Read... [06:18:33]Read from MH i2c: E2 03 00 [06:18:33]MH_I2C_Read... [06:18:33]Read from MH i2c: E2 03 00 3B 4A 00 90 00 F9 [06:18:33]RAPDU: 90 00 [06:18:33]wFMCommunicate OK [06:18:33]wFMCommunicate request_size=10 [06:18:33]MH_SAM_APDU [06:18:33]CAPDU: 80 0D 02 02 05 C7 4F FE 36 43 [06:18:33]Write to MH i2c: E2 0D 00 3C 4A 80 0D 02 02 05 00 C7 4F FE 36 43 00 00 97 [06:18:33]Write i2c OK [06:18:33]MH_I2C_Read... [06:18:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:18:33]Read from MH i2c: E2 [06:18:33]MH_I2C_Read... [06:18:33]Read from MH i2c: E2 03 00 [06:18:33]MH_I2C_Read... [06:18:33]Read from MH i2c: E2 03 00 3C 4A 00 90 00 FA [06:18:33]RAPDU: 90 00 [06:18:33]wFMCommunicate OK [06:18:33]wFMCommunicate request_size=4 [06:18:33]MH_SAM_APDU [06:18:33]CAPDU: 80 0D 03 02 [06:18:33]Write to MH i2c: E2 08 00 3D 4A 80 0D 03 02 00 00 00 00 02 [06:18:33]Write i2c OK [06:18:33]MH_I2C_Read... [06:18:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:18:33]Read from MH i2c: E2 [06:18:33]MH_I2C_Read... [06:18:33]Read from MH i2c: E2 0B 00 [06:18:33]MH_I2C_Read... [06:18:33]Read from MH i2c: E2 0B 00 3D 4A 00 14 AB 15 35 F2 0C CA F0 90 00 C4 [06:18:33]RAPDU: 14 AB 15 35 F2 0C CA F0 90 00 [06:18:33]wFMCommunicate OK [06:18:33]SAM_PROTO_SignData done [06:18:33]FM_MakeSignedData done [06:18:33]CreateOFDProtocolMessage [06:18:33]wFMCommunicate request_size=4 [06:18:33]MH_SAM_APDU [06:18:33]CAPDU: 80 11 00 00 [06:18:33]Write to MH i2c: E2 08 00 3E 4A 80 11 00 00 00 00 00 00 02 [06:18:33]Write i2c OK [06:18:33]MH_I2C_Read... [06:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:18:33]Read from MH i2c: E2 [06:18:33]MH_I2C_Read... [06:18:33]Read from MH i2c: E2 17 00 [06:18:33]MH_I2C_Read... [06:18:33]Read from MH i2c: E2 17 00 3E 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5D [06:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:18:33]wFMCommunicate OK [06:18:33]CreateOFDProtocolMessage done [06:18:33]OFDSenderStorePacket 139895 [06:18:33]StoreOFDPacket docnum=139895 [06:18:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 3C 4C 07 01 7A 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 BC 72 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 77 22 02 00 35 04 06 00 C2 C7 4F FE 36 43 14 AB 15 35 F2 0C CA F0 [06:18:33]CheckFolder [06:18:33]dirname=/storage/ofd_packets [06:18:33]CheckFolder done [06:18:33]ProducePacketName [06:18:33]name=ofd_packets/00139895 [06:18:33]NVStorageSaveData ofd_packets/00139895 [06:18:33]File name is /storage/ofd_packets/00139895 [06:18:33]Write 301 bytes [06:18:33]NVStorageSaveData done [06:18:33]OFDSenderStorePacket done [06:18:33]KKMCreateOFDPacket done [06:18:33]NVStorageSaveData kkm_last_timestamp [06:18:33]File name is /storage/kkm_last_timestamp [06:18:33]Write 4 bytes [06:18:33]NVStorageSaveData done [06:18:33]ExternCall_PrintAddStr [06:18:33]wPrintStart [06:18:33]Write to MH i2c: 01 00 00 3F 4A 89 [06:18:33]Write i2c OK [06:18:33]MH_I2C_Read... [06:18:33]Read from MH i2c: 01 [06:18:33]MH_I2C_Read... [06:18:33]Read from MH i2c: 01 07 00 [06:18:33]MH_I2C_Read... [06:18:33]Read from MH i2c: 01 07 00 3F 4A 00 00 00 00 00 FF 0F 9E [06:18:33]RasterBufferAndPrint [06:18:33]line Счет N : (1)1095717 [06:18:33]line ИНН: 02508201610067 [06:18:33]line Контрольно-Кассовый Чек [06:18:33]line ПРОДАЖА [06:18:33]line ТРК (МРК, ГНК) : 44 [06:18:33]line Товар: 2710124500 [06:18:33]line Аи-95-К-3 [06:18:33]line 40.440 * 74.20 [06:18:33]line = 3000.65 [06:18:33]line НДС 12% НСП 1% [06:18:33]line > о реализуемом товаре [06:18:33]line ИТОГО: 3000.65 [06:18:33]line НСП 1% : 26.55 [06:18:33]line НДС 12% : 318.65 [06:18:33]line Наличными: 0.00 [06:18:33]line Безнал.: 3000.65 [06:18:33]line Место: АЗС № 101 "Партнер Нефть" [06:18:33]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:18:33]line СНО: Общий режим [06:18:33]line Чек 76 01.11.2024 06:18 [06:18:33]line Смена: 558 ФФД: 1.0 [06:18:33]line ЗНМ: 0300000081 [06:18:33]line РНМ: 0000000000091631 [06:18:33]line Версия ККМ: 001 [06:18:33]line Платежная система: Mbank [06:18:33]line ФМ: 0000000000874669 [06:18:33]line ФД: 139895 [06:18:33]line ФПД: 214161296340547 [06:18:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T061836&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139895&fm=214161296340547&tin=02508201610067®Number=0000000000091631&sum=300065 [06:18:34]written 0, free lines is 4095 [06:18:34]OFD Sender: Processing packet 139895 [packets to send 34, broken 33] [06:18:34]ProducePacketName [06:18:34]name=ofd_packets/00139895 [06:18:34]OFD Sender: To server: pG, [06:18:34]CommunicateWithHost lk.salyk.kg:30040 [06:18:34]ConnectInit lk.salyk.kg [06:18:34]Connected sock=9 [06:18:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 3C 4C 07 01 7A 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 BC 72 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 77 22 02 00 35 04 06 00 C2 C7 4F FE 36 43 14 AB 15 35 F2 0C CA F0 [06:18:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 17 9E 47 00 C3 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 77 22 02 00 F4 03 04 00 68 1E 24 67 B6 04 01 00 00 31 84 FF E2 AF 15 EF 63 [06:18:34]CommunicateWithHost err = 0 [06:18:34]CheckOFDResponse [06:18:34]1017 (14) - 77093643461234 [06:18:34]1041 (16) - 0000000000874669 [06:18:34]1040 (4) - 139895 [06:18:34]1012 (4) - 01.11.2024 00:18 [06:18:34]1206 (1) - 0 [06:18:34]OFD Sender: Remove packet 139895 [06:18:34]ProducePacketName [06:18:34]name=ofd_packets/00139895 [06:18:34]NVStorageDeleteData [06:18:34]Write to MH i2c: 01 00 00 68 4A B2 [06:18:34]Write i2c OK [06:18:34]MH_I2C_Read... [06:18:34]Read from MH i2c: 01 [06:18:34]MH_I2C_Read... [06:18:34]Read from MH i2c: 01 07 00 [06:18:34]MH_I2C_Read... [06:18:34]Read from MH i2c: 01 07 00 68 4A 00 00 00 00 00 1D 0D E3 [06:18:34]RasterBufferAndPrint [06:18:34]line [06:18:34]line [06:18:34]line [06:18:34]line [06:18:34]line [06:18:34]written 0, free lines is 3366 [06:18:34]MH_Cut [06:18:34]Write to MH i2c: D1 01 00 6F 4A 01 8B [06:18:34]Write i2c OK [06:18:34]MH_I2C_Read... [06:18:34]Read from MH i2c: D1 [06:18:34]MH_I2C_Read... [06:18:34]Read from MH i2c: D1 01 00 [06:18:34]MH_I2C_Read... [06:18:34]Read from MH i2c: D1 01 00 6F 4A 00 8A [06:18:34]Write to MH i2c: 01 00 00 70 4A BA [06:18:34]Write i2c OK [06:18:34]MH_I2C_Read... [06:18:34]OFD Sender: No OFD packet to send [06:18:35]*** Cut start [06:18:35]*** Partial cut [06:18:35]*** CUTSNS_PIN = 1 [06:18:35]*** CUTSNS_PIN = 0 [06:18:35]*** Brake cut motor [06:18:35]Read from MH i2c: 01 [06:18:35]MH_I2C_Read... [06:18:35]*** Stop cut motor [06:18:35]*** Cut end [06:18:35]Read from MH i2c: 01 07 00 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: 01 07 00 70 4A 00 00 00 00 00 FF 0F CF [06:18:35]process_action close_receipt done [06:18:35]requested_data is exist [06:18:35]produce_requested_data [06:18:35]requested_item fm.sn is exist - process it [06:18:35]wFMCommunicate request_size=4 [06:18:35]MH_SAM_APDU [06:18:35]CAPDU: 80 11 00 00 [06:18:35]Write to MH i2c: E2 08 00 71 4A 80 11 00 00 00 00 00 00 35 [06:18:35]Write i2c OK [06:18:35]MH_I2C_Read... [06:18:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:18:35]Read from MH i2c: E2 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: E2 17 00 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: E2 17 00 71 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 90 [06:18:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:18:35]wFMCommunicate OK [06:18:35]requested_item fd.num is exist - process it [06:18:35]SAM_PROTO_GetFieldsCounters [06:18:35]wFMCommunicate request_size=4 [06:18:35]MH_SAM_APDU [06:18:35]CAPDU: 80 13 00 00 [06:18:35]Write to MH i2c: E2 08 00 72 4A 80 13 00 00 00 00 00 00 38 [06:18:35]Write i2c OK [06:18:35]MH_I2C_Read... [06:18:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:18:35]Read from MH i2c: E2 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: E2 62 00 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: E2 62 00 72 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 77 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [06: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 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 77 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:18:35]wFMCommunicate OK [06:18:35]SAM_PROTO_GetFieldsCounters done [06:18:35]requested_item shift.num is exist - process it [06:18:35]requested_item shift.opened is exist - process it [06:18:35]req_shift_opened [06:18:35]FM_GetShiftState [06:18:35]SAM_PROTO_GetShiftState [06:18:35]wFMCommunicate request_size=4 [06:18:35]MH_SAM_APDU [06:18:35]CAPDU: 80 13 01 00 [06:18:35]Write to MH i2c: E2 08 00 73 4A 80 13 01 00 00 00 00 00 3A [06:18:35]Write i2c OK [06:18:35]MH_I2C_Read... [06:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:18:35]Read from MH i2c: E2 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: E2 0E 00 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: E2 0E 00 73 4A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 73 [06:18:35]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:18:35]wFMCommunicate OK [06:18:35]SAM_PROTO_GetShiftState done [06:18:35]FM_GetShiftState done [06:18:35]req_shift_opened done [06:18:35]requested_item shift.open_date is exist - process it [06:18:35]req_shift_open_date [06:18:35]req_shift_open_date done [06:18:35]produce_requested_data done [06:18:35]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139895,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [06:18:35]process_action_free close_receipt [06:18:35]json_value_free [06:18:35]json_value_free done [06:18:35]process_json_proto returns [06:18:35]Send response to host [06:18:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139895,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [06:18:35]free response buf [06:18:35]execute_script done [06:18:35]execute_script returns [06:18:35]free content buf [06:18:35]Sock 10.Close socket [06:18:36]Sock 10.Thread stoped [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:45]OFD Sender: No OFD packet to send [06:22:50]OFD Sender: No OFD packet to send [06:22:55]OFD Sender: No OFD packet to send [06:23:00]OFD Sender: No OFD packet to send [06:23:05]OFD Sender: No OFD packet to send [06:23:10]OFD Sender: No OFD packet to send [06:23:15]OFD Sender: No OFD packet to send [06:23:20]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:45]OFD Sender: No OFD packet to send [06:24:50]OFD Sender: No OFD packet to send [06:24:55]OFD Sender: No OFD packet to send [06:25:00]OFD Sender: No OFD packet to send [06:25:05]OFD Sender: No OFD packet to send [06:25:10]OFD Sender: No OFD packet to send [06:25:15]OFD Sender: No OFD packet to send [06:25:20]OFD Sender: No OFD packet to send [06:25:25]OFD Sender: No OFD packet to send [06:25:30]OFD Sender: No OFD packet to send [06:25:35]OFD Sender: No OFD packet to send [06:25:40]OFD Sender: No OFD packet to send [06:25:45]OFD Sender: No OFD packet to send [06:25:50]OFD Sender: No OFD packet to send [06:25:55]OFD Sender: No OFD packet to send [06:26:00]OFD Sender: No OFD packet to send [06:26:05]OFD Sender: No OFD packet to send [06:26:10]OFD Sender: No OFD packet to send [06:26:15]OFD Sender: No OFD packet to send [06:26:20]OFD Sender: No OFD packet to send [06:26:25]OFD Sender: No OFD packet to send [06:26:30]OFD Sender: No OFD packet to send [06:26:35]OFD Sender: No OFD packet to send [06:26:40]OFD Sender: No OFD packet to send [06:26:45]OFD Sender: No OFD packet to send [06:26:50]OFD Sender: No OFD packet to send [06:26:55]OFD Sender: No OFD packet to send [06:27:00]OFD Sender: No OFD packet to send [06:27:05]OFD Sender: No OFD packet to send [06:27:10]OFD Sender: No OFD packet to send [06:27:15]OFD Sender: No OFD packet to send [06:27:20]OFD Sender: No OFD packet to send [06:27:25]OFD Sender: No OFD packet to send [06:27:30]OFD Sender: No OFD packet to send [06:27:35]OFD Sender: No OFD packet to send [06:27:40]OFD Sender: No OFD packet to send [06:27:45]OFD Sender: No OFD packet to send [06:27:50]OFD Sender: No OFD packet to send [06:27:55]OFD Sender: No OFD packet to send [06:28:00]OFD Sender: No OFD packet to send [06:28:05]OFD Sender: No OFD packet to send [06:28:10]OFD Sender: No OFD packet to send [06:28:15]OFD Sender: No OFD packet to send [06:28:20]OFD Sender: No OFD packet to send [06:28:25]OFD Sender: No OFD packet to send [06:28:30]OFD Sender: No OFD packet to send [06:28:35]OFD Sender: No OFD packet to send [06:28:40]OFD Sender: No OFD packet to send [06:28:45]OFD Sender: No OFD packet to send [06:28:50]OFD Sender: No OFD packet to send [06:28:55]OFD Sender: No OFD packet to send [06:29:00]OFD Sender: No OFD packet to send [06:29:05]OFD Sender: No OFD packet to send [06:29:10]OFD Sender: No OFD packet to send [06:29:15]OFD Sender: No OFD packet to send [06:29:20]OFD Sender: No OFD packet to send [06:29:25]OFD Sender: No OFD packet to send [06:29:30]OFD Sender: No OFD packet to send [06:29:35]OFD Sender: No OFD packet to send [06:29:40]OFD Sender: No OFD packet to send [06:29:45]OFD Sender: No OFD packet to send [06:29:50]OFD Sender: No OFD packet to send [06:29:55]OFD Sender: No OFD packet to send [06:30:00]OFD Sender: No OFD packet to send [06:30:05]OFD Sender: No OFD packet to send [06:30:10]OFD Sender: No OFD packet to send [06:30:15]OFD Sender: No OFD packet to send [06:30:20]OFD Sender: No OFD packet to send [06:30:25]OFD Sender: No OFD packet to send [06:30:30]OFD Sender: No OFD packet to send [06:30:35]OFD Sender: No OFD packet to send [06:30:40]OFD Sender: No OFD packet to send [06:30:45]OFD Sender: No OFD packet to send [06:30:50]OFD Sender: No OFD packet to send [06:30:55]OFD Sender: No OFD packet to send [06:31:00]OFD Sender: No OFD packet to send [06:31:05]OFD Sender: No OFD packet to send [06:31:10]OFD Sender: No OFD packet to send [06:31:15]OFD Sender: No OFD packet to send [06:31:20]OFD Sender: No OFD packet to send [06:31:25]OFD Sender: No OFD packet to send [06:31:30]OFD Sender: No OFD packet to send [06:31:35]OFD Sender: No OFD packet to send [06:31:40]OFD Sender: No OFD packet to send [06:31:45]OFD Sender: No OFD packet to send [06:31:50]OFD Sender: No OFD packet to send [06:31:55]OFD Sender: No OFD packet to send [06:32:00]OFD Sender: No OFD packet to send [06:32:05]OFD Sender: No OFD packet to send [06:32:10]OFD Sender: No OFD packet to send [06:32:15]OFD Sender: No OFD packet to send [06:32:20]OFD Sender: No OFD packet to send [06:32:25]OFD Sender: No OFD packet to send [06:32:30]OFD Sender: No OFD packet to send [06:32:35]OFD Sender: No OFD packet to send [06:32:40]OFD Sender: No OFD packet to send [06:32:45]OFD Sender: No OFD packet to send [06:32:50]OFD Sender: No OFD packet to send [06:32:55]OFD Sender: No OFD packet to send [06:33:00]OFD Sender: No OFD packet to send [06:33:05]OFD Sender: No OFD packet to send [06:33:10]OFD Sender: No OFD packet to send [06:33:15]OFD Sender: No OFD packet to send [06:33:20]OFD Sender: No OFD packet to send [06:33:25]OFD Sender: No OFD packet to send [06:33:30]OFD Sender: No OFD packet to send [06:33:35]OFD Sender: No OFD packet to send [06:33:40]OFD Sender: No OFD packet to send [06:33:45]OFD Sender: No OFD packet to send [06:33:50]OFD Sender: No OFD packet to send [06:33:55]OFD Sender: No OFD packet to send [06:34:00]OFD Sender: No OFD packet to send [06:34:05]OFD Sender: No OFD packet to send [06:34:10]OFD Sender: No OFD packet to send [06:34:15]OFD Sender: No OFD packet to send [06:34:20]OFD Sender: No OFD packet to send [06:34:25]OFD Sender: No OFD packet to send [06:34:30]OFD Sender: No OFD packet to send [06:34:35]OFD Sender: No OFD packet to send [06:34:40]OFD Sender: No OFD packet to send [06:34:45]OFD Sender: No OFD packet to send [06:34:50]OFD Sender: No OFD packet to send [06:34:55]OFD Sender: No OFD packet to send [06:35:00]OFD Sender: No OFD packet to send [06:35:05]OFD Sender: No OFD packet to send [06:35:10]OFD Sender: No OFD packet to send [06:35:15]OFD Sender: No OFD packet to send [06:35:20]OFD Sender: No OFD packet to send [06:35:25]OFD Sender: No OFD packet to send [06:35:30]OFD Sender: No OFD packet to send [06:35:35]OFD Sender: No OFD packet to send [06:35:40]OFD Sender: No OFD packet to send [06:35:45]OFD Sender: No OFD packet to send [06:35:50]OFD Sender: No OFD packet to send [06:35:55]OFD Sender: No OFD packet to send [06:36:00]OFD Sender: No OFD packet to send [06:36:05]OFD Sender: No OFD packet to send [06:36:10]OFD Sender: No OFD packet to send [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:35]OFD Sender: No OFD packet to send [06:36:40]OFD Sender: No OFD packet to send [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [06:37:35]OFD Sender: No OFD packet to send [06:37:40]OFD Sender: No OFD packet to send [06:37:45]OFD Sender: No OFD packet to send [06:37:50]OFD Sender: No OFD packet to send [06:37:55]OFD Sender: No OFD packet to send [06:38:00]OFD Sender: No OFD packet to send [06:38:05]OFD Sender: No OFD packet to send [06:38:10]OFD Sender: No OFD packet to send [06:38:15]OFD Sender: No OFD packet to send [06:38:20]OFD Sender: No OFD packet to send [06:38:25]OFD Sender: No OFD packet to send [06:38:30]OFD Sender: No OFD packet to send [06:38:35]OFD Sender: No OFD packet to send [06:38:40]OFD Sender: No OFD packet to send [06:38:45]OFD Sender: No OFD packet to send [06:38:47]accept exits with 7 [06:38:47]New connection [06:38:47]New thread 3066654052 created [06:38:47]Thread 3066510692 joined [06:38:47]Waiting for new connection... [06:38:47] Sock 7.Parse request [06:38:47]Sock 7.Check first char [06:38:47]Sock 7.First char is OK [06:38:47]request: POST /json_proto HTTP/1.0 [06:38:47]Method: POST [06:38:47]URL: /json_proto [06:38:47]Method is POST - this is cgi request [06:38:47]url: /json_proto [06:38:47]query_string will be loaded in cgi processing [06:38:47]execute_cgi json_proto POST (null) [06:38:47]execute_cgi path=json_proto method=POST [06:38:47]POST find Content-Length [06:38:47]Host: 172.17.50.196:8080 [06:38:47]Content-Length: 782 [06:38:47]Content-Type: application/json [06:38:47] [06:38:47]POST finish read [06:38:47]Found Content-Length = 782 [06:38:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335719", "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" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:47]execute_script... [06:38: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)335719", "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" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:47]POST & json_proto [06:38:47]process_json_proto [06:38:47]json parsed OK: [06:38:47]protocol is kg_v1.0 [06:38:47]action value=close_receipt [06:38:47]process_action close_receipt [06:38:47]cmd_close_receipt [06:38:47]MH_GetDate [06:38:47]Write to MH i2c: F0 00 00 74 4A AD [06:38:47]Write i2c OK [06:38:47]MH_I2C_Read... [06:38:47]Read from MH i2c: F0 [06:38:47]MH_I2C_Read... [06:38:47]Read from MH i2c: F0 09 00 [06:38:47]MH_I2C_Read... [06:38:47]Read from MH i2c: F0 09 00 74 4A 00 7C 77 24 67 72 0D 1C 67 36 [06:38:47]GetLastDocTimeStamp 1730441916 [06:38:47]current date 1730443132 [06:38:47]FM_GetShiftState [06:38:47]SAM_PROTO_GetShiftState [06:38:47]wFMCommunicate request_size=4 [06:38:47]MH_SAM_APDU [06:38:47]CAPDU: 80 13 01 00 [06:38:47]Write to MH i2c: E2 08 00 75 4A 80 13 01 00 00 00 00 00 3C [06:38:47]Write i2c OK [06:38:47]MH_I2C_Read... [06:38:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:47]Read from MH i2c: E2 [06:38:47]MH_I2C_Read... [06:38:47]Read from MH i2c: E2 0E 00 [06:38:47]MH_I2C_Read... [06:38:47]Read from MH i2c: E2 0E 00 75 4A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 75 [06:38:47]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:38:47]wFMCommunicate OK [06:38:47]SAM_PROTO_GetShiftState done [06:38:47]FM_GetShiftState done [06:38:47]opened in 1730419081 [06:38:47]opened+sec_in_day 1730505481 [06:38:47]quantity*price = 6900 [06:38:47]sum+1 = 6901 [06:38:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 69.00 НСП 1% : 0.61 НДС 12% : 7.33 Наличными: 0.00 Безнал.: 69.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 77 01.11.2024 06:38 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139896 ФПД: 84669321215432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T063852&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139896&fm=84669321215432&tin=02508201610067®Number=0000000000091631&sum=6900 0 [06:38:48]StoreToDocumentArchive [06:38:48]shift 558 fd 139896 [06:38:48]save to /storage/0558/doc_00139896 [06:38:48]save last doc name /storage/0558/doc_00139896 to /storage/kkm_last_doc_name [06:38:48]save OK [06:38:48]Clear old archive folders... [06:38:48]ProcessDocumentItem done err = 0, tmpTLVsize=294 [06:38:48]tlvbuf is 00B56900 [06:38:48]SAM_PROTO_ClearQueue [06:38:48]wFMCommunicate request_size=4 [06:38:48]MH_SAM_APDU [06:38:48]CAPDU: 80 09 00 00 [06:38:48]Write to MH i2c: E2 08 00 82 4A 80 09 00 00 00 00 00 00 3E [06:38:48]Write i2c OK [06:38:48]MH_I2C_Read... [06:38:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:38:49]Read from MH i2c: E2 [06:38:49]MH_I2C_Read... [06:38:49]Read from MH i2c: E2 03 00 [06:38:49]MH_I2C_Read... [06:38:49]Read from MH i2c: E2 03 00 82 4A 00 90 00 40 [06:38:49]RAPDU: 90 00 [06:38:49]wFMCommunicate OK [06:38:49]SAM_PROTO_ClearQueue done [06:38:49]KKMCreateOFDPacket [06:38:49]OFDProtocolAddRootSTLVToBuf [06:38:49]FM_MakeSignedData [06:38:49]FM_MakeSignedData [06:38:49]SAM_PROTO_SignData [06:38:49]wFMCommunicate request_size=4 [06:38:49]MH_SAM_APDU [06:38:49]CAPDU: 80 0D 01 02 [06:38:49]Write to MH i2c: E2 08 00 83 4A 80 0D 01 02 00 00 00 00 46 [06:38:49]Write i2c OK [06:38:49]MH_I2C_Read... [06:38:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:38:49]Read from MH i2c: E2 [06:38:49]MH_I2C_Read... [06:38:49]Read from MH i2c: E2 03 00 [06:38:49]MH_I2C_Read... [06:38:49]Read from MH i2c: E2 03 00 83 4A 00 90 00 41 [06:38:49]RAPDU: 90 00 [06:38:49]wFMCommunicate OK [06:38:49]wFMCommunicate request_size=255 [06:38:49]MH_SAM_APDU [06:38:49]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 7C 77 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [06:38:49]Write to MH i2c: E2 02 01 84 4A 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 7C 77 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 50 [06:38:49]Write i2c OK [06:38:49]MH_I2C_Read... [06:38:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:49]Read from MH i2c: E2 [06:38:49]MH_I2C_Read... [06:38:49]Read from MH i2c: E2 03 00 [06:38:49]MH_I2C_Read... [06:38:49]Read from MH i2c: E2 03 00 84 4A 00 90 00 42 [06:38:49]RAPDU: 90 00 [06:38:49]wFMCommunicate OK [06:38:49]wFMCommunicate request_size=53 [06:38:49]MH_SAM_APDU [06:38:49]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 78 22 02 00 35 04 06 00 4D 01 9C D0 7D C8 [06:38:49]Write to MH i2c: E2 38 00 85 4A 80 0D 02 02 30 00 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 78 22 02 00 35 04 06 00 4D 01 9C D0 7D C8 00 00 DC [06:38:49]Write i2c OK [06:38:49]MH_I2C_Read... [06:38:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:49]Read from MH i2c: E2 [06:38:49]MH_I2C_Read... [06:38:49]Read from MH i2c: E2 03 00 [06:38:49]MH_I2C_Read... [06:38:49]Read from MH i2c: E2 03 00 85 4A 00 90 00 43 [06:38:49]RAPDU: 90 00 [06:38:49]wFMCommunicate OK [06:38:49]wFMCommunicate request_size=4 [06:38:49]MH_SAM_APDU [06:38:49]CAPDU: 80 0D 03 02 [06:38:49]Write to MH i2c: E2 08 00 86 4A 80 0D 03 02 00 00 00 00 4B [06:38:49]Write i2c OK [06:38:49]MH_I2C_Read... [06:38:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:38:49]Read from MH i2c: E2 [06:38:49]MH_I2C_Read... [06:38:49]Read from MH i2c: E2 0B 00 [06:38:49]MH_I2C_Read... [06:38:49]Read from MH i2c: E2 0B 00 86 4A 00 7C 6A 81 A7 2B 36 1F 80 90 00 5A [06:38:49]RAPDU: 7C 6A 81 A7 2B 36 1F 80 90 00 [06:38:49]wFMCommunicate OK [06:38:49]SAM_PROTO_SignData done [06:38:49]FM_MakeSignedData done [06:38:49]CreateOFDProtocolMessage [06:38:49]wFMCommunicate request_size=4 [06:38:49]MH_SAM_APDU [06:38:49]CAPDU: 80 11 00 00 [06:38:49]Write to MH i2c: E2 08 00 87 4A 80 11 00 00 00 00 00 00 4B [06:38:49]Write i2c OK [06:38:49]MH_I2C_Read... [06:38:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:49]Read from MH i2c: E2 [06:38:49]MH_I2C_Read... [06:38:49]Read from MH i2c: E2 17 00 [06:38:49]MH_I2C_Read... [06:38:49]Read from MH i2c: E2 17 00 87 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A6 [06:38:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:38:49]wFMCommunicate OK [06:38:49]CreateOFDProtocolMessage done [06:38:49]OFDSenderStorePacket 139896 [06:38:49]StoreOFDPacket docnum=139896 [06:38:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3A 01 00 00 E6 BB 32 01 96 08 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 7C 77 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 78 22 02 00 35 04 06 00 4D 01 9C D0 7D C8 7C 6A 81 A7 2B 36 1F 80 [06:38:49]CheckFolder [06:38:49]dirname=/storage/ofd_packets [06:38:49]CheckFolder done [06:38:49]ProducePacketName [06:38:49]name=ofd_packets/00139896 [06:38:49]NVStorageSaveData ofd_packets/00139896 [06:38:49]File name is /storage/ofd_packets/00139896 [06:38:49]Write 344 bytes [06:38:49]NVStorageSaveData done [06:38:49]OFDSenderStorePacket done [06:38:49]KKMCreateOFDPacket done [06:38:49]NVStorageSaveData kkm_last_timestamp [06:38:49]File name is /storage/kkm_last_timestamp [06:38:49]Write 4 bytes [06:38:49]NVStorageSaveData done [06:38:49]ExternCall_PrintAddStr [06:38:49]wPrintStart [06:38:49]Write to MH i2c: 01 00 00 88 4A D2 [06:38:49]Write i2c OK [06:38:49]MH_I2C_Read... [06:38:49]Read from MH i2c: 01 [06:38:49]MH_I2C_Read... [06:38:49]Read from MH i2c: 01 07 00 [06:38:49]MH_I2C_Read... [06:38:49]Read from MH i2c: 01 07 00 88 4A 00 00 00 00 00 FF 0F E7 [06:38:49]RasterBufferAndPrint [06:38:49]line Счет N : (3)335719 [06:38:49]line ИНН: 02508201610067 [06:38:49]line Контрольно-Кассовый Чек [06:38:49]line ПРОДАЖА [06:38:49]line Товар: 4600682557456 [06:38:49]line Напиток FLash up energy эн ж/б 0,5/0,45л [06:38:49]line 1.000 * 69.00 [06:38:49]line = 69.00 [06:38:49]line НДС 12% НСП 1% [06:38:49]line > о реализуемом товаре [06:38:49]line ИТОГО: 69.00 [06:38:49]line НСП 1% : 0.61 [06:38:49]line НДС 12% : 7.33 [06:38:49]line Наличными: 0.00 [06:38:49]line Безнал.: 69.00 [06:38:49]line Место: АЗС № 101 "Партнер Нефть" [06:38:49]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:38:49]line СНО: Общий режим [06:38:49]line Чек 77 01.11.2024 06:38 [06:38:49]line Смена: 558 ФФД: 1.0 [06:38:49]line ЗНМ: 0300000081 [06:38:49]line РНМ: 0000000000091631 [06:38:49]line Версия ККМ: 001 [06:38:49]line Платежная система: Mbank [06:38:49]line ФМ: 0000000000874669 [06:38:49]line ФД: 139896 [06:38:49]line ФПД: 84669321215432 [06:38:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T063852&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139896&fm=84669321215432&tin=02508201610067®Number=0000000000091631&sum=6900 [06:38:49]line 0 [06:38:49]OFD Sender: Processing packet 139896 [packets to send 34, broken 33] [06:38:49]ProducePacketName [06:38:49]name=ofd_packets/00139896 [06:38:49]OFD Sender: To server: pG, [06:38:49]CommunicateWithHost lk.salyk.kg:30040 [06:38:49]ConnectInit lk.salyk.kg [06:38:49]written 0, free lines is 4095 [06:38:49]Connected sock=9 [06:38:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3A 01 00 00 E6 BB 32 01 96 08 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 7C 77 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 78 22 02 00 35 04 06 00 4D 01 9C D0 7D C8 7C 6A 81 A7 2B 36 1F 80 [06:38:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 68 11 47 00 16 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 78 22 02 00 F4 03 04 00 27 23 24 67 B6 04 01 00 00 E0 0B B9 DE B7 54 F2 48 [06:38:50]CommunicateWithHost err = 0 [06:38:50]CheckOFDResponse [06:38:50]1017 (14) - 77093643461234 [06:38:50]1041 (16) - 0000000000874669 [06:38:50]1040 (4) - 139896 [06:38:50]1012 (4) - 01.11.2024 00:39 [06:38:50]1206 (1) - 0 [06:38:50]OFD Sender: Remove packet 139896 [06:38:50]ProducePacketName [06:38:50]name=ofd_packets/00139896 [06:38:50]NVStorageDeleteData [06:38:50]Write to MH i2c: 01 00 00 B2 4A FC [06:38:50]Write i2c OK [06:38:50]MH_I2C_Read... [06:38:50]Read from MH i2c: 01 [06:38:50]MH_I2C_Read... [06:38:50]Read from MH i2c: 01 07 00 [06:38:50]MH_I2C_Read... [06:38:50]Read from MH i2c: 01 07 00 B2 4A 00 00 00 00 00 F5 0C 04 [06:38:50]RasterBufferAndPrint [06:38:50]line [06:38:50]line [06:38:50]line [06:38:50]line [06:38:50]line [06:38:50]written 0, free lines is 3323 [06:38:50]MH_Cut [06:38:50]Write to MH i2c: D1 01 00 B9 4A 01 D5 [06:38:50]Write i2c OK [06:38:50]MH_I2C_Read... [06:38:50]Read from MH i2c: D1 [06:38:50]MH_I2C_Read... [06:38:50]Read from MH i2c: D1 01 00 [06:38:50]MH_I2C_Read... [06:38:50]Read from MH i2c: D1 01 00 B9 4A 00 D4 [06:38:50]Write to MH i2c: 01 00 00 BA 4A 04 [06:38:50]Write i2c OK [06:38:50]MH_I2C_Read... [06:38:50]OFD Sender: No OFD packet to send [06:38:51]*** Cut start [06:38:51]*** Partial cut [06:38:51]*** CUTSNS_PIN = 1 [06:38:51]*** CUTSNS_PIN = 0 [06:38:51]*** Brake cut motor [06:38:51]Read from MH i2c: 01 [06:38:51]MH_I2C_Read... [06:38:51]*** Stop cut motor [06:38:51]*** Cut end [06:38:51]Read from MH i2c: 01 07 00 [06:38:51]MH_I2C_Read... [06:38:51]Read from MH i2c: 01 07 00 BA 4A 00 00 00 00 00 FF 0F 19 [06:38:51]process_action close_receipt done [06:38:51]requested_data is exist [06:38:51]produce_requested_data [06:38:51]requested_item fm.sn is exist - process it [06:38:51]wFMCommunicate request_size=4 [06:38:51]MH_SAM_APDU [06:38:51]CAPDU: 80 11 00 00 [06:38:51]Write to MH i2c: E2 08 00 BB 4A 80 11 00 00 00 00 00 00 7F [06:38:51]Write i2c OK [06:38:51]MH_I2C_Read... [06:38:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:51]Read from MH i2c: E2 [06:38:51]MH_I2C_Read... [06:38:51]Read from MH i2c: E2 17 00 [06:38:51]MH_I2C_Read... [06:38:51]Read from MH i2c: E2 17 00 BB 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DA [06:38:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:38:51]wFMCommunicate OK [06:38:51]requested_item fd.num is exist - process it [06:38:51]SAM_PROTO_GetFieldsCounters [06:38:51]wFMCommunicate request_size=4 [06:38:51]MH_SAM_APDU [06:38:51]CAPDU: 80 13 00 00 [06:38:51]Write to MH i2c: E2 08 00 BC 4A 80 13 00 00 00 00 00 00 82 [06:38:51]Write i2c OK [06:38:51]MH_I2C_Read... [06:38:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:38:51]Read from MH i2c: E2 [06:38:51]MH_I2C_Read... [06:38:51]Read from MH i2c: E2 62 00 [06:38:51]MH_I2C_Read... [06:38:51]Read from MH i2c: E2 62 00 BC 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 78 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [06:38:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 78 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:38:51]wFMCommunicate OK [06:38:51]SAM_PROTO_GetFieldsCounters done [06:38:51]requested_item shift.num is exist - process it [06:38:51]requested_item shift.opened is exist - process it [06:38:51]req_shift_opened [06:38:51]FM_GetShiftState [06:38:51]SAM_PROTO_GetShiftState [06:38:51]wFMCommunicate request_size=4 [06:38:51]MH_SAM_APDU [06:38:51]CAPDU: 80 13 01 00 [06:38:51]Write to MH i2c: E2 08 00 BD 4A 80 13 01 00 00 00 00 00 84 [06:38:51]Write i2c OK [06:38:51]MH_I2C_Read... [06:38:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:51]Read from MH i2c: E2 [06:38:51]MH_I2C_Read... [06:38:51]Read from MH i2c: E2 0E 00 [06:38:51]MH_I2C_Read... [06:38:51]Read from MH i2c: E2 0E 00 BD 4A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 BD [06:38:51]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:38:51]wFMCommunicate OK [06:38:51]SAM_PROTO_GetShiftState done [06:38:51]FM_GetShiftState done [06:38:51]req_shift_opened done [06:38:51]requested_item shift.open_date is exist - process it [06:38:51]req_shift_open_date [06:38:51]req_shift_open_date done [06:38:51]produce_requested_data done [06:38:51]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139896,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [06:38:51]process_action_free close_receipt [06:38:51]json_value_free [06:38:51]json_value_free done [06:38:51]process_json_proto returns [06:38:51]Send response to host [06:38:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139896,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [06:38:51]free response buf [06:38:51]execute_script done [06:38:51]execute_script returns [06:38:51]free content buf [06:38:51]Sock 7.Close socket [06:38:51]Sock 7.Thread stoped [06:38:55]OFD Sender: No OFD packet to send [06:39:00]OFD Sender: No OFD packet to send [06:39:05]OFD Sender: No OFD packet to send [06:39:10]OFD Sender: No OFD packet to send [06:39:15]OFD Sender: No OFD packet to send [06:39:20]OFD Sender: No OFD packet to send [06:39:25]OFD Sender: No OFD packet to send [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [06:41:25]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:51]OFD Sender: No OFD packet to send [06:44:56]OFD Sender: No OFD packet to send [06:45:01]OFD Sender: No OFD packet to send [06:45:06]OFD Sender: No OFD packet to send [06:45:11]OFD Sender: No OFD packet to send [06:45:16]OFD Sender: No OFD packet to send [06:45:21]OFD Sender: No OFD packet to send [06:45:26]OFD Sender: No OFD packet to send [06:45:31]OFD Sender: No OFD packet to send [06:45:36]OFD Sender: No OFD packet to send [06:45:41]OFD Sender: No OFD packet to send [06:45:45]accept exits with 10 [06:45:45]New connection [06:45:45]New thread 3066510692 created [06:45:45]Thread 3066654052 joined [06:45:45]Waiting for new connection... [06:45:45] Sock 10.Parse request [06:45:45]Sock 10.Check first char [06:45:45]Sock 10.First char is OK [06:45:45]request: POST /json_proto HTTP/1.0 [06:45:45]Method: POST [06:45:45]URL: /json_proto [06:45:45]Method is POST - this is cgi request [06:45:45]url: /json_proto [06:45:45]query_string will be loaded in cgi processing [06:45:45]execute_cgi json_proto POST (null) [06:45:45]execute_cgi path=json_proto method=POST [06:45:45]POST find Content-Length [06:45:45]Host: 172.17.50.196:8080 [06:45:45]Content-Length: 668 [06:45:45]Content-Type: application/json [06:45:45] [06:45:45]POST finish read [06:45:45]Found Content-Length = 668 [06:45:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335720", "tax_sys" : 0, "items" : [ { "code": "4630007400655", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:45:45]execute_script... [06:45: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)335720", "tax_sys" : 0, "items" : [ { "code": "4630007400655", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:45:45]POST & json_proto [06:45:45]process_json_proto [06:45:45]json parsed OK: [06:45:45]protocol is kg_v1.0 [06:45:45]action value=close_receipt [06:45:45]process_action close_receipt [06:45:45]cmd_close_receipt [06:45:45]MH_GetDate [06:45:45]Write to MH i2c: F0 00 00 BE 4A F7 [06:45:45]Write i2c OK [06:45:45]MH_I2C_Read... [06:45:45]Read from MH i2c: F0 [06:45:45]MH_I2C_Read... [06:45:45]Read from MH i2c: F0 09 00 [06:45:45]MH_I2C_Read... [06:45:45]Read from MH i2c: F0 09 00 BE 4A 00 1E 79 24 67 72 0D 1C 67 24 [06:45:45]GetLastDocTimeStamp 1730443132 [06:45:45]current date 1730443550 [06:45:45]FM_GetShiftState [06:45:45]SAM_PROTO_GetShiftState [06:45:45]wFMCommunicate request_size=4 [06:45:45]MH_SAM_APDU [06:45:45]CAPDU: 80 13 01 00 [06:45:45]Write to MH i2c: E2 08 00 BF 4A 80 13 01 00 00 00 00 00 86 [06:45:45]Write i2c OK [06:45:45]MH_I2C_Read... [06:45:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:45:45]Read from MH i2c: E2 [06:45:45]MH_I2C_Read... [06:45:45]Read from MH i2c: E2 0E 00 [06:45:45]MH_I2C_Read... [06:45:45]Read from MH i2c: E2 0E 00 BF 4A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 BF [06:45:45]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:45:45]wFMCommunicate OK [06:45:45]SAM_PROTO_GetShiftState done [06:45:45]FM_GetShiftState done [06:45:45]opened in 1730419081 [06:45:45]opened+sec_in_day 1730505481 [06:45:45]quantity*price = 7000 [06:45:45]sum+1 = 7001 [06:45:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 78 01.11.2024 06:45 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139897 ФПД: 119889090731858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T064550&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139897&fm=119889090731858&tin=02508201610067®Number=0000000000091631&sum=7000 0 [06:45:46]StoreToDocumentArchive [06:45:46]shift 558 fd 139897 [06:45:46]save to /storage/0558/doc_00139897 [06:45:46]save last doc name /storage/0558/doc_00139897 to /storage/kkm_last_doc_name [06:45:46]save OK [06:45:46]Clear old archive folders... [06:45:46]ProcessDocumentItem done err = 0, tmpTLVsize=283 [06:45:46]tlvbuf is 00BCCA30 [06:45:46]SAM_PROTO_ClearQueue [06:45:46]wFMCommunicate request_size=4 [06:45:46]MH_SAM_APDU [06:45:46]CAPDU: 80 09 00 00 [06:45:46]Write to MH i2c: E2 08 00 CC 4A 80 09 00 00 00 00 00 00 88 [06:45:46]Write i2c OK [06:45:46]MH_I2C_Read... [06:45:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:45:46]Read from MH i2c: E2 [06:45:46]MH_I2C_Read... [06:45:46]Read from MH i2c: E2 03 00 [06:45:46]MH_I2C_Read... [06:45:46]Read from MH i2c: E2 03 00 CC 4A 00 90 00 8A [06:45:46]RAPDU: 90 00 [06:45:46]wFMCommunicate OK [06:45:46]SAM_PROTO_ClearQueue done [06:45:46]KKMCreateOFDPacket [06:45:46]OFDProtocolAddRootSTLVToBuf [06:45:46]FM_MakeSignedData [06:45:46]FM_MakeSignedData [06:45:46]SAM_PROTO_SignData [06:45:46]wFMCommunicate request_size=4 [06:45:46]MH_SAM_APDU [06:45:46]CAPDU: 80 0D 01 02 [06:45:46]Write to MH i2c: E2 08 00 CD 4A 80 0D 01 02 00 00 00 00 90 [06:45:46]Write i2c OK [06:45:46]MH_I2C_Read... [06:45:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:45:46]Read from MH i2c: E2 [06:45:46]MH_I2C_Read... [06:45:46]Read from MH i2c: E2 03 00 [06:45:46]MH_I2C_Read... [06:45:46]Read from MH i2c: E2 03 00 CD 4A 00 90 00 8B [06:45:46]RAPDU: 90 00 [06:45:46]wFMCommunicate OK [06:45:46]wFMCommunicate request_size=255 [06:45:46]MH_SAM_APDU [06:45:46]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 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 1E 79 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 [06:45:46]Write to MH i2c: E2 02 01 CE 4A 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 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 1E 79 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 00 00 52 [06:45:46]Write i2c OK [06:45:46]MH_I2C_Read... [06:45:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:45:47]Read from MH i2c: E2 [06:45:47]MH_I2C_Read... [06:45:47]Read from MH i2c: E2 03 00 [06:45:47]MH_I2C_Read... [06:45:47]Read from MH i2c: E2 03 00 CE 4A 00 90 00 8C [06:45:47]RAPDU: 90 00 [06:45:47]wFMCommunicate OK [06:45:47]wFMCommunicate request_size=42 [06:45:47]MH_SAM_APDU [06:45:47]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 79 22 02 00 35 04 06 00 6D 09 DA AA 5F 52 [06:45:47]Write to MH i2c: E2 2D 00 CF 4A 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 79 22 02 00 35 04 06 00 6D 09 DA AA 5F 52 00 00 B8 [06:45:47]Write i2c OK [06:45:47]MH_I2C_Read... [06:45:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:45:47]Read from MH i2c: E2 [06:45:47]MH_I2C_Read... [06:45:47]Read from MH i2c: E2 03 00 [06:45:47]MH_I2C_Read... [06:45:47]Read from MH i2c: E2 03 00 CF 4A 00 90 00 8D [06:45:47]RAPDU: 90 00 [06:45:47]wFMCommunicate OK [06:45:47]wFMCommunicate request_size=4 [06:45:47]MH_SAM_APDU [06:45:47]CAPDU: 80 0D 03 02 [06:45:47]Write to MH i2c: E2 08 00 D0 4A 80 0D 03 02 00 00 00 00 95 [06:45:47]Write i2c OK [06:45:47]MH_I2C_Read... [06:45:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:45:47]Read from MH i2c: E2 [06:45:47]MH_I2C_Read... [06:45:47]Read from MH i2c: E2 0B 00 [06:45:47]MH_I2C_Read... [06:45:47]Read from MH i2c: E2 0B 00 D0 4A 00 F2 FF A4 BE 5D 3D 89 C3 90 00 CF [06:45:47]RAPDU: F2 FF A4 BE 5D 3D 89 C3 90 00 [06:45:47]wFMCommunicate OK [06:45:47]SAM_PROTO_SignData done [06:45:47]FM_MakeSignedData done [06:45:47]CreateOFDProtocolMessage [06:45:47]wFMCommunicate request_size=4 [06:45:47]MH_SAM_APDU [06:45:47]CAPDU: 80 11 00 00 [06:45:47]Write to MH i2c: E2 08 00 D1 4A 80 11 00 00 00 00 00 00 95 [06:45:47]Write i2c OK [06:45:47]MH_I2C_Read... [06:45:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:45:47]Read from MH i2c: E2 [06:45:47]MH_I2C_Read... [06:45:47]Read from MH i2c: E2 17 00 [06:45:47]MH_I2C_Read... [06:45:47]Read from MH i2c: E2 17 00 D1 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F0 [06:45:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:45:47]wFMCommunicate OK [06:45:47]CreateOFDProtocolMessage done [06:45:47]OFDSenderStorePacket 139897 [06:45:47]StoreOFDPacket docnum=139897 [06:45:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2F 01 00 00 27 EB 27 01 E4 E9 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 1E 79 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 79 22 02 00 35 04 06 00 6D 09 DA AA 5F 52 F2 FF A4 BE 5D 3D 89 C3 [06:45:47]CheckFolder [06:45:47]dirname=/storage/ofd_packets [06:45:47]CheckFolder done [06:45:47]ProducePacketName [06:45:47]name=ofd_packets/00139897 [06:45:47]NVStorageSaveData ofd_packets/00139897 [06:45:47]File name is /storage/ofd_packets/00139897 [06:45:47]Write 333 bytes [06:45:47]NVStorageSaveData done [06:45:47]OFDSenderStorePacket done [06:45:47]KKMCreateOFDPacket done [06:45:47]NVStorageSaveData kkm_last_timestamp [06:45:47]File name is /storage/kkm_last_timestamp [06:45:47]Write 4 bytes [06:45:47]NVStorageSaveData done [06:45:47]ExternCall_PrintAddStr [06:45:47]wPrintStart [06:45:47]Write to MH i2c: 01 00 00 D2 4A 1C [06:45:47]Write i2c OK [06:45:47]MH_I2C_Read... [06:45:47]Read from MH i2c: 01 [06:45:47]MH_I2C_Read... [06:45:47]Read from MH i2c: 01 07 00 [06:45:47]MH_I2C_Read... [06:45:47]Read from MH i2c: 01 07 00 D2 4A 00 00 00 00 00 FF 0F 31 [06:45:47]RasterBufferAndPrint [06:45:47]line Счет N : (3)335720 [06:45:47]line ИНН: 02508201610067 [06:45:47]line Контрольно-Кассовый Чек [06:45:47]line ПРОДАЖА [06:45:47]line Товар: 4630007400655 [06:45:47]line Семечки ДЖИНН 70г синий [06:45:47]line 1.000 * 70.00 [06:45:47]line = 70.00 [06:45:47]line НДС 12% НСП 1% [06:45:47]line > о реализуемом товаре [06:45:47]line ИТОГО: 70.00 [06:45:47]line НСП 1% : 0.62 [06:45:47]line НДС 12% : 7.43 [06:45:47]line Наличными: 70.00 [06:45:47]line Безнал.: 0.00 [06:45:47]line Место: АЗС № 101 "Партнер Нефть" [06:45:47]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:45:47]line СНО: Общий режим [06:45:47]line Чек 78 01.11.2024 06:45 [06:45:47]line Смена: 558 ФФД: 1.0 [06:45:47]line ЗНМ: 0300000081 [06:45:47]line РНМ: 0000000000091631 [06:45:47]line Версия ККМ: 001 [06:45:47]line ФМ: 0000000000874669 [06:45:47]line ФД: 139897 [06:45:47]line ФПД: 119889090731858 [06:45:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T064550&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139897&fm=119889090731858&tin=02508201610067®Number=0000000000091631&sum=7000 [06:45:47]line 0 [06:45:47]OFD Sender: Processing packet 139897 [packets to send 34, broken 33] [06:45:47]ProducePacketName [06:45:47]name=ofd_packets/00139897 [06:45:47]OFD Sender: To server: pG, [06:45:47]CommunicateWithHost lk.salyk.kg:30040 [06:45:47]ConnectInit lk.salyk.kg [06:45:47]written 0, free lines is 4095 [06:45:47]Connected sock=9 [06:45:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2F 01 00 00 27 EB 27 01 E4 E9 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 1E 79 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 79 22 02 00 35 04 06 00 6D 09 DA AA 5F 52 F2 FF A4 BE 5D 3D 89 C3 [06:45:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 10 50 47 00 A2 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 34 36 36 39 10 04 04 00 79 22 02 00 F4 03 04 00 C9 24 24 67 B6 04 01 00 00 B7 C0 AB 62 91 E4 81 37 [06:45:47]CommunicateWithHost err = 0 [06:45:47]CheckOFDResponse [06:45:47]1017 (14) - 77093643461234 [06:45:47]1041 (16) - 0000000000874669 [06:45:47]1040 (4) - 139897 [06:45:47]1012 (4) - 01.11.2024 00:46 [06:45:47]1206 (1) - 0 [06:45:47]OFD Sender: Remove packet 139897 [06:45:47]ProducePacketName [06:45:47]name=ofd_packets/00139897 [06:45:47]NVStorageDeleteData [06:45:48]Write to MH i2c: 01 00 00 FA 4A 44 [06:45:48]Write i2c OK [06:45:48]MH_I2C_Read... [06:45:48]Read from MH i2c: 01 [06:45:48]MH_I2C_Read... [06:45:48]Read from MH i2c: 01 07 00 [06:45:48]MH_I2C_Read... [06:45:48]Read from MH i2c: 01 07 00 FA 4A 00 00 00 00 00 22 0D 7A [06:45:48]RasterBufferAndPrint [06:45:48]line [06:45:48]line [06:45:48]line [06:45:48]line [06:45:48]line [06:45:48]written 0, free lines is 3371 [06:45:48]MH_Cut [06:45:48]Write to MH i2c: D1 01 00 01 4B 01 1E [06:45:48]Write i2c OK [06:45:48]MH_I2C_Read... [06:45:48]Read from MH i2c: D1 [06:45:48]MH_I2C_Read... [06:45:48]Read from MH i2c: D1 01 00 [06:45:48]MH_I2C_Read... [06:45:48]Read from MH i2c: D1 01 00 01 4B 00 1D [06:45:48]Write to MH i2c: 01 00 00 02 4B 4D [06:45:48]Write i2c OK [06:45:48]MH_I2C_Read... [06:45:48]OFD Sender: No OFD packet to send [06:45:48]*** Cut start [06:45:48]*** Partial cut [06:45:48]*** CUTSNS_PIN = 1 [06:45:48]*** CUTSNS_PIN = 0 [06:45:48]*** Brake cut motor [06:45:49]Read from MH i2c: 01 [06:45:49]MH_I2C_Read... [06:45:49]*** Stop cut motor [06:45:49]*** Cut end [06:45:49]Read from MH i2c: 01 07 00 [06:45:49]MH_I2C_Read... [06:45:49]Read from MH i2c: 01 07 00 02 4B 00 00 00 00 00 FF 0F 62 [06:45:49]process_action close_receipt done [06:45:49]requested_data is exist [06:45:49]produce_requested_data [06:45:49]requested_item fm.sn is exist - process it [06:45:49]wFMCommunicate request_size=4 [06:45:49]MH_SAM_APDU [06:45:49]CAPDU: 80 11 00 00 [06:45:49]Write to MH i2c: E2 08 00 03 4B 80 11 00 00 00 00 00 00 C8 [06:45:49]Write i2c OK [06:45:49]MH_I2C_Read... [06:45:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:45:49]Read from MH i2c: E2 [06:45:49]MH_I2C_Read... [06:45:49]Read from MH i2c: E2 17 00 [06:45:49]MH_I2C_Read... [06:45:49]Read from MH i2c: E2 17 00 03 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 23 [06:45:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:45:49]wFMCommunicate OK [06:45:49]requested_item fd.num is exist - process it [06:45:49]SAM_PROTO_GetFieldsCounters [06:45:49]wFMCommunicate request_size=4 [06:45:49]MH_SAM_APDU [06:45:49]CAPDU: 80 13 00 00 [06:45:49]Write to MH i2c: E2 08 00 04 4B 80 13 00 00 00 00 00 00 CB [06:45:49]Write i2c OK [06:45:49]MH_I2C_Read... [06:45:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:45:49]Read from MH i2c: E2 [06:45:49]MH_I2C_Read... [06:45:49]Read from MH i2c: E2 62 00 [06:45:49]MH_I2C_Read... [06:45:49]Read from MH i2c: E2 62 00 04 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 79 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [06:45:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 79 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:45:49]wFMCommunicate OK [06:45:49]SAM_PROTO_GetFieldsCounters done [06:45:49]requested_item shift.num is exist - process it [06:45:49]requested_item shift.opened is exist - process it [06:45:49]req_shift_opened [06:45:49]FM_GetShiftState [06:45:49]SAM_PROTO_GetShiftState [06:45:49]wFMCommunicate request_size=4 [06:45:49]MH_SAM_APDU [06:45:49]CAPDU: 80 13 01 00 [06:45:49]Write to MH i2c: E2 08 00 05 4B 80 13 01 00 00 00 00 00 CD [06:45:49]Write i2c OK [06:45:49]MH_I2C_Read... [06:45:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:45:49]Read from MH i2c: E2 [06:45:49]MH_I2C_Read... [06:45:49]Read from MH i2c: E2 0E 00 [06:45:49]MH_I2C_Read... [06:45:49]Read from MH i2c: E2 0E 00 05 4B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 06 [06:45:49]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:45:49]wFMCommunicate OK [06:45:49]SAM_PROTO_GetShiftState done [06:45:49]FM_GetShiftState done [06:45:49]req_shift_opened done [06:45:49]requested_item shift.open_date is exist - process it [06:45:49]req_shift_open_date [06:45:49]req_shift_open_date done [06:45:49]produce_requested_data done [06:45:49]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139897,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [06:45:49]process_action_free close_receipt [06:45:49]json_value_free [06:45:49]json_value_free done [06:45:49]process_json_proto returns [06:45:49]Send response to host [06:45:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139897,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [06:45:49]free response buf [06:45:49]execute_script done [06:45:49]execute_script returns [06:45:49]free content buf [06:45:49]Sock 10.Close socket [06:45:49]Sock 10.Thread stoped [06:45:53]OFD Sender: No OFD packet to send [06:45:58]OFD Sender: No OFD packet to send [06:46:03]OFD Sender: No OFD packet to send [06:46:08]OFD Sender: No OFD packet to send [06:46:13]OFD Sender: No OFD packet to send [06:46:18]OFD Sender: No OFD packet to send [06:46:23]OFD Sender: No OFD packet to send [06:46:28]OFD Sender: No OFD packet to send [06:46:33]OFD Sender: No OFD packet to send [06:46:38]OFD Sender: No OFD packet to send [06:46:43]OFD Sender: No OFD packet to send [06:46:48]OFD Sender: No OFD packet to send [06:46:53]OFD Sender: No OFD packet to send [06:46:58]OFD Sender: No OFD packet to send [06:47:03]OFD Sender: No OFD packet to send [06:47:08]OFD Sender: No OFD packet to send [06:47:13]OFD Sender: No OFD packet to send [06:47:18]OFD Sender: No OFD packet to send [06:47:23]OFD Sender: No OFD packet to send [06:47:23]accept exits with 7 [06:47:23]New connection [06:47:23]New thread 3066654052 created [06:47:23]Thread 3066510692 joined [06:47:23]Waiting for new connection... [06:47:23] Sock 7.Parse request [06:47:23]Sock 7.Check first char [06:47:23]Sock 7.First char is OK [06:47:23]request: POST /json_proto HTTP/1.0 [06:47:23]Method: POST [06:47:23]URL: /json_proto [06:47:23]Method is POST - this is cgi request [06:47:23]url: /json_proto [06:47:23]query_string will be loaded in cgi processing [06:47:23]execute_cgi json_proto POST (null) [06:47:23]execute_cgi path=json_proto method=POST [06:47:23]POST find Content-Length [06:47:23]Host: 172.17.50.196:8080 [06:47:23]Content-Length: 686 [06:47:23]Content-Type: application/json [06:47:23] [06:47:23]POST finish read [06:47:23]Found Content-Length = 686 [06:47:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.30, "quantity" : 52.220, "sum" : 2000.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:47:23]execute_script... [06:47:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.30, "quantity" : 52.220, "sum" : 2000.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:47:23]POST & json_proto [06:47:23]process_json_proto [06:47:23]json parsed OK: [06:47:23]protocol is kg_v1.0 [06:47:23]action value=close_receipt [06:47:23]process_action close_receipt [06:47:23]cmd_close_receipt [06:47:23]MH_GetDate [06:47:23]Write to MH i2c: F0 00 00 06 4B 40 [06:47:23]Write i2c OK [06:47:23]MH_I2C_Read... [06:47:23]Read from MH i2c: F0 [06:47:23]MH_I2C_Read... [06:47:23]Read from MH i2c: F0 09 00 [06:47:23]MH_I2C_Read... [06:47:23]Read from MH i2c: F0 09 00 06 4B 00 80 79 24 67 72 0D 1C 67 CF [06:47:23]GetLastDocTimeStamp 1730443550 [06:47:23]current date 1730443648 [06:47:23]FM_GetShiftState [06:47:23]SAM_PROTO_GetShiftState [06:47:23]wFMCommunicate request_size=4 [06:47:23]MH_SAM_APDU [06:47:23]CAPDU: 80 13 01 00 [06:47:23]Write to MH i2c: E2 08 00 07 4B 80 13 01 00 00 00 00 00 CF [06:47:23]Write i2c OK [06:47:23]MH_I2C_Read... [06:47:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:47:23]Read from MH i2c: E2 [06:47:23]MH_I2C_Read... [06:47:23]Read from MH i2c: E2 0E 00 [06:47:23]MH_I2C_Read... [06:47:23]Read from MH i2c: E2 0E 00 07 4B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 08 [06:47:23]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:47:23]wFMCommunicate OK [06:47:23]SAM_PROTO_GetShiftState done [06:47:23]FM_GetShiftState done [06:47:23]opened in 1730419081 [06:47:23]opened+sec_in_day 1730505481 [06:47:23]quantity*price = 200002 [06:47:23]sum+1 = 200004 [06:47:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 79 01.11.2024 06:47 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139898 ФПД: 214937940757285 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T064728&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139898&fm=214937940757285&tin=02508201610067®Number=0000000000091631&sum=200000 [06:47:24]StoreToDocumentArchive [06:47:24]shift 558 fd 139898 [06:47:24]save to /storage/0558/doc_00139898 [06:47:24]save last doc name /storage/0558/doc_00139898 to /storage/kkm_last_doc_name [06:47:24]save OK [06:47:24]Clear old archive folders... [06:47:24]ProcessDocumentItem done err = 0, tmpTLVsize=250 [06:47:24]tlvbuf is 00ABBA60 [06:47:24]SAM_PROTO_ClearQueue [06:47:24]wFMCommunicate request_size=4 [06:47:24]MH_SAM_APDU [06:47:24]CAPDU: 80 09 00 00 [06:47:24]Write to MH i2c: E2 08 00 14 4B 80 09 00 00 00 00 00 00 D1 [06:47:24]Write i2c OK [06:47:24]MH_I2C_Read... [06:47:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:47:24]Read from MH i2c: E2 [06:47:24]MH_I2C_Read... [06:47:24]Read from MH i2c: E2 03 00 [06:47:24]MH_I2C_Read... [06:47:24]Read from MH i2c: E2 03 00 14 4B 00 90 00 D3 [06:47:24]RAPDU: 90 00 [06:47:24]wFMCommunicate OK [06:47:24]SAM_PROTO_ClearQueue done [06:47:24]KKMCreateOFDPacket [06:47:24]OFDProtocolAddRootSTLVToBuf [06:47:24]FM_MakeSignedData [06:47:24]FM_MakeSignedData [06:47:24]SAM_PROTO_SignData [06:47:24]wFMCommunicate request_size=4 [06:47:24]MH_SAM_APDU [06:47:24]CAPDU: 80 0D 01 02 [06:47:24]Write to MH i2c: E2 08 00 15 4B 80 0D 01 02 00 00 00 00 D9 [06:47:24]Write i2c OK [06:47:24]MH_I2C_Read... [06:47:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:47:24]Read from MH i2c: E2 [06:47:24]MH_I2C_Read... [06:47:24]Read from MH i2c: E2 03 00 [06:47:24]MH_I2C_Read... [06:47:24]Read from MH i2c: E2 03 00 15 4B 00 90 00 D4 [06:47:24]RAPDU: 90 00 [06:47:24]wFMCommunicate OK [06:47:24]wFMCommunicate request_size=255 [06:47:24]MH_SAM_APDU [06:47:24]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 FC CB 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 43 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 80 79 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7A 22 02 00 35 04 06 00 C3 7C [06:47:24]Write to MH i2c: E2 02 01 16 4B 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 FC CB 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 43 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 80 79 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7A 22 02 00 35 04 06 00 C3 7C 00 00 64 [06:47:25]Write i2c OK [06:47:25]MH_I2C_Read... [06:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:47:25]Read from MH i2c: E2 [06:47:25]MH_I2C_Read... [06:47:25]Read from MH i2c: E2 03 00 [06:47:25]MH_I2C_Read... [06:47:25]Read from MH i2c: E2 03 00 16 4B 00 90 00 D5 [06:47:25]RAPDU: 90 00 [06:47:25]wFMCommunicate OK [06:47:25]wFMCommunicate request_size=9 [06:47:25]MH_SAM_APDU [06:47:25]CAPDU: 80 0D 02 02 04 23 9B 8B 25 [06:47:25]Write to MH i2c: E2 0C 00 17 4B 80 0D 02 02 04 00 23 9B 8B 25 00 00 52 [06:47:25]Write i2c OK [06:47:25]MH_I2C_Read... [06:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:47:25]Read from MH i2c: E2 [06:47:25]MH_I2C_Read... [06:47:25]Read from MH i2c: E2 03 00 [06:47:25]MH_I2C_Read... [06:47:25]Read from MH i2c: E2 03 00 17 4B 00 90 00 D6 [06:47:25]RAPDU: 90 00 [06:47:25]wFMCommunicate OK [06:47:25]wFMCommunicate request_size=4 [06:47:25]MH_SAM_APDU [06:47:25]CAPDU: 80 0D 03 02 [06:47:25]Write to MH i2c: E2 08 00 18 4B 80 0D 03 02 00 00 00 00 DE [06:47:25]Write i2c OK [06:47:25]MH_I2C_Read... [06:47:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:47:25]Read from MH i2c: E2 [06:47:25]MH_I2C_Read... [06:47:25]Read from MH i2c: E2 0B 00 [06:47:25]MH_I2C_Read... [06:47:25]Read from MH i2c: E2 0B 00 18 4B 00 20 F5 3F 0D 38 84 F4 2F 90 00 1F [06:47:25]RAPDU: 20 F5 3F 0D 38 84 F4 2F 90 00 [06:47:25]wFMCommunicate OK [06:47:25]SAM_PROTO_SignData done [06:47:25]FM_MakeSignedData done [06:47:25]CreateOFDProtocolMessage [06:47:25]wFMCommunicate request_size=4 [06:47:25]MH_SAM_APDU [06:47:25]CAPDU: 80 11 00 00 [06:47:25]Write to MH i2c: E2 08 00 19 4B 80 11 00 00 00 00 00 00 DE [06:47:25]Write i2c OK [06:47:25]MH_I2C_Read... [06:47:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:47:25]Read from MH i2c: E2 [06:47:25]MH_I2C_Read... [06:47:25]Read from MH i2c: E2 17 00 [06:47:25]MH_I2C_Read... [06:47:25]Read from MH i2c: E2 17 00 19 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 39 [06:47:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:47:25]wFMCommunicate OK [06:47:25]CreateOFDProtocolMessage done [06:47:25]OFDSenderStorePacket 139898 [06:47:25]StoreOFDPacket docnum=139898 [06:47:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0E 01 00 00 82 42 06 01 02 59 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 FC CB 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 43 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 80 79 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7A 22 02 00 35 04 06 00 C3 7C 23 9B 8B 25 20 F5 3F 0D 38 84 F4 2F [06:47:25]CheckFolder [06:47:25]dirname=/storage/ofd_packets [06:47:25]CheckFolder done [06:47:25]ProducePacketName [06:47:25]name=ofd_packets/00139898 [06:47:25]NVStorageSaveData ofd_packets/00139898 [06:47:25]File name is /storage/ofd_packets/00139898 [06:47:25]Write 300 bytes [06:47:25]NVStorageSaveData done [06:47:25]OFDSenderStorePacket done [06:47:25]KKMCreateOFDPacket done [06:47:25]NVStorageSaveData kkm_last_timestamp [06:47:25]File name is /storage/kkm_last_timestamp [06:47:25]Write 4 bytes [06:47:25]NVStorageSaveData done [06:47:25]ExternCall_PrintAddStr [06:47:25]wPrintStart [06:47:25]Write to MH i2c: 01 00 00 1A 4B 65 [06:47:25]Write i2c OK [06:47:25]MH_I2C_Read... [06:47:25]Read from MH i2c: 01 [06:47:25]MH_I2C_Read... [06:47:25]Read from MH i2c: 01 07 00 [06:47:25]MH_I2C_Read... [06:47:25]Read from MH i2c: 01 07 00 1A 4B 00 00 00 00 00 FF 0F 7A [06:47:25]RasterBufferAndPrint [06:47:25]line Счет N : (1)1095722 [06:47:25]line ИНН: 02508201610067 [06:47:25]line Контрольно-Кассовый Чек [06:47:25]line ПРОДАЖА [06:47:25]line ТРК (МРК, ГНК) : 81 [06:47:25]line Товар: 2711190000 [06:47:25]line ГАЗ-К-5 [06:47:25]line 52.220 * 38.30 [06:47:25]line = 2000.03 [06:47:25]line НДС 12% НСП 1% [06:47:25]line > о реализуемом товаре [06:47:25]line ОКРУГЛЕНИЕ: -0.03 [06:47:25]line ИТОГО: 2000.00 [06:47:25]line Внесено: 2000.00 [06:47:25]line СДАЧА: 0.00 [06:47:25]line НСП 1% : 17.70 [06:47:25]line НДС 12% : 212.39 [06:47:25]line Наличными: 2000.00 [06:47:25]line Безнал.: 0.00 [06:47:25]line Место: АЗС № 101 "Партнер Нефть" [06:47:25]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:47:25]line СНО: Общий режим [06:47:25]line Чек 79 01.11.2024 06:47 [06:47:25]line Смена: 558 ФФД: 1.0 [06:47:25]line ЗНМ: 0300000081 [06:47:25]line РНМ: 0000000000091631 [06:47:25]line Версия ККМ: 001 [06:47:25]line ФМ: 0000000000874669 [06:47:25]line ФД: 139898 [06:47:25]line ФПД: 214937940757285 [06:47:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T064728&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139898&fm=214937940757285&tin=02508201610067®Number=0000000000091631&sum=200000 [06:47:25]OFD Sender: Processing packet 139898 [packets to send 34, broken 33] [06:47:25]ProducePacketName [06:47:25]name=ofd_packets/00139898 [06:47:25]OFD Sender: To server: pG, [06:47:25]CommunicateWithHost lk.salyk.kg:30040 [06:47:25]ConnectInit lk.salyk.kg [06:47:25]written 0, free lines is 4095 [06:47:25]Connected sock=10 [06:47:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0E 01 00 00 82 42 06 01 02 59 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 FC CB 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 43 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 80 79 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7A 22 02 00 35 04 06 00 C3 7C 23 9B 8B 25 20 F5 3F 0D 38 84 F4 2F [06:47:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 B0 1E 47 00 48 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7A 22 02 00 F4 03 04 00 2B 25 24 67 B6 04 01 00 00 AF 60 B4 67 90 92 3B E9 [06:47:26]CommunicateWithHost err = 0 [06:47:26]CheckOFDResponse [06:47:26]1017 (14) - 77093643461234 [06:47:26]1041 (16) - 0000000000874669 [06:47:26]1040 (4) - 139898 [06:47:26]1012 (4) - 01.11.2024 00:47 [06:47:26]1206 (1) - 0 [06:47:26]OFD Sender: Remove packet 139898 [06:47:26]ProducePacketName [06:47:26]name=ofd_packets/00139898 [06:47:26]NVStorageDeleteData [06:47:26]Write to MH i2c: 01 00 00 45 4B 90 [06:47:26]Write i2c OK [06:47:26]MH_I2C_Read... [06:47:26]Read from MH i2c: 01 [06:47:26]MH_I2C_Read... [06:47:26]Read from MH i2c: 01 07 00 [06:47:26]MH_I2C_Read... [06:47:26]Read from MH i2c: 01 07 00 45 4B 00 00 00 00 00 F4 0C 97 [06:47:26]RasterBufferAndPrint [06:47:26]line [06:47:26]line [06:47:26]line [06:47:26]line [06:47:26]line [06:47:26]written 0, free lines is 3322 [06:47:26]MH_Cut [06:47:26]Write to MH i2c: D1 01 00 4C 4B 01 69 [06:47:26]Write i2c OK [06:47:26]MH_I2C_Read... [06:47:26]Read from MH i2c: D1 [06:47:26]MH_I2C_Read... [06:47:26]Read from MH i2c: D1 01 00 [06:47:26]MH_I2C_Read... [06:47:26]Read from MH i2c: D1 01 00 4C 4B 00 68 [06:47:26]Write to MH i2c: 01 00 00 4D 4B 98 [06:47:26]Write i2c OK [06:47:26]MH_I2C_Read... [06:47:26]OFD Sender: No OFD packet to send [06:47:26]*** Cut start [06:47:26]*** Partial cut [06:47:26]*** CUTSNS_PIN = 1 [06:47:26]*** CUTSNS_PIN = 0 [06:47:27]*** Brake cut motor [06:47:27]Read from MH i2c: 01 [06:47:27]MH_I2C_Read... [06:47:27]*** Stop cut motor [06:47:27]*** Cut end [06:47:27]Read from MH i2c: 01 07 00 [06:47:27]MH_I2C_Read... [06:47:27]Read from MH i2c: 01 07 00 4D 4B 00 00 00 00 00 FF 0F AD [06:47:27]process_action close_receipt done [06:47:27]requested_data is exist [06:47:27]produce_requested_data [06:47:27]requested_item fm.sn is exist - process it [06:47:27]wFMCommunicate request_size=4 [06:47:27]MH_SAM_APDU [06:47:27]CAPDU: 80 11 00 00 [06:47:27]Write to MH i2c: E2 08 00 4E 4B 80 11 00 00 00 00 00 00 13 [06:47:27]Write i2c OK [06:47:27]MH_I2C_Read... [06:47:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:47:27]Read from MH i2c: E2 [06:47:27]MH_I2C_Read... [06:47:27]Read from MH i2c: E2 17 00 [06:47:27]MH_I2C_Read... [06:47:27]Read from MH i2c: E2 17 00 4E 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6E [06:47:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:47:27]wFMCommunicate OK [06:47:27]requested_item fd.num is exist - process it [06:47:27]SAM_PROTO_GetFieldsCounters [06:47:27]wFMCommunicate request_size=4 [06:47:27]MH_SAM_APDU [06:47:27]CAPDU: 80 13 00 00 [06:47:27]Write to MH i2c: E2 08 00 4F 4B 80 13 00 00 00 00 00 00 16 [06:47:27]Write i2c OK [06:47:27]MH_I2C_Read... [06:47:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:47:27]Read from MH i2c: E2 [06:47:27]MH_I2C_Read... [06:47:27]Read from MH i2c: E2 62 00 [06:47:27]MH_I2C_Read... [06:47:27]Read from MH i2c: E2 62 00 4F 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 7A 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [06:47:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 7A 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:47:27]wFMCommunicate OK [06:47:27]SAM_PROTO_GetFieldsCounters done [06:47:27]requested_item shift.num is exist - process it [06:47:27]requested_item shift.opened is exist - process it [06:47:27]req_shift_opened [06:47:27]FM_GetShiftState [06:47:27]SAM_PROTO_GetShiftState [06:47:27]wFMCommunicate request_size=4 [06:47:27]MH_SAM_APDU [06:47:27]CAPDU: 80 13 01 00 [06:47:27]Write to MH i2c: E2 08 00 50 4B 80 13 01 00 00 00 00 00 18 [06:47:27]Write i2c OK [06:47:27]MH_I2C_Read... [06:47:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:47:27]Read from MH i2c: E2 [06:47:27]MH_I2C_Read... [06:47:27]Read from MH i2c: E2 0E 00 [06:47:27]MH_I2C_Read... [06:47:27]Read from MH i2c: E2 0E 00 50 4B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 51 [06:47:27]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:47:27]wFMCommunicate OK [06:47:27]SAM_PROTO_GetShiftState done [06:47:27]FM_GetShiftState done [06:47:27]req_shift_opened done [06:47:27]requested_item shift.open_date is exist - process it [06:47:27]req_shift_open_date [06:47:27]req_shift_open_date done [06:47:27]produce_requested_data done [06:47:27]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139898,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [06:47:27]process_action_free close_receipt [06:47:27]json_value_free [06:47:27]json_value_free done [06:47:27]process_json_proto returns [06:47:27]Send response to host [06:47:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139898,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [06:47:27]free response buf [06:47:27]execute_script done [06:47:27]execute_script returns [06:47:27]free content buf [06:47:27]Sock 7.Close socket [06:47:27]Sock 7.Thread stoped [06:47:31]OFD Sender: No OFD packet to send [06:47:36]OFD Sender: No OFD packet to send [06:47:41]OFD Sender: No OFD packet to send [06:47:46]OFD Sender: No OFD packet to send [06:47:51]OFD Sender: No OFD packet to send [06:47:56]OFD Sender: No OFD packet to send [06:48:01]OFD Sender: No OFD packet to send [06:48:06]OFD Sender: No OFD packet to send [06:48:11]OFD Sender: No OFD packet to send [06:48:16]OFD Sender: No OFD packet to send [06:48:21]OFD Sender: No OFD packet to send [06:48:26]OFD Sender: No OFD packet to send [06:48:31]OFD Sender: No OFD packet to send [06:48:36]OFD Sender: No OFD packet to send [06:48:41]OFD Sender: No OFD packet to send [06:48:46]OFD Sender: No OFD packet to send [06:48:51]OFD Sender: No OFD packet to send [06:48:53]accept exits with 9 [06:48:53]New connection [06:48:53]New thread 3066510692 created [06:48:53]Thread 3066654052 joined [06:48:53]Waiting for new connection... [06:48:53] Sock 9.Parse request [06:48:53]Sock 9.Check first char [06:48:53]Sock 9.First char is OK [06:48:53]request: POST /json_proto HTTP/1.0 [06:48:53]Method: POST [06:48:53]URL: /json_proto [06:48:53]Method is POST - this is cgi request [06:48:53]url: /json_proto [06:48:53]query_string will be loaded in cgi processing [06:48:53]execute_cgi json_proto POST (null) [06:48:53]execute_cgi path=json_proto method=POST [06:48:53]POST find Content-Length [06:48:53]Host: 172.17.50.196:8080 [06:48:53]Content-Length: 678 [06:48:53]Content-Type: application/json [06:48:53] [06:48:53]POST finish read [06:48:53]Found Content-Length = 678 [06:48:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:53]execute_script... [06:48: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)1095723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:53]POST & json_proto [06:48:53]process_json_proto [06:48:53]json parsed OK: [06:48:53]protocol is kg_v1.0 [06:48:53]action value=close_receipt [06:48:53]process_action close_receipt [06:48:53]cmd_close_receipt [06:48:53]MH_GetDate [06:48:53]Write to MH i2c: F0 00 00 51 4B 8B [06:48:53]Write i2c OK [06:48:53]MH_I2C_Read... [06:48:53]Read from MH i2c: F0 [06:48:53]MH_I2C_Read... [06:48:53]Read from MH i2c: F0 09 00 [06:48:53]MH_I2C_Read... [06:48:53]Read from MH i2c: F0 09 00 51 4B 00 D9 79 24 67 72 0D 1C 67 73 [06:48:53]GetLastDocTimeStamp 1730443648 [06:48:53]current date 1730443737 [06:48:53]FM_GetShiftState [06:48:53]SAM_PROTO_GetShiftState [06:48:53]wFMCommunicate request_size=4 [06:48:53]MH_SAM_APDU [06:48:53]CAPDU: 80 13 01 00 [06:48:53]Write to MH i2c: E2 08 00 52 4B 80 13 01 00 00 00 00 00 1A [06:48:53]Write i2c OK [06:48:53]MH_I2C_Read... [06:48:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:53]Read from MH i2c: E2 [06:48:53]MH_I2C_Read... [06:48:53]Read from MH i2c: E2 0E 00 [06:48:53]MH_I2C_Read... [06:48:53]Read from MH i2c: E2 0E 00 52 4B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 53 [06:48:53]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:48:53]wFMCommunicate OK [06:48:53]SAM_PROTO_GetShiftState done [06:48:53]FM_GetShiftState done [06:48:53]opened in 1730419081 [06:48:53]opened+sec_in_day 1730505481 [06:48:53]quantity*price = 50010 [06:48:53]sum+1 = 50012 [06:48:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 80 01.11.2024 06:48 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139899 ФПД: 221189541247235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T064857&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139899&fm=221189541247235&tin=02508201610067®Number=0000000000091631&sum=50000 [06:48:54]StoreToDocumentArchive [06:48:54]shift 558 fd 139899 [06:48:54]save to /storage/0558/doc_00139899 [06:48:54]save last doc name /storage/0558/doc_00139899 to /storage/kkm_last_doc_name [06:48:54]save OK [06:48:54]Clear old archive folders... [06:48:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:48:54]tlvbuf is 00B56970 [06:48:54]SAM_PROTO_ClearQueue [06:48:54]wFMCommunicate request_size=4 [06:48:54]MH_SAM_APDU [06:48:54]CAPDU: 80 09 00 00 [06:48:54]Write to MH i2c: E2 08 00 5F 4B 80 09 00 00 00 00 00 00 1C [06:48:54]Write i2c OK [06:48:54]MH_I2C_Read... [06:48:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:48:54]Read from MH i2c: E2 [06:48:54]MH_I2C_Read... [06:48:54]Read from MH i2c: E2 03 00 [06:48:54]MH_I2C_Read... [06:48:54]Read from MH i2c: E2 03 00 5F 4B 00 90 00 1E [06:48:54]RAPDU: 90 00 [06:48:54]wFMCommunicate OK [06:48:54]SAM_PROTO_ClearQueue done [06:48:54]KKMCreateOFDPacket [06:48:54]OFDProtocolAddRootSTLVToBuf [06:48:54]FM_MakeSignedData [06:48:54]FM_MakeSignedData [06:48:54]SAM_PROTO_SignData [06:48:54]wFMCommunicate request_size=4 [06:48:54]MH_SAM_APDU [06:48:54]CAPDU: 80 0D 01 02 [06:48:54]Write to MH i2c: E2 08 00 60 4B 80 0D 01 02 00 00 00 00 24 [06:48:54]Write i2c OK [06:48:54]MH_I2C_Read... [06:48:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:48:54]Read from MH i2c: E2 [06:48:54]MH_I2C_Read... [06:48:54]Read from MH i2c: E2 03 00 [06:48:54]MH_I2C_Read... [06:48:54]Read from MH i2c: E2 03 00 60 4B 00 90 00 1F [06:48:54]RAPDU: 90 00 [06:48:54]wFMCommunicate OK [06:48:54]wFMCommunicate request_size=255 [06:48:54]MH_SAM_APDU [06:48:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 D9 79 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7B 22 02 00 35 04 06 00 C9 [06:48:54]Write to MH i2c: E2 02 01 61 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 D9 79 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7B 22 02 00 35 04 06 00 C9 00 00 51 [06:48:54]Write i2c OK [06:48:54]MH_I2C_Read... [06:48:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:54]Read from MH i2c: E2 [06:48:54]MH_I2C_Read... [06:48:54]Read from MH i2c: E2 03 00 [06:48:54]MH_I2C_Read... [06:48:54]Read from MH i2c: E2 03 00 61 4B 00 90 00 20 [06:48:54]RAPDU: 90 00 [06:48:54]wFMCommunicate OK [06:48:54]wFMCommunicate request_size=10 [06:48:54]MH_SAM_APDU [06:48:54]CAPDU: 80 0D 02 02 05 2B B4 08 B9 03 [06:48:54]Write to MH i2c: E2 0D 00 62 4B 80 0D 02 02 05 00 2B B4 08 B9 03 00 00 D4 [06:48:54]Write i2c OK [06:48:54]MH_I2C_Read... [06:48:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:54]Read from MH i2c: E2 [06:48:54]MH_I2C_Read... [06:48:54]Read from MH i2c: E2 03 00 [06:48:54]MH_I2C_Read... [06:48:54]Read from MH i2c: E2 03 00 62 4B 00 90 00 21 [06:48:54]RAPDU: 90 00 [06:48:54]wFMCommunicate OK [06:48:54]wFMCommunicate request_size=4 [06:48:54]MH_SAM_APDU [06:48:54]CAPDU: 80 0D 03 02 [06:48:54]Write to MH i2c: E2 08 00 63 4B 80 0D 03 02 00 00 00 00 29 [06:48:54]Write i2c OK [06:48:54]MH_I2C_Read... [06:48:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:48:55]Read from MH i2c: E2 [06:48:55]MH_I2C_Read... [06:48:55]Read from MH i2c: E2 0B 00 [06:48:55]MH_I2C_Read... [06:48:55]Read from MH i2c: E2 0B 00 63 4B 00 01 B6 17 E7 E5 B8 BA 17 90 00 4D [06:48:55]RAPDU: 01 B6 17 E7 E5 B8 BA 17 90 00 [06:48:55]wFMCommunicate OK [06:48:55]SAM_PROTO_SignData done [06:48:55]FM_MakeSignedData done [06:48:55]CreateOFDProtocolMessage [06:48:55]wFMCommunicate request_size=4 [06:48:55]MH_SAM_APDU [06:48:55]CAPDU: 80 11 00 00 [06:48:55]Write to MH i2c: E2 08 00 64 4B 80 11 00 00 00 00 00 00 29 [06:48:55]Write i2c OK [06:48:55]MH_I2C_Read... [06:48:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:55]Read from MH i2c: E2 [06:48:55]MH_I2C_Read... [06:48:55]Read from MH i2c: E2 17 00 [06:48:55]MH_I2C_Read... [06:48:55]Read from MH i2c: E2 17 00 64 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 84 [06:48:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:48:55]wFMCommunicate OK [06:48:55]CreateOFDProtocolMessage done [06:48:55]OFDSenderStorePacket 139899 [06:48:55]StoreOFDPacket docnum=139899 [06:48:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 AC 01 07 01 F7 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 D9 79 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7B 22 02 00 35 04 06 00 C9 2B B4 08 B9 03 01 B6 17 E7 E5 B8 BA 17 [06:48:55]CheckFolder [06:48:55]dirname=/storage/ofd_packets [06:48:55]CheckFolder done [06:48:55]ProducePacketName [06:48:55]name=ofd_packets/00139899 [06:48:55]NVStorageSaveData ofd_packets/00139899 [06:48:55]File name is /storage/ofd_packets/00139899 [06:48:55]Write 301 bytes [06:48:55]NVStorageSaveData done [06:48:55]OFDSenderStorePacket done [06:48:55]KKMCreateOFDPacket done [06:48:55]NVStorageSaveData kkm_last_timestamp [06:48:55]File name is /storage/kkm_last_timestamp [06:48:55]Write 4 bytes [06:48:55]NVStorageSaveData done [06:48:55]OFD Sender: Processing packet 139899 [packets to send 34, broken 33] [06:48:55]ProducePacketName [06:48:55]name=ofd_packets/00139899 [06:48:55]OFD Sender: To server: pG, [06:48:55]CommunicateWithHost lk.salyk.kg:30040 [06:48:55]ConnectInit lk.salyk.kg [06:48:55]ExternCall_PrintAddStr [06:48:55]wPrintStart [06:48:55]Write to MH i2c: 01 00 00 65 4B B0 [06:48:55]Write i2c OK [06:48:55]MH_I2C_Read... [06:48:55]Read from MH i2c: 01 [06:48:55]MH_I2C_Read... [06:48:55]Read from MH i2c: 01 07 00 [06:48:55]MH_I2C_Read... [06:48:55]Read from MH i2c: 01 07 00 65 4B 00 00 00 00 00 FF 0F C5 [06:48:55]RasterBufferAndPrint [06:48:55]line Счет N : (1)1095723 [06:48:55]line ИНН: 02508201610067 [06:48:55]line Контрольно-Кассовый Чек [06:48:55]line ПРОДАЖА [06:48:55]line ТРК (МРК, ГНК) : 54 [06:48:55]line Товар: 2710124500 [06:48:55]line Аи-95-К-3 [06:48:55]line 6.740 * 74.20 [06:48:55]line = 500.11 [06:48:55]line НДС 12% НСП 1% [06:48:55]line > о реализуемом товаре [06:48:55]line ОКРУГЛЕНИЕ: -0.11 [06:48:55]line ИТОГО: 500.00 [06:48:55]line Внесено: 500.00 [06:48:55]line СДАЧА: 0.00 [06:48:55]line НСП 1% : 4.43 [06:48:55]line НДС 12% : 53.11 [06:48:55]line Наличными: 500.00 [06:48:55]line Безнал.: 0.00 [06:48:55]line Место: АЗС № 101 "Партнер Нефть" [06:48:55]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:48:55]line СНО: Общий режим [06:48:55]line Чек 80 01.11.2024 06:48 [06:48:55]line Смена: 558 ФФД: 1.0 [06:48:55]line ЗНМ: 0300000081 [06:48:55]line РНМ: 0000000000091631 [06:48:55]line Версия ККМ: 001 [06:48:55]line ФМ: 0000000000874669 [06:48:55]line ФД: 139899 [06:48:55]line ФПД: 221189541247235 [06:48:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T064857&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139899&fm=221189541247235&tin=02508201610067®Number=0000000000091631&sum=50000 [06:48:55]Connected sock=11 [06:48:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 AC 01 07 01 F7 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 D9 79 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7B 22 02 00 35 04 06 00 C9 2B B4 08 B9 03 01 B6 17 E7 E5 B8 BA 17 [06:48:55]written 0, free lines is 4095 [06:48:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 CF CE 47 00 C6 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7B 22 02 00 F4 03 04 00 85 25 24 67 B6 04 01 00 00 55 50 AC 00 51 37 F8 EC [06:48:55]CommunicateWithHost err = 0 [06:48:55]CheckOFDResponse [06:48:55]1017 (14) - 77093643461234 [06:48:55]1041 (16) - 0000000000874669 [06:48:55]1040 (4) - 139899 [06:48:55]1012 (4) - 01.11.2024 00:49 [06:48:55]1206 (1) - 0 [06:48:55]OFD Sender: Remove packet 139899 [06:48:55]ProducePacketName [06:48:55]name=ofd_packets/00139899 [06:48:55]NVStorageDeleteData [06:48:55]Write to MH i2c: 01 00 00 90 4B DB [06:48:55]Write i2c OK [06:48:55]MH_I2C_Read... [06:48:55]Read from MH i2c: 01 [06:48:55]MH_I2C_Read... [06:48:55]Read from MH i2c: 01 07 00 [06:48:55]MH_I2C_Read... [06:48:55]Read from MH i2c: 01 07 00 90 4B 00 00 00 00 00 E4 0C D2 [06:48:55]RasterBufferAndPrint [06:48:55]line [06:48:55]line [06:48:55]line [06:48:55]line [06:48:55]line [06:48:55]written 0, free lines is 3306 [06:48:55]MH_Cut [06:48:55]Write to MH i2c: D1 01 00 97 4B 01 B4 [06:48:55]Write i2c OK [06:48:55]MH_I2C_Read... [06:48:55]Read from MH i2c: D1 [06:48:55]MH_I2C_Read... [06:48:55]Read from MH i2c: D1 01 00 [06:48:55]MH_I2C_Read... [06:48:55]Read from MH i2c: D1 01 00 97 4B 00 B3 [06:48:55]Write to MH i2c: 01 00 00 98 4B E3 [06:48:55]Write i2c OK [06:48:55]MH_I2C_Read... [06:48:56]OFD Sender: No OFD packet to send [06:48:56]*** Cut start [06:48:56]*** Partial cut [06:48:56]*** CUTSNS_PIN = 1 [06:48:56]*** CUTSNS_PIN = 0 [06:48:56]*** Brake cut motor [06:48:57]Read from MH i2c: 01 [06:48:57]MH_I2C_Read... [06:48:57]*** Stop cut motor [06:48:57]*** Cut end [06:48:57]Read from MH i2c: 01 07 00 [06:48:57]MH_I2C_Read... [06:48:57]Read from MH i2c: 01 07 00 98 4B 00 00 00 00 00 FF 0F F8 [06:48:57]process_action close_receipt done [06:48:57]requested_data is exist [06:48:57]produce_requested_data [06:48:57]requested_item fm.sn is exist - process it [06:48:57]wFMCommunicate request_size=4 [06:48:57]MH_SAM_APDU [06:48:57]CAPDU: 80 11 00 00 [06:48:57]Write to MH i2c: E2 08 00 99 4B 80 11 00 00 00 00 00 00 5E [06:48:57]Write i2c OK [06:48:57]MH_I2C_Read... [06:48:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:57]Read from MH i2c: E2 [06:48:57]MH_I2C_Read... [06:48:57]Read from MH i2c: E2 17 00 [06:48:57]MH_I2C_Read... [06:48:57]Read from MH i2c: E2 17 00 99 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B9 [06:48:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:48:57]wFMCommunicate OK [06:48:57]requested_item fd.num is exist - process it [06:48:57]SAM_PROTO_GetFieldsCounters [06:48:57]wFMCommunicate request_size=4 [06:48:57]MH_SAM_APDU [06:48:57]CAPDU: 80 13 00 00 [06:48:57]Write to MH i2c: E2 08 00 9A 4B 80 13 00 00 00 00 00 00 61 [06:48:57]Write i2c OK [06:48:57]MH_I2C_Read... [06:48:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:48:57]Read from MH i2c: E2 [06:48:57]MH_I2C_Read... [06:48:57]Read from MH i2c: E2 62 00 [06:48:57]MH_I2C_Read... [06:48:57]Read from MH i2c: E2 62 00 9A 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 7B 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [06:48:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 7B 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:48:57]wFMCommunicate OK [06:48:57]SAM_PROTO_GetFieldsCounters done [06:48:57]requested_item shift.num is exist - process it [06:48:57]requested_item shift.opened is exist - process it [06:48:57]req_shift_opened [06:48:57]FM_GetShiftState [06:48:57]SAM_PROTO_GetShiftState [06:48:57]wFMCommunicate request_size=4 [06:48:57]MH_SAM_APDU [06:48:57]CAPDU: 80 13 01 00 [06:48:57]Write to MH i2c: E2 08 00 9B 4B 80 13 01 00 00 00 00 00 63 [06:48:57]Write i2c OK [06:48:57]MH_I2C_Read... [06:48:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:57]Read from MH i2c: E2 [06:48:57]MH_I2C_Read... [06:48:57]Read from MH i2c: E2 0E 00 [06:48:57]MH_I2C_Read... [06:48:57]Read from MH i2c: E2 0E 00 9B 4B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 9C [06:48:57]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [06:48:57]wFMCommunicate OK [06:48:57]SAM_PROTO_GetShiftState done [06:48:57]FM_GetShiftState done [06:48:57]req_shift_opened done [06:48:57]requested_item shift.open_date is exist - process it [06:48:57]req_shift_open_date [06:48:57]req_shift_open_date done [06:48:57]produce_requested_data done [06:48:57]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139899,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [06:48:57]process_action_free close_receipt [06:48:57]json_value_free [06:48:57]json_value_free done [06:48:57]process_json_proto returns [06:48:57]Send response to host [06:48:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139899,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [06:48:57]free response buf [06:48:57]execute_script done [06:48:57]execute_script returns [06:48:57]free content buf [06:48:57]Sock 9.Close socket [06:48:57]Sock 9.Thread stoped [06:49:01]OFD Sender: No OFD packet to send [06:49:06]OFD Sender: No OFD packet to send [06:49:11]OFD Sender: No OFD packet to send [06:49:16]OFD Sender: No OFD packet to send [06:49:21]OFD Sender: No OFD packet to send [06:49:26]OFD Sender: No OFD packet to send [06:49:31]OFD Sender: No OFD packet to send [06:49:36]OFD Sender: No OFD packet to send [06:49:41]OFD Sender: No OFD packet to send [06:49:46]OFD Sender: No OFD packet to send [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59: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:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:47]OFD Sender: No OFD packet to send [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:53]OFD Sender: No OFD packet to send [07:28:58]OFD Sender: No OFD packet to send [07:29:03]OFD Sender: No OFD packet to send [07:29:08]OFD Sender: No OFD packet to send [07:29:13]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:44]accept exits with 7 [07:30:44]New connection [07:30:44]New thread 3066654052 created [07:30:44]Thread 3066510692 joined [07:30:44]Waiting for new connection... [07:30:44] Sock 7.Parse request [07:30:44]Sock 7.Check first char [07:30:44]Sock 7.First char is OK [07:30:44]request: POST /json_proto HTTP/1.0 [07:30:44]Method: POST [07:30:44]URL: /json_proto [07:30:44]Method is POST - this is cgi request [07:30:44]url: /json_proto [07:30:44]query_string will be loaded in cgi processing [07:30:44]execute_cgi json_proto POST (null) [07:30:44]execute_cgi path=json_proto method=POST [07:30:44]POST find Content-Length [07:30:44]Host: 172.17.50.196:8080 [07:30:44]Content-Length: 986 [07:30:44]Content-Type: application/json [07:30:44] [07:30:44]POST finish read [07:30:44]Found Content-Length = 986 [07:30:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335721", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 258.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:30:44]execute_script... [07:30:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335721", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 258.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:30:44]POST & json_proto [07:30:44]process_json_proto [07:30:44]json parsed OK: [07:30:44]protocol is kg_v1.0 [07:30:44]action value=close_receipt [07:30:44]process_action close_receipt [07:30:44]cmd_close_receipt [07:30:44]MH_GetDate [07:30:44]Write to MH i2c: F0 00 00 9C 4B D6 [07:30:44]Write i2c OK [07:30:44]MH_I2C_Read... [07:30:44]Read from MH i2c: F0 [07:30:44]MH_I2C_Read... [07:30:44]Read from MH i2c: F0 09 00 [07:30:44]MH_I2C_Read... [07:30:44]Read from MH i2c: F0 09 00 9C 4B 00 A9 83 24 67 72 0D 1C 67 98 [07:30:44]GetLastDocTimeStamp 1730443737 [07:30:44]current date 1730446249 [07:30:44]FM_GetShiftState [07:30:44]SAM_PROTO_GetShiftState [07:30:44]wFMCommunicate request_size=4 [07:30:44]MH_SAM_APDU [07:30:44]CAPDU: 80 13 01 00 [07:30:44]Write to MH i2c: E2 08 00 9D 4B 80 13 01 00 00 00 00 00 65 [07:30:44]Write i2c OK [07:30:44]MH_I2C_Read... [07:30:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:30:44]Read from MH i2c: E2 [07:30:44]MH_I2C_Read... [07:30:44]Read from MH i2c: E2 0E 00 [07:30:44]MH_I2C_Read... [07:30:44]Read from MH i2c: E2 0E 00 9D 4B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 9E [07:30:44]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [07:30:44]wFMCommunicate OK [07:30:44]SAM_PROTO_GetShiftState done [07:30:44]FM_GetShiftState done [07:30:44]opened in 1730419081 [07:30:44]opened+sec_in_day 1730505481 [07:30:44]quantity*price = 15400 [07:30:44]sum+1 = 15401 [07:30:44]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521254 Чай холодный MAXI черный со вкусом клубн 1.000 * 104.00 = 104.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 258.00 НСП 1% : 2.28 НДС 12% : 27.39 Наличными: 258.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 81 01.11.2024 07:30 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139900 ФПД: 38127377715356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T073049&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139900&fm=38127377715356&tin=02508201610067®Number=0000000000091631&sum=25800 0 [07:30:45]StoreToDocumentArchive [07:30:45]shift 558 fd 139900 [07:30:45]save to /storage/0558/doc_00139900 [07:30:45]save last doc name /storage/0558/doc_00139900 to /storage/kkm_last_doc_name [07:30:45]save OK [07:30:45]Clear old archive folders... [07:30:45]ProcessDocumentItem done err = 0, tmpTLVsize=416 [07:30:45]tlvbuf is 00B78100 [07:30:45]SAM_PROTO_ClearQueue [07:30:45]wFMCommunicate request_size=4 [07:30:45]MH_SAM_APDU [07:30:45]CAPDU: 80 09 00 00 [07:30:45]Write to MH i2c: E2 08 00 AA 4B 80 09 00 00 00 00 00 00 67 [07:30:45]Write i2c OK [07:30:45]MH_I2C_Read... [07:30:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:30:45]Read from MH i2c: E2 [07:30:45]MH_I2C_Read... [07:30:45]Read from MH i2c: E2 03 00 [07:30:45]MH_I2C_Read... [07:30:45]Read from MH i2c: E2 03 00 AA 4B 00 90 00 69 [07:30:45]RAPDU: 90 00 [07:30:45]wFMCommunicate OK [07:30:45]SAM_PROTO_ClearQueue done [07:30:45]KKMCreateOFDPacket [07:30:45]OFDProtocolAddRootSTLVToBuf [07:30:45]FM_MakeSignedData [07:30:45]FM_MakeSignedData [07:30:45]SAM_PROTO_SignData [07:30:45]wFMCommunicate request_size=4 [07:30:45]MH_SAM_APDU [07:30:45]CAPDU: 80 0D 01 02 [07:30:45]Write to MH i2c: E2 08 00 AB 4B 80 0D 01 02 00 00 00 00 6F [07:30:45]Write i2c OK [07:30:45]MH_I2C_Read... [07:30:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:30:46]Read from MH i2c: E2 [07:30:46]MH_I2C_Read... [07:30:46]Read from MH i2c: E2 03 00 [07:30:46]MH_I2C_Read... [07:30:46]Read from MH i2c: E2 03 00 AB 4B 00 90 00 6A [07:30:46]RAPDU: 90 00 [07:30:46]wFMCommunicate OK [07:30:46]wFMCommunicate request_size=255 [07:30:46]MH_SAM_APDU [07:30:46]CAPDU: 80 0D 02 02 FA 03 00 A0 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 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 [07:30:46]Write to MH i2c: E2 02 01 AC 4B 80 0D 02 02 FA 00 03 00 A0 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 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 00 00 19 [07:30:46]Write i2c OK [07:30:46]MH_I2C_Read... [07:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:30:46]Read from MH i2c: E2 [07:30:46]MH_I2C_Read... [07:30:46]Read from MH i2c: E2 03 00 [07:30:46]MH_I2C_Read... [07:30:46]Read from MH i2c: E2 03 00 AC 4B 00 90 00 6B [07:30:46]RAPDU: 90 00 [07:30:46]wFMCommunicate OK [07:30:46]wFMCommunicate request_size=175 [07:30:46]MH_SAM_APDU [07:30:46]CAPDU: 80 0D 02 02 AA BC 04 01 00 01 FC 03 06 00 C8 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 0A 00 00 00 00 07 04 06 00 C8 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 A9 83 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7C 22 02 00 35 04 06 00 22 AD 38 CE 10 9C [07:30:46]Write to MH i2c: E2 B2 00 AD 4B 80 0D 02 02 AA 00 BC 04 01 00 01 FC 03 06 00 C8 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 0A 00 00 00 00 07 04 06 00 C8 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 A9 83 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7C 22 02 00 35 04 06 00 22 AD 38 CE 10 9C 00 00 1F [07:30:46]Write i2c OK [07:30:46]MH_I2C_Read... [07:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:30:46]Read from MH i2c: E2 [07:30:46]MH_I2C_Read... [07:30:46]Read from MH i2c: E2 03 00 [07:30:46]MH_I2C_Read... [07:30:46]Read from MH i2c: E2 03 00 AD 4B 00 90 00 6C [07:30:46]RAPDU: 90 00 [07:30:46]wFMCommunicate OK [07:30:46]wFMCommunicate request_size=4 [07:30:46]MH_SAM_APDU [07:30:46]CAPDU: 80 0D 03 02 [07:30:46]Write to MH i2c: E2 08 00 AE 4B 80 0D 03 02 00 00 00 00 74 [07:30:46]Write i2c OK [07:30:46]MH_I2C_Read... [07:30:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:30:46]Read from MH i2c: E2 [07:30:46]MH_I2C_Read... [07:30:46]Read from MH i2c: E2 0B 00 [07:30:46]MH_I2C_Read... [07:30:46]Read from MH i2c: E2 0B 00 AE 4B 00 46 A1 1A 7E 24 94 CE A6 90 00 20 [07:30:46]RAPDU: 46 A1 1A 7E 24 94 CE A6 90 00 [07:30:46]wFMCommunicate OK [07:30:46]SAM_PROTO_SignData done [07:30:46]FM_MakeSignedData done [07:30:46]CreateOFDProtocolMessage [07:30:46]wFMCommunicate request_size=4 [07:30:46]MH_SAM_APDU [07:30:46]CAPDU: 80 11 00 00 [07:30:46]Write to MH i2c: E2 08 00 AF 4B 80 11 00 00 00 00 00 00 74 [07:30:46]Write i2c OK [07:30:46]MH_I2C_Read... [07:30:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:30:46]Read from MH i2c: E2 [07:30:46]MH_I2C_Read... [07:30:46]Read from MH i2c: E2 17 00 [07:30:46]MH_I2C_Read... [07:30:46]Read from MH i2c: E2 17 00 AF 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CF [07:30:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [07:30:46]wFMCommunicate OK [07:30:46]CreateOFDProtocolMessage done [07:30:46]OFDSenderStorePacket 139900 [07:30:46]StoreOFDPacket docnum=139900 [07:30:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B4 01 00 00 CE E7 AC 01 02 7F 5A 03 01 00 03 00 A0 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 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 0A 00 00 00 00 07 04 06 00 C8 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 A9 83 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7C 22 02 00 35 04 06 00 22 AD 38 CE 10 9C 46 A1 1A 7E 24 94 CE A6 [07:30:46]CheckFolder [07:30:46]dirname=/storage/ofd_packets [07:30:46]CheckFolder done [07:30:46]ProducePacketName [07:30:46]name=ofd_packets/00139900 [07:30:46]NVStorageSaveData ofd_packets/00139900 [07:30:46]File name is /storage/ofd_packets/00139900 [07:30:46]Write 466 bytes [07:30:46]NVStorageSaveData done [07:30:46]OFDSenderStorePacket done [07:30:46]KKMCreateOFDPacket done [07:30:46]NVStorageSaveData kkm_last_timestamp [07:30:46]File name is /storage/kkm_last_timestamp [07:30:46]Write 4 bytes [07:30:46]NVStorageSaveData done [07:30:46]ExternCall_PrintAddStr [07:30:46]wPrintStart [07:30:46]Write to MH i2c: 01 00 00 B0 4B FB [07:30:46]Write i2c OK [07:30:46]MH_I2C_Read... [07:30:46]Read from MH i2c: 01 [07:30:46]MH_I2C_Read... [07:30:46]Read from MH i2c: 01 07 00 [07:30:46]MH_I2C_Read... [07:30:46]Read from MH i2c: 01 07 00 B0 4B 00 00 00 00 00 FF 0F 10 [07:30:46]RasterBufferAndPrint [07:30:46]line Счет N : (3)335721 [07:30:46]line ИНН: 02508201610067 [07:30:46]line Контрольно-Кассовый Чек [07:30:46]line ПРОДАЖА [07:30:46]line Товар: 46230614 [07:30:46]line Сигареты Richmond Red Edition [07:30:46]line 1.000 * 154.00 [07:30:46]line = 154.00 [07:30:46]line НДС 12% НСП 1% [07:30:46]line > о реализуемом товаре [07:30:46]line Товар: 4870202521254 [07:30:46]line Чай холодный MAXI черный со вкусом клубн [07:30:46]line 1.000 * 104.00 [07:30:46]line = 104.00 [07:30:46]line НДС 12% НСП 1% [07:30:46]line > о реализуемом товаре [07:30:46]line ИТОГО: 258.00 [07:30:46]line НСП 1% : 2.28 [07:30:46]line НДС 12% : 27.39 [07:30:46]line Наличными: 258.00 [07:30:46]line Безнал.: 0.00 [07:30:46]line Место: АЗС № 101 "Партнер Нефть" [07:30:46]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [07:30:46]line СНО: Общий режим [07:30:46]line Чек 81 01.11.2024 07:30 [07:30:46]line Смена: 558 ФФД: 1.0 [07:30:46]line ЗНМ: 0300000081 [07:30:46]line РНМ: 0000000000091631 [07:30:46]line Версия ККМ: 001 [07:30:46]line ФМ: 0000000000874669 [07:30:46]line ФД: 139900 [07:30:46]line ФПД: 38127377715356 [07:30:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T073049&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139900&fm=38127377715356&tin=02508201610067®Number=0000000000091631&sum=25800 [07:30:46]line 0 [07:30:46]written 0, free lines is 4095 [07:30:46]OFD Sender: Processing packet 139900 [packets to send 34, broken 33] [07:30:46]ProducePacketName [07:30:46]name=ofd_packets/00139900 [07:30:46]OFD Sender: To server: pG, [07:30:46]CommunicateWithHost lk.salyk.kg:30040 [07:30:46]ConnectInit lk.salyk.kg [07:30:46]Connected sock=10 [07: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 34 36 36 39 B4 01 00 00 CE E7 AC 01 02 7F 5A 03 01 00 03 00 A0 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 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 0A 00 00 00 00 07 04 06 00 C8 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 A9 83 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7C 22 02 00 35 04 06 00 22 AD 38 CE 10 9C 46 A1 1A 7E 24 94 CE A6 [07:30:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 66 75 47 00 D7 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7C 22 02 00 F4 03 04 00 54 2F 24 67 B6 04 01 00 00 C7 8D 76 14 FB EF 9E 62 [07:30:46]CommunicateWithHost err = 0 [07:30:46]CheckOFDResponse [07:30:46]1017 (14) - 77093643461234 [07:30:46]1041 (16) - 0000000000874669 [07:30:46]1040 (4) - 139900 [07:30:46]1012 (4) - 01.11.2024 01:31 [07:30:46]1206 (1) - 0 [07:30:46]OFD Sender: Remove packet 139900 [07:30:46]ProducePacketName [07:30:46]name=ofd_packets/00139900 [07:30:46]NVStorageDeleteData [07:30:47]Write to MH i2c: 01 00 00 E0 4B 2B [07:30:47]Write i2c OK [07:30:47]MH_I2C_Read... [07:30:47]Read from MH i2c: 01 [07:30:47]MH_I2C_Read... [07:30:47]Read from MH i2c: 01 07 00 [07:30:47]MH_I2C_Read... [07:30:47]Read from MH i2c: 01 07 00 E0 4B 00 00 00 00 00 98 0C D6 [07:30:47]RasterBufferAndPrint [07:30:47]line [07:30:47]line [07:30:47]line [07:30:47]line [07:30:47]line [07:30:47]written 0, free lines is 3234 [07:30:47]MH_Cut [07:30:47]Write to MH i2c: D1 01 00 E7 4B 01 04 [07:30:47]Write i2c OK [07:30:47]MH_I2C_Read... [07:30:47]Read from MH i2c: D1 [07:30:47]MH_I2C_Read... [07:30:47]Read from MH i2c: D1 01 00 [07:30:47]MH_I2C_Read... [07:30:47]Read from MH i2c: D1 01 00 E7 4B 00 03 [07:30:47]Write to MH i2c: 01 00 00 E8 4B 33 [07:30:47]Write i2c OK [07:30:47]MH_I2C_Read... [07:30:47]OFD Sender: No OFD packet to send [07:30:47]*** Cut start [07:30:47]*** Partial cut [07:30:47]*** CUTSNS_PIN = 1 [07:30:47]*** CUTSNS_PIN = 0 [07:30:48]*** Brake cut motor [07:30:48]Read from MH i2c: 01 [07:30:48]MH_I2C_Read... [07:30:48]*** Stop cut motor [07:30:48]*** Cut end [07:30:48]Read from MH i2c: 01 07 00 [07:30:48]MH_I2C_Read... [07:30:48]Read from MH i2c: 01 07 00 E8 4B 00 00 00 00 00 FF 0F 48 [07:30:48]process_action close_receipt done [07:30:48]requested_data is exist [07:30:48]produce_requested_data [07:30:48]requested_item fm.sn is exist - process it [07:30:48]wFMCommunicate request_size=4 [07:30:48]MH_SAM_APDU [07:30:48]CAPDU: 80 11 00 00 [07:30:48]Write to MH i2c: E2 08 00 E9 4B 80 11 00 00 00 00 00 00 AE [07:30:48]Write i2c OK [07:30:48]MH_I2C_Read... [07:30:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:30:48]Read from MH i2c: E2 [07:30:48]MH_I2C_Read... [07:30:48]Read from MH i2c: E2 17 00 [07:30:48]MH_I2C_Read... [07:30:48]Read from MH i2c: E2 17 00 E9 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 09 [07:30:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [07:30:48]wFMCommunicate OK [07:30:48]requested_item fd.num is exist - process it [07:30:48]SAM_PROTO_GetFieldsCounters [07:30:48]wFMCommunicate request_size=4 [07:30:48]MH_SAM_APDU [07:30:48]CAPDU: 80 13 00 00 [07:30:48]Write to MH i2c: E2 08 00 EA 4B 80 13 00 00 00 00 00 00 B1 [07:30:48]Write i2c OK [07:30:48]MH_I2C_Read... [07:30:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:30:48]Read from MH i2c: E2 [07:30:48]MH_I2C_Read... [07:30:48]Read from MH i2c: E2 62 00 [07:30:48]MH_I2C_Read... [07:30:48]Read from MH i2c: E2 62 00 EA 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 7C 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [07: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 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 7C 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:30:48]wFMCommunicate OK [07:30:48]SAM_PROTO_GetFieldsCounters done [07:30:48]requested_item shift.num is exist - process it [07:30:48]requested_item shift.opened is exist - process it [07:30:48]req_shift_opened [07:30:48]FM_GetShiftState [07:30:48]SAM_PROTO_GetShiftState [07:30:48]wFMCommunicate request_size=4 [07:30:48]MH_SAM_APDU [07:30:48]CAPDU: 80 13 01 00 [07:30:48]Write to MH i2c: E2 08 00 EB 4B 80 13 01 00 00 00 00 00 B3 [07:30:48]Write i2c OK [07:30:48]MH_I2C_Read... [07:30:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:30:48]Read from MH i2c: E2 [07:30:48]MH_I2C_Read... [07:30:48]Read from MH i2c: E2 0E 00 [07:30:48]MH_I2C_Read... [07:30:48]Read from MH i2c: E2 0E 00 EB 4B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 EC [07:30:48]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [07:30:48]wFMCommunicate OK [07:30:48]SAM_PROTO_GetShiftState done [07:30:48]FM_GetShiftState done [07:30:48]req_shift_opened done [07:30:48]requested_item shift.open_date is exist - process it [07:30:48]req_shift_open_date [07:30:48]req_shift_open_date done [07:30:48]produce_requested_data done [07:30:48]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139900,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [07:30:48]process_action_free close_receipt [07:30:48]json_value_free [07:30:48]json_value_free done [07:30:48]process_json_proto returns [07:30:48]Send response to host [07:30:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139900,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [07:30:48]free response buf [07:30:48]execute_script done [07:30:48]execute_script returns [07:30:48]free content buf [07:30:48]Sock 7.Close socket [07:30:48]Sock 7.Thread stoped [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:32]OFD Sender: No OFD packet to send [07:32:37]OFD Sender: No OFD packet to send [07:32:42]OFD Sender: No OFD packet to send [07:32:47]OFD Sender: No OFD packet to send [07:32:52]OFD Sender: No OFD packet to send [07:32:57]OFD Sender: No OFD packet to send [07:33:02]OFD Sender: No OFD packet to send [07:33:07]OFD Sender: No OFD packet to send [07:33:12]OFD Sender: No OFD packet to send [07:33:17]OFD Sender: No OFD packet to send [07:33:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]OFD Sender: No OFD packet to send [07:43:03]OFD Sender: No OFD packet to send [07:43:08]OFD Sender: No OFD packet to send [07:43:13]OFD Sender: No OFD packet to send [07:43:18]OFD Sender: No OFD packet to send [07:43:23]OFD Sender: No OFD packet to send [07:43:28]OFD Sender: No OFD packet to send [07:43:33]OFD Sender: No OFD packet to send [07:43:38]OFD Sender: No OFD packet to send [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]OFD Sender: No OFD packet to send [07:44:58]OFD Sender: No OFD packet to send [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:42]accept exits with 9 [07:46:42]New connection [07:46:42]New thread 3066510692 created [07:46:42]Thread 3066654052 joined [07:46:42]Waiting for new connection... [07:46:42] Sock 9.Parse request [07:46:42]Sock 9.Check first char [07:46:42]Sock 9.First char is OK [07:46:42]request: POST /json_proto HTTP/1.0 [07:46:42]Method: POST [07:46:42]URL: /json_proto [07:46:42]Method is POST - this is cgi request [07:46:42]url: /json_proto [07:46:42]query_string will be loaded in cgi processing [07:46:42]execute_cgi json_proto POST (null) [07:46:42]execute_cgi path=json_proto method=POST [07:46:42]POST find Content-Length [07:46:42]Host: 172.17.50.196:8080 [07:46:42]Content-Length: 620 [07:46:42]Content-Type: application/json [07:46:42] [07:46:42]POST finish read [07:46:42]Found Content-Length = 620 [07:46:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335722", "tax_sys" : 0, "items" : [ { "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:42]execute_script... [07:46: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)335722", "tax_sys" : 0, "items" : [ { "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:42]POST & json_proto [07:46:42]process_json_proto [07:46:42]json parsed OK: [07:46:42]protocol is kg_v1.0 [07:46:42]action value=close_receipt [07:46:42]process_action close_receipt [07:46:42]cmd_close_receipt [07:46:42]MH_GetDate [07:46:42]Write to MH i2c: F0 00 00 EC 4B 26 [07:46:42]Write i2c OK [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: F0 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: F0 09 00 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: F0 09 00 EC 4B 00 66 87 24 67 72 0D 1C 67 A9 [07:46:42]GetLastDocTimeStamp 1730446249 [07:46:42]current date 1730447206 [07:46:42]FM_GetShiftState [07:46:42]SAM_PROTO_GetShiftState [07:46:42]wFMCommunicate request_size=4 [07:46:42]MH_SAM_APDU [07:46:42]CAPDU: 80 13 01 00 [07:46:42]Write to MH i2c: E2 08 00 ED 4B 80 13 01 00 00 00 00 00 B5 [07:46:42]Write i2c OK [07:46:42]MH_I2C_Read... [07:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:42]Read from MH i2c: E2 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: E2 0E 00 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: E2 0E 00 ED 4B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 EE [07:46:42]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [07:46:42]wFMCommunicate OK [07:46:42]SAM_PROTO_GetShiftState done [07:46:42]FM_GetShiftState done [07:46:42]opened in 1730419081 [07:46:42]opened+sec_in_day 1730505481 [07:46:42]quantity*price = 4900 [07:46:42]sum+1 = 4901 [07:46:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 82 01.11.2024 07:46 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139901 ФПД: 123993667134207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T074647&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139901&fm=123993667134207&tin=02508201610067®Number=0000000000091631&sum=4900 0 [07:46:43]StoreToDocumentArchive [07:46:43]shift 558 fd 139901 [07:46:43]save to /storage/0558/doc_00139901 [07:46:43]save last doc name /storage/0558/doc_00139901 to /storage/kkm_last_doc_name [07:46:43]save OK [07:46:43]Clear old archive folders... [07:46:43]ProcessDocumentItem done err = 0, tmpTLVsize=279 [07:46:43]tlvbuf is 00BCCDF0 [07:46:43]SAM_PROTO_ClearQueue [07:46:43]wFMCommunicate request_size=4 [07:46:43]MH_SAM_APDU [07:46:43]CAPDU: 80 09 00 00 [07:46:43]Write to MH i2c: E2 08 00 FA 4B 80 09 00 00 00 00 00 00 B7 [07:46:43]Write i2c OK [07:46:43]MH_I2C_Read... [07:46:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:43]Read from MH i2c: E2 [07:46:43]MH_I2C_Read... [07:46:43]Read from MH i2c: E2 03 00 [07:46:43]MH_I2C_Read... [07:46:43]Read from MH i2c: E2 03 00 FA 4B 00 90 00 B9 [07:46:43]RAPDU: 90 00 [07:46:43]wFMCommunicate OK [07:46:43]SAM_PROTO_ClearQueue done [07:46:43]KKMCreateOFDPacket [07:46:43]OFDProtocolAddRootSTLVToBuf [07:46:43]FM_MakeSignedData [07:46:43]FM_MakeSignedData [07:46:43]SAM_PROTO_SignData [07:46:43]wFMCommunicate request_size=4 [07:46:43]MH_SAM_APDU [07:46:43]CAPDU: 80 0D 01 02 [07:46:43]Write to MH i2c: E2 08 00 FB 4B 80 0D 01 02 00 00 00 00 BF [07:46:43]Write i2c OK [07:46:43]MH_I2C_Read... [07:46:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:43]Read from MH i2c: E2 [07:46:43]MH_I2C_Read... [07:46:43]Read from MH i2c: E2 03 00 [07:46:43]MH_I2C_Read... [07:46:43]Read from MH i2c: E2 03 00 FB 4B 00 90 00 BA [07:46:43]RAPDU: 90 00 [07:46:43]wFMCommunicate OK [07:46:43]wFMCommunicate request_size=255 [07:46:43]MH_SAM_APDU [07:46:43]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 67 87 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 [07:46:43]Write to MH i2c: E2 02 01 FC 4B 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 67 87 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 00 00 FD [07:46:43]Write i2c OK [07:46:43]MH_I2C_Read... [07:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:43]Read from MH i2c: E2 [07:46:43]MH_I2C_Read... [07:46:43]Read from MH i2c: E2 03 00 [07:46:43]MH_I2C_Read... [07:46:43]Read from MH i2c: E2 03 00 FC 4B 00 90 00 BB [07:46:43]RAPDU: 90 00 [07:46:43]wFMCommunicate OK [07:46:43]wFMCommunicate request_size=38 [07:46:43]MH_SAM_APDU [07:46:43]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7D 22 02 00 35 04 06 00 70 C5 86 7B E2 FF [07:46:43]Write to MH i2c: E2 29 00 FD 4B 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7D 22 02 00 35 04 06 00 70 C5 86 7B E2 FF 00 00 0B [07:46:43]Write i2c OK [07:46:43]MH_I2C_Read... [07:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:43]Read from MH i2c: E2 [07:46:43]MH_I2C_Read... [07:46:43]Read from MH i2c: E2 03 00 [07:46:43]MH_I2C_Read... [07:46:43]Read from MH i2c: E2 03 00 FD 4B 00 90 00 BC [07:46:43]RAPDU: 90 00 [07:46:43]wFMCommunicate OK [07:46:43]wFMCommunicate request_size=4 [07:46:43]MH_SAM_APDU [07:46:43]CAPDU: 80 0D 03 02 [07:46:43]Write to MH i2c: E2 08 00 FE 4B 80 0D 03 02 00 00 00 00 C4 [07:46:43]Write i2c OK [07:46:43]MH_I2C_Read... [07:46:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:44]Read from MH i2c: E2 [07:46:44]MH_I2C_Read... [07:46:44]Read from MH i2c: E2 0B 00 [07:46:44]MH_I2C_Read... [07:46:44]Read from MH i2c: E2 0B 00 FE 4B 00 32 72 AF BF 88 04 04 95 90 00 FC [07:46:44]RAPDU: 32 72 AF BF 88 04 04 95 90 00 [07:46:44]wFMCommunicate OK [07:46:44]SAM_PROTO_SignData done [07:46:44]FM_MakeSignedData done [07:46:44]CreateOFDProtocolMessage [07:46:44]wFMCommunicate request_size=4 [07:46:44]MH_SAM_APDU [07:46:44]CAPDU: 80 11 00 00 [07:46:44]Write to MH i2c: E2 08 00 FF 4B 80 11 00 00 00 00 00 00 C4 [07:46:44]Write i2c OK [07:46:44]MH_I2C_Read... [07:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:44]Read from MH i2c: E2 [07:46:44]MH_I2C_Read... [07:46:44]Read from MH i2c: E2 17 00 [07:46:44]MH_I2C_Read... [07:46:44]Read from MH i2c: E2 17 00 FF 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1F [07:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [07:46:44]wFMCommunicate OK [07:46:44]CreateOFDProtocolMessage done [07:46:44]OFDSenderStorePacket 139901 [07:46:44]StoreOFDPacket docnum=139901 [07:46:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2B 01 00 00 F0 49 23 01 DD AC 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 67 87 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7D 22 02 00 35 04 06 00 70 C5 86 7B E2 FF 32 72 AF BF 88 04 04 95 [07:46:44]CheckFolder [07:46:44]dirname=/storage/ofd_packets [07:46:44]CheckFolder done [07:46:44]ProducePacketName [07:46:44]name=ofd_packets/00139901 [07:46:44]NVStorageSaveData ofd_packets/00139901 [07:46:44]File name is /storage/ofd_packets/00139901 [07:46:44]Write 329 bytes [07:46:44]NVStorageSaveData done [07:46:44]OFDSenderStorePacket done [07:46:44]KKMCreateOFDPacket done [07:46:44]NVStorageSaveData kkm_last_timestamp [07:46:44]File name is /storage/kkm_last_timestamp [07:46:44]Write 4 bytes [07:46:44]NVStorageSaveData done [07:46:44]ExternCall_PrintAddStr [07:46:44]wPrintStart [07:46:44]Write to MH i2c: 01 00 00 00 4C 4C [07:46:44]Write i2c OK [07:46:44]MH_I2C_Read... [07:46:44]Read from MH i2c: 01 [07:46:44]MH_I2C_Read... [07:46:44]Read from MH i2c: 01 07 00 [07:46:44]MH_I2C_Read... [07:46:44]Read from MH i2c: 01 07 00 00 4C 00 00 00 00 00 FF 0F 61 [07:46:44]RasterBufferAndPrint [07:46:44]line Счет N : (3)335722 [07:46:44]line ИНН: 02508201610067 [07:46:44]line Контрольно-Кассовый Чек [07:46:44]line ПРОДАЖА [07:46:44]line Товар: 46214645 [07:46:44]line Р/ж mentos pure white клуб 16/15,5г [07:46:44]line 1.000 * 49.00 [07:46:44]line = 49.00 [07:46:44]line НДС 12% НСП 1% [07:46:44]line > о реализуемом товаре [07:46:44]line ИТОГО: 49.00 [07:46:44]line НСП 1% : 0.43 [07:46:44]line НДС 12% : 5.20 [07:46:44]line Наличными: 49.00 [07:46:44]line Безнал.: 0.00 [07:46:44]line Место: АЗС № 101 "Партнер Нефть" [07:46:44]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [07:46:44]line СНО: Общий режим [07:46:44]line Чек 82 01.11.2024 07:46 [07:46:44]line Смена: 558 ФФД: 1.0 [07:46:44]line ЗНМ: 0300000081 [07:46:44]line РНМ: 0000000000091631 [07:46:44]line Версия ККМ: 001 [07:46:44]line ФМ: 0000000000874669 [07:46:44]line ФД: 139901 [07:46:44]line ФПД: 123993667134207 [07:46:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T074647&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139901&fm=123993667134207&tin=02508201610067®Number=0000000000091631&sum=4900 [07:46:44]OFD Sender: Processing packet 139901 [packets to send 34, broken 33] [07:46:44]ProducePacketName [07:46:44]name=ofd_packets/00139901 [07:46:44]OFD Sender: To server: pG, [07:46:44]CommunicateWithHost lk.salyk.kg:30040 [07:46:44]ConnectInit lk.salyk.kg [07:46:44]line 0 [07:46:44]written 0, free lines is 4095 [07:46:44]Connected sock=7 [07:46:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2B 01 00 00 F0 49 23 01 DD AC 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 67 87 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7D 22 02 00 35 04 06 00 70 C5 86 7B E2 FF 32 72 AF BF 88 04 04 95 [07:46:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 B7 1A 47 00 49 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7D 22 02 00 F4 03 04 00 12 33 24 67 B6 04 01 00 00 06 6D EF 49 74 08 83 6A [07:46:44]CommunicateWithHost err = 0 [07:46:44]CheckOFDResponse [07:46:44]1017 (14) - 77093643461234 [07:46:44]1041 (16) - 0000000000874669 [07:46:44]1040 (4) - 139901 [07:46:44]1012 (4) - 01.11.2024 01:46 [07:46:44]1206 (1) - 0 [07:46:44]OFD Sender: Remove packet 139901 [07:46:44]ProducePacketName [07:46:44]name=ofd_packets/00139901 [07:46:44]NVStorageDeleteData [07:46:44]Write to MH i2c: 01 00 00 29 4C 75 [07:46:44]Write i2c OK [07:46:44]MH_I2C_Read... [07:46:44]Read from MH i2c: 01 [07:46:44]MH_I2C_Read... [07:46:44]Read from MH i2c: 01 07 00 [07:46:44]MH_I2C_Read... [07:46:44]Read from MH i2c: 01 07 00 29 4C 00 00 00 00 00 F1 0C 79 [07:46:44]RasterBufferAndPrint [07:46:44]line [07:46:44]line [07:46:44]line [07:46:44]line [07:46:44]line [07:46:44]written 0, free lines is 3320 [07:46:44]MH_Cut [07:46:44]Write to MH i2c: D1 01 00 30 4C 01 4E [07:46:44]Write i2c OK [07:46:44]MH_I2C_Read... [07:46:44]Read from MH i2c: D1 [07:46:44]MH_I2C_Read... [07:46:44]Read from MH i2c: D1 01 00 [07:46:44]MH_I2C_Read... [07:46:44]Read from MH i2c: D1 01 00 30 4C 00 4D [07:46:44]Write to MH i2c: 01 00 00 31 4C 7D [07:46:44]Write i2c OK [07:46:44]MH_I2C_Read... [07:46:45]OFD Sender: No OFD packet to send [07:46:45]*** Cut start [07:46:45]*** Partial cut [07:46:45]*** CUTSNS_PIN = 1 [07:46:45]*** CUTSNS_PIN = 0 [07:46:45]*** Brake cut motor [07:46:46]Read from MH i2c: 01 [07:46:46]MH_I2C_Read... [07:46:46]*** Stop cut motor [07:46:46]*** Cut end [07:46:46]Read from MH i2c: 01 07 00 [07:46:46]MH_I2C_Read... [07:46:46]Read from MH i2c: 01 07 00 31 4C 00 00 00 00 00 FF 0F 92 [07:46:46]process_action close_receipt done [07:46:46]requested_data is exist [07:46:46]produce_requested_data [07:46:46]requested_item fm.sn is exist - process it [07:46:46]wFMCommunicate request_size=4 [07:46:46]MH_SAM_APDU [07:46:46]CAPDU: 80 11 00 00 [07:46:46]Write to MH i2c: E2 08 00 32 4C 80 11 00 00 00 00 00 00 F8 [07:46:46]Write i2c OK [07:46:46]MH_I2C_Read... [07:46:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:46]Read from MH i2c: E2 [07:46:46]MH_I2C_Read... [07:46:46]Read from MH i2c: E2 17 00 [07:46:46]MH_I2C_Read... [07:46:46]Read from MH i2c: E2 17 00 32 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 53 [07:46:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [07:46:46]wFMCommunicate OK [07:46:46]requested_item fd.num is exist - process it [07:46:46]SAM_PROTO_GetFieldsCounters [07:46:46]wFMCommunicate request_size=4 [07:46:46]MH_SAM_APDU [07:46:46]CAPDU: 80 13 00 00 [07:46:46]Write to MH i2c: E2 08 00 33 4C 80 13 00 00 00 00 00 00 FB [07:46:46]Write i2c OK [07:46:46]MH_I2C_Read... [07:46:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:46]Read from MH i2c: E2 [07:46:46]MH_I2C_Read... [07:46:46]Read from MH i2c: E2 62 00 [07:46:46]MH_I2C_Read... [07:46:46]Read from MH i2c: E2 62 00 33 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 7D 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [07:46:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 7D 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:46:46]wFMCommunicate OK [07:46:46]SAM_PROTO_GetFieldsCounters done [07:46:46]requested_item shift.num is exist - process it [07:46:46]requested_item shift.opened is exist - process it [07:46:46]req_shift_opened [07:46:46]FM_GetShiftState [07:46:46]SAM_PROTO_GetShiftState [07:46:46]wFMCommunicate request_size=4 [07:46:46]MH_SAM_APDU [07:46:46]CAPDU: 80 13 01 00 [07:46:46]Write to MH i2c: E2 08 00 34 4C 80 13 01 00 00 00 00 00 FD [07:46:46]Write i2c OK [07:46:46]MH_I2C_Read... [07:46:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:46]Read from MH i2c: E2 [07:46:46]MH_I2C_Read... [07:46:46]Read from MH i2c: E2 0E 00 [07:46:46]MH_I2C_Read... [07:46:46]Read from MH i2c: E2 0E 00 34 4C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 36 [07:46:46]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [07:46:46]wFMCommunicate OK [07:46:46]SAM_PROTO_GetShiftState done [07:46:46]FM_GetShiftState done [07:46:46]req_shift_opened done [07:46:46]requested_item shift.open_date is exist - process it [07:46:46]req_shift_open_date [07:46:46]req_shift_open_date done [07:46:46]produce_requested_data done [07:46:46]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139901,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [07:46:46]process_action_free close_receipt [07:46:46]json_value_free [07:46:46]json_value_free done [07:46:46]process_json_proto returns [07:46:46]Send response to host [07:46:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139901,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [07:46:46]free response buf [07:46:46]execute_script done [07:46:46]execute_script returns [07:46:46]free content buf [07:46:46]Sock 9.Close socket [07:46:46]Sock 9.Thread stoped [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:50]OFD Sender: No OFD packet to send [07:48:55]OFD Sender: No OFD packet to send [07:49:00]OFD Sender: No OFD packet to send [07:49:05]OFD Sender: No OFD packet to send [07:49:10]OFD Sender: No OFD packet to send [07:49:15]OFD Sender: No OFD packet to send [07:49:20]OFD Sender: No OFD packet to send [07:49:25]OFD Sender: No OFD packet to send [07:49:30]OFD Sender: No OFD packet to send [07:49:35]OFD Sender: No OFD packet to send [07:49:40]OFD Sender: No OFD packet to send [07:49:45]OFD Sender: No OFD packet to send [07:49:50]OFD Sender: No OFD packet to send [07:49:55]OFD Sender: No OFD packet to send [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [07:51:05]OFD Sender: No OFD packet to send [07:51:10]OFD Sender: No OFD packet to send [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:47]accept exits with 10 [07:51:47]New connection [07:51:47]New thread 3066654052 created [07:51:47]Thread 3066510692 joined [07:51:47]Waiting for new connection... [07:51:47] Sock 10.Parse request [07:51:47]Sock 10.Check first char [07:51:47]Sock 10.First char is OK [07:51:47]request: POST /json_proto HTTP/1.0 [07:51:47]Method: POST [07:51:47]URL: /json_proto [07:51:47]Method is POST - this is cgi request [07:51:47]url: /json_proto [07:51:47]query_string will be loaded in cgi processing [07:51:47]execute_cgi json_proto POST (null) [07:51:47]execute_cgi path=json_proto method=POST [07:51:47]POST find Content-Length [07:51:47]Host: 172.17.50.196:8080 [07:51:47]Content-Length: 753 [07:51:47]Content-Type: application/json [07:51:47] [07:51:47]POST finish read [07:51:47]Found Content-Length = 753 [07:51:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335723", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:51:47]execute_script... [07:51: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)335723", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:51:47]POST & json_proto [07:51:47]process_json_proto [07:51:47]json parsed OK: [07:51:47]protocol is kg_v1.0 [07:51:47]action value=close_receipt [07:51:47]process_action close_receipt [07:51:47]cmd_close_receipt [07:51:47]MH_GetDate [07:51:47]Write to MH i2c: F0 00 00 35 4C 70 [07:51:47]Write i2c OK [07:51:47]MH_I2C_Read... [07:51:47]Read from MH i2c: F0 [07:51:47]MH_I2C_Read... [07:51:47]Read from MH i2c: F0 09 00 [07:51:47]MH_I2C_Read... [07:51:47]Read from MH i2c: F0 09 00 35 4C 00 97 88 24 67 72 0D 1C 67 25 [07:51:47]GetLastDocTimeStamp 1730447207 [07:51:47]current date 1730447511 [07:51:47]FM_GetShiftState [07:51:47]SAM_PROTO_GetShiftState [07:51:47]wFMCommunicate request_size=4 [07:51:47]MH_SAM_APDU [07:51:47]CAPDU: 80 13 01 00 [07:51:47]Write to MH i2c: E2 08 00 36 4C 80 13 01 00 00 00 00 00 FF [07:51:47]Write i2c OK [07:51:47]MH_I2C_Read... [07:51:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:47]Read from MH i2c: E2 [07:51:47]MH_I2C_Read... [07:51:47]Read from MH i2c: E2 0E 00 [07:51:47]MH_I2C_Read... [07:51:47]Read from MH i2c: E2 0E 00 36 4C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 38 [07:51:47]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [07:51:47]wFMCommunicate OK [07:51:47]SAM_PROTO_GetShiftState done [07:51:47]FM_GetShiftState done [07:51:47]opened in 1730419081 [07:51:47]opened+sec_in_day 1730505481 [07:51:47]quantity*price = 11500 [07:51:47]sum+1 = 11501 [07:51:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 0.00 Безнал.: 115.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 83 01.11.2024 07:51 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139902 ФПД: 156151499438186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T075152&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139902&fm=156151499438186&tin=02508201610067®Number=0000000000091631&sum=11500 0 [07:51:48]StoreToDocumentArchive [07:51:48]shift 558 fd 139902 [07:51:48]save to /storage/0558/doc_00139902 [07:51:48]save last doc name /storage/0558/doc_00139902 to /storage/kkm_last_doc_name [07:51:48]save OK [07:51:48]Clear old archive folders... [07:51:48]ProcessDocumentItem done err = 0, tmpTLVsize=274 [07:51:48]tlvbuf is 00A18040 [07:51:48]SAM_PROTO_ClearQueue [07:51:48]wFMCommunicate request_size=4 [07:51:48]MH_SAM_APDU [07:51:48]CAPDU: 80 09 00 00 [07:51:48]Write to MH i2c: E2 08 00 43 4C 80 09 00 00 00 00 00 00 01 [07:51:48]Write i2c OK [07:51:48]MH_I2C_Read... [07:51:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:51:48]Read from MH i2c: E2 [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: E2 03 00 [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: E2 03 00 43 4C 00 90 00 03 [07:51:48]RAPDU: 90 00 [07:51:48]wFMCommunicate OK [07:51:48]SAM_PROTO_ClearQueue done [07:51:48]KKMCreateOFDPacket [07:51:48]OFDProtocolAddRootSTLVToBuf [07:51:48]FM_MakeSignedData [07:51:48]FM_MakeSignedData [07:51:48]SAM_PROTO_SignData [07:51:48]wFMCommunicate request_size=4 [07:51:48]MH_SAM_APDU [07:51:48]CAPDU: 80 0D 01 02 [07:51:48]Write to MH i2c: E2 08 00 44 4C 80 0D 01 02 00 00 00 00 09 [07:51:48]Write i2c OK [07:51:48]MH_I2C_Read... [07:51:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:51:48]Read from MH i2c: E2 [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: E2 03 00 [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: E2 03 00 44 4C 00 90 00 04 [07:51:48]RAPDU: 90 00 [07:51:48]wFMCommunicate OK [07:51:48]wFMCommunicate request_size=255 [07:51:48]MH_SAM_APDU [07:51:48]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 98 88 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 [07:51:48]Write to MH i2c: E2 02 01 45 4C 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 98 88 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 00 00 CE [07:51:48]Write i2c OK [07:51:48]MH_I2C_Read... [07:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:48]Read from MH i2c: E2 [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: E2 03 00 [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: E2 03 00 45 4C 00 90 00 05 [07:51:48]RAPDU: 90 00 [07:51:48]wFMCommunicate OK [07:51:48]wFMCommunicate request_size=33 [07:51:48]MH_SAM_APDU [07:51:48]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7E 22 02 00 35 04 06 00 8E 04 DA A7 B8 6A [07:51:48]Write to MH i2c: E2 24 00 46 4C 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7E 22 02 00 35 04 06 00 8E 04 DA A7 B8 6A 00 00 7A [07:51:48]Write i2c OK [07:51:48]MH_I2C_Read... [07:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:48]Read from MH i2c: E2 [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: E2 03 00 [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: E2 03 00 46 4C 00 90 00 06 [07:51:48]RAPDU: 90 00 [07:51:48]wFMCommunicate OK [07:51:48]wFMCommunicate request_size=4 [07:51:48]MH_SAM_APDU [07:51:48]CAPDU: 80 0D 03 02 [07:51:48]Write to MH i2c: E2 08 00 47 4C 80 0D 03 02 00 00 00 00 0E [07:51:48]Write i2c OK [07:51:48]MH_I2C_Read... [07:51:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:51:49]Read from MH i2c: E2 [07:51:49]MH_I2C_Read... [07:51:49]Read from MH i2c: E2 0B 00 [07:51:49]MH_I2C_Read... [07:51:49]Read from MH i2c: E2 0B 00 47 4C 00 92 C3 B9 F6 0D 36 25 92 90 00 0D [07:51:49]RAPDU: 92 C3 B9 F6 0D 36 25 92 90 00 [07:51:49]wFMCommunicate OK [07:51:49]SAM_PROTO_SignData done [07:51:49]FM_MakeSignedData done [07:51:49]CreateOFDProtocolMessage [07:51:49]wFMCommunicate request_size=4 [07:51:49]MH_SAM_APDU [07:51:49]CAPDU: 80 11 00 00 [07:51:49]Write to MH i2c: E2 08 00 48 4C 80 11 00 00 00 00 00 00 0E [07:51:49]Write i2c OK [07:51:49]MH_I2C_Read... [07:51:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:49]Read from MH i2c: E2 [07:51:49]MH_I2C_Read... [07:51:49]Read from MH i2c: E2 17 00 [07:51:49]MH_I2C_Read... [07:51:49]Read from MH i2c: E2 17 00 48 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 69 [07:51:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [07:51:49]wFMCommunicate OK [07:51:49]CreateOFDProtocolMessage done [07:51:49]OFDSenderStorePacket 139902 [07:51:49]StoreOFDPacket docnum=139902 [07:51:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 26 01 00 00 AD 46 1E 01 25 83 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 98 88 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7E 22 02 00 35 04 06 00 8E 04 DA A7 B8 6A 92 C3 B9 F6 0D 36 25 92 [07:51:49]CheckFolder [07:51:49]dirname=/storage/ofd_packets [07:51:49]CheckFolder done [07:51:49]ProducePacketName [07:51:49]name=ofd_packets/00139902 [07:51:49]NVStorageSaveData ofd_packets/00139902 [07:51:49]File name is /storage/ofd_packets/00139902 [07:51:49]Write 324 bytes [07:51:49]NVStorageSaveData done [07:51:49]OFDSenderStorePacket done [07:51:49]KKMCreateOFDPacket done [07:51:49]NVStorageSaveData kkm_last_timestamp [07:51:49]File name is /storage/kkm_last_timestamp [07:51:49]Write 4 bytes [07:51:49]NVStorageSaveData done [07:51:49]ExternCall_PrintAddStr [07:51:49]wPrintStart [07:51:49]Write to MH i2c: 01 00 00 49 4C 95 [07:51:49]Write i2c OK [07:51:49]MH_I2C_Read... [07:51:49]Read from MH i2c: 01 [07:51:49]MH_I2C_Read... [07:51:49]Read from MH i2c: 01 07 00 [07:51:49]MH_I2C_Read... [07:51:49]Read from MH i2c: 01 07 00 49 4C 00 00 00 00 00 FF 0F AA [07:51:49]RasterBufferAndPrint [07:51:49]line Счет N : (3)335723 [07:51:49]line ИНН: 02508201610067 [07:51:49]line Контрольно-Кассовый Чек [07:51:49]line ПРОДАЖА [07:51:49]line Товар: 2000036240010 [07:51:49]line Кофе Латте (GABB TRADE) [07:51:49]line 1.000 * 115.00 [07:51:49]line = 115.00 [07:51:49]line НДС 12% НСП 1% [07:51:49]line > о реализуемом товаре [07:51:49]line ИТОГО: 115.00 [07:51:49]line НСП 1% : 1.02 [07:51:49]line НДС 12% : 12.21 [07:51:49]line Наличными: 0.00 [07:51:49]line Безнал.: 115.00 [07:51:49]line Место: АЗС № 101 "Партнер Нефть" [07:51:49]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [07:51:49]line СНО: Общий режим [07:51:49]line Чек 83 01.11.2024 07:51 [07:51:49]line Смена: 558 ФФД: 1.0 [07:51:49]line ЗНМ: 0300000081 [07:51:49]line РНМ: 0000000000091631 [07:51:49]line Версия ККМ: 001 [07:51:49]line Платежная система: Mbank [07:51:49]line ФМ: 0000000000874669 [07:51:49]line ФД: 139902 [07:51:49]line ФПД: 156151499438186 [07:51:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T075152&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139902&fm=156151499438186&tin=02508201610067®Number=0000000000091631&sum=11500 [07:51:49]line 0 [07:51:49]OFD Sender: Processing packet 139902 [packets to send 34, broken 33] [07:51:49]ProducePacketName [07:51:49]name=ofd_packets/00139902 [07:51:49]OFD Sender: To server: pG, [07:51:49]CommunicateWithHost lk.salyk.kg:30040 [07:51:49]ConnectInit lk.salyk.kg [07:51:49]written 0, free lines is 4095 [07:51:49]Connected sock=9 [07:51:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 26 01 00 00 AD 46 1E 01 25 83 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 98 88 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7E 22 02 00 35 04 06 00 8E 04 DA A7 B8 6A 92 C3 B9 F6 0D 36 25 92 [07:51:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 A2 6A 47 00 8D 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 34 36 36 39 10 04 04 00 7E 22 02 00 F4 03 04 00 43 34 24 67 B6 04 01 00 00 DD C3 2D 5F A5 CF AD 34 [07:51:49]CommunicateWithHost err = 0 [07:51:49]CheckOFDResponse [07:51:49]1017 (14) - 77093643461234 [07:51:49]1041 (16) - 0000000000874669 [07:51:49]1040 (4) - 139902 [07:51:49]1012 (4) - 01.11.2024 01:52 [07:51:49]1206 (1) - 0 [07:51:49]OFD Sender: Remove packet 139902 [07:51:49]ProducePacketName [07:51:49]name=ofd_packets/00139902 [07:51:49]NVStorageDeleteData [07:51:49]Write to MH i2c: 01 00 00 72 4C BE [07:51:49]Write i2c OK [07:51:49]MH_I2C_Read... [07:51:49]Read from MH i2c: 01 [07:51:49]MH_I2C_Read... [07:51:49]Read from MH i2c: 01 07 00 [07:51:49]MH_I2C_Read... [07:51:49]Read from MH i2c: 01 07 00 72 4C 00 00 00 00 00 11 0D E3 [07:51:49]RasterBufferAndPrint [07:51:49]line [07:51:49]line [07:51:49]line [07:51:49]line [07:51:49]line [07:51:49]written 0, free lines is 3351 [07:51:49]MH_Cut [07:51:49]Write to MH i2c: D1 01 00 79 4C 01 97 [07:51:49]Write i2c OK [07:51:49]MH_I2C_Read... [07:51:49]Read from MH i2c: D1 [07:51:49]MH_I2C_Read... [07:51:49]Read from MH i2c: D1 01 00 [07:51:49]MH_I2C_Read... [07:51:49]Read from MH i2c: D1 01 00 79 4C 00 96 [07:51:49]Write to MH i2c: 01 00 00 7A 4C C6 [07:51:49]Write i2c OK [07:51:49]MH_I2C_Read... [07:51:50]OFD Sender: No OFD packet to send [07:51:50]*** Cut start [07:51:50]*** Partial cut [07:51:50]*** CUTSNS_PIN = 1 [07:51:50]*** CUTSNS_PIN = 0 [07:51:50]*** Brake cut motor [07:51:51]Read from MH i2c: 01 [07:51:51]MH_I2C_Read... [07:51:51]*** Stop cut motor [07:51:51]*** Cut end [07:51:51]Read from MH i2c: 01 07 00 [07:51:51]MH_I2C_Read... [07:51:51]Read from MH i2c: 01 07 00 7A 4C 00 00 00 00 00 FF 0F DB [07:51:51]process_action close_receipt done [07:51:51]requested_data is exist [07:51:51]produce_requested_data [07:51:51]requested_item fm.sn is exist - process it [07:51:51]wFMCommunicate request_size=4 [07:51:51]MH_SAM_APDU [07:51:51]CAPDU: 80 11 00 00 [07:51:51]Write to MH i2c: E2 08 00 7B 4C 80 11 00 00 00 00 00 00 41 [07:51:51]Write i2c OK [07:51:51]MH_I2C_Read... [07:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:51]Read from MH i2c: E2 [07:51:51]MH_I2C_Read... [07:51:51]Read from MH i2c: E2 17 00 [07:51:51]MH_I2C_Read... [07:51:51]Read from MH i2c: E2 17 00 7B 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9C [07:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [07:51:51]wFMCommunicate OK [07:51:51]requested_item fd.num is exist - process it [07:51:51]SAM_PROTO_GetFieldsCounters [07:51:51]wFMCommunicate request_size=4 [07:51:51]MH_SAM_APDU [07:51:51]CAPDU: 80 13 00 00 [07:51:51]Write to MH i2c: E2 08 00 7C 4C 80 13 00 00 00 00 00 00 44 [07:51:51]Write i2c OK [07:51:51]MH_I2C_Read... [07:51:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:51:51]Read from MH i2c: E2 [07:51:51]MH_I2C_Read... [07:51:51]Read from MH i2c: E2 62 00 [07:51:51]MH_I2C_Read... [07:51:51]Read from MH i2c: E2 62 00 7C 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 7E 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [07:51:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 7E 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:51:51]wFMCommunicate OK [07:51:51]SAM_PROTO_GetFieldsCounters done [07:51:51]requested_item shift.num is exist - process it [07:51:51]requested_item shift.opened is exist - process it [07:51:51]req_shift_opened [07:51:51]FM_GetShiftState [07:51:51]SAM_PROTO_GetShiftState [07:51:51]wFMCommunicate request_size=4 [07:51:51]MH_SAM_APDU [07:51:51]CAPDU: 80 13 01 00 [07:51:51]Write to MH i2c: E2 08 00 7D 4C 80 13 01 00 00 00 00 00 46 [07:51:51]Write i2c OK [07:51:51]MH_I2C_Read... [07:51:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:51]Read from MH i2c: E2 [07:51:51]MH_I2C_Read... [07:51:51]Read from MH i2c: E2 0E 00 [07:51:51]MH_I2C_Read... [07:51:51]Read from MH i2c: E2 0E 00 7D 4C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 7F [07:51:51]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [07:51:51]wFMCommunicate OK [07:51:51]SAM_PROTO_GetShiftState done [07:51:51]FM_GetShiftState done [07:51:51]req_shift_opened done [07:51:51]requested_item shift.open_date is exist - process it [07:51:51]req_shift_open_date [07:51:51]req_shift_open_date done [07:51:51]produce_requested_data done [07:51:51]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139902,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [07:51:51]process_action_free close_receipt [07:51:51]json_value_free [07:51:51]json_value_free done [07:51:51]process_json_proto returns [07:51:51]Send response to host [07:51:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139902,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [07:51:51]free response buf [07:51:51]execute_script done [07:51:51]execute_script returns [07:51:51]free content buf [07:51:51]Sock 10.Close socket [07:51:51]Sock 10.Thread stoped [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:15]OFD Sender: No OFD packet to send [08:06:20]OFD Sender: No OFD packet to send [08:06:25]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:45]OFD Sender: No OFD packet to send [08:06:50]OFD Sender: No OFD packet to send [08:06:55]OFD Sender: No OFD packet to send [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:16]OFD Sender: No OFD packet to send [08:07:21]OFD Sender: No OFD packet to send [08:07:26]OFD Sender: No OFD packet to send [08:07:31]OFD Sender: No OFD packet to send [08:07:36]OFD Sender: No OFD packet to send [08:07:41]OFD Sender: No OFD packet to send [08:07:46]OFD Sender: No OFD packet to send [08:07:51]OFD Sender: No OFD packet to send [08:07:56]OFD Sender: No OFD packet to send [08:08:01]OFD Sender: No OFD packet to send [08:08:06]OFD Sender: No OFD packet to send [08:08:11]OFD Sender: No OFD packet to send [08:08:16]OFD Sender: No OFD packet to send [08:08:21]OFD Sender: No OFD packet to send [08:08:26]OFD Sender: No OFD packet to send [08:08:31]OFD Sender: No OFD packet to send [08:08:36]OFD Sender: No OFD packet to send [08:08:41]OFD Sender: No OFD packet to send [08:08:46]OFD Sender: No OFD packet to send [08:08:48]accept exits with 7 [08:08:48]New connection [08:08:48]New thread 3066510692 created [08:08:48]Thread 3066654052 joined [08:08:48]Waiting for new connection... [08:08:48] Sock 7.Parse request [08:08:48]Sock 7.Check first char [08:08:48]Sock 7.First char is OK [08:08:48]request: POST /json_proto HTTP/1.0 [08:08:48]Method: POST [08:08:48]URL: /json_proto [08:08:48]Method is POST - this is cgi request [08:08:48]url: /json_proto [08:08:48]query_string will be loaded in cgi processing [08:08:48]execute_cgi json_proto POST (null) [08:08:48]execute_cgi path=json_proto method=POST [08:08:48]POST find Content-Length [08:08:48]Host: 172.17.50.196:8080 [08:08:48]Content-Length: 682 [08:08:48]Content-Type: application/json [08:08:48] [08:08:48]POST finish read [08:08:48]Found Content-Length = 682 [08:08:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335724", "tax_sys" : 0, "items" : [ { "code": "4680021880377", "name": "\u0422\u043E\u0440\u0442 \u0432\u0430\u0444. \u042F\u0448\u043A\u0438\u043D\u043E \u043E\u0440\u0435\u0445. 250 \u0433\u0440", "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:08:48]execute_script... [08:08: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)335724", "tax_sys" : 0, "items" : [ { "code": "4680021880377", "name": "\u0422\u043E\u0440\u0442 \u0432\u0430\u0444. \u042F\u0448\u043A\u0438\u043D\u043E \u043E\u0440\u0435\u0445. 250 \u0433\u0440", "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:08:48]POST & json_proto [08:08:48]process_json_proto [08:08:48]json parsed OK: [08:08:48]protocol is kg_v1.0 [08:08:48]action value=close_receipt [08:08:48]process_action close_receipt [08:08:48]cmd_close_receipt [08:08:48]MH_GetDate [08:08:48]Write to MH i2c: F0 00 00 7E 4C B9 [08:08:48]Write i2c OK [08:08:48]MH_I2C_Read... [08:08:48]Read from MH i2c: F0 [08:08:48]MH_I2C_Read... [08:08:48]Read from MH i2c: F0 09 00 [08:08:48]MH_I2C_Read... [08:08:48]Read from MH i2c: F0 09 00 7E 4C 00 95 8C 24 67 72 0D 1C 67 70 [08:08:48]GetLastDocTimeStamp 1730447512 [08:08:48]current date 1730448533 [08:08:48]FM_GetShiftState [08:08:48]SAM_PROTO_GetShiftState [08:08:48]wFMCommunicate request_size=4 [08:08:48]MH_SAM_APDU [08:08:48]CAPDU: 80 13 01 00 [08:08:48]Write to MH i2c: E2 08 00 7F 4C 80 13 01 00 00 00 00 00 48 [08:08:48]Write i2c OK [08:08:48]MH_I2C_Read... [08:08:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:48]Read from MH i2c: E2 [08:08:48]MH_I2C_Read... [08:08:48]Read from MH i2c: E2 0E 00 [08:08:48]MH_I2C_Read... [08:08:48]Read from MH i2c: E2 0E 00 7F 4C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 81 [08:08:48]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [08:08:48]wFMCommunicate OK [08:08:48]SAM_PROTO_GetShiftState done [08:08:48]FM_GetShiftState done [08:08:48]opened in 1730419081 [08:08:48]opened+sec_in_day 1730505481 [08:08:48]quantity*price = 13500 [08:08:48]sum+1 = 13501 [08:08:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 84 01.11.2024 08:08 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139903 ФПД: 205068428719589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T080853&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139903&fm=205068428719589&tin=02508201610067®Number=0000000000091631&sum=13500 0 [08:08:49]StoreToDocumentArchive [08:08:49]shift 558 fd 139903 [08:08:49]save to /storage/0558/doc_00139903 [08:08:49]save last doc name /storage/0558/doc_00139903 to /storage/kkm_last_doc_name [08:08:49]save OK [08:08:49]Clear old archive folders... [08:08:49]ProcessDocumentItem done err = 0, tmpTLVsize=290 [08:08:49]tlvbuf is 00A59C80 [08:08:49]SAM_PROTO_ClearQueue [08:08:49]wFMCommunicate request_size=4 [08:08:49]MH_SAM_APDU [08:08:49]CAPDU: 80 09 00 00 [08:08:49]Write to MH i2c: E2 08 00 8C 4C 80 09 00 00 00 00 00 00 4A [08:08:49]Write i2c OK [08:08:49]MH_I2C_Read... [08:08:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:49]Read from MH i2c: E2 [08:08:49]MH_I2C_Read... [08:08:49]Read from MH i2c: E2 03 00 [08:08:49]MH_I2C_Read... [08:08:49]Read from MH i2c: E2 03 00 8C 4C 00 90 00 4C [08:08:49]RAPDU: 90 00 [08:08:49]wFMCommunicate OK [08:08:49]SAM_PROTO_ClearQueue done [08:08:49]KKMCreateOFDPacket [08:08:49]OFDProtocolAddRootSTLVToBuf [08:08:49]FM_MakeSignedData [08:08:49]FM_MakeSignedData [08:08:49]SAM_PROTO_SignData [08:08:49]wFMCommunicate request_size=4 [08:08:49]MH_SAM_APDU [08:08:49]CAPDU: 80 0D 01 02 [08:08:49]Write to MH i2c: E2 08 00 8D 4C 80 0D 01 02 00 00 00 00 52 [08:08:49]Write i2c OK [08:08:49]MH_I2C_Read... [08:08:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:49]Read from MH i2c: E2 [08:08:49]MH_I2C_Read... [08:08:49]Read from MH i2c: E2 03 00 [08:08:49]MH_I2C_Read... [08:08:49]Read from MH i2c: E2 03 00 8D 4C 00 90 00 4D [08:08:49]RAPDU: 90 00 [08:08:49]wFMCommunicate OK [08:08:49]wFMCommunicate request_size=255 [08:08:49]MH_SAM_APDU [08:08:49]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 33 37 37 06 04 30 00 D0 A2 D0 BE D1 80 D1 82 20 D0 B2 D0 B0 D1 84 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BE D1 80 D0 B5 D1 85 2E 20 32 35 30 20 D0 B3 D1 80 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 54 00 00 00 F4 03 04 00 95 8C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [08:08:49]Write to MH i2c: E2 02 01 8E 4C 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 33 37 37 06 04 30 00 D0 A2 D0 BE D1 80 D1 82 20 D0 B2 D0 B0 D1 84 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BE D1 80 D0 B5 D1 85 2E 20 32 35 30 20 D0 B3 D1 80 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 54 00 00 00 F4 03 04 00 95 8C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 47 [08:08:49]Write i2c OK [08:08:49]MH_I2C_Read... [08:08:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:49]Read from MH i2c: E2 [08:08:49]MH_I2C_Read... [08:08:49]Read from MH i2c: E2 03 00 [08:08:49]MH_I2C_Read... [08:08:49]Read from MH i2c: E2 03 00 8E 4C 00 90 00 4E [08:08:49]RAPDU: 90 00 [08:08:49]wFMCommunicate OK [08:08:49]wFMCommunicate request_size=49 [08:08:49]MH_SAM_APDU [08:08:49]CAPDU: 80 0D 02 02 2C 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7F 22 02 00 35 04 06 00 BA 82 36 D9 35 E5 [08:08:49]Write to MH i2c: E2 34 00 8F 4C 80 0D 02 02 2C 00 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7F 22 02 00 35 04 06 00 BA 82 36 D9 35 E5 00 00 8D [08:08:49]Write i2c OK [08:08:49]MH_I2C_Read... [08:08:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:50]Read from MH i2c: E2 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: E2 03 00 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: E2 03 00 8F 4C 00 90 00 4F [08:08:50]RAPDU: 90 00 [08:08:50]wFMCommunicate OK [08:08:50]wFMCommunicate request_size=4 [08:08:50]MH_SAM_APDU [08:08:50]CAPDU: 80 0D 03 02 [08:08:50]Write to MH i2c: E2 08 00 90 4C 80 0D 03 02 00 00 00 00 57 [08:08:50]Write i2c OK [08:08:50]MH_I2C_Read... [08:08:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:50]Read from MH i2c: E2 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: E2 0B 00 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: E2 0B 00 90 4C 00 EE 35 F2 FC F3 44 CA 84 90 00 EE [08:08:50]RAPDU: EE 35 F2 FC F3 44 CA 84 90 00 [08:08:50]wFMCommunicate OK [08:08:50]SAM_PROTO_SignData done [08:08:50]FM_MakeSignedData done [08:08:50]CreateOFDProtocolMessage [08:08:50]wFMCommunicate request_size=4 [08:08:50]MH_SAM_APDU [08:08:50]CAPDU: 80 11 00 00 [08:08:50]Write to MH i2c: E2 08 00 91 4C 80 11 00 00 00 00 00 00 57 [08:08:50]Write i2c OK [08:08:50]MH_I2C_Read... [08:08:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:50]Read from MH i2c: E2 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: E2 17 00 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: E2 17 00 91 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B2 [08:08:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:08:50]wFMCommunicate OK [08:08:50]CreateOFDProtocolMessage done [08:08:50]OFDSenderStorePacket 139903 [08:08:50]StoreOFDPacket docnum=139903 [08:08:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 36 01 00 00 73 DB 2E 01 D5 1E 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 33 37 37 06 04 30 00 D0 A2 D0 BE D1 80 D1 82 20 D0 B2 D0 B0 D1 84 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BE D1 80 D0 B5 D1 85 2E 20 32 35 30 20 D0 B3 D1 80 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 54 00 00 00 F4 03 04 00 95 8C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7F 22 02 00 35 04 06 00 BA 82 36 D9 35 E5 EE 35 F2 FC F3 44 CA 84 [08:08:50]CheckFolder [08:08:50]dirname=/storage/ofd_packets [08:08:50]CheckFolder done [08:08:50]ProducePacketName [08:08:50]name=ofd_packets/00139903 [08:08:50]NVStorageSaveData ofd_packets/00139903 [08:08:50]File name is /storage/ofd_packets/00139903 [08:08:50]Write 340 bytes [08:08:50]NVStorageSaveData done [08:08:50]OFDSenderStorePacket done [08:08:50]KKMCreateOFDPacket done [08:08:50]NVStorageSaveData kkm_last_timestamp [08:08:50]File name is /storage/kkm_last_timestamp [08:08:50]Write 4 bytes [08:08:50]NVStorageSaveData done [08:08:50]ExternCall_PrintAddStr [08:08:50]wPrintStart [08:08:50]Write to MH i2c: 01 00 00 92 4C DE [08:08:50]Write i2c OK [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: 01 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: 01 07 00 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: 01 07 00 92 4C 00 00 00 00 00 FF 0F F3 [08:08:50]RasterBufferAndPrint [08:08:50]line Счет N : (3)335724 [08:08:50]line ИНН: 02508201610067 [08:08:50]line Контрольно-Кассовый Чек [08:08:50]line ПРОДАЖА [08:08:50]line Товар: 4680021880377 [08:08:50]line Торт ваф. Яшкино орех. 250 гр [08:08:50]line 1.000 * 135.00 [08:08:50]line = 135.00 [08:08:50]line НДС 12% НСП 1% [08:08:50]line > о реализуемом товаре [08:08:50]line ИТОГО: 135.00 [08:08:50]line НСП 1% : 1.19 [08:08:50]line НДС 12% : 14.34 [08:08:50]line Наличными: 135.00 [08:08:50]line Безнал.: 0.00 [08:08:50]line Место: АЗС № 101 "Партнер Нефть" [08:08:50]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [08:08:50]line СНО: Общий режим [08:08:50]line Чек 84 01.11.2024 08:08 [08:08:50]line Смена: 558 ФФД: 1.0 [08:08:50]line ЗНМ: 0300000081 [08:08:50]line РНМ: 0000000000091631 [08:08:50]line Версия ККМ: 001 [08:08:50]line ФМ: 0000000000874669 [08:08:50]line ФД: 139903 [08:08:50]line ФПД: 205068428719589 [08:08:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T080853&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139903&fm=205068428719589&tin=02508201610067®Number=0000000000091631&sum=13500 [08:08:50]line 0 [08:08:50]OFD Sender: Processing packet 139903 [packets to send 34, broken 33] [08:08:50]ProducePacketName [08:08:50]name=ofd_packets/00139903 [08:08:50]OFD Sender: To server: pG, [08:08:50]CommunicateWithHost lk.salyk.kg:30040 [08:08:50]ConnectInit lk.salyk.kg [08:08:50]written 0, free lines is 4095 [08:08:50]Connected sock=10 [08:08:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 36 01 00 00 73 DB 2E 01 D5 1E 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 33 37 37 06 04 30 00 D0 A2 D0 BE D1 80 D1 82 20 D0 B2 D0 B0 D1 84 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BE D1 80 D0 B5 D1 85 2E 20 32 35 30 20 D0 B3 D1 80 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 54 00 00 00 F4 03 04 00 95 8C 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7F 22 02 00 35 04 06 00 BA 82 36 D9 35 E5 EE 35 F2 FC F3 44 CA 84 [08:08:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 CF FD 47 00 7D 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7F 22 02 00 F4 03 04 00 40 38 24 67 B6 04 01 00 00 4B CB 86 DB 75 62 3F E4 [08:08:50]CommunicateWithHost err = 0 [08:08:50]CheckOFDResponse [08:08:50]1017 (14) - 77093643461234 [08:08:50]1041 (16) - 0000000000874669 [08:08:50]1040 (4) - 139903 [08:08:50]1012 (4) - 01.11.2024 02:09 [08:08:50]1206 (1) - 0 [08:08:50]OFD Sender: Remove packet 139903 [08:08:50]ProducePacketName [08:08:50]name=ofd_packets/00139903 [08:08:50]NVStorageDeleteData [08:08:50]Write to MH i2c: 01 00 00 BB 4C 07 [08:08:50]Write i2c OK [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: 01 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: 01 07 00 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: 01 07 00 BB 4C 00 00 00 00 00 19 0D 34 [08:08:50]RasterBufferAndPrint [08:08:50]line [08:08:50]line [08:08:50]line [08:08:50]line [08:08:50]line [08:08:50]written 0, free lines is 3359 [08:08:50]MH_Cut [08:08:50]Write to MH i2c: D1 01 00 C2 4C 01 E0 [08:08:50]Write i2c OK [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: D1 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: D1 01 00 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: D1 01 00 C2 4C 00 DF [08:08:50]Write to MH i2c: 01 00 00 C3 4C 0F [08:08:50]Write i2c OK [08:08:50]MH_I2C_Read... [08:08:51]OFD Sender: No OFD packet to send [08:08:51]*** Cut start [08:08:51]*** Partial cut [08:08:51]*** CUTSNS_PIN = 1 [08:08:51]*** CUTSNS_PIN = 0 [08:08:51]*** Brake cut motor [08:08:52]Read from MH i2c: 01 [08:08:52]MH_I2C_Read... [08:08:52]*** Stop cut motor [08:08:52]*** Cut end [08:08:52]Read from MH i2c: 01 07 00 [08:08:52]MH_I2C_Read... [08:08:52]Read from MH i2c: 01 07 00 C3 4C 00 00 00 00 00 FF 0F 24 [08:08:52]process_action close_receipt done [08:08:52]requested_data is exist [08:08:52]produce_requested_data [08:08:52]requested_item fm.sn is exist - process it [08:08:52]wFMCommunicate request_size=4 [08:08:52]MH_SAM_APDU [08:08:52]CAPDU: 80 11 00 00 [08:08:52]Write to MH i2c: E2 08 00 C4 4C 80 11 00 00 00 00 00 00 8A [08:08:52]Write i2c OK [08:08:52]MH_I2C_Read... [08:08:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:52]Read from MH i2c: E2 [08:08:52]MH_I2C_Read... [08:08:52]Read from MH i2c: E2 17 00 [08:08:52]MH_I2C_Read... [08:08:52]Read from MH i2c: E2 17 00 C4 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E5 [08:08:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:08:52]wFMCommunicate OK [08:08:52]requested_item fd.num is exist - process it [08:08:52]SAM_PROTO_GetFieldsCounters [08:08:52]wFMCommunicate request_size=4 [08:08:52]MH_SAM_APDU [08:08:52]CAPDU: 80 13 00 00 [08:08:52]Write to MH i2c: E2 08 00 C5 4C 80 13 00 00 00 00 00 00 8D [08:08:52]Write i2c OK [08:08:52]MH_I2C_Read... [08:08:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:52]Read from MH i2c: E2 [08:08:52]MH_I2C_Read... [08:08:52]Read from MH i2c: E2 62 00 [08:08:52]MH_I2C_Read... [08:08:52]Read from MH i2c: E2 62 00 C5 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 7F 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [08:08:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 7F 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:08:52]wFMCommunicate OK [08:08:52]SAM_PROTO_GetFieldsCounters done [08:08:52]requested_item shift.num is exist - process it [08:08:52]requested_item shift.opened is exist - process it [08:08:52]req_shift_opened [08:08:52]FM_GetShiftState [08:08:52]SAM_PROTO_GetShiftState [08:08:52]wFMCommunicate request_size=4 [08:08:52]MH_SAM_APDU [08:08:52]CAPDU: 80 13 01 00 [08:08:52]Write to MH i2c: E2 08 00 C6 4C 80 13 01 00 00 00 00 00 8F [08:08:52]Write i2c OK [08:08:52]MH_I2C_Read... [08:08:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:52]Read from MH i2c: E2 [08:08:52]MH_I2C_Read... [08:08:52]Read from MH i2c: E2 0E 00 [08:08:52]MH_I2C_Read... [08:08:52]Read from MH i2c: E2 0E 00 C6 4C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 C8 [08:08:52]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [08:08:52]wFMCommunicate OK [08:08:52]SAM_PROTO_GetShiftState done [08:08:52]FM_GetShiftState done [08:08:52]req_shift_opened done [08:08:52]requested_item shift.open_date is exist - process it [08:08:52]req_shift_open_date [08:08:52]req_shift_open_date done [08:08:52]produce_requested_data done [08:08:52]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139903,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [08:08:52]process_action_free close_receipt [08:08:52]json_value_free [08:08:52]json_value_free done [08:08:52]process_json_proto returns [08:08:52]Send response to host [08:08:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139903,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [08:08:52]free response buf [08:08:52]execute_script done [08:08:52]execute_script returns [08:08:52]free content buf [08:08:52]Sock 7.Close socket [08:08:52]Sock 7.Thread stoped [08:08:56]OFD Sender: No OFD packet to send [08:09:01]OFD Sender: No OFD packet to send [08:09:06]OFD Sender: No OFD packet to send [08:09:11]OFD Sender: No OFD packet to send [08:09:16]OFD Sender: No OFD packet to send [08:09:21]OFD Sender: No OFD packet to send [08:09:26]OFD Sender: No OFD packet to send [08:09:31]OFD Sender: No OFD packet to send [08:09:36]OFD Sender: No OFD packet to send [08:09:41]OFD Sender: No OFD packet to send [08:09:46]OFD Sender: No OFD packet to send [08:09:51]OFD Sender: No OFD packet to send [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:16]OFD Sender: No OFD packet to send [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:31]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:41]OFD Sender: No OFD packet to send [08:10:46]OFD Sender: No OFD packet to send [08:10:51]OFD Sender: No OFD packet to send [08:10:56]OFD Sender: No OFD packet to send [08:11:01]OFD Sender: No OFD packet to send [08:11:06]OFD Sender: No OFD packet to send [08:11:11]OFD Sender: No OFD packet to send [08:11:16]OFD Sender: No OFD packet to send [08:11:16]accept exits with 9 [08:11:16]New connection [08:11:16]New thread 3066654052 created [08:11:16]Thread 3066510692 joined [08:11:16]Waiting for new connection... [08:11:16] Sock 9.Parse request [08:11:16]Sock 9.Check first char [08:11:16]Sock 9.First char is OK [08:11:16]request: POST /json_proto HTTP/1.0 [08:11:16]Method: POST [08:11:16]URL: /json_proto [08:11:16]Method is POST - this is cgi request [08:11:16]url: /json_proto [08:11:16]query_string will be loaded in cgi processing [08:11:16]execute_cgi json_proto POST (null) [08:11:16]execute_cgi path=json_proto method=POST [08:11:16]POST find Content-Length [08:11:16]Host: 172.17.50.196:8080 [08:11:16]Content-Length: 688 [08:11:16]Content-Type: application/json [08:11:16] [08:11:16]POST finish read [08:11:16]Found Content-Length = 688 [08:11:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:16]execute_script... [08:11:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:16]POST & json_proto [08:11:16]process_json_proto [08:11:16]json parsed OK: [08:11:16]protocol is kg_v1.0 [08:11:16]action value=close_receipt [08:11:16]process_action close_receipt [08:11:16]cmd_close_receipt [08:11:16]MH_GetDate [08:11:16]Write to MH i2c: F0 00 00 C7 4C 02 [08:11:16]Write i2c OK [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: F0 [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: F0 09 00 [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: F0 09 00 C7 4C 00 29 8D 24 67 72 0D 1C 67 4E [08:11:16]GetLastDocTimeStamp 1730448533 [08:11:16]current date 1730448681 [08:11:16]FM_GetShiftState [08:11:16]SAM_PROTO_GetShiftState [08:11:16]wFMCommunicate request_size=4 [08:11:16]MH_SAM_APDU [08:11:16]CAPDU: 80 13 01 00 [08:11:16]Write to MH i2c: E2 08 00 C8 4C 80 13 01 00 00 00 00 00 91 [08:11:16]Write i2c OK [08:11:16]MH_I2C_Read... [08:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:16]Read from MH i2c: E2 [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: E2 0E 00 [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: E2 0E 00 C8 4C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 CA [08:11:16]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [08:11:16]wFMCommunicate OK [08:11:16]SAM_PROTO_GetShiftState done [08:11:16]FM_GetShiftState done [08:11:16]opened in 1730419081 [08:11:16]opened+sec_in_day 1730505481 [08:11:16]quantity*price = 400050 [08:11:16]sum+1 = 400051 [08:11:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 85 01.11.2024 08:11 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139904 ФПД: 45600830149724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T081121&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139904&fm=45600830149724&tin=02508201610067®Number=0000000000091631&sum=400000 [08:11:17]StoreToDocumentArchive [08:11:17]shift 558 fd 139904 [08:11:17]save to /storage/0558/doc_00139904 [08:11:17]save last doc name /storage/0558/doc_00139904 to /storage/kkm_last_doc_name [08:11:17]save OK [08:11:17]Clear old archive folders... [08:11:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:11:17]tlvbuf is 00B28600 [08:11:17]SAM_PROTO_ClearQueue [08:11:17]wFMCommunicate request_size=4 [08:11:17]MH_SAM_APDU [08:11:17]CAPDU: 80 09 00 00 [08:11:17]Write to MH i2c: E2 08 00 D5 4C 80 09 00 00 00 00 00 00 93 [08:11:17]Write i2c OK [08:11:17]MH_I2C_Read... [08:11:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:17]Read from MH i2c: E2 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: E2 03 00 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: E2 03 00 D5 4C 00 90 00 95 [08:11:17]RAPDU: 90 00 [08:11:17]wFMCommunicate OK [08:11:17]SAM_PROTO_ClearQueue done [08:11:17]KKMCreateOFDPacket [08:11:17]OFDProtocolAddRootSTLVToBuf [08:11:17]FM_MakeSignedData [08:11:17]FM_MakeSignedData [08:11:17]SAM_PROTO_SignData [08:11:17]wFMCommunicate request_size=4 [08:11:17]MH_SAM_APDU [08:11:17]CAPDU: 80 0D 01 02 [08:11:17]Write to MH i2c: E2 08 00 D6 4C 80 0D 01 02 00 00 00 00 9B [08:11:17]Write i2c OK [08:11:17]MH_I2C_Read... [08:11:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:17]Read from MH i2c: E2 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: E2 03 00 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: E2 03 00 D6 4C 00 90 00 96 [08:11:17]RAPDU: 90 00 [08:11:17]wFMCommunicate OK [08:11:17]wFMCommunicate request_size=255 [08:11:17]MH_SAM_APDU [08:11:17]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 29 8D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 80 22 02 00 35 04 06 00 [08:11:17]Write to MH i2c: E2 02 01 D7 4C 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 29 8D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 80 22 02 00 35 04 06 00 00 00 97 [08:11:17]Write i2c OK [08:11:17]MH_I2C_Read... [08:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:18]Read from MH i2c: E2 [08:11:18]MH_I2C_Read... [08:11:18]Read from MH i2c: E2 03 00 [08:11:18]MH_I2C_Read... [08:11:18]Read from MH i2c: E2 03 00 D7 4C 00 90 00 97 [08:11:18]RAPDU: 90 00 [08:11:18]wFMCommunicate OK [08:11:18]wFMCommunicate request_size=11 [08:11:18]MH_SAM_APDU [08:11:18]CAPDU: 80 0D 02 02 06 29 79 45 48 54 5C [08:11:18]Write to MH i2c: E2 0E 00 D8 4C 80 0D 02 02 06 00 29 79 45 48 54 5C 00 00 89 [08:11:18]Write i2c OK [08:11:18]MH_I2C_Read... [08:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:18]Read from MH i2c: E2 [08:11:18]MH_I2C_Read... [08:11:18]Read from MH i2c: E2 03 00 [08:11:18]MH_I2C_Read... [08:11:18]Read from MH i2c: E2 03 00 D8 4C 00 90 00 98 [08:11:18]RAPDU: 90 00 [08:11:18]wFMCommunicate OK [08:11:18]wFMCommunicate request_size=4 [08:11:18]MH_SAM_APDU [08:11:18]CAPDU: 80 0D 03 02 [08:11:18]Write to MH i2c: E2 08 00 D9 4C 80 0D 03 02 00 00 00 00 A0 [08:11:18]Write i2c OK [08:11:18]MH_I2C_Read... [08:11:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:18]Read from MH i2c: E2 [08:11:18]MH_I2C_Read... [08:11:18]Read from MH i2c: E2 0B 00 [08:11:18]MH_I2C_Read... [08:11:18]Read from MH i2c: E2 0B 00 D9 4C 00 F8 6D BB 54 C9 29 66 24 90 00 91 [08:11:18]RAPDU: F8 6D BB 54 C9 29 66 24 90 00 [08:11:18]wFMCommunicate OK [08:11:18]SAM_PROTO_SignData done [08:11:18]FM_MakeSignedData done [08:11:18]CreateOFDProtocolMessage [08:11:18]wFMCommunicate request_size=4 [08:11:18]MH_SAM_APDU [08:11:18]CAPDU: 80 11 00 00 [08:11:18]Write to MH i2c: E2 08 00 DA 4C 80 11 00 00 00 00 00 00 A0 [08:11:18]Write i2c OK [08:11:18]MH_I2C_Read... [08:11:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:18]Read from MH i2c: E2 [08:11:18]MH_I2C_Read... [08:11:18]Read from MH i2c: E2 17 00 [08:11:18]MH_I2C_Read... [08:11:18]Read from MH i2c: E2 17 00 DA 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FB [08:11:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:11:18]wFMCommunicate OK [08:11:18]CreateOFDProtocolMessage done [08:11:18]OFDSenderStorePacket 139904 [08:11:18]StoreOFDPacket docnum=139904 [08:11:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 98 8F 08 01 CD B6 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 29 8D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 80 22 02 00 35 04 06 00 29 79 45 48 54 5C F8 6D BB 54 C9 29 66 24 [08:11:18]CheckFolder [08:11:18]dirname=/storage/ofd_packets [08:11:18]CheckFolder done [08:11:18]ProducePacketName [08:11:18]name=ofd_packets/00139904 [08:11:18]NVStorageSaveData ofd_packets/00139904 [08:11:18]File name is /storage/ofd_packets/00139904 [08:11:18]Write 302 bytes [08:11:18]NVStorageSaveData done [08:11:18]OFDSenderStorePacket done [08:11:18]KKMCreateOFDPacket done [08:11:18]NVStorageSaveData kkm_last_timestamp [08:11:18]File name is /storage/kkm_last_timestamp [08:11:18]Write 4 bytes [08:11:18]NVStorageSaveData done [08:11:18]ExternCall_PrintAddStr [08:11:18]wPrintStart [08:11:18]Write to MH i2c: 01 00 00 DB 4C 27 [08:11:18]Write i2c OK [08:11:18]MH_I2C_Read... [08:11:18]Read from MH i2c: 01 [08:11:18]MH_I2C_Read... [08:11:18]Read from MH i2c: 01 07 00 [08:11:18]MH_I2C_Read... [08:11:18]Read from MH i2c: 01 07 00 DB 4C 00 00 00 00 00 FF 0F 3C [08:11:18]RasterBufferAndPrint [08:11:18]line Счет N : (1)1095750 [08:11:18]line ИНН: 02508201610067 [08:11:18]line Контрольно-Кассовый Чек [08:11:18]line ПРОДАЖА [08:11:18]line ТРК (МРК, ГНК) : 11 [08:11:18]line Товар: 2710194210 [08:11:18]line ДТ(л)-К-2 [08:11:18]line 52.500 * 76.20 [08:11:18]line = 4000.50 [08:11:18]line НДС 12% НСП 1% [08:11:18]line > о реализуемом товаре [08:11:18]line ОКРУГЛЕНИЕ: -0.50 [08:11:18]line ИТОГО: 4000.00 [08:11:18]line Внесено: 4000.00 [08:11:18]line СДАЧА: 0.00 [08:11:18]line НСП 1% : 35.40 [08:11:18]line НДС 12% : 424.83 [08:11:18]line Наличными: 4000.00 [08:11:18]line Безнал.: 0.00 [08:11:18]line Место: АЗС № 101 "Партнер Нефть" [08:11:18]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [08:11:18]line СНО: Общий режим [08:11:18]line Чек 85 01.11.2024 08:11 [08:11:18]line Смена: 558 ФФД: 1.0 [08:11:18]line ЗНМ: 0300000081 [08:11:18]line РНМ: 0000000000091631 [08:11:18]line Версия ККМ: 001 [08:11:18]line ФМ: 0000000000874669 [08:11:18]line ФД: 139904 [08:11:18]line ФПД: 45600830149724 [08:11:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T081121&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139904&fm=45600830149724&tin=02508201610067®Number=0000000000091631&sum=400000 [08:11:18]OFD Sender: Processing packet 139904 [packets to send 34, broken 33] [08:11:18]ProducePacketName [08:11:18]name=ofd_packets/00139904 [08:11:18]OFD Sender: To server: pG, [08:11:18]CommunicateWithHost lk.salyk.kg:30040 [08:11:18]ConnectInit lk.salyk.kg [08:11:18]written 0, free lines is 4095 [08:11:18]Connected sock=10 [08:11:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 98 8F 08 01 CD B6 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 29 8D 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 80 22 02 00 35 04 06 00 29 79 45 48 54 5C F8 6D BB 54 C9 29 66 24 [08:11:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 D0 B1 47 00 51 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 80 22 02 00 F4 03 04 00 D4 38 24 67 B6 04 01 00 00 E9 37 52 6C 0A F7 4C 4B [08:11:18]CommunicateWithHost err = 0 [08:11:18]CheckOFDResponse [08:11:18]1017 (14) - 77093643461234 [08:11:18]1041 (16) - 0000000000874669 [08:11:18]1040 (4) - 139904 [08:11:18]1012 (4) - 01.11.2024 02:11 [08:11:18]1206 (1) - 0 [08:11:18]OFD Sender: Remove packet 139904 [08:11:18]ProducePacketName [08:11:18]name=ofd_packets/00139904 [08:11:18]NVStorageDeleteData [08:11:18]Write to MH i2c: 01 00 00 06 4D 53 [08:11:18]Write i2c OK [08:11:18]MH_I2C_Read... [08:11:18]Read from MH i2c: 01 [08:11:18]MH_I2C_Read... [08:11:18]Read from MH i2c: 01 07 00 [08:11:18]MH_I2C_Read... [08:11:18]Read from MH i2c: 01 07 00 06 4D 00 00 00 00 00 E1 0C 47 [08:11:18]RasterBufferAndPrint [08:11:18]line [08:11:18]line [08:11:18]line [08:11:18]line [08:11:18]line [08:11:18]written 0, free lines is 3302 [08:11:18]MH_Cut [08:11:18]Write to MH i2c: D1 01 00 0D 4D 01 2C [08:11:18]Write i2c OK [08:11:18]MH_I2C_Read... [08:11:18]Read from MH i2c: D1 [08:11:18]MH_I2C_Read... [08:11:18]Read from MH i2c: D1 01 00 [08:11:18]MH_I2C_Read... [08:11:18]Read from MH i2c: D1 01 00 0D 4D 00 2B [08:11:18]Write to MH i2c: 01 00 00 0E 4D 5B [08:11:18]Write i2c OK [08:11:18]MH_I2C_Read... [08:11:19]OFD Sender: No OFD packet to send [08:11:19]*** Cut start [08:11:19]*** Partial cut [08:11:19]*** CUTSNS_PIN = 1 [08:11:19]*** CUTSNS_PIN = 0 [08:11:19]*** Brake cut motor [08:11:20]Read from MH i2c: 01 [08:11:20]MH_I2C_Read... [08:11:20]*** Stop cut motor [08:11:20]*** Cut end [08:11:20]Read from MH i2c: 01 07 00 [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: 01 07 00 0E 4D 00 00 00 00 00 FF 0F 70 [08:11:20]process_action close_receipt done [08:11:20]requested_data is exist [08:11:20]produce_requested_data [08:11:20]requested_item fm.sn is exist - process it [08:11:20]wFMCommunicate request_size=4 [08:11:20]MH_SAM_APDU [08:11:20]CAPDU: 80 11 00 00 [08:11:20]Write to MH i2c: E2 08 00 0F 4D 80 11 00 00 00 00 00 00 D6 [08:11:20]Write i2c OK [08:11:20]MH_I2C_Read... [08:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:20]Read from MH i2c: E2 [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: E2 17 00 [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: E2 17 00 0F 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 31 [08:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:11:20]wFMCommunicate OK [08:11:20]requested_item fd.num is exist - process it [08:11:20]SAM_PROTO_GetFieldsCounters [08:11:20]wFMCommunicate request_size=4 [08:11:20]MH_SAM_APDU [08:11:20]CAPDU: 80 13 00 00 [08:11:20]Write to MH i2c: E2 08 00 10 4D 80 13 00 00 00 00 00 00 D9 [08:11:20]Write i2c OK [08:11:20]MH_I2C_Read... [08:11:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:20]Read from MH i2c: E2 [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: E2 62 00 [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: E2 62 00 10 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 80 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [08:11:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 80 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:11:20]wFMCommunicate OK [08:11:20]SAM_PROTO_GetFieldsCounters done [08:11:20]requested_item shift.num is exist - process it [08:11:20]requested_item shift.opened is exist - process it [08:11:20]req_shift_opened [08:11:20]FM_GetShiftState [08:11:20]SAM_PROTO_GetShiftState [08:11:20]wFMCommunicate request_size=4 [08:11:20]MH_SAM_APDU [08:11:20]CAPDU: 80 13 01 00 [08:11:20]Write to MH i2c: E2 08 00 11 4D 80 13 01 00 00 00 00 00 DB [08:11:20]Write i2c OK [08:11:20]MH_I2C_Read... [08:11:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:20]Read from MH i2c: E2 [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: E2 0E 00 [08:11:20]MH_I2C_Read... [08:11:20]Read from MH i2c: E2 0E 00 11 4D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 14 [08:11:20]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [08:11:20]wFMCommunicate OK [08:11:20]SAM_PROTO_GetShiftState done [08:11:20]FM_GetShiftState done [08:11:20]req_shift_opened done [08:11:20]requested_item shift.open_date is exist - process it [08:11:20]req_shift_open_date [08:11:20]req_shift_open_date done [08:11:20]produce_requested_data done [08:11:20]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139904,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [08:11:20]process_action_free close_receipt [08:11:20]json_value_free [08:11:20]json_value_free done [08:11:20]process_json_proto returns [08:11:20]Send response to host [08:11:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139904,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [08:11:20]free response buf [08:11:20]execute_script done [08:11:20]execute_script returns [08:11:20]free content buf [08:11:20]Sock 9.Close socket [08:11:20]Sock 9.Thread stoped [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:59]OFD Sender: No OFD packet to send [08:12:04]OFD Sender: No OFD packet to send [08:12:09]OFD Sender: No OFD packet to send [08:12:14]OFD Sender: No OFD packet to send [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:34]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13:19]OFD Sender: No OFD packet to send [08:13:24]OFD Sender: No OFD packet to send [08:13:29]OFD Sender: No OFD packet to send [08:13:34]OFD Sender: No OFD packet to send [08:13:39]OFD Sender: No OFD packet to send [08:13:44]OFD Sender: No OFD packet to send [08:13:49]OFD Sender: No OFD packet to send [08:13:54]OFD Sender: No OFD packet to send [08:13:59]OFD Sender: No OFD packet to send [08:14:04]OFD Sender: No OFD packet to send [08:14:09]OFD Sender: No OFD packet to send [08:14:14]OFD Sender: No OFD packet to send [08:14:19]OFD Sender: No OFD packet to send [08:14:24]OFD Sender: No OFD packet to send [08:14:29]OFD Sender: No OFD packet to send [08:14:34]OFD Sender: No OFD packet to send [08:14:39]OFD Sender: No OFD packet to send [08:14:44]OFD Sender: No OFD packet to send [08:14:49]OFD Sender: No OFD packet to send [08:14:54]OFD Sender: No OFD packet to send [08:14:59]OFD Sender: No OFD packet to send [08:15:04]OFD Sender: No OFD packet to send [08:15:09]OFD Sender: No OFD packet to send [08:15:14]OFD Sender: No OFD packet to send [08:15:19]OFD Sender: No OFD packet to send [08:15:24]OFD Sender: No OFD packet to send [08:15:29]OFD Sender: No OFD packet to send [08:15:34]OFD Sender: No OFD packet to send [08:15:39]OFD Sender: No OFD packet to send [08:15:44]OFD Sender: No OFD packet to send [08:15:49]OFD Sender: No OFD packet to send [08:15:54]OFD Sender: No OFD packet to send [08:15:59]OFD Sender: No OFD packet to send [08:16:04]OFD Sender: No OFD packet to send [08:16:09]OFD Sender: No OFD packet to send [08:16:14]OFD Sender: No OFD packet to send [08:16:19]OFD Sender: No OFD packet to send [08:16:24]OFD Sender: No OFD packet to send [08:16:28]accept exits with 7 [08:16:28]New connection [08:16:28]New thread 3066510692 created [08:16:28]Thread 3066654052 joined [08:16:28]Waiting for new connection... [08:16:28] Sock 7.Parse request [08:16:28]Sock 7.Check first char [08:16:28]Sock 7.First char is OK [08:16:28]request: POST /json_proto HTTP/1.0 [08:16:28]Method: POST [08:16:28]URL: /json_proto [08:16:28]Method is POST - this is cgi request [08:16:28]url: /json_proto [08:16:28]query_string will be loaded in cgi processing [08:16:28]execute_cgi json_proto POST (null) [08:16:28]execute_cgi path=json_proto method=POST [08:16:28]POST find Content-Length [08:16:28]Host: 172.17.50.196:8080 [08:16:28]Content-Length: 695 [08:16:28]Content-Type: application/json [08:16:28] [08:16:28]POST finish read [08:16:28]Found Content-Length = 695 [08:16:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335725", "tax_sys" : 0, "items" : [ { "code": "4700000160884", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 3.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" ] } } [08:16:28]execute_script... [08:16:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335725", "tax_sys" : 0, "items" : [ { "code": "4700000160884", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 3.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" ] } } [08:16:28]POST & json_proto [08:16:28]process_json_proto [08:16:28]json parsed OK: [08:16:28]protocol is kg_v1.0 [08:16:28]action value=close_receipt [08:16:28]process_action close_receipt [08:16:28]cmd_close_receipt [08:16:28]MH_GetDate [08:16:28]Write to MH i2c: F0 00 00 12 4D 4E [08:16:28]Write i2c OK [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: F0 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: F0 09 00 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: F0 09 00 12 4D 00 61 8E 24 67 72 0D 1C 67 D3 [08:16:28]GetLastDocTimeStamp 1730448681 [08:16:28]current date 1730448993 [08:16:28]FM_GetShiftState [08:16:28]SAM_PROTO_GetShiftState [08:16:28]wFMCommunicate request_size=4 [08:16:28]MH_SAM_APDU [08:16:28]CAPDU: 80 13 01 00 [08:16:28]Write to MH i2c: E2 08 00 13 4D 80 13 01 00 00 00 00 00 DD [08:16:28]Write i2c OK [08:16:28]MH_I2C_Read... [08:16:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:28]Read from MH i2c: E2 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: E2 0E 00 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: E2 0E 00 13 4D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 16 [08:16:28]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [08:16:28]wFMCommunicate OK [08:16:28]SAM_PROTO_GetShiftState done [08:16:28]FM_GetShiftState done [08:16:28]opened in 1730419081 [08:16:28]opened+sec_in_day 1730505481 [08:16:28]quantity*price = 4500 [08:16:28]sum+1 = 4501 [08:16:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 86 01.11.2024 08:16 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139905 ФПД: 176582116522008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T081633&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139905&fm=176582116522008&tin=02508201610067®Number=0000000000091631&sum=4500 0 [08:16:29]StoreToDocumentArchive [08:16:29]shift 558 fd 139905 [08:16:29]save to /storage/0558/doc_00139905 [08:16:29]save last doc name /storage/0558/doc_00139905 to /storage/kkm_last_doc_name [08:16:29]save OK [08:16:29]Clear old archive folders... [08:16:29]ProcessDocumentItem done err = 0, tmpTLVsize=290 [08:16:29]tlvbuf is B6F0C610 [08:16:29]SAM_PROTO_ClearQueue [08:16:29]wFMCommunicate request_size=4 [08:16:29]MH_SAM_APDU [08:16:29]CAPDU: 80 09 00 00 [08:16:29]Write to MH i2c: E2 08 00 20 4D 80 09 00 00 00 00 00 00 DF [08:16:29]Write i2c OK [08:16:29]MH_I2C_Read... [08:16:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:29]Read from MH i2c: E2 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: E2 03 00 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: E2 03 00 20 4D 00 90 00 E1 [08:16:29]RAPDU: 90 00 [08:16:29]wFMCommunicate OK [08:16:29]SAM_PROTO_ClearQueue done [08:16:29]KKMCreateOFDPacket [08:16:29]OFDProtocolAddRootSTLVToBuf [08:16:29]FM_MakeSignedData [08:16:29]FM_MakeSignedData [08:16:29]SAM_PROTO_SignData [08:16:29]wFMCommunicate request_size=4 [08:16:29]MH_SAM_APDU [08:16:29]CAPDU: 80 0D 01 02 [08:16:29]Write to MH i2c: E2 08 00 21 4D 80 0D 01 02 00 00 00 00 E7 [08:16:29]Write i2c OK [08:16:29]MH_I2C_Read... [08:16:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:29]Read from MH i2c: E2 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: E2 03 00 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: E2 03 00 21 4D 00 90 00 E2 [08:16:29]RAPDU: 90 00 [08:16:29]wFMCommunicate OK [08:16:29]wFMCommunicate request_size=255 [08:16:29]MH_SAM_APDU [08:16:29]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 DC 05 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 56 00 00 00 F4 03 04 00 61 8E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [08:16:29]Write to MH i2c: E2 02 01 22 4D 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 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 DC 05 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 56 00 00 00 F4 03 04 00 61 8E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 34 [08:16:29]Write i2c OK [08:16:29]MH_I2C_Read... [08:16:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:30]Read from MH i2c: E2 [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: E2 03 00 [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: E2 03 00 22 4D 00 90 00 E3 [08:16:30]RAPDU: 90 00 [08:16:30]wFMCommunicate OK [08:16:30]wFMCommunicate request_size=49 [08:16:30]MH_SAM_APDU [08:16:30]CAPDU: 80 0D 02 02 2C 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 81 22 02 00 35 04 06 00 A0 99 BA 54 38 18 [08:16:30]Write to MH i2c: E2 34 00 23 4D 80 0D 02 02 2C 00 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 81 22 02 00 35 04 06 00 A0 99 BA 54 38 18 00 00 56 [08:16:30]Write i2c OK [08:16:30]MH_I2C_Read... [08:16:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:30]Read from MH i2c: E2 [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: E2 03 00 [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: E2 03 00 23 4D 00 90 00 E4 [08:16:30]RAPDU: 90 00 [08:16:30]wFMCommunicate OK [08:16:30]wFMCommunicate request_size=4 [08:16:30]MH_SAM_APDU [08:16:30]CAPDU: 80 0D 03 02 [08:16:30]Write to MH i2c: E2 08 00 24 4D 80 0D 03 02 00 00 00 00 EC [08:16:30]Write i2c OK [08:16:30]MH_I2C_Read... [08:16:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:30]Read from MH i2c: E2 [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: E2 0B 00 [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: E2 0B 00 24 4D 00 99 FE 1A E3 44 48 0E D0 90 00 EB [08:16:30]RAPDU: 99 FE 1A E3 44 48 0E D0 90 00 [08:16:30]wFMCommunicate OK [08:16:30]SAM_PROTO_SignData done [08:16:30]FM_MakeSignedData done [08:16:30]CreateOFDProtocolMessage [08:16:30]wFMCommunicate request_size=4 [08:16:30]MH_SAM_APDU [08:16:30]CAPDU: 80 11 00 00 [08:16:30]Write to MH i2c: E2 08 00 25 4D 80 11 00 00 00 00 00 00 EC [08:16:30]Write i2c OK [08:16:30]MH_I2C_Read... [08:16:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:30]Read from MH i2c: E2 [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: E2 17 00 [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: E2 17 00 25 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 47 [08:16:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:16:30]wFMCommunicate OK [08:16:30]CreateOFDProtocolMessage done [08:16:30]OFDSenderStorePacket 139905 [08:16:30]StoreOFDPacket docnum=139905 [08:16:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 36 01 00 00 C1 6A 2E 01 92 52 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 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 DC 05 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 56 00 00 00 F4 03 04 00 61 8E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 81 22 02 00 35 04 06 00 A0 99 BA 54 38 18 99 FE 1A E3 44 48 0E D0 [08:16:30]CheckFolder [08:16:30]dirname=/storage/ofd_packets [08:16:30]CheckFolder done [08:16:30]ProducePacketName [08:16:30]name=ofd_packets/00139905 [08:16:30]NVStorageSaveData ofd_packets/00139905 [08:16:30]File name is /storage/ofd_packets/00139905 [08:16:30]Write 340 bytes [08:16:30]NVStorageSaveData done [08:16:30]OFDSenderStorePacket done [08:16:30]KKMCreateOFDPacket done [08:16:30]NVStorageSaveData kkm_last_timestamp [08:16:30]File name is /storage/kkm_last_timestamp [08:16:30]Write 4 bytes [08:16:30]NVStorageSaveData done [08:16:30]ExternCall_PrintAddStr [08:16:30]wPrintStart [08:16:30]Write to MH i2c: 01 00 00 26 4D 73 [08:16:30]Write i2c OK [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: 01 [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: 01 07 00 [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: 01 07 00 26 4D 00 00 00 00 00 FF 0F 88 [08:16:30]RasterBufferAndPrint [08:16:30]line Счет N : (3)335725 [08:16:30]line ИНН: 02508201610067 [08:16:30]line Контрольно-Кассовый Чек [08:16:30]line ПРОДАЖА [08:16:30]line Товар: 4700000160884 [08:16:30]line Снек Курут индивидуальный [08:16:30]line 3.000 * 15.00 [08:16:30]line = 45.00 [08:16:30]line НДС 12% НСП 1% [08:16:30]line > о реализуемом товаре [08:16:30]line ИТОГО: 45.00 [08:16:30]line НСП 1% : 0.40 [08:16:30]line НДС 12% : 4.78 [08:16:30]line Наличными: 45.00 [08:16:30]line Безнал.: 0.00 [08:16:30]line Место: АЗС № 101 "Партнер Нефть" [08:16:30]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [08:16:30]line СНО: Общий режим [08:16:30]line Чек 86 01.11.2024 08:16 [08:16:30]line Смена: 558 ФФД: 1.0 [08:16:30]line ЗНМ: 0300000081 [08:16:30]line РНМ: 0000000000091631 [08:16:30]line Версия ККМ: 001 [08:16:30]line ФМ: 0000000000874669 [08:16:30]line ФД: 139905 [08:16:30]line ФПД: 176582116522008 [08:16:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T081633&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139905&fm=176582116522008&tin=02508201610067®Number=0000000000091631&sum=4500 [08:16:30]OFD Sender: Processing packet 139905 [packets to send 34, broken 33] [08:16:30]ProducePacketName [08:16:30]name=ofd_packets/00139905 [08:16:30]OFD Sender: To server: pG, [08:16:30]CommunicateWithHost lk.salyk.kg:30040 [08:16:30]ConnectInit lk.salyk.kg [08:16:30]line 0 [08:16:30]written 0, free lines is 4095 [08:16:30]Connected sock=10 [08:16:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 36 01 00 00 C1 6A 2E 01 92 52 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 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 DC 05 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 56 00 00 00 F4 03 04 00 61 8E 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 81 22 02 00 35 04 06 00 A0 99 BA 54 38 18 99 FE 1A E3 44 48 0E D0 [08:16:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 11 5E 47 00 18 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 81 22 02 00 F4 03 04 00 0C 3A 24 67 B6 04 01 00 00 5A 59 87 B5 BB F5 65 48 [08:16:30]CommunicateWithHost err = 0 [08:16:30]CheckOFDResponse [08:16:30]1017 (14) - 77093643461234 [08:16:30]1041 (16) - 0000000000874669 [08:16:30]1040 (4) - 139905 [08:16:30]1012 (4) - 01.11.2024 02:16 [08:16:30]1206 (1) - 0 [08:16:30]OFD Sender: Remove packet 139905 [08:16:30]ProducePacketName [08:16:30]name=ofd_packets/00139905 [08:16:30]NVStorageDeleteData [08:16:30]Write to MH i2c: 01 00 00 4E 4D 9B [08:16:30]Write i2c OK [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: 01 [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: 01 07 00 [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: 01 07 00 4E 4D 00 00 00 00 00 16 0D C5 [08:16:30]RasterBufferAndPrint [08:16:30]line [08:16:30]line [08:16:30]line [08:16:30]line [08:16:30]line [08:16:30]written 0, free lines is 3359 [08:16:31]MH_Cut [08:16:31]Write to MH i2c: D1 01 00 55 4D 01 74 [08:16:31]Write i2c OK [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: D1 [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: D1 01 00 [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: D1 01 00 55 4D 00 73 [08:16:31]Write to MH i2c: 01 00 00 56 4D A3 [08:16:31]Write i2c OK [08:16:31]MH_I2C_Read... [08:16:31]OFD Sender: No OFD packet to send [08:16:31]*** Cut start [08:16:31]*** Partial cut [08:16:31]*** CUTSNS_PIN = 1 [08:16:31]*** CUTSNS_PIN = 0 [08:16:31]*** Brake cut motor [08:16:32]Read from MH i2c: 01 [08:16:32]MH_I2C_Read... [08:16:32]*** Stop cut motor [08:16:32]*** Cut end [08:16:32]Read from MH i2c: 01 07 00 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: 01 07 00 56 4D 00 00 00 00 00 FF 0F B8 [08:16:32]process_action close_receipt done [08:16:32]requested_data is exist [08:16:32]produce_requested_data [08:16:32]requested_item fm.sn is exist - process it [08:16:32]wFMCommunicate request_size=4 [08:16:32]MH_SAM_APDU [08:16:32]CAPDU: 80 11 00 00 [08:16:32]Write to MH i2c: E2 08 00 57 4D 80 11 00 00 00 00 00 00 1E [08:16:32]Write i2c OK [08:16:32]MH_I2C_Read... [08:16:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:32]Read from MH i2c: E2 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: E2 17 00 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: E2 17 00 57 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 79 [08:16:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:16:32]wFMCommunicate OK [08:16:32]requested_item fd.num is exist - process it [08:16:32]SAM_PROTO_GetFieldsCounters [08:16:32]wFMCommunicate request_size=4 [08:16:32]MH_SAM_APDU [08:16:32]CAPDU: 80 13 00 00 [08:16:32]Write to MH i2c: E2 08 00 58 4D 80 13 00 00 00 00 00 00 21 [08:16:32]Write i2c OK [08:16:32]MH_I2C_Read... [08:16:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:32]Read from MH i2c: E2 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: E2 62 00 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: E2 62 00 58 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 81 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [08:16:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 81 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:16:32]wFMCommunicate OK [08:16:32]SAM_PROTO_GetFieldsCounters done [08:16:32]requested_item shift.num is exist - process it [08:16:32]requested_item shift.opened is exist - process it [08:16:32]req_shift_opened [08:16:32]FM_GetShiftState [08:16:32]SAM_PROTO_GetShiftState [08:16:32]wFMCommunicate request_size=4 [08:16:32]MH_SAM_APDU [08:16:32]CAPDU: 80 13 01 00 [08:16:32]Write to MH i2c: E2 08 00 59 4D 80 13 01 00 00 00 00 00 23 [08:16:32]Write i2c OK [08:16:32]MH_I2C_Read... [08:16:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:32]Read from MH i2c: E2 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: E2 0E 00 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: E2 0E 00 59 4D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 5C [08:16:32]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [08:16:32]wFMCommunicate OK [08:16:32]SAM_PROTO_GetShiftState done [08:16:32]FM_GetShiftState done [08:16:32]req_shift_opened done [08:16:32]requested_item shift.open_date is exist - process it [08:16:32]req_shift_open_date [08:16:32]req_shift_open_date done [08:16:32]produce_requested_data done [08:16:32]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139905,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [08:16:32]process_action_free close_receipt [08:16:32]json_value_free [08:16:32]json_value_free done [08:16:32]process_json_proto returns [08:16:32]Send response to host [08:16:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139905,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [08:16:32]free response buf [08:16:32]execute_script done [08:16:32]execute_script returns [08:16:32]free content buf [08:16:32]Sock 7.Close socket [08:16:32]Sock 7.Thread stoped [08:16:36]OFD Sender: No OFD packet to send [08:16:41]OFD Sender: No OFD packet to send [08:16:46]OFD Sender: No OFD packet to send [08:16:51]OFD Sender: No OFD packet to send [08:16:56]OFD Sender: No OFD packet to send [08:17:01]OFD Sender: No OFD packet to send [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]OFD Sender: No OFD packet to send [08:18:21]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]OFD Sender: No OFD packet to send [08:18:56]OFD Sender: No OFD packet to send [08:19:01]OFD Sender: No OFD packet to send [08:19:06]OFD Sender: No OFD packet to send [08:19:11]OFD Sender: No OFD packet to send [08:19:16]OFD Sender: No OFD packet to send [08:19:21]OFD Sender: No OFD packet to send [08:19:26]OFD Sender: No OFD packet to send [08:19:31]OFD Sender: No OFD packet to send [08:19:36]OFD Sender: No OFD packet to send [08:19:41]OFD Sender: No OFD packet to send [08:19:46]OFD Sender: No OFD packet to send [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:41]OFD Sender: No OFD packet to send [08:20:46]OFD Sender: No OFD packet to send [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:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:07]accept exits with 9 [08:31:07]New connection [08:31:07]New thread 3066654052 created [08:31:07]Thread 3066510692 joined [08:31:07]Waiting for new connection... [08:31:07] Sock 9.Parse request [08:31:07]Sock 9.Check first char [08:31:07]Sock 9.First char is OK [08:31:07]request: POST /json_proto HTTP/1.0 [08:31:07]Method: POST [08:31:07]URL: /json_proto [08:31:07]Method is POST - this is cgi request [08:31:07]url: /json_proto [08:31:07]query_string will be loaded in cgi processing [08:31:07]execute_cgi json_proto POST (null) [08:31:07]execute_cgi path=json_proto method=POST [08:31:07]POST find Content-Length [08:31:07]Host: 172.17.50.196:8080 [08:31:07]Content-Length: 686 [08:31:07]Content-Type: application/json [08:31:07] [08:31:07]POST finish read [08:31:07]Found Content-Length = 686 [08:31:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.30, "quantity" : 31.340, "sum" : 1200.32, "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:31:07]execute_script... [08:31:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.30, "quantity" : 31.340, "sum" : 1200.32, "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:31:07]POST & json_proto [08:31:07]process_json_proto [08:31:07]json parsed OK: [08:31:07]protocol is kg_v1.0 [08:31:07]action value=close_receipt [08:31:07]process_action close_receipt [08:31:07]cmd_close_receipt [08:31:07]MH_GetDate [08:31:07]Write to MH i2c: F0 00 00 5A 4D 96 [08:31:07]Write i2c OK [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: F0 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: F0 09 00 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: F0 09 00 5A 4D 00 D0 91 24 67 72 0D 1C 67 8D [08:31:07]GetLastDocTimeStamp 1730448993 [08:31:07]current date 1730449872 [08:31:07]FM_GetShiftState [08:31:07]SAM_PROTO_GetShiftState [08:31:07]wFMCommunicate request_size=4 [08:31:07]MH_SAM_APDU [08:31:07]CAPDU: 80 13 01 00 [08:31:07]Write to MH i2c: E2 08 00 5B 4D 80 13 01 00 00 00 00 00 25 [08:31:07]Write i2c OK [08:31:07]MH_I2C_Read... [08:31:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:07]Read from MH i2c: E2 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: E2 0E 00 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: E2 0E 00 5B 4D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 5E [08:31:07]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [08:31:07]wFMCommunicate OK [08:31:07]SAM_PROTO_GetShiftState done [08:31:07]FM_GetShiftState done [08:31:07]opened in 1730419081 [08:31:07]opened+sec_in_day 1730505481 [08:31:07]quantity*price = 120032 [08:31:07]sum+1 = 120033 [08:31:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.47 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 87 01.11.2024 08:31 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139906 ФПД: 83532776787557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T083112&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139906&fm=83532776787557&tin=02508201610067®Number=0000000000091631&sum=120000 [08:31:08]StoreToDocumentArchive [08:31:08]shift 558 fd 139906 [08:31:08]save to /storage/0558/doc_00139906 [08:31:08]save last doc name /storage/0558/doc_00139906 to /storage/kkm_last_doc_name [08:31:08]save OK [08:31:08]Clear old archive folders... [08:31:08]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:31:08]tlvbuf is 00B0DC50 [08:31:08]SAM_PROTO_ClearQueue [08:31:08]wFMCommunicate request_size=4 [08:31:08]MH_SAM_APDU [08:31:08]CAPDU: 80 09 00 00 [08:31:08]Write to MH i2c: E2 08 00 68 4D 80 09 00 00 00 00 00 00 27 [08:31:08]Write i2c OK [08:31:08]MH_I2C_Read... [08:31:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:08]Read from MH i2c: E2 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 03 00 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 03 00 68 4D 00 90 00 29 [08:31:08]RAPDU: 90 00 [08:31:08]wFMCommunicate OK [08:31:08]SAM_PROTO_ClearQueue done [08:31:08]KKMCreateOFDPacket [08:31:08]OFDProtocolAddRootSTLVToBuf [08:31:08]FM_MakeSignedData [08:31:08]FM_MakeSignedData [08:31:08]SAM_PROTO_SignData [08:31:08]wFMCommunicate request_size=4 [08:31:08]MH_SAM_APDU [08:31:08]CAPDU: 80 0D 01 02 [08:31:08]Write to MH i2c: E2 08 00 69 4D 80 0D 01 02 00 00 00 00 2F [08:31:08]Write i2c OK [08:31:08]MH_I2C_Read... [08:31:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:08]Read from MH i2c: E2 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 03 00 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 03 00 69 4D 00 90 00 2A [08:31:08]RAPDU: 90 00 [08:31:08]wFMCommunicate OK [08:31:08]wFMCommunicate request_size=255 [08:31:08]MH_SAM_APDU [08:31:08]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 6C 7A 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 E0 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 CB 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 57 00 00 00 F4 03 04 00 D0 91 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 82 22 02 00 35 04 06 00 4B F8 [08:31:08]Write to MH i2c: E2 02 01 6A 4D 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 6C 7A 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 E0 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 CB 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 57 00 00 00 F4 03 04 00 D0 91 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 82 22 02 00 35 04 06 00 4B F8 00 00 2E [08:31:08]Write i2c OK [08:31:08]MH_I2C_Read... [08:31:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:08]Read from MH i2c: E2 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 03 00 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 03 00 6A 4D 00 90 00 2B [08:31:08]RAPDU: 90 00 [08:31:08]wFMCommunicate OK [08:31:08]wFMCommunicate request_size=9 [08:31:08]MH_SAM_APDU [08:31:08]CAPDU: 80 0D 02 02 04 FD 7C CE 65 [08:31:08]Write to MH i2c: E2 0C 00 6B 4D 80 0D 02 02 04 00 FD 7C CE 65 00 00 E6 [08:31:08]Write i2c OK [08:31:08]MH_I2C_Read... [08:31:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:08]Read from MH i2c: E2 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 03 00 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 03 00 6B 4D 00 90 00 2C [08:31:08]RAPDU: 90 00 [08:31:08]wFMCommunicate OK [08:31:08]wFMCommunicate request_size=4 [08:31:08]MH_SAM_APDU [08:31:08]CAPDU: 80 0D 03 02 [08:31:08]Write to MH i2c: E2 08 00 6C 4D 80 0D 03 02 00 00 00 00 34 [08:31:08]Write i2c OK [08:31:08]MH_I2C_Read... [08:31:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:09]Read from MH i2c: E2 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: E2 0B 00 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: E2 0B 00 6C 4D 00 64 47 98 9E 16 19 7C 1A 90 00 DB [08:31:09]RAPDU: 64 47 98 9E 16 19 7C 1A 90 00 [08:31:09]wFMCommunicate OK [08:31:09]SAM_PROTO_SignData done [08:31:09]FM_MakeSignedData done [08:31:09]CreateOFDProtocolMessage [08:31:09]wFMCommunicate request_size=4 [08:31:09]MH_SAM_APDU [08:31:09]CAPDU: 80 11 00 00 [08:31:09]Write to MH i2c: E2 08 00 6D 4D 80 11 00 00 00 00 00 00 34 [08:31:09]Write i2c OK [08:31:09]MH_I2C_Read... [08:31:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:09]Read from MH i2c: E2 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: E2 17 00 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: E2 17 00 6D 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8F [08:31:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:31:09]wFMCommunicate OK [08:31:09]CreateOFDProtocolMessage done [08:31:09]OFDSenderStorePacket 139906 [08:31:09]StoreOFDPacket docnum=139906 [08:31:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0E 01 00 00 3C AC 06 01 42 4F 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 6C 7A 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 E0 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 CB 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 57 00 00 00 F4 03 04 00 D0 91 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 82 22 02 00 35 04 06 00 4B F8 FD 7C CE 65 64 47 98 9E 16 19 7C 1A [08:31:09]CheckFolder [08:31:09]dirname=/storage/ofd_packets [08:31:09]CheckFolder done [08:31:09]ProducePacketName [08:31:09]name=ofd_packets/00139906 [08:31:09]NVStorageSaveData ofd_packets/00139906 [08:31:09]File name is /storage/ofd_packets/00139906 [08:31:09]Write 300 bytes [08:31:09]NVStorageSaveData done [08:31:09]OFDSenderStorePacket done [08:31:09]KKMCreateOFDPacket done [08:31:09]NVStorageSaveData kkm_last_timestamp [08:31:09]File name is /storage/kkm_last_timestamp [08:31:09]Write 4 bytes [08:31:09]NVStorageSaveData done [08:31:09]ExternCall_PrintAddStr [08:31:09]wPrintStart [08:31:09]Write to MH i2c: 01 00 00 6E 4D BB [08:31:09]Write i2c OK [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: 01 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: 01 07 00 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: 01 07 00 6E 4D 00 00 00 00 00 FF 0F D0 [08:31:09]RasterBufferAndPrint [08:31:09]line Счет N : (1)1095758 [08:31:09]line ИНН: 02508201610067 [08:31:09]line Контрольно-Кассовый Чек [08:31:09]line ПРОДАЖА [08:31:09]line ТРК (МРК, ГНК) : 81 [08:31:09]line Товар: 2711190000 [08:31:09]line ГАЗ-К-5 [08:31:09]line 31.340 * 38.30 [08:31:09]line = 1200.32 [08:31:09]line НДС 12% НСП 1% [08:31:09]line > о реализуемом товаре [08:31:09]line ОКРУГЛЕНИЕ: -0.32 [08:31:09]line ИТОГО: 1200.00 [08:31:09]line Внесено: 1200.00 [08:31:09]line СДАЧА: 0.00 [08:31:09]line НСП 1% : 10.62 [08:31:09]line НДС 12% : 127.47 [08:31:09]line Наличными: 1200.00 [08:31:09]line Безнал.: 0.00 [08:31:09]line Место: АЗС № 101 "Партнер Нефть" [08:31:09]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [08:31:09]line СНО: Общий режим [08:31:09]line Чек 87 01.11.2024 08:31 [08:31:09]line Смена: 558 ФФД: 1.0 [08:31:09]line ЗНМ: 0300000081 [08:31:09]line РНМ: 0000000000091631 [08:31:09]line Версия ККМ: 001 [08:31:09]line ФМ: 0000000000874669 [08:31:09]line ФД: 139906 [08:31:09]line ФПД: 83532776787557 [08:31:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T083112&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139906&fm=83532776787557&tin=02508201610067®Number=0000000000091631&sum=120000 [08:31:09]OFD Sender: Processing packet 139906 [packets to send 34, broken 33] [08:31:09]ProducePacketName [08:31:09]name=ofd_packets/00139906 [08:31:09]OFD Sender: To server: pG, [08:31:09]CommunicateWithHost lk.salyk.kg:30040 [08:31:09]ConnectInit lk.salyk.kg [08:31:09]written 0, free lines is 4095 [08:31:09]Connected sock=10 [08:31:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0E 01 00 00 3C AC 06 01 42 4F 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 6C 7A 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 E0 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 CB 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 57 00 00 00 F4 03 04 00 D0 91 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 82 22 02 00 35 04 06 00 4B F8 FD 7C CE 65 64 47 98 9E 16 19 7C 1A [08:31:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 8F 22 47 00 54 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 82 22 02 00 F4 03 04 00 7B 3D 24 67 B6 04 01 00 00 9E A6 0B 02 03 A2 4D A7 [08:31:09]CommunicateWithHost err = 0 [08:31:09]CheckOFDResponse [08:31:09]1017 (14) - 77093643461234 [08:31:09]1041 (16) - 0000000000874669 [08:31:09]1040 (4) - 139906 [08:31:09]1012 (4) - 01.11.2024 02:31 [08:31:09]1206 (1) - 0 [08:31:09]OFD Sender: Remove packet 139906 [08:31:09]ProducePacketName [08:31:09]name=ofd_packets/00139906 [08:31:09]NVStorageDeleteData [08:31:09]Write to MH i2c: 01 00 00 99 4D E6 [08:31:09]Write i2c OK [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: 01 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: 01 07 00 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: 01 07 00 99 4D 00 00 00 00 00 05 0D FF [08:31:09]RasterBufferAndPrint [08:31:09]line [08:31:09]line [08:31:09]line [08:31:09]line [08:31:09]line [08:31:09]written 0, free lines is 3340 [08:31:09]MH_Cut [08:31:09]Write to MH i2c: D1 01 00 A0 4D 01 BF [08:31:09]Write i2c OK [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: D1 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: D1 01 00 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: D1 01 00 A0 4D 00 BE [08:31:09]Write to MH i2c: 01 00 00 A1 4D EE [08:31:09]Write i2c OK [08:31:09]MH_I2C_Read... [08:31:10]OFD Sender: No OFD packet to send [08:31:10]*** Cut start [08:31:10]*** Partial cut [08:31:10]*** CUTSNS_PIN = 1 [08:31:10]*** CUTSNS_PIN = 0 [08:31:10]*** Brake cut motor [08:31:11]Read from MH i2c: 01 [08:31:11]MH_I2C_Read... [08:31:11]*** Stop cut motor [08:31:11]*** Cut end [08:31:11]Read from MH i2c: 01 07 00 [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: 01 07 00 A1 4D 00 00 00 00 00 FF 0F 03 [08:31:11]process_action close_receipt done [08:31:11]requested_data is exist [08:31:11]produce_requested_data [08:31:11]requested_item fm.sn is exist - process it [08:31:11]wFMCommunicate request_size=4 [08:31:11]MH_SAM_APDU [08:31:11]CAPDU: 80 11 00 00 [08:31:11]Write to MH i2c: E2 08 00 A2 4D 80 11 00 00 00 00 00 00 69 [08:31:11]Write i2c OK [08:31:11]MH_I2C_Read... [08:31:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:11]Read from MH i2c: E2 [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: E2 17 00 [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: E2 17 00 A2 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C4 [08:31:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:31:11]wFMCommunicate OK [08:31:11]requested_item fd.num is exist - process it [08:31:11]SAM_PROTO_GetFieldsCounters [08:31:11]wFMCommunicate request_size=4 [08:31:11]MH_SAM_APDU [08:31:11]CAPDU: 80 13 00 00 [08:31:11]Write to MH i2c: E2 08 00 A3 4D 80 13 00 00 00 00 00 00 6C [08:31:11]Write i2c OK [08:31:11]MH_I2C_Read... [08:31:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:11]Read from MH i2c: E2 [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: E2 62 00 [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: E2 62 00 A3 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 82 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [08:31:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 82 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:31:11]wFMCommunicate OK [08:31:11]SAM_PROTO_GetFieldsCounters done [08:31:11]requested_item shift.num is exist - process it [08:31:11]requested_item shift.opened is exist - process it [08:31:11]req_shift_opened [08:31:11]FM_GetShiftState [08:31:11]SAM_PROTO_GetShiftState [08:31:11]wFMCommunicate request_size=4 [08:31:11]MH_SAM_APDU [08:31:11]CAPDU: 80 13 01 00 [08:31:11]Write to MH i2c: E2 08 00 A4 4D 80 13 01 00 00 00 00 00 6E [08:31:11]Write i2c OK [08:31:11]MH_I2C_Read... [08:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:11]Read from MH i2c: E2 [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: E2 0E 00 [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: E2 0E 00 A4 4D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 A7 [08:31:11]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [08:31:11]wFMCommunicate OK [08:31:11]SAM_PROTO_GetShiftState done [08:31:11]FM_GetShiftState done [08:31:11]req_shift_opened done [08:31:11]requested_item shift.open_date is exist - process it [08:31:11]req_shift_open_date [08:31:11]req_shift_open_date done [08:31:11]produce_requested_data done [08:31:11]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139906,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [08:31:11]process_action_free close_receipt [08:31:11]json_value_free [08:31:11]json_value_free done [08:31:11]process_json_proto returns [08:31:11]Send response to host [08:31:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139906,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [08:31:11]free response buf [08:31:11]execute_script done [08:31:11]execute_script returns [08:31:11]free content buf [08:31:11]Sock 9.Close socket [08:31:11]Sock 9.Thread stoped [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:35]OFD Sender: No OFD packet to send [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:50]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]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:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:05]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:20]OFD Sender: No OFD packet to send [08:38:25]OFD Sender: No OFD packet to send [08:38:30]OFD Sender: No OFD packet to send [08:38:35]OFD Sender: No OFD packet to send [08:38:40]OFD Sender: No OFD packet to send [08:38:45]OFD Sender: No OFD packet to send [08:38:50]OFD Sender: No OFD packet to send [08:38:55]OFD Sender: No OFD packet to send [08:39:00]OFD Sender: No OFD packet to send [08:39:05]OFD Sender: No OFD packet to send [08:39:10]OFD Sender: No OFD packet to send [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:39]accept exits with 7 [08:39:39]New connection [08:39:39]New thread 3066510692 created [08:39:39]Thread 3066654052 joined [08:39:39]Waiting for new connection... [08:39:39] Sock 7.Parse request [08:39:39]Sock 7.Check first char [08:39:39]Sock 7.First char is OK [08:39:39]request: POST /json_proto HTTP/1.0 [08:39:39]Method: POST [08:39:39]URL: /json_proto [08:39:39]Method is POST - this is cgi request [08:39:39]url: /json_proto [08:39:39]query_string will be loaded in cgi processing [08:39:39]execute_cgi json_proto POST (null) [08:39:39]execute_cgi path=json_proto method=POST [08:39:39]POST find Content-Length [08:39:39]Host: 172.17.50.196:8080 [08:39:39]Content-Length: 621 [08:39:39]Content-Type: application/json [08:39:39] [08:39:39]POST finish read [08:39:39]Found Content-Length = 621 [08:39:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335726", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:39]execute_script... [08:39: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)335726", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:39]POST & json_proto [08:39:39]process_json_proto [08:39:39]json parsed OK: [08:39:39]protocol is kg_v1.0 [08:39:39]action value=close_receipt [08:39:39]process_action close_receipt [08:39:39]cmd_close_receipt [08:39:39]MH_GetDate [08:39:39]Write to MH i2c: F0 00 00 A5 4D E1 [08:39:39]Write i2c OK [08:39:39]MH_I2C_Read... [08:39:39]Read from MH i2c: F0 [08:39:39]MH_I2C_Read... [08:39:39]Read from MH i2c: F0 09 00 [08:39:39]MH_I2C_Read... [08:39:39]Read from MH i2c: F0 09 00 A5 4D 00 D0 93 24 67 72 0D 1C 67 DA [08:39:39]GetLastDocTimeStamp 1730449872 [08:39:39]current date 1730450384 [08:39:39]FM_GetShiftState [08:39:39]SAM_PROTO_GetShiftState [08:39:39]wFMCommunicate request_size=4 [08:39:39]MH_SAM_APDU [08:39:39]CAPDU: 80 13 01 00 [08:39:39]Write to MH i2c: E2 08 00 A6 4D 80 13 01 00 00 00 00 00 70 [08:39:39]Write i2c OK [08:39:39]MH_I2C_Read... [08:39:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:39]Read from MH i2c: E2 [08:39:39]MH_I2C_Read... [08:39:39]Read from MH i2c: E2 0E 00 [08:39:39]MH_I2C_Read... [08:39:39]Read from MH i2c: E2 0E 00 A6 4D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 A9 [08:39:39]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [08:39:39]wFMCommunicate OK [08:39:39]SAM_PROTO_GetShiftState done [08:39:39]FM_GetShiftState done [08:39:39]opened in 1730419081 [08:39:39]opened+sec_in_day 1730505481 [08:39:39]quantity*price = 14400 [08:39:39]sum+1 = 14401 [08:39:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 88 01.11.2024 08:39 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139907 ФПД: 151690014744993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T083944&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139907&fm=151690014744993&tin=02508201610067®Number=0000000000091631&sum=14400 0 [08:39:40]StoreToDocumentArchive [08:39:40]shift 558 fd 139907 [08:39:40]save to /storage/0558/doc_00139907 [08:39:40]save last doc name /storage/0558/doc_00139907 to /storage/kkm_last_doc_name [08:39:40]save OK [08:39:40]Clear old archive folders... [08:39:40]ProcessDocumentItem done err = 0, tmpTLVsize=273 [08:39:40]tlvbuf is 00B57280 [08:39:40]SAM_PROTO_ClearQueue [08:39:40]wFMCommunicate request_size=4 [08:39:40]MH_SAM_APDU [08:39:40]CAPDU: 80 09 00 00 [08:39:40]Write to MH i2c: E2 08 00 B3 4D 80 09 00 00 00 00 00 00 72 [08:39:40]Write i2c OK [08:39:40]MH_I2C_Read... [08:39:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:39:40]Read from MH i2c: E2 [08:39:40]MH_I2C_Read... [08:39:40]Read from MH i2c: E2 03 00 [08:39:40]MH_I2C_Read... [08:39:40]Read from MH i2c: E2 03 00 B3 4D 00 90 00 74 [08:39:40]RAPDU: 90 00 [08:39:40]wFMCommunicate OK [08:39:40]SAM_PROTO_ClearQueue done [08:39:40]KKMCreateOFDPacket [08:39:40]OFDProtocolAddRootSTLVToBuf [08:39:40]FM_MakeSignedData [08:39:40]FM_MakeSignedData [08:39:40]SAM_PROTO_SignData [08:39:40]wFMCommunicate request_size=4 [08:39:40]MH_SAM_APDU [08:39:40]CAPDU: 80 0D 01 02 [08:39:40]Write to MH i2c: E2 08 00 B4 4D 80 0D 01 02 00 00 00 00 7A [08:39:40]Write i2c OK [08:39:40]MH_I2C_Read... [08:39:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:39:40]Read from MH i2c: E2 [08:39:40]MH_I2C_Read... [08:39:40]Read from MH i2c: E2 03 00 [08:39:40]MH_I2C_Read... [08:39:40]Read from MH i2c: E2 03 00 B4 4D 00 90 00 75 [08:39:40]RAPDU: 90 00 [08:39:40]wFMCommunicate OK [08:39:40]wFMCommunicate request_size=255 [08:39:40]MH_SAM_APDU [08:39:40]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 D0 93 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 [08:39:40]Write to MH i2c: E2 02 01 B5 4D 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 D0 93 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 41 [08:39:40]Write i2c OK [08:39:40]MH_I2C_Read... [08:39:40]OFD Sender: No OFD packet to send [08:39:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:40]Read from MH i2c: E2 [08:39:40]MH_I2C_Read... [08:39:40]Read from MH i2c: E2 03 00 [08:39:40]MH_I2C_Read... [08:39:40]Read from MH i2c: E2 03 00 B5 4D 00 90 00 76 [08:39:40]RAPDU: 90 00 [08:39:40]wFMCommunicate OK [08:39:40]wFMCommunicate request_size=32 [08:39:40]MH_SAM_APDU [08:39:40]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 36 39 10 04 04 00 83 22 02 00 35 04 06 00 89 F6 15 71 E1 A1 [08:39:40]Write to MH i2c: E2 23 00 B6 4D 80 0D 02 02 1B 00 30 30 30 38 37 34 36 36 39 10 04 04 00 83 22 02 00 35 04 06 00 89 F6 15 71 E1 A1 00 00 10 [08:39:40]Write i2c OK [08:39:40]MH_I2C_Read... [08:39:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:40]Read from MH i2c: E2 [08:39:40]MH_I2C_Read... [08:39:40]Read from MH i2c: E2 03 00 [08:39:40]MH_I2C_Read... [08:39:40]Read from MH i2c: E2 03 00 B6 4D 00 90 00 77 [08:39:40]RAPDU: 90 00 [08:39:40]wFMCommunicate OK [08:39:40]wFMCommunicate request_size=4 [08:39:40]MH_SAM_APDU [08:39:40]CAPDU: 80 0D 03 02 [08:39:40]Write to MH i2c: E2 08 00 B7 4D 80 0D 03 02 00 00 00 00 7F [08:39:40]Write i2c OK [08:39:40]MH_I2C_Read... [08:39:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:39:40]Read from MH i2c: E2 [08:39:40]MH_I2C_Read... [08:39:40]Read from MH i2c: E2 0B 00 [08:39:40]MH_I2C_Read... [08:39:40]Read from MH i2c: E2 0B 00 B7 4D 00 18 E8 66 18 78 47 48 7D 90 00 82 [08:39:40]RAPDU: 18 E8 66 18 78 47 48 7D 90 00 [08:39:40]wFMCommunicate OK [08:39:40]SAM_PROTO_SignData done [08:39:40]FM_MakeSignedData done [08:39:40]CreateOFDProtocolMessage [08:39:40]wFMCommunicate request_size=4 [08:39:40]MH_SAM_APDU [08:39:40]CAPDU: 80 11 00 00 [08:39:40]Write to MH i2c: E2 08 00 B8 4D 80 11 00 00 00 00 00 00 7F [08:39:40]Write i2c OK [08:39:40]MH_I2C_Read... [08:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:41]Read from MH i2c: E2 [08:39:41]MH_I2C_Read... [08:39:41]Read from MH i2c: E2 17 00 [08:39:41]MH_I2C_Read... [08:39:41]Read from MH i2c: E2 17 00 B8 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DA [08:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:39:41]wFMCommunicate OK [08:39:41]CreateOFDProtocolMessage done [08:39:41]OFDSenderStorePacket 139907 [08:39:41]StoreOFDPacket docnum=139907 [08:39:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 70 73 1D 01 DE 43 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 D0 93 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 83 22 02 00 35 04 06 00 89 F6 15 71 E1 A1 18 E8 66 18 78 47 48 7D [08:39:41]CheckFolder [08:39:41]dirname=/storage/ofd_packets [08:39:41]CheckFolder done [08:39:41]ProducePacketName [08:39:41]name=ofd_packets/00139907 [08:39:41]NVStorageSaveData ofd_packets/00139907 [08:39:41]File name is /storage/ofd_packets/00139907 [08:39:41]Write 323 bytes [08:39:41]NVStorageSaveData done [08:39:41]OFDSenderStorePacket done [08:39:41]KKMCreateOFDPacket done [08:39:41]NVStorageSaveData kkm_last_timestamp [08:39:41]File name is /storage/kkm_last_timestamp [08:39:41]Write 4 bytes [08:39:41]NVStorageSaveData done [08:39:41]ExternCall_PrintAddStr [08:39:41]wPrintStart [08:39:41]Write to MH i2c: 01 00 00 B9 4D 06 [08:39:41]Write i2c OK [08:39:41]MH_I2C_Read... [08:39:41]Read from MH i2c: 01 [08:39:41]MH_I2C_Read... [08:39:41]Read from MH i2c: 01 07 00 [08:39:41]MH_I2C_Read... [08:39:41]Read from MH i2c: 01 07 00 B9 4D 00 00 00 00 00 FF 0F 1B [08:39:41]RasterBufferAndPrint [08:39:41]line Счет N : (3)335726 [08:39:41]line ИНН: 02508201610067 [08:39:41]line Контрольно-Кассовый Чек [08:39:41]line ПРОДАЖА [08:39:41]line Товар: 48747059 [08:39:41]line Сигареты Winston Legend Blue [08:39:41]line 1.000 * 144.00 [08:39:41]line = 144.00 [08:39:41]line НДС 12% НСП 1% [08:39:41]line > о реализуемом товаре [08:39:41]line ИТОГО: 144.00 [08:39:41]line НСП 1% : 1.27 [08:39:41]line НДС 12% : 15.29 [08:39:41]line Наличными: 144.00 [08:39:41]line Безнал.: 0.00 [08:39:41]line Место: АЗС № 101 "Партнер Нефть" [08:39:41]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [08:39:41]line СНО: Общий режим [08:39:41]line Чек 88 01.11.2024 08:39 [08:39:41]line Смена: 558 ФФД: 1.0 [08:39:41]line ЗНМ: 0300000081 [08:39:41]line РНМ: 0000000000091631 [08:39:41]line Версия ККМ: 001 [08:39:41]line ФМ: 0000000000874669 [08:39:41]line ФД: 139907 [08:39:41]line ФПД: 151690014744993 [08:39:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T083944&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139907&fm=151690014744993&tin=02508201610067®Number=0000000000091631&sum=14400 [08:39:41]OFD Sender: Processing packet 139907 [packets to send 34, broken 33] [08:39:41]ProducePacketName [08:39:41]name=ofd_packets/00139907 [08:39:41]OFD Sender: To server: pG, [08:39:41]CommunicateWithHost lk.salyk.kg:30040 [08:39:41]ConnectInit lk.salyk.kg [08:39:41]line 0 [08:39:41]written 0, free lines is 4095 [08:39:41]Connected sock=10 [08:39:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 70 73 1D 01 DE 43 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 D0 93 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 83 22 02 00 35 04 06 00 89 F6 15 71 E1 A1 18 E8 66 18 78 47 48 7D [08:39:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 5C 1F 47 00 58 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 34 36 36 39 10 04 04 00 83 22 02 00 F4 03 04 00 7B 3F 24 67 B6 04 01 00 00 20 44 FC 68 C6 D8 12 71 [08:39:41]CommunicateWithHost err = 0 [08:39:41]CheckOFDResponse [08:39:41]1017 (14) - 77093643461234 [08:39:41]1041 (16) - 0000000000874669 [08:39:41]1040 (4) - 139907 [08:39:41]1012 (4) - 01.11.2024 02:39 [08:39:41]1206 (1) - 0 [08:39:41]OFD Sender: Remove packet 139907 [08:39:41]ProducePacketName [08:39:41]name=ofd_packets/00139907 [08:39:41]NVStorageDeleteData [08:39:41]Write to MH i2c: 01 00 00 E2 4D 2F [08:39:41]Write i2c OK [08:39:41]MH_I2C_Read... [08:39:41]Read from MH i2c: 01 [08:39:41]MH_I2C_Read... [08:39:41]Read from MH i2c: 01 07 00 [08:39:41]MH_I2C_Read... [08:39:41]Read from MH i2c: 01 07 00 E2 4D 00 00 00 00 00 EE 0C 30 [08:39:41]RasterBufferAndPrint [08:39:41]line [08:39:41]line [08:39:41]line [08:39:41]line [08:39:41]line [08:39:41]written 0, free lines is 3316 [08:39:41]MH_Cut [08:39:41]Write to MH i2c: D1 01 00 E9 4D 01 08 [08:39:41]Write i2c OK [08:39:41]MH_I2C_Read... [08:39:41]Read from MH i2c: D1 [08:39:41]MH_I2C_Read... [08:39:41]Read from MH i2c: D1 01 00 [08:39:41]MH_I2C_Read... [08:39:41]Read from MH i2c: D1 01 00 E9 4D 00 07 [08:39:41]Write to MH i2c: 01 00 00 EA 4D 37 [08:39:41]Write i2c OK [08:39:41]MH_I2C_Read... [08:39:42]OFD Sender: No OFD packet to send [08:39:42]*** Cut start [08:39:42]*** Partial cut [08:39:42]*** CUTSNS_PIN = 1 [08:39:42]*** CUTSNS_PIN = 0 [08:39:42]*** Brake cut motor [08:39:43]Read from MH i2c: 01 [08:39:43]MH_I2C_Read... [08:39:43]*** Stop cut motor [08:39:43]*** Cut end [08:39:43]Read from MH i2c: 01 07 00 [08:39:43]MH_I2C_Read... [08:39:43]Read from MH i2c: 01 07 00 EA 4D 00 00 00 00 00 FF 0F 4C [08:39:43]process_action close_receipt done [08:39:43]requested_data is exist [08:39:43]produce_requested_data [08:39:43]requested_item fm.sn is exist - process it [08:39:43]wFMCommunicate request_size=4 [08:39:43]MH_SAM_APDU [08:39:43]CAPDU: 80 11 00 00 [08:39:43]Write to MH i2c: E2 08 00 EB 4D 80 11 00 00 00 00 00 00 B2 [08:39:43]Write i2c OK [08:39:43]MH_I2C_Read... [08:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:43]Read from MH i2c: E2 [08:39:43]MH_I2C_Read... [08:39:43]Read from MH i2c: E2 17 00 [08:39:43]MH_I2C_Read... [08:39:43]Read from MH i2c: E2 17 00 EB 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0D [08:39:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:39:43]wFMCommunicate OK [08:39:43]requested_item fd.num is exist - process it [08:39:43]SAM_PROTO_GetFieldsCounters [08:39:43]wFMCommunicate request_size=4 [08:39:43]MH_SAM_APDU [08:39:43]CAPDU: 80 13 00 00 [08:39:43]Write to MH i2c: E2 08 00 EC 4D 80 13 00 00 00 00 00 00 B5 [08:39:43]Write i2c OK [08:39:43]MH_I2C_Read... [08:39:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:39:43]Read from MH i2c: E2 [08:39:43]MH_I2C_Read... [08:39:43]Read from MH i2c: E2 62 00 [08:39:43]MH_I2C_Read... [08:39:43]Read from MH i2c: E2 62 00 EC 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 83 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [08:39:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 83 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:39:43]wFMCommunicate OK [08:39:43]SAM_PROTO_GetFieldsCounters done [08:39:43]requested_item shift.num is exist - process it [08:39:43]requested_item shift.opened is exist - process it [08:39:43]req_shift_opened [08:39:43]FM_GetShiftState [08:39:43]SAM_PROTO_GetShiftState [08:39:43]wFMCommunicate request_size=4 [08:39:43]MH_SAM_APDU [08:39:43]CAPDU: 80 13 01 00 [08:39:43]Write to MH i2c: E2 08 00 ED 4D 80 13 01 00 00 00 00 00 B7 [08:39:43]Write i2c OK [08:39:43]MH_I2C_Read... [08:39:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:43]Read from MH i2c: E2 [08:39:43]MH_I2C_Read... [08:39:43]Read from MH i2c: E2 0E 00 [08:39:43]MH_I2C_Read... [08:39:43]Read from MH i2c: E2 0E 00 ED 4D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 F0 [08:39:43]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [08:39:43]wFMCommunicate OK [08:39:43]SAM_PROTO_GetShiftState done [08:39:43]FM_GetShiftState done [08:39:43]req_shift_opened done [08:39:43]requested_item shift.open_date is exist - process it [08:39:43]req_shift_open_date [08:39:43]req_shift_open_date done [08:39:43]produce_requested_data done [08:39:43]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139907,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [08:39:43]process_action_free close_receipt [08:39:43]json_value_free [08:39:43]json_value_free done [08:39:43]process_json_proto returns [08:39:43]Send response to host [08:39:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139907,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [08:39:43]free response buf [08:39:43]execute_script done [08:39:43]execute_script returns [08:39:43]free content buf [08:39:43]Sock 7.Close socket [08:39:43]Sock 7.Thread stoped [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]OFD Sender: No OFD packet to send [08:40:02]OFD Sender: No OFD packet to send [08:40:07]OFD Sender: No OFD packet to send [08:40:12]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]OFD Sender: No OFD packet to send [08:40:57]OFD Sender: No OFD packet to send [08:41:02]OFD Sender: No OFD packet to send [08:41:07]OFD Sender: No OFD packet to send [08:41:12]OFD Sender: No OFD packet to send [08:41:17]OFD Sender: No OFD packet to send [08:41:22]OFD Sender: No OFD packet to send [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:22]OFD Sender: No OFD packet to send [08:42:27]OFD Sender: No OFD packet to send [08:42:32]OFD Sender: No OFD packet to send [08:42:37]OFD Sender: No OFD packet to send [08:42:42]OFD Sender: No OFD packet to send [08:42:47]OFD Sender: No OFD packet to send [08:42:52]OFD Sender: No OFD packet to send [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:06]accept exits with 9 [08:46:06]New connection [08:46:06]New thread 3066654052 created [08:46:06]Thread 3066510692 joined [08:46:06]Waiting for new connection... [08:46:06] Sock 9.Parse request [08:46:06]Sock 9.Check first char [08:46:06]Sock 9.First char is OK [08:46:06]request: POST /json_proto HTTP/1.0 [08:46:06]Method: POST [08:46:06]URL: /json_proto [08:46:06]Method is POST - this is cgi request [08:46:06]url: /json_proto [08:46:06]query_string will be loaded in cgi processing [08:46:06]execute_cgi json_proto POST (null) [08:46:06]execute_cgi path=json_proto method=POST [08:46:06]POST find Content-Length [08:46:06]Host: 172.17.50.196:8080 [08:46:06]Content-Length: 904 [08:46:06]Content-Type: application/json [08:46:06] [08:46:06]POST finish read [08:46:06]Found Content-Length = 904 [08:46:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335727", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 248.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:06]execute_script... [08:46: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)335727", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 248.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:06]POST & json_proto [08:46:06]process_json_proto [08:46:06]json parsed OK: [08:46:06]protocol is kg_v1.0 [08:46:06]action value=close_receipt [08:46:06]process_action close_receipt [08:46:06]cmd_close_receipt [08:46:06]MH_GetDate [08:46:06]Write to MH i2c: F0 00 00 EE 4D 2A [08:46:06]Write i2c OK [08:46:06]MH_I2C_Read... [08:46:06]Read from MH i2c: F0 [08:46:06]MH_I2C_Read... [08:46:06]Read from MH i2c: F0 09 00 [08:46:06]MH_I2C_Read... [08:46:06]Read from MH i2c: F0 09 00 EE 4D 00 53 95 24 67 72 0D 1C 67 A8 [08:46:06]GetLastDocTimeStamp 1730450384 [08:46:06]current date 1730450771 [08:46:06]FM_GetShiftState [08:46:06]SAM_PROTO_GetShiftState [08:46:06]wFMCommunicate request_size=4 [08:46:06]MH_SAM_APDU [08:46:06]CAPDU: 80 13 01 00 [08:46:06]Write to MH i2c: E2 08 00 EF 4D 80 13 01 00 00 00 00 00 B9 [08:46:06]Write i2c OK [08:46:06]MH_I2C_Read... [08:46:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:06]Read from MH i2c: E2 [08:46:06]MH_I2C_Read... [08:46:06]Read from MH i2c: E2 0E 00 [08:46:06]MH_I2C_Read... [08:46:06]Read from MH i2c: E2 0E 00 EF 4D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 F2 [08:46:06]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [08:46:06]wFMCommunicate OK [08:46:06]SAM_PROTO_GetShiftState done [08:46:06]FM_GetShiftState done [08:46:06]opened in 1730419081 [08:46:06]opened+sec_in_day 1730505481 [08:46:06]quantity*price = 9900 [08:46:06]sum+1 = 9901 [08:46:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48744119 Сигареты Winston Xstyle Dual 1.000 * 149.00 = 149.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 248.00 НСП 1% : 2.20 НДС 12% : 26.33 Наличными: 248.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 89 01.11.2024 08:46 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139908 ФПД: 210339664828197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T084611&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139908&fm=210339664828197&tin=02508201610067®Number=0000000000091631&sum=24800 0 [08:46:07]StoreToDocumentArchive [08:46:07]shift 558 fd 139908 [08:46:07]save to /storage/0558/doc_00139908 [08:46:07]save last doc name /storage/0558/doc_00139908 to /storage/kkm_last_doc_name [08:46:07]save OK [08:46:07]Clear old archive folders... [08:46:07]ProcessDocumentItem done err = 0, tmpTLVsize=396 [08:46:07]tlvbuf is B6F0F610 [08:46:07]SAM_PROTO_ClearQueue [08:46:07]wFMCommunicate request_size=4 [08:46:07]MH_SAM_APDU [08:46:07]CAPDU: 80 09 00 00 [08:46:07]Write to MH i2c: E2 08 00 FC 4D 80 09 00 00 00 00 00 00 BB [08:46:07]Write i2c OK [08:46:07]MH_I2C_Read... [08:46:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:07]Read from MH i2c: E2 [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: E2 03 00 [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: E2 03 00 FC 4D 00 90 00 BD [08:46:07]RAPDU: 90 00 [08:46:07]wFMCommunicate OK [08:46:07]SAM_PROTO_ClearQueue done [08:46:07]KKMCreateOFDPacket [08:46:07]OFDProtocolAddRootSTLVToBuf [08:46:07]FM_MakeSignedData [08:46:07]FM_MakeSignedData [08:46:07]SAM_PROTO_SignData [08:46:07]wFMCommunicate request_size=4 [08:46:07]MH_SAM_APDU [08:46:07]CAPDU: 80 0D 01 02 [08:46:07]Write to MH i2c: E2 08 00 FD 4D 80 0D 01 02 00 00 00 00 C3 [08:46:07]Write i2c OK [08:46:07]MH_I2C_Read... [08:46:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:07]Read from MH i2c: E2 [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: E2 03 00 [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: E2 03 00 FD 4D 00 90 00 BE [08:46:07]RAPDU: 90 00 [08:46:07]wFMCommunicate OK [08:46:07]wFMCommunicate request_size=255 [08:46:07]MH_SAM_APDU [08:46:07]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 60 00 00 00 00 EB 03 26 00 EF [08:46:07]Write to MH i2c: E2 02 01 FE 4D 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 60 00 00 00 00 EB 03 26 00 EF 00 00 92 [08:46:07]Write i2c OK [08:46:07]MH_I2C_Read... [08:46:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:08]Read from MH i2c: E2 [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: E2 03 00 [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: E2 03 00 FE 4D 00 90 00 BF [08:46:08]RAPDU: 90 00 [08:46:08]wFMCommunicate OK [08:46:08]wFMCommunicate request_size=155 [08:46:08]MH_SAM_APDU [08:46:08]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 0A 00 00 00 00 07 04 06 00 E0 60 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 53 95 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 84 22 02 00 35 04 06 00 BF 4D 85 01 17 25 [08:46:08]Write to MH i2c: E2 9E 00 FF 4D 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 0A 00 00 00 00 07 04 06 00 E0 60 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 53 95 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 84 22 02 00 35 04 06 00 BF 4D 85 01 17 25 00 00 10 [08:46:08]Write i2c OK [08:46:08]MH_I2C_Read... [08:46:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:08]Read from MH i2c: E2 [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: E2 03 00 [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: E2 03 00 FF 4D 00 90 00 C0 [08:46:08]RAPDU: 90 00 [08:46:08]wFMCommunicate OK [08:46:08]wFMCommunicate request_size=4 [08:46:08]MH_SAM_APDU [08:46:08]CAPDU: 80 0D 03 02 [08:46:08]Write to MH i2c: E2 08 00 00 4E 80 0D 03 02 00 00 00 00 C9 [08:46:08]Write i2c OK [08:46:08]MH_I2C_Read... [08:46:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:08]Read from MH i2c: E2 [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: E2 0B 00 [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: E2 0B 00 00 4E 00 F8 95 38 B8 B2 26 88 12 90 00 B9 [08:46:08]RAPDU: F8 95 38 B8 B2 26 88 12 90 00 [08:46:08]wFMCommunicate OK [08:46:08]SAM_PROTO_SignData done [08:46:08]FM_MakeSignedData done [08:46:08]CreateOFDProtocolMessage [08:46:08]wFMCommunicate request_size=4 [08:46:08]MH_SAM_APDU [08:46:08]CAPDU: 80 11 00 00 [08:46:08]Write to MH i2c: E2 08 00 01 4E 80 11 00 00 00 00 00 00 C9 [08:46:08]Write i2c OK [08:46:08]MH_I2C_Read... [08:46:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:08]Read from MH i2c: E2 [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: E2 17 00 [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: E2 17 00 01 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 24 [08:46:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:46:08]wFMCommunicate OK [08:46:08]CreateOFDProtocolMessage done [08:46:08]OFDSenderStorePacket 139908 [08:46:08]StoreOFDPacket docnum=139908 [08:46:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 A0 01 00 00 21 08 98 01 8B 08 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 0A 00 00 00 00 07 04 06 00 E0 60 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 53 95 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 84 22 02 00 35 04 06 00 BF 4D 85 01 17 25 F8 95 38 B8 B2 26 88 12 [08:46:08]CheckFolder [08:46:08]dirname=/storage/ofd_packets [08:46:08]CheckFolder done [08:46:08]ProducePacketName [08:46:08]name=ofd_packets/00139908 [08:46:08]NVStorageSaveData ofd_packets/00139908 [08:46:08]File name is /storage/ofd_packets/00139908 [08:46:08]Write 446 bytes [08:46:08]NVStorageSaveData done [08:46:08]OFDSenderStorePacket done [08:46:08]KKMCreateOFDPacket done [08:46:08]NVStorageSaveData kkm_last_timestamp [08:46:08]File name is /storage/kkm_last_timestamp [08:46:08]Write 4 bytes [08:46:08]NVStorageSaveData done [08:46:08]ExternCall_PrintAddStr [08:46:08]wPrintStart [08:46:08]Write to MH i2c: 01 00 00 02 4E 50 [08:46:08]Write i2c OK [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: 01 [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: 01 07 00 [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: 01 07 00 02 4E 00 00 00 00 00 FF 0F 65 [08:46:08]RasterBufferAndPrint [08:46:08]line Счет N : (3)335727 [08:46:08]line ИНН: 02508201610067 [08:46:08]line Контрольно-Кассовый Чек [08:46:08]line ПРОДАЖА [08:46:08]line Товар: 4870022003305 [08:46:08]line Напиток Gorilla эн нат ж/б 0,5/0,45л [08:46:08]line 1.000 * 99.00 [08:46:08]line = 99.00 [08:46:08]line НДС 12% НСП 1% [08:46:08]line > о реализуемом товаре [08:46:08]line Товар: 48744119 [08:46:08]line Сигареты Winston Xstyle Dual [08:46:08]line 1.000 * 149.00 [08:46:08]line = 149.00 [08:46:08]line НДС 12% НСП 1% [08:46:08]line > о реализуемом товаре [08:46:08]line ИТОГО: 248.00 [08:46:08]line НСП 1% : 2.20 [08:46:08]line НДС 12% : 26.33 [08:46:08]line Наличными: 248.00 [08:46:08]line Безнал.: 0.00 [08:46:08]line Место: АЗС № 101 "Партнер Нефть" [08:46:08]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [08:46:08]line СНО: Общий режим [08:46:08]line Чек 89 01.11.2024 08:46 [08:46:08]line Смена: 558 ФФД: 1.0 [08:46:08]line ЗНМ: 0300000081 [08:46:08]line РНМ: 0000000000091631 [08:46:08]line Версия ККМ: 001 [08:46:08]line ФМ: 0000000000874669 [08:46:08]line ФД: 139908 [08:46:08]line ФПД: 210339664828197 [08:46:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T084611&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139908&fm=210339664828197&tin=02508201610067®Number=0000000000091631&sum=24800 [08:46:08]line 0 [08:46:08]OFD Sender: Processing packet 139908 [packets to send 34, broken 33] [08:46:08]ProducePacketName [08:46:08]name=ofd_packets/00139908 [08:46:08]OFD Sender: To server: pG, [08:46:08]CommunicateWithHost lk.salyk.kg:30040 [08:46:08]ConnectInit lk.salyk.kg [08:46:08]written 0, free lines is 4095 [08:46:08]Connected sock=10 [08:46:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 A0 01 00 00 21 08 98 01 8B 08 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 0A 00 00 00 00 07 04 06 00 E0 60 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 53 95 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 84 22 02 00 35 04 06 00 BF 4D 85 01 17 25 F8 95 38 B8 B2 26 88 12 [08:46:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 58 A6 47 00 F9 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 34 36 36 39 10 04 04 00 84 22 02 00 F4 03 04 00 FF 40 24 67 B6 04 01 00 00 93 1B F2 13 A6 14 FB FB [08:46:09]CommunicateWithHost err = 0 [08:46:09]CheckOFDResponse [08:46:09]1017 (14) - 77093643461234 [08:46:09]1041 (16) - 0000000000874669 [08:46:09]1040 (4) - 139908 [08:46:09]1012 (4) - 01.11.2024 02:46 [08:46:09]1206 (1) - 0 [08:46:09]OFD Sender: Remove packet 139908 [08:46:09]ProducePacketName [08:46:09]name=ofd_packets/00139908 [08:46:09]NVStorageDeleteData [08:46:09]Write to MH i2c: 01 00 00 31 4E 7F [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: 01 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: 01 07 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: 01 07 00 31 4E 00 00 00 00 00 B3 0C 45 [08:46:09]RasterBufferAndPrint [08:46:09]line [08:46:09]line [08:46:09]line [08:46:09]line [08:46:09]line [08:46:09]written 0, free lines is 3262 [08:46:09]MH_Cut [08:46:09]Write to MH i2c: D1 01 00 38 4E 01 58 [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: D1 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: D1 01 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: D1 01 00 38 4E 00 57 [08:46:09]Write to MH i2c: 01 00 00 39 4E 87 [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]OFD Sender: No OFD packet to send [08:46:09]*** Cut start [08:46:09]*** Partial cut [08:46:09]*** CUTSNS_PIN = 1 [08:46:09]*** CUTSNS_PIN = 0 [08:46:10]*** Brake cut motor [08:46:10]Read from MH i2c: 01 [08:46:10]MH_I2C_Read... [08:46:10]*** Stop cut motor [08:46:10]*** Cut end [08:46:10]Read from MH i2c: 01 07 00 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: 01 07 00 39 4E 00 00 00 00 00 FF 0F 9C [08:46:10]process_action close_receipt done [08:46:10]requested_data is exist [08:46:10]produce_requested_data [08:46:10]requested_item fm.sn is exist - process it [08:46:10]wFMCommunicate request_size=4 [08:46:10]MH_SAM_APDU [08:46:10]CAPDU: 80 11 00 00 [08:46:10]Write to MH i2c: E2 08 00 3A 4E 80 11 00 00 00 00 00 00 02 [08:46:10]Write i2c OK [08:46:10]MH_I2C_Read... [08:46:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:10]Read from MH i2c: E2 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: E2 17 00 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: E2 17 00 3A 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5D [08:46:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:46:10]wFMCommunicate OK [08:46:10]requested_item fd.num is exist - process it [08:46:10]SAM_PROTO_GetFieldsCounters [08:46:10]wFMCommunicate request_size=4 [08:46:10]MH_SAM_APDU [08:46:10]CAPDU: 80 13 00 00 [08:46:10]Write to MH i2c: E2 08 00 3B 4E 80 13 00 00 00 00 00 00 05 [08:46:10]Write i2c OK [08:46:10]MH_I2C_Read... [08:46:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:10]Read from MH i2c: E2 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: E2 62 00 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: E2 62 00 3B 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 84 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [08:46:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 84 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:46:10]wFMCommunicate OK [08:46:10]SAM_PROTO_GetFieldsCounters done [08:46:10]requested_item shift.num is exist - process it [08:46:10]requested_item shift.opened is exist - process it [08:46:10]req_shift_opened [08:46:10]FM_GetShiftState [08:46:10]SAM_PROTO_GetShiftState [08:46:10]wFMCommunicate request_size=4 [08:46:10]MH_SAM_APDU [08:46:10]CAPDU: 80 13 01 00 [08:46:10]Write to MH i2c: E2 08 00 3C 4E 80 13 01 00 00 00 00 00 07 [08:46:10]Write i2c OK [08:46:10]MH_I2C_Read... [08:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:10]Read from MH i2c: E2 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: E2 0E 00 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: E2 0E 00 3C 4E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 40 [08:46:10]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [08:46:10]wFMCommunicate OK [08:46:10]SAM_PROTO_GetShiftState done [08:46:10]FM_GetShiftState done [08:46:10]req_shift_opened done [08:46:10]requested_item shift.open_date is exist - process it [08:46:10]req_shift_open_date [08:46:10]req_shift_open_date done [08:46:10]produce_requested_data done [08:46:10]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139908,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [08:46:10]process_action_free close_receipt [08:46:10]json_value_free [08:46:10]json_value_free done [08:46:10]process_json_proto returns [08:46:10]Send response to host [08:46:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139908,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [08:46:10]free response buf [08:46:10]execute_script done [08:46:10]execute_script returns [08:46:10]free content buf [08:46:10]Sock 9.Close socket [08:46:10]Sock 9.Thread stoped [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:39]OFD Sender: No OFD packet to send [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47:44]OFD Sender: No OFD packet to send [08:47:49]OFD Sender: No OFD packet to send [08:47:54]OFD Sender: No OFD packet to send [08:47:59]OFD Sender: No OFD packet to send [08:48:04]OFD Sender: No OFD packet to send [08:48:09]OFD Sender: No OFD packet to send [08:48:14]OFD Sender: No OFD packet to send [08:48:19]OFD Sender: No OFD packet to send [08:48:24]OFD Sender: No OFD packet to send [08:48:29]OFD Sender: No OFD packet to send [08:48:34]OFD Sender: No OFD packet to send [08:48:39]OFD Sender: No OFD packet to send [08:48:44]OFD Sender: No OFD packet to send [08:48:49]OFD Sender: No OFD packet to send [08:48:54]OFD Sender: No OFD packet to send [08:48:59]OFD Sender: No OFD packet to send [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49: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]accept exits with 7 [08:50:54]New connection [08:50:54]New thread 3066510692 created [08:50:54]Thread 3066654052 joined [08:50:54]Waiting for new connection... [08:50:54] Sock 7.Parse request [08:50:54]Sock 7.Check first char [08:50:54]Sock 7.First char is OK [08:50:54]request: POST /json_proto HTTP/1.0 [08:50:54]Method: POST [08:50:54]URL: /json_proto [08:50:54]Method is POST - this is cgi request [08:50:54]url: /json_proto [08:50:54]query_string will be loaded in cgi processing [08:50:54]execute_cgi json_proto POST (null) [08:50:54]execute_cgi path=json_proto method=POST [08:50:54]POST find Content-Length [08:50:54]Host: 172.17.50.196:8080 [08:50:54]Content-Length: 632 [08:50:54]Content-Type: application/json [08:50:54] [08:50:54]POST finish read [08:50:54]Found Content-Length = 632 [08:50:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335728", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:54]execute_script... [08:50: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)335728", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:54]POST & json_proto [08:50:54]process_json_proto [08:50:54]json parsed OK: [08:50:54]protocol is kg_v1.0 [08:50:54]action value=close_receipt [08:50:54]process_action close_receipt [08:50:54]cmd_close_receipt [08:50:54]MH_GetDate [08:50:54]Write to MH i2c: F0 00 00 3D 4E 7A [08:50:54]Write i2c OK [08:50:54]MH_I2C_Read... [08:50:54]Read from MH i2c: F0 [08:50:54]MH_I2C_Read... [08:50:54]Read from MH i2c: F0 09 00 [08:50:54]MH_I2C_Read... [08:50:54]Read from MH i2c: F0 09 00 3D 4E 00 72 96 24 67 72 0D 1C 67 18 [08:50:54]GetLastDocTimeStamp 1730450771 [08:50:54]current date 1730451058 [08:50:54]FM_GetShiftState [08:50:54]SAM_PROTO_GetShiftState [08:50:54]wFMCommunicate request_size=4 [08:50:54]MH_SAM_APDU [08:50:54]CAPDU: 80 13 01 00 [08:50:54]Write to MH i2c: E2 08 00 3E 4E 80 13 01 00 00 00 00 00 09 [08:50:54]Write i2c OK [08:50:54]MH_I2C_Read... [08:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:54]Read from MH i2c: E2 [08:50:54]MH_I2C_Read... [08:50:54]Read from MH i2c: E2 0E 00 [08:50:54]MH_I2C_Read... [08:50:54]Read from MH i2c: E2 0E 00 3E 4E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 42 [08:50:54]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [08:50:54]wFMCommunicate OK [08:50:54]SAM_PROTO_GetShiftState done [08:50:54]FM_GetShiftState done [08:50:54]opened in 1730419081 [08:50:54]opened+sec_in_day 1730505481 [08:50:54]quantity*price = 10000 [08:50:54]sum+1 = 10001 [08:50:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 90 01.11.2024 08:50 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139909 ФПД: 109184301312706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T085059&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139909&fm=109184301312706&tin=02508201610067®Number=0000000000091631&sum=10000 0 [08:50:55]StoreToDocumentArchive [08:50:55]shift 558 fd 139909 [08:50:55]save to /storage/0558/doc_00139909 [08:50:55]save last doc name /storage/0558/doc_00139909 to /storage/kkm_last_doc_name [08:50:55]save OK [08:50:55]Clear old archive folders... [08:50:55]ProcessDocumentItem done err = 0, tmpTLVsize=269 [08:50:55]tlvbuf is 00A20E80 [08:50:55]SAM_PROTO_ClearQueue [08:50:55]wFMCommunicate request_size=4 [08:50:55]MH_SAM_APDU [08:50:55]CAPDU: 80 09 00 00 [08:50:55]Write to MH i2c: E2 08 00 4B 4E 80 09 00 00 00 00 00 00 0B [08:50:55]Write i2c OK [08:50:55]MH_I2C_Read... [08:50:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:55]Read from MH i2c: E2 [08:50:55]MH_I2C_Read... [08:50:55]Read from MH i2c: E2 03 00 [08:50:55]MH_I2C_Read... [08:50:55]Read from MH i2c: E2 03 00 4B 4E 00 90 00 0D [08:50:55]RAPDU: 90 00 [08:50:55]wFMCommunicate OK [08:50:55]SAM_PROTO_ClearQueue done [08:50:55]KKMCreateOFDPacket [08:50:55]OFDProtocolAddRootSTLVToBuf [08:50:55]FM_MakeSignedData [08:50:55]FM_MakeSignedData [08:50:55]SAM_PROTO_SignData [08:50:55]wFMCommunicate request_size=4 [08:50:55]MH_SAM_APDU [08:50:55]CAPDU: 80 0D 01 02 [08:50:55]Write to MH i2c: E2 08 00 4C 4E 80 0D 01 02 00 00 00 00 13 [08:50:55]Write i2c OK [08:50:55]MH_I2C_Read... [08:50:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:55]Read from MH i2c: E2 [08:50:55]MH_I2C_Read... [08:50:55]Read from MH i2c: E2 03 00 [08:50:55]MH_I2C_Read... [08:50:55]Read from MH i2c: E2 03 00 4C 4E 00 90 00 0E [08:50:55]RAPDU: 90 00 [08:50:55]wFMCommunicate OK [08:50:55]wFMCommunicate request_size=255 [08:50:55]MH_SAM_APDU [08:50:55]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 73 96 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [08:50:55]Write to MH i2c: E2 02 01 4D 4E 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 73 96 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 44 [08:50:55]Write i2c OK [08:50:55]MH_I2C_Read... [08:50:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:55]Read from MH i2c: E2 [08:50:55]MH_I2C_Read... [08:50:55]Read from MH i2c: E2 03 00 [08:50:55]MH_I2C_Read... [08:50:55]Read from MH i2c: E2 03 00 4D 4E 00 90 00 0F [08:50:55]RAPDU: 90 00 [08:50:55]wFMCommunicate OK [08:50:55]wFMCommunicate request_size=28 [08:50:55]MH_SAM_APDU [08:50:55]CAPDU: 80 0D 02 02 17 37 34 36 36 39 10 04 04 00 85 22 02 00 35 04 06 00 63 4D 73 7E AA C2 [08:50:55]Write to MH i2c: E2 1F 00 4E 4E 80 0D 02 02 17 00 37 34 36 36 39 10 04 04 00 85 22 02 00 35 04 06 00 63 4D 73 7E AA C2 00 00 61 [08:50:55]Write i2c OK [08:50:55]MH_I2C_Read... [08:50:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:55]Read from MH i2c: E2 [08:50:55]MH_I2C_Read... [08:50:55]Read from MH i2c: E2 03 00 [08:50:55]MH_I2C_Read... [08:50:55]Read from MH i2c: E2 03 00 4E 4E 00 90 00 10 [08:50:55]RAPDU: 90 00 [08:50:55]wFMCommunicate OK [08:50:55]wFMCommunicate request_size=4 [08:50:55]MH_SAM_APDU [08:50:55]CAPDU: 80 0D 03 02 [08:50:55]Write to MH i2c: E2 08 00 4F 4E 80 0D 03 02 00 00 00 00 18 [08:50:55]Write i2c OK [08:50:55]MH_I2C_Read... [08:50:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:55]Read from MH i2c: E2 [08:50:55]MH_I2C_Read... [08:50:55]Read from MH i2c: E2 0B 00 [08:50:55]MH_I2C_Read... [08:50:55]Read from MH i2c: E2 0B 00 4F 4E 00 03 D5 13 C1 81 79 18 F6 90 00 CD [08:50:55]RAPDU: 03 D5 13 C1 81 79 18 F6 90 00 [08:50:55]wFMCommunicate OK [08:50:55]SAM_PROTO_SignData done [08:50:55]FM_MakeSignedData done [08:50:55]CreateOFDProtocolMessage [08:50:55]wFMCommunicate request_size=4 [08:50:55]MH_SAM_APDU [08:50:55]CAPDU: 80 11 00 00 [08:50:55]Write to MH i2c: E2 08 00 50 4E 80 11 00 00 00 00 00 00 18 [08:50:55]Write i2c OK [08:50:55]MH_I2C_Read... [08:50:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:55]Read from MH i2c: E2 [08:50:55]MH_I2C_Read... [08:50:55]Read from MH i2c: E2 17 00 [08:50:55]MH_I2C_Read... [08:50:55]Read from MH i2c: E2 17 00 50 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 73 [08:50:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:50:55]wFMCommunicate OK [08:50:55]CreateOFDProtocolMessage done [08:50:55]OFDSenderStorePacket 139909 [08:50:55]StoreOFDPacket docnum=139909 [08:50:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 21 01 00 00 06 CD 19 01 0E 46 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 73 96 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 85 22 02 00 35 04 06 00 63 4D 73 7E AA C2 03 D5 13 C1 81 79 18 F6 [08:50:55]CheckFolder [08:50:55]dirname=/storage/ofd_packets [08:50:55]CheckFolder done [08:50:55]ProducePacketName [08:50:55]name=ofd_packets/00139909 [08:50:55]NVStorageSaveData ofd_packets/00139909 [08:50:55]File name is /storage/ofd_packets/00139909 [08:50:55]Write 319 bytes [08:50:55]NVStorageSaveData done [08:50:55]OFDSenderStorePacket done [08:50:55]KKMCreateOFDPacket done [08:50:55]NVStorageSaveData kkm_last_timestamp [08:50:55]File name is /storage/kkm_last_timestamp [08:50:55]Write 4 bytes [08:50:55]NVStorageSaveData done [08:50:55]ExternCall_PrintAddStr [08:50:55]wPrintStart [08:50:55]Write to MH i2c: 01 00 00 51 4E 9F [08:50:55]Write i2c OK [08:50:55]MH_I2C_Read... [08:50:55]Read from MH i2c: 01 [08:50:55]MH_I2C_Read... [08:50:55]Read from MH i2c: 01 07 00 [08:50:55]MH_I2C_Read... [08:50:55]Read from MH i2c: 01 07 00 51 4E 00 00 00 00 00 FF 0F B4 [08:50:55]RasterBufferAndPrint [08:50:55]line Счет N : (3)335728 [08:50:55]line ИНН: 02508201610067 [08:50:55]line Контрольно-Кассовый Чек [08:50:55]line ПРОДАЖА [08:50:55]line Товар: 4700000160358 [08:50:55]line Вода Легенда 1л [08:50:55]line 2.000 * 50.00 [08:50:55]line = 100.00 [08:50:55]line НДС 12% НСП 1% [08:50:55]line > о реализуемом товаре [08:50:55]line ИТОГО: 100.00 [08:50:55]line НСП 1% : 0.88 [08:50:55]line НДС 12% : 10.62 [08:50:55]line Наличными: 100.00 [08:50:55]line Безнал.: 0.00 [08:50:55]line Место: АЗС № 101 "Партнер Нефть" [08:50:55]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [08:50:55]line СНО: Общий режим [08:50:55]line Чек 90 01.11.2024 08:50 [08:50:55]line Смена: 558 ФФД: 1.0 [08:50:55]line ЗНМ: 0300000081 [08:50:55]line РНМ: 0000000000091631 [08:50:55]line Версия ККМ: 001 [08:50:55]line ФМ: 0000000000874669 [08:50:55]line ФД: 139909 [08:50:55]line ФПД: 109184301312706 [08:50:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T085059&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139909&fm=109184301312706&tin=02508201610067®Number=0000000000091631&sum=10000 [08:50:56]OFD Sender: Processing packet 139909 [packets to send 34, broken 33] [08:50:56]ProducePacketName [08:50:56]name=ofd_packets/00139909 [08:50:56]OFD Sender: To server: pG, [08:50:56]CommunicateWithHost lk.salyk.kg:30040 [08:50:56]ConnectInit lk.salyk.kg [08:50:56]line 0 [08:50:56]written 0, free lines is 4095 [08:50:56]Connected sock=10 [08:50:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 21 01 00 00 06 CD 19 01 0E 46 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 73 96 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 85 22 02 00 35 04 06 00 63 4D 73 7E AA C2 03 D5 13 C1 81 79 18 F6 [08:50:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 CC 37 47 00 9A 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 34 36 36 39 10 04 04 00 85 22 02 00 F4 03 04 00 1E 42 24 67 B6 04 01 00 00 DB D0 FD DC 07 99 2C 85 [08:50:56]CommunicateWithHost err = 0 [08:50:56]CheckOFDResponse [08:50:56]1017 (14) - 77093643461234 [08:50:56]1041 (16) - 0000000000874669 [08:50:56]1040 (4) - 139909 [08:50:56]1012 (4) - 01.11.2024 02:51 [08:50:56]1206 (1) - 0 [08:50:56]OFD Sender: Remove packet 139909 [08:50:56]ProducePacketName [08:50:56]name=ofd_packets/00139909 [08:50:56]NVStorageDeleteData [08:50:56]Write to MH i2c: 01 00 00 79 4E C7 [08:50:56]Write i2c OK [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: 01 [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: 01 07 00 [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: 01 07 00 79 4E 00 00 00 00 00 0C 0D E7 [08:50:56]RasterBufferAndPrint [08:50:56]line [08:50:56]line [08:50:56]line [08:50:56]line [08:50:56]line [08:50:56]written 0, free lines is 3346 [08:50:56]MH_Cut [08:50:56]Write to MH i2c: D1 01 00 80 4E 01 A0 [08:50:56]Write i2c OK [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: D1 [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: D1 01 00 [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: D1 01 00 80 4E 00 9F [08:50:56]Write to MH i2c: 01 00 00 81 4E CF [08:50:56]Write i2c OK [08:50:56]MH_I2C_Read... [08:50:57]OFD Sender: No OFD packet to send [08:50:57]*** Cut start [08:50:57]*** Partial cut [08:50:57]*** CUTSNS_PIN = 1 [08:50:57]*** CUTSNS_PIN = 0 [08:50:57]*** Brake cut motor [08:50:57]Read from MH i2c: 01 [08:50:57]MH_I2C_Read... [08:50:57]*** Stop cut motor [08:50:57]*** Cut end [08:50:57]Read from MH i2c: 01 07 00 [08:50:57]MH_I2C_Read... [08:50:57]Read from MH i2c: 01 07 00 81 4E 00 00 00 00 00 FF 0F E4 [08:50:57]process_action close_receipt done [08:50:57]requested_data is exist [08:50:57]produce_requested_data [08:50:57]requested_item fm.sn is exist - process it [08:50:57]wFMCommunicate request_size=4 [08:50:57]MH_SAM_APDU [08:50:57]CAPDU: 80 11 00 00 [08:50:57]Write to MH i2c: E2 08 00 82 4E 80 11 00 00 00 00 00 00 4A [08:50:57]Write i2c OK [08:50:57]MH_I2C_Read... [08:50:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:58]Read from MH i2c: E2 [08:50:58]MH_I2C_Read... [08:50:58]Read from MH i2c: E2 17 00 [08:50:58]MH_I2C_Read... [08:50:58]Read from MH i2c: E2 17 00 82 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A5 [08:50:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:50:58]wFMCommunicate OK [08:50:58]requested_item fd.num is exist - process it [08:50:58]SAM_PROTO_GetFieldsCounters [08:50:58]wFMCommunicate request_size=4 [08:50:58]MH_SAM_APDU [08:50:58]CAPDU: 80 13 00 00 [08:50:58]Write to MH i2c: E2 08 00 83 4E 80 13 00 00 00 00 00 00 4D [08:50:58]Write i2c OK [08:50:58]MH_I2C_Read... [08:50:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:58]Read from MH i2c: E2 [08:50:58]MH_I2C_Read... [08:50:58]Read from MH i2c: E2 62 00 [08:50:58]MH_I2C_Read... [08:50:58]Read from MH i2c: E2 62 00 83 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 85 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [08:50:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 85 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:58]wFMCommunicate OK [08:50:58]SAM_PROTO_GetFieldsCounters done [08:50:58]requested_item shift.num is exist - process it [08:50:58]requested_item shift.opened is exist - process it [08:50:58]req_shift_opened [08:50:58]FM_GetShiftState [08:50:58]SAM_PROTO_GetShiftState [08:50:58]wFMCommunicate request_size=4 [08:50:58]MH_SAM_APDU [08:50:58]CAPDU: 80 13 01 00 [08:50:58]Write to MH i2c: E2 08 00 84 4E 80 13 01 00 00 00 00 00 4F [08:50:58]Write i2c OK [08:50:58]MH_I2C_Read... [08:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:58]Read from MH i2c: E2 [08:50:58]MH_I2C_Read... [08:50:58]Read from MH i2c: E2 0E 00 [08:50:58]MH_I2C_Read... [08:50:58]Read from MH i2c: E2 0E 00 84 4E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 88 [08:50:58]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [08:50:58]wFMCommunicate OK [08:50:58]SAM_PROTO_GetShiftState done [08:50:58]FM_GetShiftState done [08:50:58]req_shift_opened done [08:50:58]requested_item shift.open_date is exist - process it [08:50:58]req_shift_open_date [08:50:58]req_shift_open_date done [08:50:58]produce_requested_data done [08:50:58]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139909,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [08:50:58]process_action_free close_receipt [08:50:58]json_value_free [08:50:58]json_value_free done [08:50:58]process_json_proto returns [08:50:58]Send response to host [08:50:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139909,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [08:50:58]free response buf [08:50:58]execute_script done [08:50:58]execute_script returns [08:50:58]free content buf [08:50:58]Sock 7.Close socket [08:50:58]Sock 7.Thread stoped [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:11]accept exits with 9 [08:52:11]New connection [08:52:11]New thread 3066654052 created [08:52:11]Thread 3066510692 joined [08:52:11]Waiting for new connection... [08:52:11] Sock 9.Parse request [08:52:11]Sock 9.Check first char [08:52:11]Sock 9.First char is OK [08:52:11]request: POST /json_proto HTTP/1.0 [08:52:11]Method: POST [08:52:11]URL: /json_proto [08:52:11]Method is POST - this is cgi request [08:52:11]url: /json_proto [08:52:11]query_string will be loaded in cgi processing [08:52:11]execute_cgi json_proto POST (null) [08:52:11]execute_cgi path=json_proto method=POST [08:52:11]POST find Content-Length [08:52:11]Host: 172.17.50.196:8080 [08:52:11]Content-Length: 678 [08:52:11]Content-Type: application/json [08:52:11] [08:52:11]POST finish read [08:52:11]Found Content-Length = 678 [08:52:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:52:11]execute_script... [08:52:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:52:11]POST & json_proto [08:52:11]process_json_proto [08:52:11]json parsed OK: [08:52:11]protocol is kg_v1.0 [08:52:11]action value=close_receipt [08:52:11]process_action close_receipt [08:52:11]cmd_close_receipt [08:52:11]MH_GetDate [08:52:11]Write to MH i2c: F0 00 00 85 4E C2 [08:52:11]Write i2c OK [08:52:11]MH_I2C_Read... [08:52:11]Read from MH i2c: F0 [08:52:11]MH_I2C_Read... [08:52:11]Read from MH i2c: F0 09 00 [08:52:11]MH_I2C_Read... [08:52:11]Read from MH i2c: F0 09 00 85 4E 00 BF 96 24 67 72 0D 1C 67 AD [08:52:11]GetLastDocTimeStamp 1730451059 [08:52:11]current date 1730451135 [08:52:11]FM_GetShiftState [08:52:11]SAM_PROTO_GetShiftState [08:52:11]wFMCommunicate request_size=4 [08:52:11]MH_SAM_APDU [08:52:11]CAPDU: 80 13 01 00 [08:52:11]Write to MH i2c: E2 08 00 86 4E 80 13 01 00 00 00 00 00 51 [08:52:11]Write i2c OK [08:52:11]MH_I2C_Read... [08:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:11]Read from MH i2c: E2 [08:52:11]MH_I2C_Read... [08:52:11]Read from MH i2c: E2 0E 00 [08:52:11]MH_I2C_Read... [08:52:11]Read from MH i2c: E2 0E 00 86 4E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 8A [08:52:11]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [08:52:11]wFMCommunicate OK [08:52:11]SAM_PROTO_GetShiftState done [08:52:11]FM_GetShiftState done [08:52:11]opened in 1730419081 [08:52:11]opened+sec_in_day 1730505481 [08:52:11]quantity*price = 50041 [08:52:11]sum+1 = 50042 [08:52:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 91 01.11.2024 08:52 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139910 ФПД: 135608567422982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T085215&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139910&fm=135608567422982&tin=02508201610067®Number=0000000000091631&sum=50000 [08:52:12]StoreToDocumentArchive [08:52:12]shift 558 fd 139910 [08:52:12]save to /storage/0558/doc_00139910 [08:52:12]save last doc name /storage/0558/doc_00139910 to /storage/kkm_last_doc_name [08:52:12]save OK [08:52:12]Clear old archive folders... [08:52:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:52:12]tlvbuf is 00B1EE20 [08:52:12]SAM_PROTO_ClearQueue [08:52:12]wFMCommunicate request_size=4 [08:52:12]MH_SAM_APDU [08:52:12]CAPDU: 80 09 00 00 [08:52:12]Write to MH i2c: E2 08 00 93 4E 80 09 00 00 00 00 00 00 53 [08:52:12]Write i2c OK [08:52:12]MH_I2C_Read... [08:52:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:12]Read from MH i2c: E2 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 03 00 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 03 00 93 4E 00 90 00 55 [08:52:12]RAPDU: 90 00 [08:52:12]wFMCommunicate OK [08:52:12]SAM_PROTO_ClearQueue done [08:52:12]KKMCreateOFDPacket [08:52:12]OFDProtocolAddRootSTLVToBuf [08:52:12]FM_MakeSignedData [08:52:12]FM_MakeSignedData [08:52:12]SAM_PROTO_SignData [08:52:12]wFMCommunicate request_size=4 [08:52:12]MH_SAM_APDU [08:52:12]CAPDU: 80 0D 01 02 [08:52:12]Write to MH i2c: E2 08 00 94 4E 80 0D 01 02 00 00 00 00 5B [08:52:12]Write i2c OK [08:52:12]MH_I2C_Read... [08:52:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:12]Read from MH i2c: E2 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 03 00 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 03 00 94 4E 00 90 00 56 [08:52:12]RAPDU: 90 00 [08:52:12]wFMCommunicate OK [08:52:12]wFMCommunicate request_size=255 [08:52:12]MH_SAM_APDU [08:52:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BF 96 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 86 22 02 00 35 04 06 00 7B [08:52:12]Write to MH i2c: E2 02 01 95 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BF 96 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 86 22 02 00 35 04 06 00 7B 00 00 7A [08:52:12]Write i2c OK [08:52:12]MH_I2C_Read... [08:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:12]Read from MH i2c: E2 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 03 00 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 03 00 95 4E 00 90 00 57 [08:52:12]RAPDU: 90 00 [08:52:12]wFMCommunicate OK [08:52:12]wFMCommunicate request_size=10 [08:52:12]MH_SAM_APDU [08:52:12]CAPDU: 80 0D 02 02 05 55 D4 7D 60 06 [08:52:12]Write to MH i2c: E2 0D 00 96 4E 80 0D 02 02 05 00 55 D4 7D 60 06 00 00 74 [08:52:12]Write i2c OK [08:52:12]MH_I2C_Read... [08:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:12]Read from MH i2c: E2 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 03 00 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 03 00 96 4E 00 90 00 58 [08:52:12]RAPDU: 90 00 [08:52:12]wFMCommunicate OK [08:52:12]wFMCommunicate request_size=4 [08:52:12]MH_SAM_APDU [08:52:12]CAPDU: 80 0D 03 02 [08:52:12]Write to MH i2c: E2 08 00 97 4E 80 0D 03 02 00 00 00 00 60 [08:52:12]Write i2c OK [08:52:12]MH_I2C_Read... [08:52:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:12]Read from MH i2c: E2 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 0B 00 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 0B 00 97 4E 00 0D FF 34 6D 7E C9 EE 8D 90 00 D0 [08:52:12]RAPDU: 0D FF 34 6D 7E C9 EE 8D 90 00 [08:52:12]wFMCommunicate OK [08:52:12]SAM_PROTO_SignData done [08:52:12]FM_MakeSignedData done [08:52:12]CreateOFDProtocolMessage [08:52:12]wFMCommunicate request_size=4 [08:52:12]MH_SAM_APDU [08:52:12]CAPDU: 80 11 00 00 [08:52:12]Write to MH i2c: E2 08 00 98 4E 80 11 00 00 00 00 00 00 60 [08:52:12]Write i2c OK [08:52:12]MH_I2C_Read... [08:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:12]Read from MH i2c: E2 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 17 00 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 17 00 98 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BB [08:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:52:12]wFMCommunicate OK [08:52:12]CreateOFDProtocolMessage done [08:52:12]OFDSenderStorePacket 139910 [08:52:12]StoreOFDPacket docnum=139910 [08:52:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 56 6E 07 01 60 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BF 96 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 86 22 02 00 35 04 06 00 7B 55 D4 7D 60 06 0D FF 34 6D 7E C9 EE 8D [08:52:12]CheckFolder [08:52:12]dirname=/storage/ofd_packets [08:52:12]CheckFolder done [08:52:12]ProducePacketName [08:52:12]name=ofd_packets/00139910 [08:52:12]NVStorageSaveData ofd_packets/00139910 [08:52:12]File name is /storage/ofd_packets/00139910 [08:52:12]Write 301 bytes [08:52:12]NVStorageSaveData done [08:52:12]OFDSenderStorePacket done [08:52:12]KKMCreateOFDPacket done [08:52:12]NVStorageSaveData kkm_last_timestamp [08:52:12]File name is /storage/kkm_last_timestamp [08:52:12]Write 4 bytes [08:52:12]NVStorageSaveData done [08:52:12]ExternCall_PrintAddStr [08:52:12]wPrintStart [08:52:12]Write to MH i2c: 01 00 00 99 4E E7 [08:52:12]Write i2c OK [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: 01 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: 01 07 00 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: 01 07 00 99 4E 00 00 00 00 00 FF 0F FC [08:52:12]RasterBufferAndPrint [08:52:12]line Счет N : (1)1095767 [08:52:12]line ИНН: 02508201610067 [08:52:12]line Контрольно-Кассовый Чек [08:52:12]line ПРОДАЖА [08:52:12]line ТРК (МРК, ГНК) : 43 [08:52:12]line Товар: 2710124130 [08:52:12]line Аи-92-К-2 [08:52:12]line 7.480 * 66.90 [08:52:12]line = 500.41 [08:52:12]line НДС 12% НСП 1% [08:52:12]line > о реализуемом товаре [08:52:12]line ОКРУГЛЕНИЕ: -0.41 [08:52:12]line ИТОГО: 500.00 [08:52:12]line Внесено: 500.00 [08:52:12]line СДАЧА: 0.00 [08:52:12]line НСП 1% : 4.43 [08:52:12]line НДС 12% : 53.14 [08:52:12]line Наличными: 500.00 [08:52:12]line Безнал.: 0.00 [08:52:12]line Место: АЗС № 101 "Партнер Нефть" [08:52:12]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [08:52:12]line СНО: Общий режим [08:52:12]line Чек 91 01.11.2024 08:52 [08:52:12]line Смена: 558 ФФД: 1.0 [08:52:12]line ЗНМ: 0300000081 [08:52:12]line РНМ: 0000000000091631 [08:52:12]line Версия ККМ: 001 [08:52:12]line ФМ: 0000000000874669 [08:52:12]line ФД: 139910 [08:52:12]line ФПД: 135608567422982 [08:52:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T085215&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139910&fm=135608567422982&tin=02508201610067®Number=0000000000091631&sum=50000 [08:52:13]written 0, free lines is 4095 [08:52:13]OFD Sender: Processing packet 139910 [packets to send 34, broken 33] [08:52:13]ProducePacketName [08:52:13]name=ofd_packets/00139910 [08:52:13]OFD Sender: To server: pG, [08:52:13]CommunicateWithHost lk.salyk.kg:30040 [08:52:13]ConnectInit lk.salyk.kg [08:52:13]Connected sock=10 [08:52:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 56 6E 07 01 60 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BF 96 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 86 22 02 00 35 04 06 00 7B 55 D4 7D 60 06 0D FF 34 6D 7E C9 EE 8D [08:52:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 BC 03 47 00 D0 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 86 22 02 00 F4 03 04 00 6B 42 24 67 B6 04 01 00 00 46 D4 14 7E A1 BD 28 76 [08:52:13]CommunicateWithHost err = 0 [08:52:13]CheckOFDResponse [08:52:13]1017 (14) - 77093643461234 [08:52:13]1041 (16) - 0000000000874669 [08:52:13]1040 (4) - 139910 [08:52:13]1012 (4) - 01.11.2024 02:52 [08:52:13]1206 (1) - 0 [08:52:13]OFD Sender: Remove packet 139910 [08:52:13]ProducePacketName [08:52:13]name=ofd_packets/00139910 [08:52:13]NVStorageDeleteData [08:52:13]Write to MH i2c: 01 00 00 C4 4E 12 [08:52:13]Write i2c OK [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: 01 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: 01 07 00 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: 01 07 00 C4 4E 00 00 00 00 00 E4 0C 09 [08:52:13]RasterBufferAndPrint [08:52:13]line [08:52:13]line [08:52:13]line [08:52:13]line [08:52:13]line [08:52:13]written 0, free lines is 3306 [08:52:13]MH_Cut [08:52:13]Write to MH i2c: D1 01 00 CB 4E 01 EB [08:52:13]Write i2c OK [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: D1 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: D1 01 00 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: D1 01 00 CB 4E 00 EA [08:52:13]Write to MH i2c: 01 00 00 CC 4E 1A [08:52:13]Write i2c OK [08:52:13]MH_I2C_Read... [08:52:13]OFD Sender: No OFD packet to send [08:52:14]*** Cut start [08:52:14]*** Partial cut [08:52:14]*** CUTSNS_PIN = 1 [08:52:14]*** CUTSNS_PIN = 0 [08:52:14]*** Brake cut motor [08:52:14]Read from MH i2c: 01 [08:52:14]MH_I2C_Read... [08:52:14]*** Stop cut motor [08:52:14]*** Cut end [08:52:14]Read from MH i2c: 01 07 00 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: 01 07 00 CC 4E 00 00 00 00 00 FF 0F 2F [08:52:14]process_action close_receipt done [08:52:14]requested_data is exist [08:52:14]produce_requested_data [08:52:14]requested_item fm.sn is exist - process it [08:52:14]wFMCommunicate request_size=4 [08:52:14]MH_SAM_APDU [08:52:14]CAPDU: 80 11 00 00 [08:52:14]Write to MH i2c: E2 08 00 CD 4E 80 11 00 00 00 00 00 00 95 [08:52:14]Write i2c OK [08:52:14]MH_I2C_Read... [08:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:14]Read from MH i2c: E2 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: E2 17 00 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: E2 17 00 CD 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F0 [08:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:52:14]wFMCommunicate OK [08:52:14]requested_item fd.num is exist - process it [08:52:14]SAM_PROTO_GetFieldsCounters [08:52:14]wFMCommunicate request_size=4 [08:52:14]MH_SAM_APDU [08:52:14]CAPDU: 80 13 00 00 [08:52:14]Write to MH i2c: E2 08 00 CE 4E 80 13 00 00 00 00 00 00 98 [08:52:14]Write i2c OK [08:52:14]MH_I2C_Read... [08:52:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:15]Read from MH i2c: E2 [08:52:15]MH_I2C_Read... [08:52:15]Read from MH i2c: E2 62 00 [08:52:15]MH_I2C_Read... [08:52:15]Read from MH i2c: E2 62 00 CE 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 86 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [08:52:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 86 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:52:15]wFMCommunicate OK [08:52:15]SAM_PROTO_GetFieldsCounters done [08:52:15]requested_item shift.num is exist - process it [08:52:15]requested_item shift.opened is exist - process it [08:52:15]req_shift_opened [08:52:15]FM_GetShiftState [08:52:15]SAM_PROTO_GetShiftState [08:52:15]wFMCommunicate request_size=4 [08:52:15]MH_SAM_APDU [08:52:15]CAPDU: 80 13 01 00 [08:52:15]Write to MH i2c: E2 08 00 CF 4E 80 13 01 00 00 00 00 00 9A [08:52:15]Write i2c OK [08:52:15]MH_I2C_Read... [08:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:15]Read from MH i2c: E2 [08:52:15]MH_I2C_Read... [08:52:15]Read from MH i2c: E2 0E 00 [08:52:15]MH_I2C_Read... [08:52:15]Read from MH i2c: E2 0E 00 CF 4E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 D3 [08:52:15]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [08:52:15]wFMCommunicate OK [08:52:15]SAM_PROTO_GetShiftState done [08:52:15]FM_GetShiftState done [08:52:15]req_shift_opened done [08:52:15]requested_item shift.open_date is exist - process it [08:52:15]req_shift_open_date [08:52:15]req_shift_open_date done [08:52:15]produce_requested_data done [08:52:15]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139910,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [08:52:15]process_action_free close_receipt [08:52:15]json_value_free [08:52:15]json_value_free done [08:52:15]process_json_proto returns [08:52:15]Send response to host [08:52:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139910,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [08:52:15]free response buf [08:52:15]execute_script done [08:52:15]execute_script returns [08:52:15]free content buf [08:52:15]Sock 9.Close socket [08:52:15]Sock 9.Thread stoped [08:52:18]OFD Sender: No OFD packet to send [08:52:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:09]OFD Sender: No OFD packet to send [08:55:14]OFD Sender: No OFD packet to send [08:55:19]OFD Sender: No OFD packet to send [08:55:24]OFD Sender: No OFD packet to send [08:55:29]OFD Sender: No OFD packet to send [08:55:34]OFD Sender: No OFD packet to send [08:55:39]OFD Sender: No OFD packet to send [08:55:44]OFD Sender: No OFD packet to send [08:55:49]OFD Sender: No OFD packet to send [08:55:54]OFD Sender: No OFD packet to send [08:55:59]OFD Sender: No OFD packet to send [08:56:04]OFD Sender: No OFD packet to send [08:56:09]OFD Sender: No OFD packet to send [08:56:14]OFD Sender: No OFD packet to send [08:56:19]OFD Sender: No OFD packet to send [08:56:24]OFD Sender: No OFD packet to send [08:56:29]OFD Sender: No OFD packet to send [08:56:34]OFD Sender: No OFD packet to send [08:56:39]OFD Sender: No OFD packet to send [08:56:44]OFD Sender: No OFD packet to send [08:56:49]OFD Sender: No OFD packet to send [08:56:54]OFD Sender: No OFD packet to send [08:56:59]OFD Sender: No OFD packet to send [08:57:04]OFD Sender: No OFD packet to send [08:57:09]OFD Sender: No OFD packet to send [08:57:14]OFD Sender: No OFD packet to send [08:57:19]OFD Sender: No OFD packet to send [08:57:24]OFD Sender: No OFD packet to send [08:57:29]OFD Sender: No OFD packet to send [08:57:34]OFD Sender: No OFD packet to send [08:57:39]OFD Sender: No OFD packet to send [08:57:44]OFD Sender: No OFD packet to send [08:57:49]OFD Sender: No OFD packet to send [08:57:54]OFD Sender: No OFD packet to send [08:57:59]OFD Sender: No OFD packet to send [08:58:04]OFD Sender: No OFD packet to send [08:58:09]OFD Sender: No OFD packet to send [08:58:14]OFD Sender: No OFD packet to send [08:58:19]OFD Sender: No OFD packet to send [08:58:24]OFD Sender: No OFD packet to send [08:58:29]OFD Sender: No OFD packet to send [08:58:34]OFD Sender: No OFD packet to send [08:58:39]OFD Sender: No OFD packet to send [08:58:44]OFD Sender: No OFD packet to send [08:58:49]OFD Sender: No OFD packet to send [08:58:54]OFD Sender: No OFD packet to send [08:58:59]OFD Sender: No OFD packet to send [08:59:04]OFD Sender: No OFD packet to send [08:59:09]OFD Sender: No OFD packet to send [08:59:14]OFD Sender: No OFD packet to send [08:59:19]OFD Sender: No OFD packet to send [08:59:24]OFD Sender: No OFD packet to send [08:59:29]OFD Sender: No OFD packet to send [08:59:34]OFD Sender: No OFD packet to send [08:59:39]OFD Sender: No OFD packet to send [08:59:44]OFD Sender: No OFD packet to send [08:59: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:21]accept exits with 7 [09:02:21]New connection [09:02:21]New thread 3066510692 created [09:02:21]Thread 3066654052 joined [09:02:21]Waiting for new connection... [09:02:21] Sock 7.Parse request [09:02:21]Sock 7.Check first char [09:02:21]Sock 7.First char is OK [09:02:21]request: POST /json_proto HTTP/1.0 [09:02:21]Method: POST [09:02:21]URL: /json_proto [09:02:21]Method is POST - this is cgi request [09:02:21]url: /json_proto [09:02:21]query_string will be loaded in cgi processing [09:02:21]execute_cgi json_proto POST (null) [09:02:21]execute_cgi path=json_proto method=POST [09:02:21]POST find Content-Length [09:02:21]Host: 172.17.50.196:8080 [09:02:21]Content-Length: 740 [09:02:21]Content-Type: application/json [09:02:21] [09:02:21]POST finish read [09:02:21]Found Content-Length = 740 [09:02:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335729", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:21]execute_script... [09:02:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335729", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:21]POST & json_proto [09:02:21]process_json_proto [09:02:21]json parsed OK: [09:02:21]protocol is kg_v1.0 [09:02:21]action value=close_receipt [09:02:21]process_action close_receipt [09:02:21]cmd_close_receipt [09:02:21]MH_GetDate [09:02:21]Write to MH i2c: F0 00 00 D0 4E 0D [09:02:21]Write i2c OK [09:02:21]MH_I2C_Read... [09:02:21]Read from MH i2c: F0 [09:02:21]MH_I2C_Read... [09:02:21]Read from MH i2c: F0 09 00 [09:02:21]MH_I2C_Read... [09:02:21]Read from MH i2c: F0 09 00 D0 4E 00 22 99 24 67 72 0D 1C 67 5E [09:02:21]GetLastDocTimeStamp 1730451135 [09:02:21]current date 1730451746 [09:02:21]FM_GetShiftState [09:02:21]SAM_PROTO_GetShiftState [09:02:21]wFMCommunicate request_size=4 [09:02:21]MH_SAM_APDU [09:02:21]CAPDU: 80 13 01 00 [09:02:21]Write to MH i2c: E2 08 00 D1 4E 80 13 01 00 00 00 00 00 9C [09:02:21]Write i2c OK [09:02:21]MH_I2C_Read... [09:02:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:21]Read from MH i2c: E2 [09:02:21]MH_I2C_Read... [09:02:21]Read from MH i2c: E2 0E 00 [09:02:21]MH_I2C_Read... [09:02:21]Read from MH i2c: E2 0E 00 D1 4E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 D5 [09:02:21]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [09:02:21]wFMCommunicate OK [09:02:21]SAM_PROTO_GetShiftState done [09:02:21]FM_GetShiftState done [09:02:21]opened in 1730419081 [09:02:21]opened+sec_in_day 1730505481 [09:02:21]quantity*price = 8000 [09:02:21]sum+1 = 8001 [09:02:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 0.00 Безнал.: 80.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 92 01.11.2024 09:02 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139911 ФПД: 142169876964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T090226&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139911&fm=142169876964&tin=02508201610067®Number=0000000000091631&sum=8000 0 [09:02:22]StoreToDocumentArchive [09:02:22]shift 558 fd 139911 [09:02:22]save to /storage/0558/doc_00139911 [09:02:22]save last doc name /storage/0558/doc_00139911 to /storage/kkm_last_doc_name [09:02:22]save OK [09:02:22]Clear old archive folders... [09:02:22]ProcessDocumentItem done err = 0, tmpTLVsize=268 [09:02:22]tlvbuf is 00A17060 [09:02:22]SAM_PROTO_ClearQueue [09:02:22]wFMCommunicate request_size=4 [09:02:22]MH_SAM_APDU [09:02:22]CAPDU: 80 09 00 00 [09:02:22]Write to MH i2c: E2 08 00 DE 4E 80 09 00 00 00 00 00 00 9E [09:02:22]Write i2c OK [09:02:22]MH_I2C_Read... [09:02:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:22]Read from MH i2c: E2 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 03 00 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 03 00 DE 4E 00 90 00 A0 [09:02:22]RAPDU: 90 00 [09:02:22]wFMCommunicate OK [09:02:22]SAM_PROTO_ClearQueue done [09:02:22]KKMCreateOFDPacket [09:02:22]OFDProtocolAddRootSTLVToBuf [09:02:22]FM_MakeSignedData [09:02:22]FM_MakeSignedData [09:02:22]SAM_PROTO_SignData [09:02:22]wFMCommunicate request_size=4 [09:02:22]MH_SAM_APDU [09:02:22]CAPDU: 80 0D 01 02 [09:02:22]Write to MH i2c: E2 08 00 DF 4E 80 0D 01 02 00 00 00 00 A6 [09:02:22]Write i2c OK [09:02:22]MH_I2C_Read... [09:02:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:22]Read from MH i2c: E2 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 03 00 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 03 00 DF 4E 00 90 00 A1 [09:02:22]RAPDU: 90 00 [09:02:22]wFMCommunicate OK [09:02:22]wFMCommunicate request_size=255 [09:02:22]MH_SAM_APDU [09:02:22]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 22 99 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [09:02:22]Write to MH i2c: E2 02 01 E0 4E 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 22 99 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 86 [09:02:22]Write i2c OK [09:02:22]MH_I2C_Read... [09:02:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:22]Read from MH i2c: E2 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 03 00 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 03 00 E0 4E 00 90 00 A2 [09:02:22]RAPDU: 90 00 [09:02:22]wFMCommunicate OK [09:02:22]wFMCommunicate request_size=27 [09:02:22]MH_SAM_APDU [09:02:22]CAPDU: 80 0D 02 02 16 34 36 36 39 10 04 04 00 87 22 02 00 35 04 06 00 00 21 19 FC 29 E4 [09:02:22]Write to MH i2c: E2 1E 00 E1 4E 80 0D 02 02 16 00 34 36 36 39 10 04 04 00 87 22 02 00 35 04 06 00 00 21 19 FC 29 E4 00 00 F3 [09:02:22]Write i2c OK [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 [09:02:22]MH_I2C_Read... [09:02:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:22]Read from MH i2c: E2 03 00 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 03 00 E1 4E 00 90 00 A3 [09:02:22]RAPDU: 90 00 [09:02:22]wFMCommunicate OK [09:02:22]wFMCommunicate request_size=4 [09:02:22]MH_SAM_APDU [09:02:22]CAPDU: 80 0D 03 02 [09:02:22]Write to MH i2c: E2 08 00 E2 4E 80 0D 03 02 00 00 00 00 AB [09:02:22]Write i2c OK [09:02:22]MH_I2C_Read... [09:02:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:22]Read from MH i2c: E2 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 0B 00 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 0B 00 E2 4E 00 1A C9 55 3E 5A 8E CE 5A 90 00 32 [09:02:22]RAPDU: 1A C9 55 3E 5A 8E CE 5A 90 00 [09:02:22]wFMCommunicate OK [09:02:22]SAM_PROTO_SignData done [09:02:22]FM_MakeSignedData done [09:02:22]CreateOFDProtocolMessage [09:02:22]wFMCommunicate request_size=4 [09:02:22]MH_SAM_APDU [09:02:22]CAPDU: 80 11 00 00 [09:02:22]Write to MH i2c: E2 08 00 E3 4E 80 11 00 00 00 00 00 00 AB [09:02:22]Write i2c OK [09:02:22]MH_I2C_Read... [09:02:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:22]Read from MH i2c: E2 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 17 00 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 17 00 E3 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 06 [09:02:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:02:22]wFMCommunicate OK [09:02:22]CreateOFDProtocolMessage done [09:02:22]OFDSenderStorePacket 139911 [09:02:22]StoreOFDPacket docnum=139911 [09:02:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 20 01 00 00 51 E5 18 01 0C 25 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 22 99 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 87 22 02 00 35 04 06 00 00 21 19 FC 29 E4 1A C9 55 3E 5A 8E CE 5A [09:02:22]CheckFolder [09:02:22]dirname=/storage/ofd_packets [09:02:22]CheckFolder done [09:02:22]ProducePacketName [09:02:22]name=ofd_packets/00139911 [09:02:22]NVStorageSaveData ofd_packets/00139911 [09:02:22]File name is /storage/ofd_packets/00139911 [09:02:22]Write 318 bytes [09:02:22]NVStorageSaveData done [09:02:22]OFDSenderStorePacket done [09:02:22]KKMCreateOFDPacket done [09:02:22]NVStorageSaveData kkm_last_timestamp [09:02:22]File name is /storage/kkm_last_timestamp [09:02:22]Write 4 bytes [09:02:22]NVStorageSaveData done [09:02:22]ExternCall_PrintAddStr [09:02:22]wPrintStart [09:02:22]Write to MH i2c: 01 00 00 E4 4E 32 [09:02:22]Write i2c OK [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: 01 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: 01 07 00 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: 01 07 00 E4 4E 00 00 00 00 00 FF 0F 47 [09:02:22]RasterBufferAndPrint [09:02:22]line Счет N : (3)335729 [09:02:22]line ИНН: 02508201610067 [09:02:22]line Контрольно-Кассовый Чек [09:02:22]line ПРОДАЖА [09:02:22]line Товар: 4870001570057 [09:02:22]line Напиток Pepsi 0,5л [09:02:22]line 1.000 * 80.00 [09:02:22]line = 80.00 [09:02:22]line НДС 12% НСП 1% [09:02:22]line > о реализуемом товаре [09:02:22]line ИТОГО: 80.00 [09:02:22]line НСП 1% : 0.71 [09:02:22]line НДС 12% : 8.50 [09:02:22]line Наличными: 0.00 [09:02:22]line Безнал.: 80.00 [09:02:22]line Место: АЗС № 101 "Партнер Нефть" [09:02:22]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [09:02:22]line СНО: Общий режим [09:02:22]line Чек 92 01.11.2024 09:02 [09:02:22]line Смена: 558 ФФД: 1.0 [09:02:22]line ЗНМ: 0300000081 [09:02:22]line РНМ: 0000000000091631 [09:02:22]line Версия ККМ: 001 [09:02:22]line Платежная система: Mbank [09:02:22]line ФМ: 0000000000874669 [09:02:22]line ФД: 139911 [09:02:22]line ФПД: 142169876964 [09:02:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T090226&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139911&fm=142169876964&tin=02508201610067®Number=0000000000091631&sum=8000 [09:02:22]line 0 [09:02:22]written 0, free lines is 4095 [09:02:23]OFD Sender: Processing packet 139911 [packets to send 34, broken 33] [09:02:23]ProducePacketName [09:02:23]name=ofd_packets/00139911 [09:02:23]OFD Sender: To server: pG, [09:02:23]CommunicateWithHost lk.salyk.kg:30040 [09:02:23]ConnectInit lk.salyk.kg [09:02:23]Connected sock=10 [09:02:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 20 01 00 00 51 E5 18 01 0C 25 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 22 99 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 87 22 02 00 35 04 06 00 00 21 19 FC 29 E4 1A C9 55 3E 5A 8E CE 5A [09:02:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 C4 9F 47 00 DD FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 87 22 02 00 F4 03 04 00 CD 44 24 67 B6 04 01 00 00 F4 0B 8D 0E 5C 61 6D 68 [09:02:23]CommunicateWithHost err = 0 [09:02:23]CheckOFDResponse [09:02:23]1017 (14) - 77093643461234 [09:02:23]1041 (16) - 0000000000874669 [09:02:23]1040 (4) - 139911 [09:02:23]1012 (4) - 01.11.2024 03:02 [09:02:23]1206 (1) - 0 [09:02:23]OFD Sender: Remove packet 139911 [09:02:23]ProducePacketName [09:02:23]name=ofd_packets/00139911 [09:02:23]NVStorageDeleteData [09:02:23]Write to MH i2c: 01 00 00 0D 4F 5C [09:02:23]Write i2c OK [09:02:23]MH_I2C_Read... [09:02:23]Read from MH i2c: 01 [09:02:23]MH_I2C_Read... [09:02:23]Read from MH i2c: 01 07 00 [09:02:23]MH_I2C_Read... [09:02:23]Read from MH i2c: 01 07 00 0D 4F 00 00 00 00 00 FC 0C 6B [09:02:23]RasterBufferAndPrint [09:02:23]line [09:02:23]line [09:02:23]line [09:02:23]line [09:02:23]line [09:02:23]written 0, free lines is 3333 [09:02:23]MH_Cut [09:02:23]Write to MH i2c: D1 01 00 14 4F 01 35 [09:02:23]Write i2c OK [09:02:23]MH_I2C_Read... [09:02:23]Read from MH i2c: D1 [09:02:23]MH_I2C_Read... [09:02:23]Read from MH i2c: D1 01 00 [09:02:23]MH_I2C_Read... [09:02:23]Read from MH i2c: D1 01 00 14 4F 00 34 [09:02:23]Write to MH i2c: 01 00 00 15 4F 64 [09:02:23]Write i2c OK [09:02:23]MH_I2C_Read... [09:02:23]OFD Sender: No OFD packet to send [09:02:24]*** Cut start [09:02:24]*** Partial cut [09:02:24]*** CUTSNS_PIN = 1 [09:02:24]*** CUTSNS_PIN = 0 [09:02:24]*** Brake cut motor [09:02:24]Read from MH i2c: 01 [09:02:24]MH_I2C_Read... [09:02:24]*** Stop cut motor [09:02:24]Read from MH i2c: 01 07 00 [09:02:24]MH_I2C_Read... [09:02:24]*** Cut end [09:02:24]Read from MH i2c: 01 07 00 15 4F 00 00 00 00 00 FF 0F 79 [09:02:24]process_action close_receipt done [09:02:24]requested_data is exist [09:02:24]produce_requested_data [09:02:24]requested_item fm.sn is exist - process it [09:02:24]wFMCommunicate request_size=4 [09:02:24]MH_SAM_APDU [09:02:24]CAPDU: 80 11 00 00 [09:02:24]Write to MH i2c: E2 08 00 16 4F 80 11 00 00 00 00 00 00 DF [09:02:24]Write i2c OK [09:02:24]MH_I2C_Read... [09:02:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:24]Read from MH i2c: E2 [09:02:24]MH_I2C_Read... [09:02:24]Read from MH i2c: E2 17 00 [09:02:24]MH_I2C_Read... [09:02:24]Read from MH i2c: E2 17 00 16 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3A [09:02:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:02:24]wFMCommunicate OK [09:02:24]requested_item fd.num is exist - process it [09:02:24]SAM_PROTO_GetFieldsCounters [09:02:24]wFMCommunicate request_size=4 [09:02:24]MH_SAM_APDU [09:02:24]CAPDU: 80 13 00 00 [09:02:24]Write to MH i2c: E2 08 00 17 4F 80 13 00 00 00 00 00 00 E2 [09:02:24]Write i2c OK [09:02:24]MH_I2C_Read... [09:02:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:24]Read from MH i2c: E2 [09:02:24]MH_I2C_Read... [09:02:24]Read from MH i2c: E2 62 00 [09:02:24]MH_I2C_Read... [09:02:24]Read from MH i2c: E2 62 00 17 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 87 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [09:02:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 87 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:24]wFMCommunicate OK [09:02:24]SAM_PROTO_GetFieldsCounters done [09:02:24]requested_item shift.num is exist - process it [09:02:24]requested_item shift.opened is exist - process it [09:02:24]req_shift_opened [09:02:24]FM_GetShiftState [09:02:24]SAM_PROTO_GetShiftState [09:02:24]wFMCommunicate request_size=4 [09:02:24]MH_SAM_APDU [09:02:24]CAPDU: 80 13 01 00 [09:02:24]Write to MH i2c: E2 08 00 18 4F 80 13 01 00 00 00 00 00 E4 [09:02:24]Write i2c OK [09:02:24]MH_I2C_Read... [09:02:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:24]Read from MH i2c: E2 [09:02:24]MH_I2C_Read... [09:02:24]Read from MH i2c: E2 0E 00 [09:02:24]MH_I2C_Read... [09:02:24]Read from MH i2c: E2 0E 00 18 4F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 1D [09:02:24]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [09:02:24]wFMCommunicate OK [09:02:24]SAM_PROTO_GetShiftState done [09:02:24]FM_GetShiftState done [09:02:24]req_shift_opened done [09:02:24]requested_item shift.open_date is exist - process it [09:02:24]req_shift_open_date [09:02:24]req_shift_open_date done [09:02:24]produce_requested_data done [09:02:24]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139911,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [09:02:24]process_action_free close_receipt [09:02:24]json_value_free [09:02:24]json_value_free done [09:02:24]process_json_proto returns [09:02:24]Send response to host [09:02:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139911,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [09:02:24]free response buf [09:02:24]execute_script done [09:02:24]execute_script returns [09:02:24]free content buf [09:02:24]Sock 7.Close socket [09:02:24]Sock 7.Thread stoped [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:48]OFD Sender: No OFD packet to send [09:02:53]OFD Sender: No OFD packet to send [09:02:58]OFD Sender: No OFD packet to send [09:03:03]OFD Sender: No OFD packet to send [09:03:08]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:18]OFD Sender: No OFD packet to send [09:03:23]OFD Sender: No OFD packet to send [09:03:28]OFD Sender: No OFD packet to send [09:03:33]OFD Sender: No OFD packet to send [09:03:38]OFD Sender: No OFD packet to send [09:03:43]OFD Sender: No OFD packet to send [09:04:58]OFD Sender: No OFD packet to send [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05: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:08]ConnectInit Can't connect to host [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:29]OFD Sender: No OFD packet to send [09:08:34]OFD Sender: No OFD packet to send [09:08:39]OFD Sender: No OFD packet to send [09:08:44]OFD Sender: No OFD packet to send [09:08:49]OFD Sender: No OFD packet to send [09:08:54]OFD Sender: No OFD packet to send [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]OFD Sender: No OFD packet to send [09:09:14]OFD Sender: No OFD packet to send [09:09:19]OFD Sender: No OFD packet to send [09:09:24]OFD Sender: No OFD packet to send [09:09:29]OFD Sender: No OFD packet to send [09:09:34]OFD Sender: No OFD packet to send [09:09:39]OFD Sender: No OFD packet to send [09:09:44]OFD Sender: No OFD packet to send [09:09:49]OFD Sender: No OFD packet to send [09:09:54]OFD Sender: No OFD packet to send [09:09:59]OFD Sender: No OFD packet to send [09:10:04]OFD Sender: No OFD packet to send [09:10:09]OFD Sender: No OFD packet to send [09:10:14]OFD Sender: No OFD packet to send [09:10:19]OFD Sender: No OFD packet to send [09:10:24]OFD Sender: No OFD packet to send [09:10:29]OFD Sender: No OFD packet to send [09:10:34]OFD Sender: No OFD packet to send [09:10:39]OFD Sender: No OFD packet to send [09:10:44]OFD Sender: No OFD packet to send [09:10:49]OFD Sender: No OFD packet to send [09:10:54]OFD Sender: No OFD packet to send [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:34]OFD Sender: No OFD packet to send [09:11:39]OFD Sender: No OFD packet to send [09:11:44]OFD Sender: No OFD packet to send [09:11:49]OFD Sender: No OFD packet to send [09:11:54]OFD Sender: No OFD packet to send [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:44]OFD Sender: No OFD packet to send [09:12:49]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:44]OFD Sender: No OFD packet to send [09:15:49]OFD Sender: No OFD packet to send [09:15:54]OFD Sender: No OFD packet to send [09:15:59]OFD Sender: No OFD packet to send [09:16:04]OFD Sender: No OFD packet to send [09:16:09]OFD Sender: No OFD packet to send [09:16:14]OFD Sender: No OFD packet to send [09:16:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:34]OFD Sender: No OFD packet to send [09:16:39]OFD Sender: No OFD packet to send [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:54]OFD Sender: No OFD packet to send [09:16:59]OFD Sender: No OFD packet to send [09:17:04]OFD Sender: No OFD packet to send [09:17:09]OFD Sender: No OFD packet to send [09:17:14]OFD Sender: No OFD packet to send [09:17:19]OFD Sender: No OFD packet to send [09:17:24]OFD Sender: No OFD packet to send [09:17:29]OFD Sender: No OFD packet to send [09:17:34]OFD Sender: No OFD packet to send [09:17:39]OFD Sender: No OFD packet to send [09:17:44]OFD Sender: No OFD packet to send [09:17:49]OFD Sender: No OFD packet to send [09:17:54]OFD Sender: No OFD packet to send [09:17:59]OFD Sender: No OFD packet to send [09:18:04]OFD Sender: No OFD packet to send [09:18:09]OFD Sender: No OFD packet to send [09:18:14]OFD Sender: No OFD packet to send [09:18:19]OFD Sender: No OFD packet to send [09:18:24]OFD Sender: No OFD packet to send [09:18:29]OFD Sender: No OFD packet to send [09:18:34]OFD Sender: No OFD packet to send [09:18:39]OFD Sender: No OFD packet to send [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:59]OFD Sender: No OFD packet to send [09:19:04]OFD Sender: No OFD packet to send [09:19:09]OFD Sender: No OFD packet to send [09:19:14]OFD Sender: No OFD packet to send [09:19:19]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:34]OFD Sender: No OFD packet to send [09:21:39]OFD Sender: No OFD packet to send [09:21:44]OFD Sender: No OFD packet to send [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:24]OFD Sender: No OFD packet to send [09:22:29]OFD Sender: No OFD packet to send [09:22:34]OFD Sender: No OFD packet to send [09:22:39]OFD Sender: No OFD packet to send [09:22:44]OFD Sender: No OFD packet to send [09:22:49]OFD Sender: No OFD packet to send [09:22:54]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:09]OFD Sender: No OFD packet to send [09:23:14]OFD Sender: No OFD packet to send [09:23:19]OFD Sender: No OFD packet to send [09:23:24]OFD Sender: No OFD packet to send [09:23:29]OFD Sender: No OFD packet to send [09:23:34]OFD Sender: No OFD packet to send [09:23:39]OFD Sender: No OFD packet to send [09:23:44]OFD Sender: No OFD packet to send [09:23:49]OFD Sender: No OFD packet to send [09:23:54]OFD Sender: No OFD packet to send [09:23:59]OFD Sender: No OFD packet to send [09:24:04]OFD Sender: No OFD packet to send [09:24:09]OFD Sender: No OFD packet to send [09:24:14]OFD Sender: No OFD packet to send [09:24:19]OFD Sender: No OFD packet to send [09:24:24]OFD Sender: No OFD packet to send [09:24:29]OFD Sender: No OFD packet to send [09:24:34]OFD Sender: No OFD packet to send [09:24:39]OFD Sender: No OFD packet to send [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:09]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:30]OFD Sender: No OFD packet to send [09:28:35]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36:40]OFD Sender: No OFD packet to send [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:05]OFD Sender: No OFD packet to send [09:37:10]OFD Sender: No OFD packet to send [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:30]OFD Sender: No OFD packet to send [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:40:00]OFD Sender: No OFD packet to send [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:10]OFD Sender: No OFD packet to send [09:41:15]OFD Sender: No OFD packet to send [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:30]OFD Sender: No OFD packet to send [09:41:35]OFD Sender: No OFD packet to send [09:41:40]OFD Sender: No OFD packet to send [09:41:45]OFD Sender: No OFD packet to send [09:41:50]OFD Sender: No OFD packet to send [09:41:55]OFD Sender: No OFD packet to send [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:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:56]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:26]OFD Sender: No OFD packet to send [09:46:31]OFD Sender: No OFD packet to send [09:46:36]OFD Sender: No OFD packet to send [09:46:41]OFD Sender: No OFD packet to send [09:46:46]OFD Sender: No OFD packet to send [09:46:51]OFD Sender: No OFD packet to send [09:46:56]OFD Sender: No OFD packet to send [09:47:01]OFD Sender: No OFD packet to send [09:47:06]OFD Sender: No OFD packet to send [09:47:11]OFD Sender: No OFD packet to send [09:47:16]OFD Sender: No OFD packet to send [09:47:21]OFD Sender: No OFD packet to send [09:47:26]OFD Sender: No OFD packet to send [09:47:31]OFD Sender: No OFD packet to send [09:47:36]OFD Sender: No OFD packet to send [09:47:41]OFD Sender: No OFD packet to send [09:47:46]OFD Sender: No OFD packet to send [09:47:51]OFD Sender: No OFD packet to send [09:47:56]OFD Sender: No OFD packet to send [09:48:01]OFD Sender: No OFD packet to send [09:48:06]OFD Sender: No OFD packet to send [09:48:11]OFD Sender: No OFD packet to send [09:48:16]OFD Sender: No OFD packet to send [09:48:21]OFD Sender: No OFD packet to send [09:48:26]OFD Sender: No OFD packet to send [09:48:31]OFD Sender: No OFD packet to send [09:48:36]OFD Sender: No OFD packet to send [09:48:41]OFD Sender: No OFD packet to send [09:48:46]OFD Sender: No OFD packet to send [09:48:51]OFD Sender: No OFD packet to send [09:48:56]OFD Sender: No OFD packet to send [09:49:01]OFD Sender: No OFD packet to send [09:49:06]OFD Sender: No OFD packet to send [09:49:11]OFD Sender: No OFD packet to send [09:49:16]OFD Sender: No OFD packet to send [09:49:21]OFD Sender: No OFD packet to send [09:49:26]OFD Sender: No OFD packet to send [09:49:31]OFD Sender: No OFD packet to send [09:49:36]OFD Sender: No OFD packet to send [09:49:41]OFD Sender: No OFD packet to send [09:49:46]OFD Sender: No OFD packet to send [09:49:51]OFD Sender: No OFD packet to send [09:49:56]OFD Sender: No OFD packet to send [09:50:01]OFD Sender: No OFD packet to send [09:50:06]OFD Sender: No OFD packet to send [09:50:11]OFD Sender: No OFD packet to send [09:50:16]OFD Sender: No OFD packet to send [09:50:21]OFD Sender: No OFD packet to send [09:50:26]OFD Sender: No OFD packet to send [09:50:31]OFD Sender: No OFD packet to send [09:50:36]OFD Sender: No OFD packet to send [09:50:41]OFD Sender: No OFD packet to send [09:50:46]OFD Sender: No OFD packet to send [09:50:51]OFD Sender: No OFD packet to send [09:50:56]OFD Sender: No OFD packet to send [09:51:01]OFD Sender: No OFD packet to send [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:16]OFD Sender: No OFD packet to send [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:36]OFD Sender: No OFD packet to send [09:51:41]OFD Sender: No OFD packet to send [09:51:46]OFD Sender: No OFD packet to send [09:51:51]OFD Sender: No OFD packet to send [09:51:56]OFD Sender: No OFD packet to send [09:52:01]OFD Sender: No OFD packet to send [09:52:06]OFD Sender: No OFD packet to send [09:52:11]OFD Sender: No OFD packet to send [09:52:16]OFD Sender: No OFD packet to send [09:52:21]OFD Sender: No OFD packet to send [09:52:26]OFD Sender: No OFD packet to send [09:52:31]OFD Sender: No OFD packet to send [09:52:36]OFD Sender: No OFD packet to send [09:52:41]OFD Sender: No OFD packet to send [09:52:46]OFD Sender: No OFD packet to send [09:52:51]OFD Sender: No OFD packet to send [09:52:56]OFD Sender: No OFD packet to send [09:53:01]OFD Sender: No OFD packet to send [09:53:06]OFD Sender: No OFD packet to send [09:53:11]OFD Sender: No OFD packet to send [09:53:16]OFD Sender: No OFD packet to send [09:53:19]accept exits with 9 [09:53:19]New connection [09:53:19]New thread 3066654052 created [09:53:19]Thread 3066510692 joined [09:53:19]Waiting for new connection... [09:53:19] Sock 9.Parse request [09:53:19]Sock 9.Check first char [09:53:19]Sock 9.First char is OK [09:53:19]request: POST /json_proto HTTP/1.0 [09:53:19]Method: POST [09:53:19]URL: /json_proto [09:53:19]Method is POST - this is cgi request [09:53:19]url: /json_proto [09:53:19]query_string will be loaded in cgi processing [09:53:19]execute_cgi json_proto POST (null) [09:53:19]execute_cgi path=json_proto method=POST [09:53:19]POST find Content-Length [09:53:19]Host: 172.17.50.196:8080 [09:53:19]Content-Length: 632 [09:53:19]Content-Type: application/json [09:53:19] [09:53:19]POST finish read [09:53:19]Found Content-Length = 632 [09:53:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335730", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:19]execute_script... [09: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)335730", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:19]POST & json_proto [09:53:19]process_json_proto [09:53:19]json parsed OK: [09:53:19]protocol is kg_v1.0 [09:53:19]action value=close_receipt [09:53:19]process_action close_receipt [09:53:19]cmd_close_receipt [09:53:19]MH_GetDate [09:53:19]Write to MH i2c: F0 00 00 19 4F 57 [09:53:19]Write i2c OK [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: F0 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: F0 09 00 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: F0 09 00 19 4F 00 14 A5 24 67 72 0D 1C 67 A6 [09:53:19]GetLastDocTimeStamp 1730451746 [09:53:19]current date 1730454804 [09:53:19]FM_GetShiftState [09:53:19]SAM_PROTO_GetShiftState [09:53:19]wFMCommunicate request_size=4 [09:53:19]MH_SAM_APDU [09:53:19]CAPDU: 80 13 01 00 [09:53:19]Write to MH i2c: E2 08 00 1A 4F 80 13 01 00 00 00 00 00 E6 [09:53:19]Write i2c OK [09:53:19]MH_I2C_Read... [09:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:19]Read from MH i2c: E2 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: E2 0E 00 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: E2 0E 00 1A 4F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 1F [09:53:19]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [09:53:19]wFMCommunicate OK [09:53:19]SAM_PROTO_GetShiftState done [09:53:19]FM_GetShiftState done [09:53:19]opened in 1730419081 [09:53:19]opened+sec_in_day 1730505481 [09:53:19]quantity*price = 10000 [09:53:19]sum+1 = 10001 [09:53:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 93 01.11.2024 09:53 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139912 ФПД: 101804160304520 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T095324&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139912&fm=101804160304520&tin=02508201610067®Number=0000000000091631&sum=10000 0 [09:53:20]StoreToDocumentArchive [09:53:20]shift 558 fd 139912 [09:53:20]save to /storage/0558/doc_00139912 [09:53:20]save last doc name /storage/0558/doc_00139912 to /storage/kkm_last_doc_name [09:53:20]save OK [09:53:20]Clear old archive folders... [09:53:20]ProcessDocumentItem done err = 0, tmpTLVsize=269 [09:53:20]tlvbuf is 00A3B700 [09:53:20]SAM_PROTO_ClearQueue [09:53:20]wFMCommunicate request_size=4 [09:53:20]MH_SAM_APDU [09:53:20]CAPDU: 80 09 00 00 [09:53:20]Write to MH i2c: E2 08 00 27 4F 80 09 00 00 00 00 00 00 E8 [09:53:20]Write i2c OK [09:53:20]MH_I2C_Read... [09:53:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:20]Read from MH i2c: E2 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 03 00 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 03 00 27 4F 00 90 00 EA [09:53:20]RAPDU: 90 00 [09:53:20]wFMCommunicate OK [09:53:20]SAM_PROTO_ClearQueue done [09:53:20]KKMCreateOFDPacket [09:53:20]OFDProtocolAddRootSTLVToBuf [09:53:20]FM_MakeSignedData [09:53:20]FM_MakeSignedData [09:53:20]SAM_PROTO_SignData [09:53:20]wFMCommunicate request_size=4 [09:53:20]MH_SAM_APDU [09:53:20]CAPDU: 80 0D 01 02 [09:53:20]Write to MH i2c: E2 08 00 28 4F 80 0D 01 02 00 00 00 00 F0 [09:53:20]Write i2c OK [09:53:20]MH_I2C_Read... [09:53:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:20]Read from MH i2c: E2 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 03 00 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 03 00 28 4F 00 90 00 EB [09:53:20]RAPDU: 90 00 [09:53:20]wFMCommunicate OK [09:53:20]wFMCommunicate request_size=255 [09:53:20]MH_SAM_APDU [09:53:20]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 14 A5 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [09:53:20]Write to MH i2c: E2 02 01 29 4F 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 14 A5 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 D4 [09:53:20]Write i2c OK [09:53:20]MH_I2C_Read... [09:53:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:20]Read from MH i2c: E2 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 03 00 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 03 00 29 4F 00 90 00 EC [09:53:20]RAPDU: 90 00 [09:53:20]wFMCommunicate OK [09:53:20]wFMCommunicate request_size=28 [09:53:20]MH_SAM_APDU [09:53:20]CAPDU: 80 0D 02 02 17 37 34 36 36 39 10 04 04 00 88 22 02 00 35 04 06 00 5C 97 20 CF C5 88 [09:53:20]Write to MH i2c: E2 1F 00 2A 4F 80 0D 02 02 17 00 37 34 36 36 39 10 04 04 00 88 22 02 00 35 04 06 00 5C 97 20 CF C5 88 00 00 63 [09:53:20]Write i2c OK [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 [09:53:20]MH_I2C_Read... [09:53:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:20]Read from MH i2c: E2 03 00 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 03 00 2A 4F 00 90 00 ED [09:53:20]RAPDU: 90 00 [09:53:20]wFMCommunicate OK [09:53:20]wFMCommunicate request_size=4 [09:53:20]MH_SAM_APDU [09:53:20]CAPDU: 80 0D 03 02 [09:53:20]Write to MH i2c: E2 08 00 2B 4F 80 0D 03 02 00 00 00 00 F5 [09:53:20]Write i2c OK [09:53:20]MH_I2C_Read... [09:53:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:20]Read from MH i2c: E2 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 0B 00 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 0B 00 2B 4F 00 1D 05 35 74 0B 96 54 74 90 00 2A [09:53:20]RAPDU: 1D 05 35 74 0B 96 54 74 90 00 [09:53:20]wFMCommunicate OK [09:53:20]SAM_PROTO_SignData done [09:53:20]FM_MakeSignedData done [09:53:20]CreateOFDProtocolMessage [09:53:20]wFMCommunicate request_size=4 [09:53:20]MH_SAM_APDU [09:53:20]CAPDU: 80 11 00 00 [09:53:20]Write to MH i2c: E2 08 00 2C 4F 80 11 00 00 00 00 00 00 F5 [09:53:20]Write i2c OK [09:53:20]MH_I2C_Read... [09:53:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:20]Read from MH i2c: E2 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 17 00 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 17 00 2C 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 50 [09:53:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:53:20]wFMCommunicate OK [09:53:20]CreateOFDProtocolMessage done [09:53:20]OFDSenderStorePacket 139912 [09:53:20]StoreOFDPacket docnum=139912 [09:53:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 21 01 00 00 E4 8A 19 01 F4 C3 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 14 A5 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 88 22 02 00 35 04 06 00 5C 97 20 CF C5 88 1D 05 35 74 0B 96 54 74 [09:53:20]CheckFolder [09:53:20]dirname=/storage/ofd_packets [09:53:20]CheckFolder done [09:53:20]ProducePacketName [09:53:20]name=ofd_packets/00139912 [09:53:20]NVStorageSaveData ofd_packets/00139912 [09:53:20]File name is /storage/ofd_packets/00139912 [09:53:20]Write 319 bytes [09:53:20]NVStorageSaveData done [09:53:20]OFDSenderStorePacket done [09:53:20]KKMCreateOFDPacket done [09:53:20]NVStorageSaveData kkm_last_timestamp [09:53:20]File name is /storage/kkm_last_timestamp [09:53:20]Write 4 bytes [09:53:20]NVStorageSaveData done [09:53:20]ExternCall_PrintAddStr [09:53:20]wPrintStart [09:53:20]Write to MH i2c: 01 00 00 2D 4F 7C [09:53:20]Write i2c OK [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: 01 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: 01 07 00 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: 01 07 00 2D 4F 00 00 00 00 00 FF 0F 91 [09:53:20]RasterBufferAndPrint [09:53:20]line Счет N : (3)335730 [09:53:20]line ИНН: 02508201610067 [09:53:20]line Контрольно-Кассовый Чек [09:53:20]line ПРОДАЖА [09:53:20]line Товар: 4700000160358 [09:53:20]line Вода Легенда 1л [09:53:20]line 2.000 * 50.00 [09:53:20]line = 100.00 [09:53:20]line НДС 12% НСП 1% [09:53:20]line > о реализуемом товаре [09:53:20]line ИТОГО: 100.00 [09:53:20]line НСП 1% : 0.88 [09:53:20]line НДС 12% : 10.62 [09:53:20]line Наличными: 100.00 [09:53:20]line Безнал.: 0.00 [09:53:20]line Место: АЗС № 101 "Партнер Нефть" [09:53:20]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [09:53:20]line СНО: Общий режим [09:53:20]line Чек 93 01.11.2024 09:53 [09:53:20]line Смена: 558 ФФД: 1.0 [09:53:20]line ЗНМ: 0300000081 [09:53:20]line РНМ: 0000000000091631 [09:53:20]line Версия ККМ: 001 [09:53:20]line ФМ: 0000000000874669 [09:53:20]line ФД: 139912 [09:53:20]line ФПД: 101804160304520 [09:53:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T095324&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139912&fm=101804160304520&tin=02508201610067®Number=0000000000091631&sum=10000 [09:53:21]line 0 [09:53:21]OFD Sender: Processing packet 139912 [packets to send 34, broken 33] [09:53:21]ProducePacketName [09:53:21]name=ofd_packets/00139912 [09:53:21]OFD Sender: To server: pG, [09:53:21]CommunicateWithHost lk.salyk.kg:30040 [09:53:21]ConnectInit lk.salyk.kg [09:53:21]written 0, free lines is 4095 [09:53:21]Connected sock=10 [09:53:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 21 01 00 00 E4 8A 19 01 F4 C3 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 14 A5 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 88 22 02 00 35 04 06 00 5C 97 20 CF C5 88 1D 05 35 74 0B 96 54 74 [09:53:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 50 C4 47 00 DE 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 34 36 36 39 10 04 04 00 88 22 02 00 F4 03 04 00 BF 50 24 67 B6 04 01 00 00 6E BD 55 F9 91 0B 9C C1 [09:53:21]CommunicateWithHost err = 0 [09:53:21]CheckOFDResponse [09:53:21]1017 (14) - 77093643461234 [09:53:21]1041 (16) - 0000000000874669 [09:53:21]1040 (4) - 139912 [09:53:21]1012 (4) - 01.11.2024 03:53 [09:53:21]1206 (1) - 0 [09:53:21]OFD Sender: Remove packet 139912 [09:53:21]ProducePacketName [09:53:21]name=ofd_packets/00139912 [09:53:21]NVStorageDeleteData [09:53:21]Write to MH i2c: 01 00 00 55 4F A4 [09:53:21]Write i2c OK [09:53:21]MH_I2C_Read... [09:53:21]Read from MH i2c: 01 [09:53:21]MH_I2C_Read... [09:53:21]Read from MH i2c: 01 07 00 [09:53:21]MH_I2C_Read... [09:53:21]Read from MH i2c: 01 07 00 55 4F 00 00 00 00 00 12 0D CA [09:53:21]RasterBufferAndPrint [09:53:21]line [09:53:21]line [09:53:21]line [09:53:21]line [09:53:21]line [09:53:21]written 0, free lines is 3354 [09:53:21]MH_Cut [09:53:21]Write to MH i2c: D1 01 00 5C 4F 01 7D [09:53:21]Write i2c OK [09:53:21]MH_I2C_Read... [09:53:21]Read from MH i2c: D1 [09:53:21]MH_I2C_Read... [09:53:21]Read from MH i2c: D1 01 00 [09:53:21]MH_I2C_Read... [09:53:21]Read from MH i2c: D1 01 00 5C 4F 00 7C [09:53:21]Write to MH i2c: 01 00 00 5D 4F AC [09:53:21]Write i2c OK [09:53:21]MH_I2C_Read... [09:53:21]OFD Sender: No OFD packet to send [09:53:22]*** Cut start [09:53:22]*** Partial cut [09:53:22]*** CUTSNS_PIN = 1 [09:53:22]*** CUTSNS_PIN = 0 [09:53:22]*** Brake cut motor [09:53:22]Read from MH i2c: 01 [09:53:22]MH_I2C_Read... [09:53:22]*** Stop cut motor [09:53:22]*** Cut end [09:53:22]Read from MH i2c: 01 07 00 [09:53:22]MH_I2C_Read... [09:53:22]Read from MH i2c: 01 07 00 5D 4F 00 00 00 00 00 FF 0F C1 [09:53:22]process_action close_receipt done [09:53:22]requested_data is exist [09:53:22]produce_requested_data [09:53:22]requested_item fm.sn is exist - process it [09:53:22]wFMCommunicate request_size=4 [09:53:22]MH_SAM_APDU [09:53:22]CAPDU: 80 11 00 00 [09:53:22]Write to MH i2c: E2 08 00 5E 4F 80 11 00 00 00 00 00 00 27 [09:53:22]Write i2c OK [09:53:22]MH_I2C_Read... [09:53:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:22]Read from MH i2c: E2 [09:53:22]MH_I2C_Read... [09:53:22]Read from MH i2c: E2 17 00 [09:53:22]MH_I2C_Read... [09:53:22]Read from MH i2c: E2 17 00 5E 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 82 [09:53:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:53:22]wFMCommunicate OK [09:53:22]requested_item fd.num is exist - process it [09:53:22]SAM_PROTO_GetFieldsCounters [09:53:22]wFMCommunicate request_size=4 [09:53:22]MH_SAM_APDU [09:53:22]CAPDU: 80 13 00 00 [09:53:22]Write to MH i2c: E2 08 00 5F 4F 80 13 00 00 00 00 00 00 2A [09:53:22]Write i2c OK [09:53:22]MH_I2C_Read... [09:53:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:23]Read from MH i2c: E2 [09:53:23]MH_I2C_Read... [09:53:23]Read from MH i2c: E2 62 00 [09:53:23]MH_I2C_Read... [09:53:23]Read from MH i2c: E2 62 00 5F 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 88 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [09:53:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 88 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:23]wFMCommunicate OK [09:53:23]SAM_PROTO_GetFieldsCounters done [09:53:23]requested_item shift.num is exist - process it [09:53:23]requested_item shift.opened is exist - process it [09:53:23]req_shift_opened [09:53:23]FM_GetShiftState [09:53:23]SAM_PROTO_GetShiftState [09:53:23]wFMCommunicate request_size=4 [09:53:23]MH_SAM_APDU [09:53:23]CAPDU: 80 13 01 00 [09:53:23]Write to MH i2c: E2 08 00 60 4F 80 13 01 00 00 00 00 00 2C [09:53:23]Write i2c OK [09:53:23]MH_I2C_Read... [09:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:23]Read from MH i2c: E2 [09:53:23]MH_I2C_Read... [09:53:23]Read from MH i2c: E2 0E 00 [09:53:23]MH_I2C_Read... [09:53:23]Read from MH i2c: E2 0E 00 60 4F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 65 [09:53:23]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [09:53:23]wFMCommunicate OK [09:53:23]SAM_PROTO_GetShiftState done [09:53:23]FM_GetShiftState done [09:53:23]req_shift_opened done [09:53:23]requested_item shift.open_date is exist - process it [09:53:23]req_shift_open_date [09:53:23]req_shift_open_date done [09:53:23]produce_requested_data done [09:53:23]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139912,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [09:53:23]process_action_free close_receipt [09:53:23]json_value_free [09:53:23]json_value_free done [09:53:23]process_json_proto returns [09:53:23]Send response to host [09:53:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139912,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [09:53:23]free response buf [09:53:23]execute_script done [09:53:23]execute_script returns [09:53:23]free content buf [09:53:23]Sock 9.Close socket [09:53:23]Sock 9.Thread stoped [09:53:26]OFD Sender: No OFD packet to send [09:53:31]OFD Sender: No OFD packet to send [09:53:36]OFD Sender: No OFD packet to send [09:53:41]OFD Sender: No OFD packet to send [09:53:46]OFD Sender: No OFD packet to send [09:53:51]OFD Sender: No OFD packet to send [09:53:56]OFD Sender: No OFD packet to send [09:54:01]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:19]accept exits with 7 [10:02:19]New connection [10:02:19]New thread 3066510692 created [10:02:19]Thread 3066654052 joined [10:02:19]Waiting for new connection... [10:02:19] Sock 7.Parse request [10:02:19]Sock 7.Check first char [10:02:19]Sock 7.First char is OK [10:02:19]request: POST /json_proto HTTP/1.0 [10:02:19]Method: POST [10:02:19]URL: /json_proto [10:02:19]Method is POST - this is cgi request [10:02:19]url: /json_proto [10:02:19]query_string will be loaded in cgi processing [10:02:19]execute_cgi json_proto POST (null) [10:02:19]execute_cgi path=json_proto method=POST [10:02:19]POST find Content-Length [10:02:19]Host: 172.17.50.196:8080 [10:02:19]Content-Length: 932 [10:02:19]Content-Type: application/json [10:02:19] [10:02:19]POST finish read [10:02:19]Found Content-Length = 932 [10:02:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335734", "tax_sys" : 0, "items" : [ { "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744317", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Camel Yellow", "price" : 154.00, "quantity" : 1.000, "sum" : 154.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" ] } } [10:02:19]execute_script... [10:02: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)335734", "tax_sys" : 0, "items" : [ { "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744317", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Camel Yellow", "price" : 154.00, "quantity" : 1.000, "sum" : 154.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" ] } } [10:02:19]POST & json_proto [10:02:19]process_json_proto [10:02:19]json parsed OK: [10:02:19]protocol is kg_v1.0 [10:02:19]action value=close_receipt [10:02:19]process_action close_receipt [10:02:19]cmd_close_receipt [10:02:19]MH_GetDate [10:02:19]Write to MH i2c: F0 00 00 61 4F 9F [10:02:19]Write i2c OK [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: F0 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: F0 09 00 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: F0 09 00 61 4F 00 30 A7 24 67 72 0D 1C 67 0C [10:02:19]GetLastDocTimeStamp 1730454804 [10:02:19]current date 1730455344 [10:02:19]FM_GetShiftState [10:02:19]SAM_PROTO_GetShiftState [10:02:19]wFMCommunicate request_size=4 [10:02:19]MH_SAM_APDU [10:02:19]CAPDU: 80 13 01 00 [10:02:19]Write to MH i2c: E2 08 00 62 4F 80 13 01 00 00 00 00 00 2E [10:02:19]Write i2c OK [10:02:19]MH_I2C_Read... [10:02:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:19]Read from MH i2c: E2 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: E2 0E 00 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: E2 0E 00 62 4F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 67 [10:02:19]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:02:19]wFMCommunicate OK [10:02:19]SAM_PROTO_GetShiftState done [10:02:19]FM_GetShiftState done [10:02:19]opened in 1730419081 [10:02:19]opened+sec_in_day 1730505481 [10:02:19]quantity*price = 12500 [10:02:19]sum+1 = 12501 [10:02:19]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48744317 Сигареты Camel Yellow 1.000 * 154.00 = 154.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 279.00 НСП 1% : 2.47 НДС 12% : 29.62 Наличными: 279.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 94 01.11.2024 10:02 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139913 ФПД: 220728992421709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T100224&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139913&fm=220728992421709&tin=02508201610067®Number=0000000000091631&sum=27900 0 [10:02:20]StoreToDocumentArchive [10:02:20]shift 558 fd 139913 [10:02:20]save to /storage/0558/doc_00139913 [10:02:20]save last doc name /storage/0558/doc_00139913 to /storage/kkm_last_doc_name [10:02:20]save OK [10:02:20]Clear old archive folders... [10:02:20]ProcessDocumentItem done err = 0, tmpTLVsize=394 [10:02:20]tlvbuf is B6F0F4C0 [10:02:20]SAM_PROTO_ClearQueue [10:02:20]wFMCommunicate request_size=4 [10:02:20]MH_SAM_APDU [10:02:20]CAPDU: 80 09 00 00 [10:02:20]Write to MH i2c: E2 08 00 6F 4F 80 09 00 00 00 00 00 00 30 [10:02:20]Write i2c OK [10:02:20]MH_I2C_Read... [10:02:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:20]Read from MH i2c: E2 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 03 00 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 03 00 6F 4F 00 90 00 32 [10:02:20]RAPDU: 90 00 [10:02:20]wFMCommunicate OK [10:02:20]SAM_PROTO_ClearQueue done [10:02:20]KKMCreateOFDPacket [10:02:20]OFDProtocolAddRootSTLVToBuf [10:02:20]FM_MakeSignedData [10:02:20]FM_MakeSignedData [10:02:20]SAM_PROTO_SignData [10:02:20]wFMCommunicate request_size=4 [10:02:20]MH_SAM_APDU [10:02:20]CAPDU: 80 0D 01 02 [10:02:20]Write to MH i2c: E2 08 00 70 4F 80 0D 01 02 00 00 00 00 38 [10:02:20]Write i2c OK [10:02:20]MH_I2C_Read... [10:02:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:20]Read from MH i2c: E2 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 03 00 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 03 00 70 4F 00 90 00 33 [10:02:20]RAPDU: 90 00 [10:02:20]wFMCommunicate OK [10:02:20]wFMCommunicate request_size=255 [10:02:20]MH_SAM_APDU [10:02:20]CAPDU: 80 0D 02 02 FA 03 00 8A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 6C 00 00 00 00 EB 03 26 00 EF 03 0F [10:02:20]Write to MH i2c: E2 02 01 71 4F 80 0D 02 02 FA 00 03 00 8A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 BD [10:02:20]Write i2c OK [10:02:20]MH_I2C_Read... [10:02:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:20]Read from MH i2c: E2 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 03 00 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 03 00 71 4F 00 90 00 34 [10:02:20]RAPDU: 90 00 [10:02:20]wFMCommunicate OK [10:02:20]wFMCommunicate request_size=153 [10:02:20]MH_SAM_APDU [10:02:20]CAPDU: 80 0D 02 02 94 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 5E 00 00 00 F4 03 04 00 30 A7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 89 22 02 00 35 04 06 00 C8 C0 79 2F 57 4D [10:02:20]Write to MH i2c: E2 9C 00 72 4F 80 0D 02 02 94 00 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 5E 00 00 00 F4 03 04 00 30 A7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 89 22 02 00 35 04 06 00 C8 C0 79 2F 57 4D 00 00 FB [10:02:20]Write i2c OK [10:02:20]MH_I2C_Read... [10:02:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:20]Read from MH i2c: E2 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 03 00 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 03 00 72 4F 00 90 00 35 [10:02:20]RAPDU: 90 00 [10:02:20]wFMCommunicate OK [10:02:20]wFMCommunicate request_size=4 [10:02:20]MH_SAM_APDU [10:02:20]CAPDU: 80 0D 03 02 [10:02:20]Write to MH i2c: E2 08 00 73 4F 80 0D 03 02 00 00 00 00 3D [10:02:20]Write i2c OK [10:02:20]MH_I2C_Read... [10:02:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:20]Read from MH i2c: E2 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 0B 00 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 0B 00 73 4F 00 B9 0F B0 BD EC 00 44 5F 90 00 02 [10:02:20]RAPDU: B9 0F B0 BD EC 00 44 5F 90 00 [10:02:20]wFMCommunicate OK [10:02:20]SAM_PROTO_SignData done [10:02:20]FM_MakeSignedData done [10:02:20]CreateOFDProtocolMessage [10:02:20]wFMCommunicate request_size=4 [10:02:20]MH_SAM_APDU [10:02:20]CAPDU: 80 11 00 00 [10:02:20]Write to MH i2c: E2 08 00 74 4F 80 11 00 00 00 00 00 00 3D [10:02:20]Write i2c OK [10:02:20]MH_I2C_Read... [10:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:20]Read from MH i2c: E2 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 17 00 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 17 00 74 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 98 [10:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:02:20]wFMCommunicate OK [10:02:20]CreateOFDProtocolMessage done [10:02:20]OFDSenderStorePacket 139913 [10:02:20]StoreOFDPacket docnum=139913 [10:02:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9E 01 00 00 88 F9 96 01 63 1C 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 5E 00 00 00 F4 03 04 00 30 A7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 89 22 02 00 35 04 06 00 C8 C0 79 2F 57 4D B9 0F B0 BD EC 00 44 5F [10:02:20]CheckFolder [10:02:20]dirname=/storage/ofd_packets [10:02:20]CheckFolder done [10:02:20]ProducePacketName [10:02:20]name=ofd_packets/00139913 [10:02:20]NVStorageSaveData ofd_packets/00139913 [10:02:20]File name is /storage/ofd_packets/00139913 [10:02:20]Write 444 bytes [10:02:20]NVStorageSaveData done [10:02:20]OFDSenderStorePacket done [10:02:20]KKMCreateOFDPacket done [10:02:20]NVStorageSaveData kkm_last_timestamp [10:02:20]File name is /storage/kkm_last_timestamp [10:02:20]Write 4 bytes [10:02:20]NVStorageSaveData done [10:02:20]ExternCall_PrintAddStr [10:02:20]wPrintStart [10:02:20]Write to MH i2c: 01 00 00 75 4F C4 [10:02:20]Write i2c OK [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: 01 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: 01 07 00 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: 01 07 00 75 4F 00 00 00 00 00 FF 0F D9 [10:02:20]RasterBufferAndPrint [10:02:20]line Счет N : (3)335734 [10:02:20]line ИНН: 02508201610067 [10:02:20]line Контрольно-Кассовый Чек [10:02:21]line ПРОДАЖА [10:02:21]line Товар: 4870202522701 [10:02:21]line Напиток Maxi Чай черный Малина 1,2 [10:02:21]line 1.000 * 125.00 [10:02:21]line = 125.00 [10:02:21]line НДС 12% НСП 1% [10:02:21]line > о реализуемом товаре [10:02:21]line Товар: 48744317 [10:02:21]line Сигареты Camel Yellow [10:02:21]line 1.000 * 154.00 [10:02:21]line = 154.00 [10:02:21]line НДС 12% НСП 1% [10:02:21]line > о реализуемом товаре [10:02:21]line ИТОГО: 279.00 [10:02:21]line НСП 1% : 2.47 [10:02:21]line НДС 12% : 29.62 [10:02:21]line Наличными: 279.00 [10:02:21]line Безнал.: 0.00 [10:02:21]line Место: АЗС № 101 "Партнер Нефть" [10:02:21]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:02:21]line СНО: Общий режим [10:02:21]line Чек 94 01.11.2024 10:02 [10:02:21]line Смена: 558 ФФД: 1.0 [10:02:21]line ЗНМ: 0300000081 [10:02:21]line РНМ: 0000000000091631 [10:02:21]line Версия ККМ: 001 [10:02:21]line ФМ: 0000000000874669 [10:02:21]line ФД: 139913 [10:02:21]line ФПД: 220728992421709 [10:02:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T100224&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139913&fm=220728992421709&tin=02508201610067®Number=0000000000091631&sum=27900 [10:02:21]line 0 [10:02:21]OFD Sender: Processing packet 139913 [packets to send 34, broken 33] [10:02:21]ProducePacketName [10:02:21]name=ofd_packets/00139913 [10:02:21]OFD Sender: To server: pG, [10:02:21]CommunicateWithHost lk.salyk.kg:30040 [10:02:21]ConnectInit lk.salyk.kg [10:02:21]written 0, free lines is 4095 [10:02:21]Connected sock=10 [10:02:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9E 01 00 00 88 F9 96 01 63 1C 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 5E 00 00 00 F4 03 04 00 30 A7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 89 22 02 00 35 04 06 00 C8 C0 79 2F 57 4D B9 0F B0 BD EC 00 44 5F [10:02:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 52 5C 47 00 49 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 89 22 02 00 F4 03 04 00 DB 52 24 67 B6 04 01 00 00 C3 F1 ED A0 BE 11 7C DE [10:02:21]CommunicateWithHost err = 0 [10:02:21]CheckOFDResponse [10:02:21]1017 (14) - 77093643461234 [10:02:21]1041 (16) - 0000000000874669 [10:02:21]1040 (4) - 139913 [10:02:21]1012 (4) - 01.11.2024 04:02 [10:02:21]1206 (1) - 0 [10:02:21]OFD Sender: Remove packet 139913 [10:02:21]ProducePacketName [10:02:21]name=ofd_packets/00139913 [10:02:21]NVStorageDeleteData [10:02:21]Write to MH i2c: 01 00 00 A4 4F F3 [10:02:21]Write i2c OK [10:02:21]MH_I2C_Read... [10:02:21]Read from MH i2c: 01 [10:02:21]MH_I2C_Read... [10:02:21]Read from MH i2c: 01 07 00 [10:02:21]MH_I2C_Read... [10:02:21]Read from MH i2c: 01 07 00 A4 4F 00 00 00 00 00 B2 0C B8 [10:02:21]RasterBufferAndPrint [10:02:21]line [10:02:21]line [10:02:21]line [10:02:21]line [10:02:21]line [10:02:21]written 0, free lines is 3257 [10:02:21]MH_Cut [10:02:21]Write to MH i2c: D1 01 00 AB 4F 01 CC [10:02:21]Write i2c OK [10:02:21]MH_I2C_Read... [10:02:21]Read from MH i2c: D1 [10:02:21]MH_I2C_Read... [10:02:21]Read from MH i2c: D1 01 00 [10:02:21]MH_I2C_Read... [10:02:21]Read from MH i2c: D1 01 00 AB 4F 00 CB [10:02:21]Write to MH i2c: 01 00 00 AC 4F FB [10:02:21]Write i2c OK [10:02:21]MH_I2C_Read... [10:02:22]OFD Sender: No OFD packet to send [10:02:22]*** Cut start [10:02:22]*** Partial cut [10:02:22]*** CUTSNS_PIN = 1 [10:02:22]*** CUTSNS_PIN = 0 [10:02:22]*** Brake cut motor [10:02:23]Read from MH i2c: 01 [10:02:23]MH_I2C_Read... [10:02:23]*** Stop cut motor [10:02:23]*** Cut end [10:02:23]Read from MH i2c: 01 07 00 [10:02:23]MH_I2C_Read... [10:02:23]Read from MH i2c: 01 07 00 AC 4F 00 00 00 00 00 FF 0F 10 [10:02:23]process_action close_receipt done [10:02:23]requested_data is exist [10:02:23]produce_requested_data [10:02:23]requested_item fm.sn is exist - process it [10:02:23]wFMCommunicate request_size=4 [10:02:23]MH_SAM_APDU [10:02:23]CAPDU: 80 11 00 00 [10:02:23]Write to MH i2c: E2 08 00 AD 4F 80 11 00 00 00 00 00 00 76 [10:02:23]Write i2c OK [10:02:23]MH_I2C_Read... [10:02:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:23]Read from MH i2c: E2 [10:02:23]MH_I2C_Read... [10:02:23]Read from MH i2c: E2 17 00 [10:02:23]MH_I2C_Read... [10:02:23]Read from MH i2c: E2 17 00 AD 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D1 [10:02:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:02:23]wFMCommunicate OK [10:02:23]requested_item fd.num is exist - process it [10:02:23]SAM_PROTO_GetFieldsCounters [10:02:23]wFMCommunicate request_size=4 [10:02:23]MH_SAM_APDU [10:02:23]CAPDU: 80 13 00 00 [10:02:23]Write to MH i2c: E2 08 00 AE 4F 80 13 00 00 00 00 00 00 79 [10:02:23]Write i2c OK [10:02:23]MH_I2C_Read... [10:02:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:23]Read from MH i2c: E2 [10:02:23]MH_I2C_Read... [10:02:23]Read from MH i2c: E2 62 00 [10:02:23]MH_I2C_Read... [10:02:23]Read from MH i2c: E2 62 00 AE 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 89 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [10:02:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 89 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:23]wFMCommunicate OK [10:02:23]SAM_PROTO_GetFieldsCounters done [10:02:23]requested_item shift.num is exist - process it [10:02:23]requested_item shift.opened is exist - process it [10:02:23]req_shift_opened [10:02:23]FM_GetShiftState [10:02:23]SAM_PROTO_GetShiftState [10:02:23]wFMCommunicate request_size=4 [10:02:23]MH_SAM_APDU [10:02:23]CAPDU: 80 13 01 00 [10:02:23]Write to MH i2c: E2 08 00 AF 4F 80 13 01 00 00 00 00 00 7B [10:02:23]Write i2c OK [10:02:23]MH_I2C_Read... [10:02:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:23]Read from MH i2c: E2 [10:02:23]MH_I2C_Read... [10:02:23]Read from MH i2c: E2 0E 00 [10:02:23]MH_I2C_Read... [10:02:23]Read from MH i2c: E2 0E 00 AF 4F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 B4 [10:02:23]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:02:23]wFMCommunicate OK [10:02:23]SAM_PROTO_GetShiftState done [10:02:23]FM_GetShiftState done [10:02:23]req_shift_opened done [10:02:23]requested_item shift.open_date is exist - process it [10:02:23]req_shift_open_date [10:02:23]req_shift_open_date done [10:02:23]produce_requested_data done [10:02:23]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139913,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [10:02:23]process_action_free close_receipt [10:02:23]json_value_free [10:02:23]json_value_free done [10:02:23]process_json_proto returns [10:02:23]Send response to host [10:02:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139913,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [10:02:23]free response buf [10:02:23]execute_script done [10:02:23]execute_script returns [10:02:23]free content buf [10:02:23]Sock 7.Close socket [10:02:23]Sock 7.Thread stoped [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:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:14]accept exits with 9 [10:13:14]New connection [10:13:14]New thread 3066654052 created [10:13:14]Thread 3066510692 joined [10:13:14]Waiting for new connection... [10:13:14] Sock 9.Parse request [10:13:14]Sock 9.Check first char [10:13:14]Sock 9.First char is OK [10:13:14]request: POST /json_proto HTTP/1.0 [10:13:14]Method: POST [10:13:14]URL: /json_proto [10:13:14]Method is POST - this is cgi request [10:13:14]url: /json_proto [10:13:14]query_string will be loaded in cgi processing [10:13:14]execute_cgi json_proto POST (null) [10:13:14]execute_cgi path=json_proto method=POST [10:13:14]POST find Content-Length [10:13:14]Host: 172.17.50.196:8080 [10:13:14]Content-Length: 621 [10:13:14]Content-Type: application/json [10:13:14] [10:13:14]POST finish read [10:13:14]Found Content-Length = 621 [10:13:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335735", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:14]execute_script... [10:13: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)335735", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:14]POST & json_proto [10:13:14]process_json_proto [10:13:14]json parsed OK: [10:13:14]protocol is kg_v1.0 [10:13:14]action value=close_receipt [10:13:14]process_action close_receipt [10:13:14]cmd_close_receipt [10:13:14]MH_GetDate [10:13:14]Write to MH i2c: F0 00 00 B0 4F EE [10:13:14]Write i2c OK [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: F0 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: F0 09 00 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: F0 09 00 B0 4F 00 BF A9 24 67 72 0D 1C 67 EC [10:13:14]GetLastDocTimeStamp 1730455344 [10:13:14]current date 1730455999 [10:13:14]FM_GetShiftState [10:13:14]SAM_PROTO_GetShiftState [10:13:14]wFMCommunicate request_size=4 [10:13:14]MH_SAM_APDU [10:13:14]CAPDU: 80 13 01 00 [10:13:14]Write to MH i2c: E2 08 00 B1 4F 80 13 01 00 00 00 00 00 7D [10:13:14]Write i2c OK [10:13:14]MH_I2C_Read... [10:13:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:14]Read from MH i2c: E2 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: E2 0E 00 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: E2 0E 00 B1 4F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 B6 [10:13:14]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:13:14]wFMCommunicate OK [10:13:14]SAM_PROTO_GetShiftState done [10:13:14]FM_GetShiftState done [10:13:14]opened in 1730419081 [10:13:14]opened+sec_in_day 1730505481 [10:13:14]quantity*price = 14400 [10:13:14]sum+1 = 14401 [10:13:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 95 01.11.2024 10:13 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139914 ФПД: 265034529273278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T101319&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139914&fm=265034529273278&tin=02508201610067®Number=0000000000091631&sum=14400 0 [10:13:15]StoreToDocumentArchive [10:13:15]shift 558 fd 139914 [10:13:15]save to /storage/0558/doc_00139914 [10:13:15]save last doc name /storage/0558/doc_00139914 to /storage/kkm_last_doc_name [10:13:15]save OK [10:13:15]Clear old archive folders... [10:13:15]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:13:15]tlvbuf is 00B1F3C0 [10:13:15]SAM_PROTO_ClearQueue [10:13:15]wFMCommunicate request_size=4 [10:13:15]MH_SAM_APDU [10:13:15]CAPDU: 80 09 00 00 [10:13:15]Write to MH i2c: E2 08 00 BE 4F 80 09 00 00 00 00 00 00 7F [10:13:15]Write i2c OK [10:13:15]MH_I2C_Read... [10:13:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:15]Read from MH i2c: E2 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 03 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 03 00 BE 4F 00 90 00 81 [10:13:15]RAPDU: 90 00 [10:13:15]wFMCommunicate OK [10:13:15]SAM_PROTO_ClearQueue done [10:13:15]KKMCreateOFDPacket [10:13:15]OFDProtocolAddRootSTLVToBuf [10:13:15]FM_MakeSignedData [10:13:15]FM_MakeSignedData [10:13:15]SAM_PROTO_SignData [10:13:15]wFMCommunicate request_size=4 [10:13:15]MH_SAM_APDU [10:13:15]CAPDU: 80 0D 01 02 [10:13:15]Write to MH i2c: E2 08 00 BF 4F 80 0D 01 02 00 00 00 00 87 [10:13:15]Write i2c OK [10:13:15]MH_I2C_Read... [10:13:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:15]Read from MH i2c: E2 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 03 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 03 00 BF 4F 00 90 00 82 [10:13:15]RAPDU: 90 00 [10:13:15]wFMCommunicate OK [10:13:15]wFMCommunicate request_size=255 [10:13:15]MH_SAM_APDU [10:13:15]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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 BF A9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 [10:13:15]Write to MH i2c: E2 02 01 C0 4F 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 BF A9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 5A [10:13:15]Write i2c OK [10:13:15]MH_I2C_Read... [10:13:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:15]Read from MH i2c: E2 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 03 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 03 00 C0 4F 00 90 00 83 [10:13:15]RAPDU: 90 00 [10:13:15]wFMCommunicate OK [10:13:15]wFMCommunicate request_size=32 [10:13:15]MH_SAM_APDU [10:13:15]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 36 39 10 04 04 00 8A 22 02 00 35 04 06 00 F1 0C 28 F8 75 BE [10:13:15]Write to MH i2c: E2 23 00 C1 4F 80 0D 02 02 1B 00 30 30 30 38 37 34 36 36 39 10 04 04 00 8A 22 02 00 35 04 06 00 F1 0C 28 F8 75 BE 00 00 ED [10:13:15]Write i2c OK [10:13:15]MH_I2C_Read... [10:13:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:15]Read from MH i2c: E2 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 03 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 03 00 C1 4F 00 90 00 84 [10:13:15]RAPDU: 90 00 [10:13:15]wFMCommunicate OK [10:13:15]wFMCommunicate request_size=4 [10:13:15]MH_SAM_APDU [10:13:15]CAPDU: 80 0D 03 02 [10:13:15]Write to MH i2c: E2 08 00 C2 4F 80 0D 03 02 00 00 00 00 8C [10:13:15]Write i2c OK [10:13:15]MH_I2C_Read... [10:13:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:15]Read from MH i2c: E2 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 0B 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 0B 00 C2 4F 00 A7 4C 60 EA 63 F1 E2 07 90 00 07 [10:13:15]RAPDU: A7 4C 60 EA 63 F1 E2 07 90 00 [10:13:15]wFMCommunicate OK [10:13:15]SAM_PROTO_SignData done [10:13:15]FM_MakeSignedData done [10:13:15]CreateOFDProtocolMessage [10:13:15]wFMCommunicate request_size=4 [10:13:15]MH_SAM_APDU [10:13:15]CAPDU: 80 11 00 00 [10:13:15]Write to MH i2c: E2 08 00 C3 4F 80 11 00 00 00 00 00 00 8C [10:13:15]Write i2c OK [10:13:15]MH_I2C_Read... [10:13:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:15]Read from MH i2c: E2 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 17 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 17 00 C3 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E7 [10:13:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:13:15]wFMCommunicate OK [10:13:15]CreateOFDProtocolMessage done [10:13:15]OFDSenderStorePacket 139914 [10:13:15]StoreOFDPacket docnum=139914 [10:13:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 00 1D 1D 01 5F 8F 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 BF A9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8A 22 02 00 35 04 06 00 F1 0C 28 F8 75 BE A7 4C 60 EA 63 F1 E2 07 [10:13:15]CheckFolder [10:13:15]dirname=/storage/ofd_packets [10:13:15]CheckFolder done [10:13:15]ProducePacketName [10:13:15]name=ofd_packets/00139914 [10:13:15]NVStorageSaveData ofd_packets/00139914 [10:13:15]File name is /storage/ofd_packets/00139914 [10:13:15]Write 323 bytes [10:13:15]NVStorageSaveData done [10:13:15]OFDSenderStorePacket done [10:13:15]KKMCreateOFDPacket done [10:13:15]NVStorageSaveData kkm_last_timestamp [10:13:15]File name is /storage/kkm_last_timestamp [10:13:15]Write 4 bytes [10:13:15]NVStorageSaveData done [10:13:15]ExternCall_PrintAddStr [10:13:15]wPrintStart [10:13:15]Write to MH i2c: 01 00 00 C4 4F 13 [10:13:15]Write i2c OK [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: 01 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: 01 07 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: 01 07 00 C4 4F 00 00 00 00 00 FF 0F 28 [10:13:15]RasterBufferAndPrint [10:13:15]line Счет N : (3)335735 [10:13:15]line ИНН: 02508201610067 [10:13:15]line Контрольно-Кассовый Чек [10:13:15]line ПРОДАЖА [10:13:15]line Товар: 48747059 [10:13:15]line Сигареты Winston Legend Blue [10:13:15]line 1.000 * 144.00 [10:13:15]line = 144.00 [10:13:15]line НДС 12% НСП 1% [10:13:15]line > о реализуемом товаре [10:13:15]line ИТОГО: 144.00 [10:13:15]line НСП 1% : 1.27 [10:13:15]line НДС 12% : 15.29 [10:13:15]line Наличными: 144.00 [10:13:15]line Безнал.: 0.00 [10:13:15]line Место: АЗС № 101 "Партнер Нефть" [10:13:15]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:13:15]line СНО: Общий режим [10:13:15]line Чек 95 01.11.2024 10:13 [10:13:15]line Смена: 558 ФФД: 1.0 [10:13:15]line ЗНМ: 0300000081 [10:13:15]line РНМ: 0000000000091631 [10:13:15]line Версия ККМ: 001 [10:13:15]line ФМ: 0000000000874669 [10:13:15]line ФД: 139914 [10:13:15]line ФПД: 265034529273278 [10:13:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T101319&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139914&fm=265034529273278&tin=02508201610067®Number=0000000000091631&sum=14400 [10:13:16]OFD Sender: Processing packet 139914 [packets to send 34, broken 33] [10:13:16]ProducePacketName [10:13:16]name=ofd_packets/00139914 [10:13:16]OFD Sender: To server: pG, [10:13:16]CommunicateWithHost lk.salyk.kg:30040 [10:13:16]ConnectInit lk.salyk.kg [10:13:16]line 0 [10:13:16]written 0, free lines is 4095 [10:13:16]Connected sock=10 [10:13:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 00 1D 1D 01 5F 8F 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 BF A9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8A 22 02 00 35 04 06 00 F1 0C 28 F8 75 BE A7 4C 60 EA 63 F1 E2 07 [10:13:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 86 41 47 00 60 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8A 22 02 00 F4 03 04 00 6A 55 24 67 B6 04 01 00 00 99 3C C2 66 B0 22 1B 74 [10:13:16]CommunicateWithHost err = 0 [10:13:16]CheckOFDResponse [10:13:16]1017 (14) - 77093643461234 [10:13:16]1041 (16) - 0000000000874669 [10:13:16]1040 (4) - 139914 [10:13:16]1012 (4) - 01.11.2024 04:13 [10:13:16]1206 (1) - 0 [10:13:16]OFD Sender: Remove packet 139914 [10:13:16]ProducePacketName [10:13:16]name=ofd_packets/00139914 [10:13:16]NVStorageDeleteData [10:13:16]Write to MH i2c: 01 00 00 ED 4F 3C [10:13:16]Write i2c OK [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: 01 [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: 01 07 00 [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: 01 07 00 ED 4F 00 00 00 00 00 E3 0C 32 [10:13:16]RasterBufferAndPrint [10:13:16]line [10:13:16]line [10:13:16]line [10:13:16]line [10:13:16]line [10:13:16]written 0, free lines is 3305 [10:13:16]MH_Cut [10:13:16]Write to MH i2c: D1 01 00 F4 4F 01 15 [10:13:16]Write i2c OK [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: D1 [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: D1 01 00 [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: D1 01 00 F4 4F 00 14 [10:13:16]Write to MH i2c: 01 00 00 F5 4F 44 [10:13:16]Write i2c OK [10:13:16]MH_I2C_Read... [10:13:16]OFD Sender: No OFD packet to send [10:13:17]*** Cut start [10:13:17]*** Partial cut [10:13:17]*** CUTSNS_PIN = 1 [10:13:17]*** CUTSNS_PIN = 0 [10:13:17]*** Brake cut motor [10:13:17]Read from MH i2c: 01 [10:13:17]MH_I2C_Read... [10:13:17]*** Stop cut motor [10:13:17]*** Cut end [10:13:17]Read from MH i2c: 01 07 00 [10:13:17]MH_I2C_Read... [10:13:17]Read from MH i2c: 01 07 00 F5 4F 00 00 00 00 00 FF 0F 59 [10:13:17]process_action close_receipt done [10:13:17]requested_data is exist [10:13:17]produce_requested_data [10:13:17]requested_item fm.sn is exist - process it [10:13:17]wFMCommunicate request_size=4 [10:13:17]MH_SAM_APDU [10:13:17]CAPDU: 80 11 00 00 [10:13:17]Write to MH i2c: E2 08 00 F6 4F 80 11 00 00 00 00 00 00 BF [10:13:17]Write i2c OK [10:13:17]MH_I2C_Read... [10:13:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:17]Read from MH i2c: E2 [10:13:17]MH_I2C_Read... [10:13:17]Read from MH i2c: E2 17 00 [10:13:17]MH_I2C_Read... [10:13:17]Read from MH i2c: E2 17 00 F6 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1A [10:13:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:13:17]wFMCommunicate OK [10:13:17]requested_item fd.num is exist - process it [10:13:17]SAM_PROTO_GetFieldsCounters [10:13:17]wFMCommunicate request_size=4 [10:13:17]MH_SAM_APDU [10:13:17]CAPDU: 80 13 00 00 [10:13:17]Write to MH i2c: E2 08 00 F7 4F 80 13 00 00 00 00 00 00 C2 [10:13:17]Write i2c OK [10:13:17]MH_I2C_Read... [10:13:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:18]Read from MH i2c: E2 [10:13:18]MH_I2C_Read... [10:13:18]Read from MH i2c: E2 62 00 [10:13:18]MH_I2C_Read... [10:13:18]Read from MH i2c: E2 62 00 F7 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 8A 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [10:13:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 8A 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:18]wFMCommunicate OK [10:13:18]SAM_PROTO_GetFieldsCounters done [10:13:18]requested_item shift.num is exist - process it [10:13:18]requested_item shift.opened is exist - process it [10:13:18]req_shift_opened [10:13:18]FM_GetShiftState [10:13:18]SAM_PROTO_GetShiftState [10:13:18]wFMCommunicate request_size=4 [10:13:18]MH_SAM_APDU [10:13:18]CAPDU: 80 13 01 00 [10:13:18]Write to MH i2c: E2 08 00 F8 4F 80 13 01 00 00 00 00 00 C4 [10:13:18]Write i2c OK [10:13:18]MH_I2C_Read... [10:13:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:18]Read from MH i2c: E2 [10:13:18]MH_I2C_Read... [10:13:18]Read from MH i2c: E2 0E 00 [10:13:18]MH_I2C_Read... [10:13:18]Read from MH i2c: E2 0E 00 F8 4F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 FD [10:13:18]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:13:18]wFMCommunicate OK [10:13:18]SAM_PROTO_GetShiftState done [10:13:18]FM_GetShiftState done [10:13:18]req_shift_opened done [10:13:18]requested_item shift.open_date is exist - process it [10:13:18]req_shift_open_date [10:13:18]req_shift_open_date done [10:13:18]produce_requested_data done [10:13:18]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139914,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [10:13:18]process_action_free close_receipt [10:13:18]json_value_free [10:13:18]json_value_free done [10:13:18]process_json_proto returns [10:13:18]Send response to host [10:13:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139914,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [10:13:18]free response buf [10:13:18]execute_script done [10:13:18]execute_script returns [10:13:18]free content buf [10:13:18]Sock 9.Close socket [10:13:18]Sock 9.Thread stoped [10:13:21]OFD Sender: No OFD packet to send [10:13:26]OFD Sender: No OFD packet to send [10:13:31]OFD Sender: No OFD packet to send [10:13:36]OFD Sender: No OFD packet to send [10:13:41]OFD Sender: No OFD packet to send [10:13:46]OFD Sender: No OFD packet to send [10:13:51]OFD Sender: No OFD packet to send [10:13:55]accept exits with 7 [10:13:55]New connection [10:13:55]New thread 3066510692 created [10:13:55]Thread 3066654052 joined [10:13:55]Waiting for new connection... [10:13:55] Sock 7.Parse request [10:13:55]Sock 7.Check first char [10:13:55]Sock 7.First char is OK [10:13:55]request: POST /json_proto HTTP/1.0 [10:13:55]Method: POST [10:13:55]URL: /json_proto [10:13:55]Method is POST - this is cgi request [10:13:55]url: /json_proto [10:13:55]query_string will be loaded in cgi processing [10:13:55]execute_cgi json_proto POST (null) [10:13:55]execute_cgi path=json_proto method=POST [10:13:55]POST find Content-Length [10:13:55]Host: 172.17.50.196:8080 [10:13:55]Content-Length: 1259 [10:13:55]Content-Type: application/json [10:13:55] [10:13:55]POST finish read [10:13:55]Found Content-Length = 1259 [10:13:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335736", "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": "2000032770016", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u0441\u044B\u0440110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:55]execute_script... [10:13: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)335736", "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": "2000032770016", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u0441\u044B\u0440110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:55]POST & json_proto [10:13:55]process_json_proto [10:13:55]json parsed OK: [10:13:55]protocol is kg_v1.0 [10:13:55]action value=close_receipt [10:13:55]process_action close_receipt [10:13:55]cmd_close_receipt [10:13:55]MH_GetDate [10:13:55]Write to MH i2c: F0 00 00 F9 4F 37 [10:13:55]Write i2c OK [10:13:55]MH_I2C_Read... [10:13:55]Read from MH i2c: F0 [10:13:55]MH_I2C_Read... [10:13:55]Read from MH i2c: F0 09 00 [10:13:55]MH_I2C_Read... [10:13:55]Read from MH i2c: F0 09 00 F9 4F 00 E8 A9 24 67 72 0D 1C 67 5E [10:13:55]GetLastDocTimeStamp 1730455999 [10:13:55]current date 1730456040 [10:13:55]FM_GetShiftState [10:13:55]SAM_PROTO_GetShiftState [10:13:55]wFMCommunicate request_size=4 [10:13:55]MH_SAM_APDU [10:13:55]CAPDU: 80 13 01 00 [10:13:55]Write to MH i2c: E2 08 00 FA 4F 80 13 01 00 00 00 00 00 C6 [10:13:55]Write i2c OK [10:13:55]MH_I2C_Read... [10:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:55]Read from MH i2c: E2 [10:13:55]MH_I2C_Read... [10:13:55]Read from MH i2c: E2 0E 00 [10:13:55]MH_I2C_Read... [10:13:55]Read from MH i2c: E2 0E 00 FA 4F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 FF [10:13:55]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:13:55]wFMCommunicate OK [10:13:55]SAM_PROTO_GetShiftState done [10:13:55]FM_GetShiftState done [10:13:55]opened in 1730419081 [10:13:55]opened+sec_in_day 1730505481 [10:13:55]quantity*price = 13000 [10:13:55]sum+1 = 13001 [10:13:55]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032770016 Слойка DC треугольная сыр110г 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000032780015 Слойка DC треугольная курица 110г 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.29 НДС 12% : 27.60 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 96 01.11.2024 10:14 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139915 ФПД: 209025089865961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T101400&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139915&fm=209025089865961&tin=02508201610067®Number=0000000000091631&sum=26000 0 [10:13:56]StoreToDocumentArchive [10:13:56]shift 558 fd 139915 [10:13:56]save to /storage/0558/doc_00139915 [10:13:56]save last doc name /storage/0558/doc_00139915 to /storage/kkm_last_doc_name [10:13:56]save OK [10:13:56]Clear old archive folders... [10:13:56]ProcessDocumentItem done err = 0, tmpTLVsize=527 [10:13:56]tlvbuf is 00AE6560 [10:13:56]SAM_PROTO_ClearQueue [10:13:56]wFMCommunicate request_size=4 [10:13:56]MH_SAM_APDU [10:13:56]CAPDU: 80 09 00 00 [10:13:56]Write to MH i2c: E2 08 00 07 50 80 09 00 00 00 00 00 00 C9 [10:13:56]Write i2c OK [10:13:56]MH_I2C_Read... [10:13:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:56]Read from MH i2c: E2 [10:13:56]MH_I2C_Read... [10:13:56]Read from MH i2c: E2 03 00 [10:13:56]MH_I2C_Read... [10:13:56]Read from MH i2c: E2 03 00 07 50 00 90 00 CB [10:13:56]RAPDU: 90 00 [10:13:56]wFMCommunicate OK [10:13:56]SAM_PROTO_ClearQueue done [10:13:56]KKMCreateOFDPacket [10:13:56]OFDProtocolAddRootSTLVToBuf [10:13:56]FM_MakeSignedData [10:13:56]FM_MakeSignedData [10:13:56]SAM_PROTO_SignData [10:13:56]wFMCommunicate request_size=4 [10:13:56]MH_SAM_APDU [10:13:56]CAPDU: 80 0D 01 02 [10:13:56]Write to MH i2c: E2 08 00 08 50 80 0D 01 02 00 00 00 00 D1 [10:13:56]Write i2c OK [10:13:56]MH_I2C_Read... [10:13:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:56]Read from MH i2c: E2 [10:13:56]MH_I2C_Read... [10:13:56]Read from MH i2c: E2 03 00 [10:13:56]MH_I2C_Read... [10:13:56]Read from MH i2c: E2 03 00 08 50 00 90 00 CC [10:13:56]RAPDU: 90 00 [10:13:56]wFMCommunicate OK [10:13:56]wFMCommunicate request_size=255 [10:13:56]MH_SAM_APDU [10:13:56]CAPDU: 80 0D 02 02 FA 03 00 0F 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 76 00 8A 04 0D 00 32 30 30 30 30 33 32 37 37 30 30 31 36 06 04 32 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D1 81 D1 8B D1 80 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 [10:13:57]Write to MH i2c: E2 02 01 09 50 80 0D 02 02 FA 00 03 00 0F 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 76 00 8A 04 0D 00 32 30 30 30 30 33 32 37 37 30 30 31 36 06 04 32 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D1 81 D1 8B D1 80 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 00 00 BD [10:13:57]OFD Sender: No OFD packet to send [10:13:57]Write i2c OK [10:13:57]MH_I2C_Read... [10:13:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:57]Read from MH i2c: E2 [10:13:57]MH_I2C_Read... [10:13:57]Read from MH i2c: E2 03 00 [10:13:57]MH_I2C_Read... [10:13:57]Read from MH i2c: E2 03 00 09 50 00 90 00 CD [10:13:57]RAPDU: 90 00 [10:13:57]wFMCommunicate OK [10:13:57]wFMCommunicate request_size=255 [10:13:57]MH_SAM_APDU [10:13:57]CAPDU: 80 0D 02 02 FA 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 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 60 00 00 00 F4 03 04 00 E8 A9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 [10:13:57]Write to MH i2c: E2 02 01 0A 50 80 0D 02 02 FA 00 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 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 60 00 00 00 F4 03 04 00 E8 A9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 00 00 F7 [10:13:57]Write i2c OK [10:13:57]MH_I2C_Read... [10:13:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:57]Read from MH i2c: E2 [10:13:57]MH_I2C_Read... [10:13:57]Read from MH i2c: E2 03 00 [10:13:57]MH_I2C_Read... [10:13:57]Read from MH i2c: E2 03 00 0A 50 00 90 00 CE [10:13:57]RAPDU: 90 00 [10:13:57]wFMCommunicate OK [10:13:57]wFMCommunicate request_size=36 [10:13:57]MH_SAM_APDU [10:13:57]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8B 22 02 00 35 04 06 00 BE 1B 72 3B 08 E9 [10:13:57]Write to MH i2c: E2 27 00 0B 50 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8B 22 02 00 35 04 06 00 BE 1B 72 3B 08 E9 00 00 28 [10:13:57]Write i2c OK [10:13:57]MH_I2C_Read... [10:13:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:57]Read from MH i2c: E2 [10:13:57]MH_I2C_Read... [10:13:57]Read from MH i2c: E2 03 00 [10:13:57]MH_I2C_Read... [10:13:57]Read from MH i2c: E2 03 00 0B 50 00 90 00 CF [10:13:57]RAPDU: 90 00 [10:13:57]wFMCommunicate OK [10:13:57]wFMCommunicate request_size=4 [10:13:57]MH_SAM_APDU [10:13:57]CAPDU: 80 0D 03 02 [10:13:57]Write to MH i2c: E2 08 00 0C 50 80 0D 03 02 00 00 00 00 D7 [10:13:57]Write i2c OK [10:13:57]MH_I2C_Read... [10:13:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:57]Read from MH i2c: E2 [10:13:57]MH_I2C_Read... [10:13:57]Read from MH i2c: E2 0B 00 [10:13:57]MH_I2C_Read... [10:13:57]Read from MH i2c: E2 0B 00 0C 50 00 79 25 A0 8B 77 D8 4D AB 90 00 E8 [10:13:57]RAPDU: 79 25 A0 8B 77 D8 4D AB 90 00 [10:13:57]wFMCommunicate OK [10:13:57]SAM_PROTO_SignData done [10:13:57]FM_MakeSignedData done [10:13:57]CreateOFDProtocolMessage [10:13:57]wFMCommunicate request_size=4 [10:13:57]MH_SAM_APDU [10:13:57]CAPDU: 80 11 00 00 [10:13:57]Write to MH i2c: E2 08 00 0D 50 80 11 00 00 00 00 00 00 D7 [10:13:57]Write i2c OK [10:13:57]MH_I2C_Read... [10:13:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:57]Read from MH i2c: E2 [10:13:57]MH_I2C_Read... [10:13:57]Read from MH i2c: E2 17 00 [10:13:57]MH_I2C_Read... [10:13:57]Read from MH i2c: E2 17 00 0D 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 32 [10:13:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:13:57]wFMCommunicate OK [10:13:57]CreateOFDProtocolMessage done [10:13:57]OFDSenderStorePacket 139915 [10:13:57]StoreOFDPacket docnum=139915 [10:13:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 23 02 00 00 C1 B3 1B 02 CD 2F 5A 03 01 00 03 00 0F 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 76 00 8A 04 0D 00 32 30 30 30 30 33 32 37 37 30 30 31 36 06 04 32 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D1 81 D1 8B D1 80 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 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 60 00 00 00 F4 03 04 00 E8 A9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8B 22 02 00 35 04 06 00 BE 1B 72 3B 08 E9 79 25 A0 8B 77 D8 4D AB [10:13:57]CheckFolder [10:13:57]dirname=/storage/ofd_packets [10:13:57]CheckFolder done [10:13:57]ProducePacketName [10:13:57]name=ofd_packets/00139915 [10:13:57]NVStorageSaveData ofd_packets/00139915 [10:13:57]File name is /storage/ofd_packets/00139915 [10:13:57]Write 577 bytes [10:13:57]NVStorageSaveData done [10:13:57]OFDSenderStorePacket done [10:13:57]KKMCreateOFDPacket done [10:13:57]NVStorageSaveData kkm_last_timestamp [10:13:57]File name is /storage/kkm_last_timestamp [10:13:57]Write 4 bytes [10:13:57]NVStorageSaveData done [10:13:57]ExternCall_PrintAddStr [10:13:57]wPrintStart [10:13:57]Write to MH i2c: 01 00 00 0E 50 5E [10:13:57]Write i2c OK [10:13:57]MH_I2C_Read... [10:13:57]Read from MH i2c: 01 [10:13:57]MH_I2C_Read... [10:13:57]Read from MH i2c: 01 07 00 [10:13:57]MH_I2C_Read... [10:13:57]Read from MH i2c: 01 07 00 0E 50 00 00 00 00 00 FF 0F 73 [10:13:57]RasterBufferAndPrint [10:13:57]line Счет N : (3)335736 [10:13:57]line ИНН: 02508201610067 [10:13:57]line Контрольно-Кассовый Чек [10:13:57]line ПРОДАЖА [10:13:57]line Товар: 2000036230011 [10:13:57]line Кофе Латте XL(GABB TRADE) [10:13:57]line 1.000 * 130.00 [10:13:57]line = 130.00 [10:13:57]line НДС 12% НСП 1% [10:13:57]line > о реализуемом товаре [10:13:57]line Товар: 2000032770016 [10:13:57]line Слойка DC треугольная сыр110г [10:13:57]line 1.000 * 65.00 [10:13:57]line = 65.00 [10:13:57]line НДС 12% НСП 1% [10:13:57]line > о реализуемом товаре [10:13:57]line Товар: 2000032780015 [10:13:57]line Слойка DC треугольная курица 110г [10:13:57]line 1.000 * 65.00 [10:13:57]line = 65.00 [10:13:57]line НДС 12% НСП 1% [10:13:57]line > о реализуемом товаре [10:13:57]line ИТОГО: 260.00 [10:13:57]line НСП 1% : 2.29 [10:13:57]line НДС 12% : 27.60 [10:13:57]line Наличными: 260.00 [10:13:57]line Безнал.: 0.00 [10:13:57]line Место: АЗС № 101 "Партнер Нефть" [10:13:57]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:13:57]line СНО: Общий режим [10:13:57]line Чек 96 01.11.2024 10:14 [10:13:57]line Смена: 558 ФФД: 1.0 [10:13:57]line ЗНМ: 0300000081 [10:13:57]line РНМ: 0000000000091631 [10:13:57]line Версия ККМ: 001 [10:13:57]line ФМ: 0000000000874669 [10:13:57]line ФД: 139915 [10:13:57]line ФПД: 209025089865961 [10:13:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T101400&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139915&fm=209025089865961&tin=02508201610067®Number=0000000000091631&sum=26000 [10:13:57]line 0 [10:13:57]written 0, free lines is 4095 [10:13:57]OFD Sender: Processing packet 139915 [packets to send 34, broken 33] [10:13:57]ProducePacketName [10:13:57]name=ofd_packets/00139915 [10:13:57]OFD Sender: To server: pG, [10:13:57]CommunicateWithHost lk.salyk.kg:30040 [10:13:57]ConnectInit lk.salyk.kg [10:13:57]Connected sock=10 [10:13:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 23 02 00 00 C1 B3 1B 02 CD 2F 5A 03 01 00 03 00 0F 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 76 00 8A 04 0D 00 32 30 30 30 30 33 32 37 37 30 30 31 36 06 04 32 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D1 81 D1 8B D1 80 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 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 60 00 00 00 F4 03 04 00 E8 A9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8B 22 02 00 35 04 06 00 BE 1B 72 3B 08 E9 79 25 A0 8B 77 D8 4D AB [10:13:58]Write to MH i2c: 01 00 00 44 50 94 [10:13:58]Write i2c OK [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: 01 [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: 01 07 00 [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: 01 07 00 44 50 00 00 00 00 00 53 0C FA [10:13:58]RasterBufferAndPrint [10:13:58]line [10:13:58]line [10:13:58]line [10:13:58]line [10:13:58]line [10:13:58]written 0, free lines is 3164 [10:13:58]MH_Cut [10:13:58]Write to MH i2c: D1 01 00 4B 50 01 6D [10:13:58]Write i2c OK [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: D1 [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: D1 01 00 [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: D1 01 00 4B 50 00 6C [10:13:58]Write to MH i2c: 01 00 00 4C 50 9C [10:13:58]Write i2c OK [10:13:58]MH_I2C_Read... [10:13:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 CB 47 47 00 0B 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 34 36 36 39 10 04 04 00 8B 22 02 00 F4 03 04 00 94 55 24 67 B6 04 01 00 00 97 4D C5 1E E4 FE 25 EF [10:13:58]CommunicateWithHost err = 0 [10:13:58]CheckOFDResponse [10:13:58]1017 (14) - 77093643461234 [10:13:58]1041 (16) - 0000000000874669 [10:13:58]1040 (4) - 139915 [10:13:58]1012 (4) - 01.11.2024 04:14 [10:13:58]1206 (1) - 0 [10:13:58]OFD Sender: Remove packet 139915 [10:13:58]ProducePacketName [10:13:58]name=ofd_packets/00139915 [10:13:58]NVStorageDeleteData [10:13:58]OFD Sender: No OFD packet to send [10:13:59]*** Cut start [10:13:59]*** Partial cut [10:13:59]*** CUTSNS_PIN = 1 [10:13:59]*** CUTSNS_PIN = 0 [10:13:59]*** Brake cut motor [10:13:59]Read from MH i2c: 01 [10:13:59]MH_I2C_Read... [10:13:59]*** Stop cut motor [10:13:59]*** Cut end [10:13:59]Read from MH i2c: 01 07 00 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: 01 07 00 4C 50 00 00 00 00 00 FF 0F B1 [10:13:59]process_action close_receipt done [10:13:59]requested_data is exist [10:13:59]produce_requested_data [10:13:59]requested_item fm.sn is exist - process it [10:13:59]wFMCommunicate request_size=4 [10:13:59]MH_SAM_APDU [10:13:59]CAPDU: 80 11 00 00 [10:13:59]Write to MH i2c: E2 08 00 4D 50 80 11 00 00 00 00 00 00 17 [10:13:59]Write i2c OK [10:13:59]MH_I2C_Read... [10:13:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:59]Read from MH i2c: E2 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: E2 17 00 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: E2 17 00 4D 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 72 [10:13:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:13:59]wFMCommunicate OK [10:13:59]requested_item fd.num is exist - process it [10:13:59]SAM_PROTO_GetFieldsCounters [10:13:59]wFMCommunicate request_size=4 [10:13:59]MH_SAM_APDU [10:13:59]CAPDU: 80 13 00 00 [10:13:59]Write to MH i2c: E2 08 00 4E 50 80 13 00 00 00 00 00 00 1A [10:13:59]Write i2c OK [10:13:59]MH_I2C_Read... [10:13:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:59]Read from MH i2c: E2 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: E2 62 00 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: E2 62 00 4E 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 8B 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [10:13:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 8B 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:59]wFMCommunicate OK [10:13:59]SAM_PROTO_GetFieldsCounters done [10:13:59]requested_item shift.num is exist - process it [10:13:59]requested_item shift.opened is exist - process it [10:13:59]req_shift_opened [10:13:59]FM_GetShiftState [10:13:59]SAM_PROTO_GetShiftState [10:13:59]wFMCommunicate request_size=4 [10:13:59]MH_SAM_APDU [10:13:59]CAPDU: 80 13 01 00 [10:13:59]Write to MH i2c: E2 08 00 4F 50 80 13 01 00 00 00 00 00 1C [10:13:59]Write i2c OK [10:13:59]MH_I2C_Read... [10:13:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:59]Read from MH i2c: E2 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: E2 0E 00 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: E2 0E 00 4F 50 00 09 00 01 89 19 24 67 00 00 00 00 90 00 55 [10:14:00]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:14:00]wFMCommunicate OK [10:14:00]SAM_PROTO_GetShiftState done [10:14:00]FM_GetShiftState done [10:14:00]req_shift_opened done [10:14:00]requested_item shift.open_date is exist - process it [10:14:00]req_shift_open_date [10:14:00]req_shift_open_date done [10:14:00]produce_requested_data done [10:14:00]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139915,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [10:14:00]process_action_free close_receipt [10:14:00]json_value_free [10:14:00]json_value_free done [10:14:00]process_json_proto returns [10:14:00]Send response to host [10:14:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139915,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [10:14:00]free response buf [10:14:00]execute_script done [10:14:00]execute_script returns [10:14:00]free content buf [10:14:00]Sock 7.Close socket [10:14:00]Sock 7.Thread stoped [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:16]accept exits with 9 [10:15:16]New connection [10:15:16]New thread 3066654052 created [10:15:16]Thread 3066510692 joined [10:15:16]Waiting for new connection... [10:15:16] Sock 9.Parse request [10:15:16]Sock 9.Check first char [10:15:16]Sock 9.First char is OK [10:15:16]request: POST /json_proto HTTP/1.0 [10:15:16]Method: POST [10:15:16]URL: /json_proto [10:15:16]Method is POST - this is cgi request [10:15:16]url: /json_proto [10:15:16]query_string will be loaded in cgi processing [10:15:16]execute_cgi json_proto POST (null) [10:15:16]execute_cgi path=json_proto method=POST [10:15:16]POST find Content-Length [10:15:16]Host: 172.17.50.196:8080 [10:15:16]Content-Length: 708 [10:15:16]Content-Type: application/json [10:15:16] [10:15:16]POST finish read [10:15:16]Found Content-Length = 708 [10:15:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335737", "tax_sys" : 0, "items" : [ { "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:16]execute_script... [10:15:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335737", "tax_sys" : 0, "items" : [ { "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:16]POST & json_proto [10:15:16]process_json_proto [10:15:16]json parsed OK: [10:15:16]protocol is kg_v1.0 [10:15:16]action value=close_receipt [10:15:16]process_action close_receipt [10:15:16]cmd_close_receipt [10:15:16]MH_GetDate [10:15:16]Write to MH i2c: F0 00 00 50 50 8F [10:15:16]Write i2c OK [10:15:16]MH_I2C_Read... [10:15:16]Read from MH i2c: F0 [10:15:16]MH_I2C_Read... [10:15:16]Read from MH i2c: F0 09 00 [10:15:16]MH_I2C_Read... [10:15:16]Read from MH i2c: F0 09 00 50 50 00 39 AA 24 67 72 0D 1C 67 08 [10:15:16]GetLastDocTimeStamp 1730456040 [10:15:16]current date 1730456121 [10:15:16]FM_GetShiftState [10:15:16]SAM_PROTO_GetShiftState [10:15:16]wFMCommunicate request_size=4 [10:15:16]MH_SAM_APDU [10:15:16]CAPDU: 80 13 01 00 [10:15:16]Write to MH i2c: E2 08 00 51 50 80 13 01 00 00 00 00 00 1E [10:15:16]Write i2c OK [10:15:16]MH_I2C_Read... [10:15:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:16]Read from MH i2c: E2 [10:15:16]MH_I2C_Read... [10:15:16]Read from MH i2c: E2 0E 00 [10:15:16]MH_I2C_Read... [10:15:16]Read from MH i2c: E2 0E 00 51 50 00 09 00 01 89 19 24 67 00 00 00 00 90 00 57 [10:15:16]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:15:16]wFMCommunicate OK [10:15:16]SAM_PROTO_GetShiftState done [10:15:16]FM_GetShiftState done [10:15:16]opened in 1730419081 [10:15:16]opened+sec_in_day 1730505481 [10:15:16]quantity*price = 6500 [10:15:16]sum+1 = 6501 [10:15:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 97 01.11.2024 10:15 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139916 ФПД: 184476682633536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T101522&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139916&fm=184476682633536&tin=02508201610067®Number=0000000000091631&sum=6500 0 [10:15:18]StoreToDocumentArchive [10:15:18]shift 558 fd 139916 [10:15:18]save to /storage/0558/doc_00139916 [10:15:18]save last doc name /storage/0558/doc_00139916 to /storage/kkm_last_doc_name [10:15:18]save OK [10:15:18]Clear old archive folders... [10:15:18]ProcessDocumentItem done err = 0, tmpTLVsize=299 [10:15:18]tlvbuf is 00A9F1D0 [10:15:18]SAM_PROTO_ClearQueue [10:15:18]wFMCommunicate request_size=4 [10:15:18]MH_SAM_APDU [10:15:18]CAPDU: 80 09 00 00 [10:15:18]Write to MH i2c: E2 08 00 5E 50 80 09 00 00 00 00 00 00 20 [10:15:18]Write i2c OK [10:15:18]MH_I2C_Read... [10:15:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:18]Read from MH i2c: E2 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: E2 03 00 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: E2 03 00 5E 50 00 90 00 22 [10:15:18]RAPDU: 90 00 [10:15:18]wFMCommunicate OK [10:15:18]SAM_PROTO_ClearQueue done [10:15:18]KKMCreateOFDPacket [10:15:18]OFDProtocolAddRootSTLVToBuf [10:15:18]FM_MakeSignedData [10:15:18]FM_MakeSignedData [10:15:18]SAM_PROTO_SignData [10:15:18]wFMCommunicate request_size=4 [10:15:18]MH_SAM_APDU [10:15:18]CAPDU: 80 0D 01 02 [10:15:18]Write to MH i2c: E2 08 00 5F 50 80 0D 01 02 00 00 00 00 28 [10:15:18]Write i2c OK [10:15:18]MH_I2C_Read... [10:15:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:18]Read from MH i2c: E2 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: E2 03 00 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: E2 03 00 5F 50 00 90 00 23 [10:15:18]RAPDU: 90 00 [10:15:18]wFMCommunicate OK [10:15:18]wFMCommunicate request_size=255 [10:15:18]MH_SAM_APDU [10:15:18]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 61 00 00 00 F4 03 04 00 3A AA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 [10:15:18]Write to MH i2c: E2 02 01 60 50 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 61 00 00 00 F4 03 04 00 3A AA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 D2 [10:15:18]Write i2c OK [10:15:18]MH_I2C_Read... [10:15:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:18]Read from MH i2c: E2 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: E2 03 00 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: E2 03 00 60 50 00 90 00 24 [10:15:18]RAPDU: 90 00 [10:15:18]wFMCommunicate OK [10:15:18]wFMCommunicate request_size=58 [10:15:18]MH_SAM_APDU [10:15:18]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8C 22 02 00 35 04 06 00 A7 C7 D3 23 41 40 [10:15:18]Write to MH i2c: E2 3D 00 61 50 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8C 22 02 00 35 04 06 00 A7 C7 D3 23 41 40 00 00 B2 [10:15:18]Write i2c OK [10:15:18]MH_I2C_Read... [10:15:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:18]Read from MH i2c: E2 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: E2 03 00 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: E2 03 00 61 50 00 90 00 25 [10:15:18]RAPDU: 90 00 [10:15:18]wFMCommunicate OK [10:15:18]wFMCommunicate request_size=4 [10:15:18]MH_SAM_APDU [10:15:18]CAPDU: 80 0D 03 02 [10:15:18]Write to MH i2c: E2 08 00 62 50 80 0D 03 02 00 00 00 00 2D [10:15:18]Write i2c OK [10:15:18]MH_I2C_Read... [10:15:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:18]Read from MH i2c: E2 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: E2 0B 00 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: E2 0B 00 62 50 00 E8 EE 79 AC D8 F7 84 58 90 00 D4 [10:15:18]RAPDU: E8 EE 79 AC D8 F7 84 58 90 00 [10:15:18]wFMCommunicate OK [10:15:18]SAM_PROTO_SignData done [10:15:18]FM_MakeSignedData done [10:15:18]CreateOFDProtocolMessage [10:15:18]wFMCommunicate request_size=4 [10:15:18]MH_SAM_APDU [10:15:18]CAPDU: 80 11 00 00 [10:15:18]Write to MH i2c: E2 08 00 63 50 80 11 00 00 00 00 00 00 2D [10:15:18]Write i2c OK [10:15:18]MH_I2C_Read... [10:15:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:18]Read from MH i2c: E2 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: E2 17 00 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: E2 17 00 63 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 88 [10:15:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:15:18]wFMCommunicate OK [10:15:18]CreateOFDProtocolMessage done [10:15:18]OFDSenderStorePacket 139916 [10:15:18]StoreOFDPacket docnum=139916 [10:15:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3F 01 00 00 40 05 37 01 A1 5B 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 61 00 00 00 F4 03 04 00 3A AA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8C 22 02 00 35 04 06 00 A7 C7 D3 23 41 40 E8 EE 79 AC D8 F7 84 58 [10:15:18]CheckFolder [10:15:18]dirname=/storage/ofd_packets [10:15:18]CheckFolder done [10:15:18]ProducePacketName [10:15:18]name=ofd_packets/00139916 [10:15:18]NVStorageSaveData ofd_packets/00139916 [10:15:18]File name is /storage/ofd_packets/00139916 [10:15:18]Write 349 bytes [10:15:18]NVStorageSaveData done [10:15:18]OFDSenderStorePacket done [10:15:18]KKMCreateOFDPacket done [10:15:18]NVStorageSaveData kkm_last_timestamp [10:15:18]File name is /storage/kkm_last_timestamp [10:15:18]Write 4 bytes [10:15:18]NVStorageSaveData done [10:15:18]ExternCall_PrintAddStr [10:15:18]wPrintStart [10:15:18]Write to MH i2c: 01 00 00 64 50 B4 [10:15:18]Write i2c OK [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: 01 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: 01 07 00 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: 01 07 00 64 50 00 00 00 00 00 FF 0F C9 [10:15:18]RasterBufferAndPrint [10:15:18]line Счет N : (3)335737 [10:15:18]line ИНН: 02508201610067 [10:15:18]line Контрольно-Кассовый Чек [10:15:18]line ПРОДАЖА [10:15:18]line Товар: 2000032780015 [10:15:18]line Слойка DC треугольная курица 110г [10:15:18]line 1.000 * 65.00 [10:15:18]line = 65.00 [10:15:18]line НДС 12% НСП 1% [10:15:18]line > о реализуемом товаре [10:15:18]line ИТОГО: 65.00 [10:15:18]line НСП 1% : 0.57 [10:15:18]line НДС 12% : 6.90 [10:15:18]line Наличными: 65.00 [10:15:18]line Безнал.: 0.00 [10:15:18]line Место: АЗС № 101 "Партнер Нефть" [10:15:18]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:15:18]line СНО: Общий режим [10:15:18]line Чек 97 01.11.2024 10:15 [10:15:18]line Смена: 558 ФФД: 1.0 [10:15:18]line ЗНМ: 0300000081 [10:15:18]line РНМ: 0000000000091631 [10:15:18]line Версия ККМ: 001 [10:15:18]line ФМ: 0000000000874669 [10:15:18]line ФД: 139916 [10:15:18]line ФПД: 184476682633536 [10:15:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T101522&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139916&fm=184476682633536&tin=02508201610067®Number=0000000000091631&sum=6500 [10:15:18]line 0 [10:15:18]OFD Sender: Processing packet 139916 [packets to send 34, broken 33] [10:15:18]ProducePacketName [10:15:18]name=ofd_packets/00139916 [10:15:18]OFD Sender: To server: pG, [10:15:18]CommunicateWithHost lk.salyk.kg:30040 [10:15:18]ConnectInit lk.salyk.kg [10:15:18]written 0, free lines is 4095 [10:15:19]Connected sock=10 [10:15:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3F 01 00 00 40 05 37 01 A1 5B 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 61 00 00 00 F4 03 04 00 3A AA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8C 22 02 00 35 04 06 00 A7 C7 D3 23 41 40 E8 EE 79 AC D8 F7 84 58 [10:15:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 BF 00 47 00 E5 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8C 22 02 00 F4 03 04 00 E5 55 24 67 B6 04 01 00 00 BA AD 76 BF C5 4D 54 C0 [10:15:19]CommunicateWithHost err = 0 [10:15:19]CheckOFDResponse [10:15:19]1017 (14) - 77093643461234 [10:15:19]1041 (16) - 0000000000874669 [10:15:19]1040 (4) - 139916 [10:15:19]1012 (4) - 01.11.2024 04:15 [10:15:19]1206 (1) - 0 [10:15:19]OFD Sender: Remove packet 139916 [10:15:19]ProducePacketName [10:15:19]name=ofd_packets/00139916 [10:15:19]NVStorageDeleteData [10:15:19]Write to MH i2c: 01 00 00 8D 50 DD [10:15:19]Write i2c OK [10:15:19]MH_I2C_Read... [10:15:19]Read from MH i2c: 01 [10:15:19]MH_I2C_Read... [10:15:19]Read from MH i2c: 01 07 00 [10:15:19]MH_I2C_Read... [10:15:19]Read from MH i2c: 01 07 00 8D 50 00 00 00 00 00 F5 0C E5 [10:15:19]RasterBufferAndPrint [10:15:19]line [10:15:19]line [10:15:19]line [10:15:19]line [10:15:19]line [10:15:19]written 0, free lines is 3324 [10:15:19]MH_Cut [10:15:19]Write to MH i2c: D1 01 00 94 50 01 B6 [10:15:19]Write i2c OK [10:15:19]MH_I2C_Read... [10:15:19]Read from MH i2c: D1 [10:15:19]MH_I2C_Read... [10:15:19]Read from MH i2c: D1 01 00 [10:15:19]MH_I2C_Read... [10:15:19]Read from MH i2c: D1 01 00 94 50 00 B5 [10:15:19]Write to MH i2c: 01 00 00 95 50 E5 [10:15:19]Write i2c OK [10:15:19]MH_I2C_Read... [10:15:19]OFD Sender: No OFD packet to send [10:15:20]*** Cut start [10:15:20]*** Partial cut [10:15:20]*** CUTSNS_PIN = 1 [10:15:20]*** CUTSNS_PIN = 0 [10:15:20]*** Brake cut motor [10:15:20]Read from MH i2c: 01 [10:15:20]MH_I2C_Read... [10:15:20]*** Stop cut motor [10:15:20]*** Cut end [10:15:20]Read from MH i2c: 01 07 00 [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: 01 07 00 95 50 00 00 00 00 00 FF 0F FA [10:15:20]process_action close_receipt done [10:15:20]requested_data is exist [10:15:20]produce_requested_data [10:15:20]requested_item fm.sn is exist - process it [10:15:20]wFMCommunicate request_size=4 [10:15:20]MH_SAM_APDU [10:15:20]CAPDU: 80 11 00 00 [10:15:20]Write to MH i2c: E2 08 00 96 50 80 11 00 00 00 00 00 00 60 [10:15:20]Write i2c OK [10:15:20]MH_I2C_Read... [10:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:20]Read from MH i2c: E2 [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: E2 17 00 [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: E2 17 00 96 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BB [10:15:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:15:20]wFMCommunicate OK [10:15:20]requested_item fd.num is exist - process it [10:15:20]SAM_PROTO_GetFieldsCounters [10:15:20]wFMCommunicate request_size=4 [10:15:20]MH_SAM_APDU [10:15:20]CAPDU: 80 13 00 00 [10:15:20]Write to MH i2c: E2 08 00 97 50 80 13 00 00 00 00 00 00 63 [10:15:20]Write i2c OK [10:15:20]MH_I2C_Read... [10:15:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:20]Read from MH i2c: E2 [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: E2 62 00 [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: E2 62 00 97 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 8C 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [10:15:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 8C 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:20]wFMCommunicate OK [10:15:20]SAM_PROTO_GetFieldsCounters done [10:15:20]requested_item shift.num is exist - process it [10:15:20]requested_item shift.opened is exist - process it [10:15:20]req_shift_opened [10:15:20]FM_GetShiftState [10:15:20]SAM_PROTO_GetShiftState [10:15:20]wFMCommunicate request_size=4 [10:15:20]MH_SAM_APDU [10:15:20]CAPDU: 80 13 01 00 [10:15:20]Write to MH i2c: E2 08 00 98 50 80 13 01 00 00 00 00 00 65 [10:15:20]Write i2c OK [10:15:20]MH_I2C_Read... [10:15:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:20]Read from MH i2c: E2 [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: E2 0E 00 [10:15:20]MH_I2C_Read... [10:15:20]Read from MH i2c: E2 0E 00 98 50 00 09 00 01 89 19 24 67 00 00 00 00 90 00 9E [10:15:20]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:15:20]wFMCommunicate OK [10:15:20]SAM_PROTO_GetShiftState done [10:15:20]FM_GetShiftState done [10:15:20]req_shift_opened done [10:15:20]requested_item shift.open_date is exist - process it [10:15:20]req_shift_open_date [10:15:20]req_shift_open_date done [10:15:20]produce_requested_data done [10:15:20]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139916,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [10:15:20]process_action_free close_receipt [10:15:20]json_value_free [10:15:20]json_value_free done [10:15:20]process_json_proto returns [10:15:20]Send response to host [10:15:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139916,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [10:15:20]free response buf [10:15:20]execute_script done [10:15:20]execute_script returns [10:15:20]free content buf [10:15:20]Sock 9.Close socket [10:15:20]Sock 9.Thread stoped [10:15:24]OFD Sender: No OFD packet to send [10:15:28]accept exits with 7 [10:15:28]New connection [10:15:28]New thread 3066510692 created [10:15:28]Thread 3066654052 joined [10:15:28]Waiting for new connection... [10:15:28] Sock 7.Parse request [10:15:28]Sock 7.Check first char [10:15:28]Sock 7.First char is OK [10:15:28]request: POST /json_proto HTTP/1.0 [10:15:28]Method: POST [10:15:28]URL: /json_proto [10:15:28]Method is POST - this is cgi request [10:15:28]url: /json_proto [10:15:28]query_string will be loaded in cgi processing [10:15:28]execute_cgi json_proto POST (null) [10:15:28]execute_cgi path=json_proto method=POST [10:15:28]POST find Content-Length [10:15:28]Host: 172.17.50.196:8080 [10:15:28]Content-Length: 710 [10:15:28]Content-Type: application/json [10:15:28] [10:15:28]POST finish read [10:15:28]Found Content-Length = 710 [10:15:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335738", "tax_sys" : 0, "items" : [ { "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 4.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" ] } } [10:15:28]execute_script... [10: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)335738", "tax_sys" : 0, "items" : [ { "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 4.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" ] } } [10:15:28]POST & json_proto [10:15:28]process_json_proto [10:15:28]json parsed OK: [10:15:28]protocol is kg_v1.0 [10:15:28]action value=close_receipt [10:15:28]process_action close_receipt [10:15:28]cmd_close_receipt [10:15:28]MH_GetDate [10:15:28]Write to MH i2c: F0 00 00 99 50 D8 [10:15:28]Write i2c OK [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: F0 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: F0 09 00 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: F0 09 00 99 50 00 45 AA 24 67 72 0D 1C 67 5D [10:15:28]GetLastDocTimeStamp 1730456122 [10:15:28]current date 1730456133 [10:15:28]FM_GetShiftState [10:15:28]SAM_PROTO_GetShiftState [10:15:28]wFMCommunicate request_size=4 [10:15:28]MH_SAM_APDU [10:15:28]CAPDU: 80 13 01 00 [10:15:28]Write to MH i2c: E2 08 00 9A 50 80 13 01 00 00 00 00 00 67 [10:15:28]Write i2c OK [10:15:28]MH_I2C_Read... [10:15:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:28]Read from MH i2c: E2 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: E2 0E 00 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: E2 0E 00 9A 50 00 09 00 01 89 19 24 67 00 00 00 00 90 00 A0 [10:15:28]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:15:28]wFMCommunicate OK [10:15:28]SAM_PROTO_GetShiftState done [10:15:28]FM_GetShiftState done [10:15:28]opened in 1730419081 [10:15:28]opened+sec_in_day 1730505481 [10:15:28]quantity*price = 26000 [10:15:28]sum+1 = 26001 [10:15:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 98 01.11.2024 10:15 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139917 ФПД: 90066046576678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T101533&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139917&fm=90066046576678&tin=02508201610067®Number=0000000000091631&sum=26000 0 [10:15:29]StoreToDocumentArchive [10:15:29]shift 558 fd 139917 [10:15:29]save to /storage/0558/doc_00139917 [10:15:29]save last doc name /storage/0558/doc_00139917 to /storage/kkm_last_doc_name [10:15:29]save OK [10:15:29]Clear old archive folders... [10:15:29]ProcessDocumentItem done err = 0, tmpTLVsize=299 [10:15:29]tlvbuf is B6F0C940 [10:15:29]SAM_PROTO_ClearQueue [10:15:29]wFMCommunicate request_size=4 [10:15:29]MH_SAM_APDU [10:15:29]CAPDU: 80 09 00 00 [10:15:29]Write to MH i2c: E2 08 00 A7 50 80 09 00 00 00 00 00 00 69 [10:15:29]Write i2c OK [10:15:29]MH_I2C_Read... [10:15:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:29]Read from MH i2c: E2 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: E2 03 00 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: E2 03 00 A7 50 00 90 00 6B [10:15:29]RAPDU: 90 00 [10:15:29]wFMCommunicate OK [10:15:29]SAM_PROTO_ClearQueue done [10:15:29]KKMCreateOFDPacket [10:15:29]OFDProtocolAddRootSTLVToBuf [10:15:29]FM_MakeSignedData [10:15:29]FM_MakeSignedData [10:15:29]SAM_PROTO_SignData [10:15:29]wFMCommunicate request_size=4 [10:15:29]MH_SAM_APDU [10:15:29]CAPDU: 80 0D 01 02 [10:15:29]Write to MH i2c: E2 08 00 A8 50 80 0D 01 02 00 00 00 00 71 [10:15:29]Write i2c OK [10:15:29]MH_I2C_Read... [10:15:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:29]Read from MH i2c: E2 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: E2 03 00 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: E2 03 00 A8 50 00 90 00 6C [10:15:29]RAPDU: 90 00 [10:15:29]wFMCommunicate OK [10:15:29]wFMCommunicate request_size=255 [10:15:29]MH_SAM_APDU [10:15:29]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 64 19 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 62 00 00 00 F4 03 04 00 45 AA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 [10:15:29]Write to MH i2c: E2 02 01 A9 50 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 64 19 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 62 00 00 00 F4 03 04 00 45 AA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 1F [10:15:29]Write i2c OK [10:15:29]MH_I2C_Read... [10:15:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:29]Read from MH i2c: E2 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: E2 03 00 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: E2 03 00 A9 50 00 90 00 6D [10:15:29]RAPDU: 90 00 [10:15:29]wFMCommunicate OK [10:15:29]wFMCommunicate request_size=58 [10:15:29]MH_SAM_APDU [10:15:29]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8D 22 02 00 35 04 06 00 51 EA 22 B6 68 26 [10:15:29]Write to MH i2c: E2 3D 00 AA 50 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8D 22 02 00 35 04 06 00 51 EA 22 B6 68 26 00 00 B8 [10:15:29]Write i2c OK [10:15:29]MH_I2C_Read... [10:15:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:29]Read from MH i2c: E2 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: E2 03 00 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: E2 03 00 AA 50 00 90 00 6E [10:15:29]RAPDU: 90 00 [10:15:29]wFMCommunicate OK [10:15:29]wFMCommunicate request_size=4 [10:15:29]MH_SAM_APDU [10:15:29]CAPDU: 80 0D 03 02 [10:15:29]Write to MH i2c: E2 08 00 AB 50 80 0D 03 02 00 00 00 00 76 [10:15:29]Write i2c OK [10:15:29]MH_I2C_Read... [10:15:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:29]Read from MH i2c: E2 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: E2 0B 00 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: E2 0B 00 AB 50 00 DC 4C 01 E1 FE 87 38 1F 90 00 5D [10:15:29]RAPDU: DC 4C 01 E1 FE 87 38 1F 90 00 [10:15:29]wFMCommunicate OK [10:15:29]SAM_PROTO_SignData done [10:15:29]FM_MakeSignedData done [10:15:29]CreateOFDProtocolMessage [10:15:29]wFMCommunicate request_size=4 [10:15:29]MH_SAM_APDU [10:15:29]CAPDU: 80 11 00 00 [10:15:29]Write to MH i2c: E2 08 00 AC 50 80 11 00 00 00 00 00 00 76 [10:15:29]Write i2c OK [10:15:29]MH_I2C_Read... [10:15:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:29]Read from MH i2c: E2 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: E2 17 00 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: E2 17 00 AC 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D1 [10:15:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:15:29]wFMCommunicate OK [10:15:29]CreateOFDProtocolMessage done [10:15:29]OFDSenderStorePacket 139917 [10:15:29]StoreOFDPacket docnum=139917 [10:15:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3F 01 00 00 0A 4A 37 01 C6 FD 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 64 19 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 62 00 00 00 F4 03 04 00 45 AA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8D 22 02 00 35 04 06 00 51 EA 22 B6 68 26 DC 4C 01 E1 FE 87 38 1F [10:15:29]CheckFolder [10:15:29]dirname=/storage/ofd_packets [10:15:29]CheckFolder done [10:15:29]ProducePacketName [10:15:29]name=ofd_packets/00139917 [10:15:29]NVStorageSaveData ofd_packets/00139917 [10:15:29]File name is /storage/ofd_packets/00139917 [10:15:29]Write 349 bytes [10:15:29]NVStorageSaveData done [10:15:29]OFDSenderStorePacket done [10:15:29]KKMCreateOFDPacket done [10:15:29]NVStorageSaveData kkm_last_timestamp [10:15:29]File name is /storage/kkm_last_timestamp [10:15:29]Write 4 bytes [10:15:29]NVStorageSaveData done [10:15:29]ExternCall_PrintAddStr [10:15:29]wPrintStart [10:15:29]Write to MH i2c: 01 00 00 AD 50 FD [10:15:29]OFD Sender: Processing packet 139917 [packets to send 34, broken 33] [10:15:29]ProducePacketName [10:15:29]name=ofd_packets/00139917 [10:15:29]OFD Sender: To server: pG, [10:15:29]CommunicateWithHost lk.salyk.kg:30040 [10:15:29]ConnectInit lk.salyk.kg [10:15:29]Write i2c OK [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: 01 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: 01 07 00 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: 01 07 00 AD 50 00 00 00 00 00 FF 0F 12 [10:15:29]RasterBufferAndPrint [10:15:29]line Счет N : (3)335738 [10:15:29]line ИНН: 02508201610067 [10:15:29]line Контрольно-Кассовый Чек [10:15:29]line ПРОДАЖА [10:15:29]line Товар: 2000032780015 [10:15:29]line Слойка DC треугольная курица 110г [10:15:29]line 4.000 * 65.00 [10:15:29]line = 260.00 [10:15:29]line НДС 12% НСП 1% [10:15:29]line > о реализуемом товаре [10:15:29]line ИТОГО: 260.00 [10:15:29]line НСП 1% : 2.30 [10:15:29]line НДС 12% : 27.61 [10:15:29]line Наличными: 260.00 [10:15:29]line Безнал.: 0.00 [10:15:29]line Место: АЗС № 101 "Партнер Нефть" [10:15:29]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:15:29]line СНО: Общий режим [10:15:29]line Чек 98 01.11.2024 10:15 [10:15:29]line Смена: 558 ФФД: 1.0 [10:15:29]line ЗНМ: 0300000081 [10:15:29]line РНМ: 0000000000091631 [10:15:29]line Версия ККМ: 001 [10:15:29]line ФМ: 0000000000874669 [10:15:29]line ФД: 139917 [10:15:29]line ФПД: 90066046576678 [10:15:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T101533&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139917&fm=90066046576678&tin=02508201610067®Number=0000000000091631&sum=26000 [10:15:29]line 0 [10:15:29]written 0, free lines is 4095 [10:15:29]Connected sock=10 [10:15:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3F 01 00 00 0A 4A 37 01 C6 FD 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 64 19 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 62 00 00 00 F4 03 04 00 45 AA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8D 22 02 00 35 04 06 00 51 EA 22 B6 68 26 DC 4C 01 E1 FE 87 38 1F [10:15:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 81 F8 47 00 00 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8D 22 02 00 F4 03 04 00 F0 55 24 67 B6 04 01 00 00 63 78 9C 16 28 C2 A5 42 [10:15:30]CommunicateWithHost err = 0 [10:15:30]CheckOFDResponse [10:15:30]1017 (14) - 77093643461234 [10:15:30]1041 (16) - 0000000000874669 [10:15:30]1040 (4) - 139917 [10:15:30]1012 (4) - 01.11.2024 04:15 [10:15:30]1206 (1) - 0 [10:15:30]OFD Sender: Remove packet 139917 [10:15:30]ProducePacketName [10:15:30]name=ofd_packets/00139917 [10:15:30]NVStorageDeleteData [10:15:30]Write to MH i2c: 01 00 00 D6 50 26 [10:15:30]Write i2c OK [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: 01 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: 01 07 00 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: 01 07 00 D6 50 00 00 00 00 00 01 0D 3B [10:15:30]RasterBufferAndPrint [10:15:30]line [10:15:30]line [10:15:30]line [10:15:30]line [10:15:30]line [10:15:30]written 0, free lines is 3341 [10:15:30]MH_Cut [10:15:30]Write to MH i2c: D1 01 00 DD 50 01 FF [10:15:30]Write i2c OK [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: D1 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: D1 01 00 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: D1 01 00 DD 50 00 FE [10:15:30]Write to MH i2c: 01 00 00 DE 50 2E [10:15:30]Write i2c OK [10:15:30]MH_I2C_Read... [10:15:30]OFD Sender: No OFD packet to send [10:15:30]*** Cut start [10:15:30]*** Partial cut [10:15:30]*** CUTSNS_PIN = 1 [10:15:30]*** CUTSNS_PIN = 0 [10:15:31]*** Brake cut motor [10:15:31]Read from MH i2c: 01 [10:15:31]MH_I2C_Read... [10:15:31]*** Stop cut motor [10:15:31]*** Cut end [10:15:31]Read from MH i2c: 01 07 00 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: 01 07 00 DE 50 00 00 00 00 00 FF 0F 43 [10:15:31]process_action close_receipt done [10:15:31]requested_data is exist [10:15:31]produce_requested_data [10:15:31]requested_item fm.sn is exist - process it [10:15:31]wFMCommunicate request_size=4 [10:15:31]MH_SAM_APDU [10:15:31]CAPDU: 80 11 00 00 [10:15:31]Write to MH i2c: E2 08 00 DF 50 80 11 00 00 00 00 00 00 A9 [10:15:31]Write i2c OK [10:15:31]MH_I2C_Read... [10:15:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:31]Read from MH i2c: E2 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 17 00 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 17 00 DF 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 04 [10:15:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:15:31]wFMCommunicate OK [10:15:31]requested_item fd.num is exist - process it [10:15:31]SAM_PROTO_GetFieldsCounters [10:15:31]wFMCommunicate request_size=4 [10:15:31]MH_SAM_APDU [10:15:31]CAPDU: 80 13 00 00 [10:15:31]Write to MH i2c: E2 08 00 E0 50 80 13 00 00 00 00 00 00 AC [10:15:31]Write i2c OK [10:15:31]MH_I2C_Read... [10:15:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:31]Read from MH i2c: E2 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 62 00 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 62 00 E0 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 8D 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [10:15:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 8D 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:31]wFMCommunicate OK [10:15:31]SAM_PROTO_GetFieldsCounters done [10:15:31]requested_item shift.num is exist - process it [10:15:31]requested_item shift.opened is exist - process it [10:15:31]req_shift_opened [10:15:31]FM_GetShiftState [10:15:31]SAM_PROTO_GetShiftState [10:15:31]wFMCommunicate request_size=4 [10:15:31]MH_SAM_APDU [10:15:31]CAPDU: 80 13 01 00 [10:15:31]Write to MH i2c: E2 08 00 E1 50 80 13 01 00 00 00 00 00 AE [10:15:31]Write i2c OK [10:15:31]MH_I2C_Read... [10:15:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:31]Read from MH i2c: E2 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 0E 00 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 0E 00 E1 50 00 09 00 01 89 19 24 67 00 00 00 00 90 00 E7 [10:15:31]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:15:31]wFMCommunicate OK [10:15:31]SAM_PROTO_GetShiftState done [10:15:31]FM_GetShiftState done [10:15:31]req_shift_opened done [10:15:31]requested_item shift.open_date is exist - process it [10:15:31]req_shift_open_date [10:15:31]req_shift_open_date done [10:15:31]produce_requested_data done [10:15:31]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139917,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [10:15:31]process_action_free close_receipt [10:15:31]json_value_free [10:15:31]json_value_free done [10:15:31]process_json_proto returns [10:15:31]Send response to host [10:15:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139917,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [10:15:31]free response buf [10:15:31]execute_script done [10:15:31]execute_script returns [10:15:31]free content buf [10:15:31]Sock 7.Close socket [10:15:31]Sock 7.Thread stoped [10:15:35]OFD Sender: No OFD packet to send [10:15:40]OFD Sender: No OFD packet to send [10:15:45]OFD Sender: No OFD packet to send [10:15:50]OFD Sender: No OFD packet to send [10:15:55]OFD Sender: No OFD packet to send [10:16:00]OFD Sender: No OFD packet to send [10:16:05]OFD Sender: No OFD packet to send [10:16:10]OFD Sender: No OFD packet to send [10:16:15]OFD Sender: No OFD packet to send [10:16:20]OFD Sender: No OFD packet to send [10:16:25]OFD Sender: No OFD packet to send [10:16:30]OFD Sender: No OFD packet to send [10:16:35]OFD Sender: No OFD packet to send [10:16:40]OFD Sender: No OFD packet to send [10:16:45]OFD Sender: No OFD packet to send [10:16:50]OFD Sender: No OFD packet to send [10:16:55]OFD Sender: No OFD packet to send [10:17:00]OFD Sender: No OFD packet to send [10:17:05]OFD Sender: No OFD packet to send [10:17:10]OFD Sender: No OFD packet to send [10:17:15]OFD Sender: No OFD packet to send [10:17:20]OFD Sender: No OFD packet to send [10:17:25]OFD Sender: No OFD packet to send [10:17:30]OFD Sender: No OFD packet to send [10:17:35]OFD Sender: No OFD packet to send [10:17:40]OFD Sender: No OFD packet to send [10:17:45]OFD Sender: No OFD packet to send [10:17:50]OFD Sender: No OFD packet to send [10:17:55]OFD Sender: No OFD packet to send [10:18:00]OFD Sender: No OFD packet to send [10:18:05]OFD Sender: No OFD packet to send [10:18:10]OFD Sender: No OFD packet to send [10:18:15]OFD Sender: No OFD packet to send [10:18:20]OFD Sender: No OFD packet to send [10:18:25]OFD Sender: No OFD packet to send [10:18:30]OFD Sender: No OFD packet to send [10:18:35]OFD Sender: No OFD packet to send [10:18:40]OFD Sender: No OFD packet to send [10:18:45]OFD Sender: No OFD packet to send [10:18:50]OFD Sender: No OFD packet to send [10:18:55]OFD Sender: No OFD packet to send [10:19:00]OFD Sender: No OFD packet to send [10:19:05]OFD Sender: No OFD packet to send [10:19:10]OFD Sender: No OFD packet to send [10:19:15]OFD Sender: No OFD packet to send [10:19:20]OFD Sender: No OFD packet to send [10:19:25]OFD Sender: No OFD packet to send [10:19:29]accept exits with 9 [10:19:29]New connection [10:19:29]New thread 3066654052 created [10:19:29]Thread 3066510692 joined [10:19:29]Waiting for new connection... [10:19:29] Sock 9.Parse request [10:19:29]Sock 9.Check first char [10:19:29]Sock 9.First char is OK [10:19:29]request: POST /json_proto HTTP/1.0 [10:19:29]Method: POST [10:19:29]URL: /json_proto [10:19:29]Method is POST - this is cgi request [10:19:29]url: /json_proto [10:19:29]query_string will be loaded in cgi processing [10:19:29]execute_cgi json_proto POST (null) [10:19:29]execute_cgi path=json_proto method=POST [10:19:29]POST find Content-Length [10:19:29]Host: 172.17.50.196:8080 [10:19:29]Content-Length: 2012 [10:19:29]Content-Type: application/json [10:19:29] [10:19:29]POST finish read [10:19:29]Found Content-Length = 2012 [10:19:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335739", "tax_sys" : 0, "items" : [ { "code": "2000032770016", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u0441\u044B\u0440110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 555.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:29]execute_script... [10:19: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)335739", "tax_sys" : 0, "items" : [ { "code": "2000032770016", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u0441\u044B\u0440110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 555.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:30]POST & json_proto [10:19:30]process_json_proto [10:19:30]json parsed OK: [10:19:30]protocol is kg_v1.0 [10:19:30]action value=close_receipt [10:19:30]process_action close_receipt [10:19:30]cmd_close_receipt [10:19:30]MH_GetDate [10:19:30]Write to MH i2c: F0 00 00 E2 50 21 [10:19:30]Write i2c OK [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: F0 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: F0 09 00 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: F0 09 00 E2 50 00 37 AB 24 67 72 0D 1C 67 99 [10:19:30]GetLastDocTimeStamp 1730456133 [10:19:30]current date 1730456375 [10:19:30]FM_GetShiftState [10:19:30]SAM_PROTO_GetShiftState [10:19:30]wFMCommunicate request_size=4 [10:19:30]MH_SAM_APDU [10:19:30]CAPDU: 80 13 01 00 [10:19:30]Write to MH i2c: E2 08 00 E3 50 80 13 01 00 00 00 00 00 B0 [10:19:30]Write i2c OK [10:19:30]MH_I2C_Read... [10:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:30]Read from MH i2c: E2 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: E2 0E 00 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: E2 0E 00 E3 50 00 09 00 01 89 19 24 67 00 00 00 00 90 00 E9 [10:19:30]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:19:30]wFMCommunicate OK [10:19:30]SAM_PROTO_GetShiftState done [10:19:30]FM_GetShiftState done [10:19:30]opened in 1730419081 [10:19:30]opened+sec_in_day 1730505481 [10:19:30]quantity*price = 6500 [10:19:30]sum+1 = 6501 [10:19:30]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032780015 Слойка DC треугольная курица 110г 2.000 * 65.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000032780025 Сосиска в тесте DC 110г 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 2.000 * 115.00 = 230.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202521186 Чай холодный MAXI черный со вкусом клубн 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 555.00 НСП 1% : 4.90 НДС 12% : 58.92 Наличными: 0.00 Безнал.: 555.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 99 01.11.2024 10:19 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139918 ФПД: 57797208003052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T101935&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139918&fm=57797208003052&tin=02508201610067®Number=0000000000091631&sum=55500 0 [10:19:31]StoreToDocumentArchive [10:19:31]shift 558 fd 139918 [10:19:31]save to /storage/0558/doc_00139918 [10:19:31]save last doc name /storage/0558/doc_00139918 to /storage/kkm_last_doc_name [10:19:31]save OK [10:19:31]Clear old archive folders... [10:19:31]ProcessDocumentItem done err = 0, tmpTLVsize=776 [10:19:31]tlvbuf is 00B567B0 [10:19:31]SAM_PROTO_ClearQueue [10:19:31]wFMCommunicate request_size=4 [10:19:31]MH_SAM_APDU [10:19:31]CAPDU: 80 09 00 00 [10:19:31]Write to MH i2c: E2 08 00 F0 50 80 09 00 00 00 00 00 00 B2 [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:31]Read from MH i2c: E2 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 03 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 03 00 F0 50 00 90 00 B4 [10:19:31]RAPDU: 90 00 [10:19:31]wFMCommunicate OK [10:19:31]SAM_PROTO_ClearQueue done [10:19:31]KKMCreateOFDPacket [10:19:31]OFDProtocolAddRootSTLVToBuf [10:19:31]FM_MakeSignedData [10:19:31]FM_MakeSignedData [10:19:31]SAM_PROTO_SignData [10:19:31]wFMCommunicate request_size=4 [10:19:31]MH_SAM_APDU [10:19:31]CAPDU: 80 0D 01 02 [10:19:31]Write to MH i2c: E2 08 00 F1 50 80 0D 01 02 00 00 00 00 BA [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:31]Read from MH i2c: E2 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 03 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 03 00 F1 50 00 90 00 B5 [10:19:31]RAPDU: 90 00 [10:19:31]wFMCommunicate OK [10:19:31]wFMCommunicate request_size=255 [10:19:31]MH_SAM_APDU [10:19:31]CAPDU: 80 0D 02 02 FA 03 00 08 03 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 32 30 30 30 30 33 32 37 37 30 30 31 36 06 04 32 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D1 81 D1 8B D1 80 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 [10:19:31]Write to MH i2c: E2 02 01 F2 50 80 0D 02 02 FA 00 03 00 08 03 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 32 30 30 30 30 33 32 37 37 30 30 31 36 06 04 32 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D1 81 D1 8B D1 80 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 00 00 4A [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:31]Read from MH i2c: E2 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 03 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 03 00 F2 50 00 90 00 B6 [10:19:31]RAPDU: 90 00 [10:19:31]wFMCommunicate OK [10:19:31]wFMCommunicate request_size=255 [10:19:31]MH_SAM_APDU [10:19:31]CAPDU: 80 0D 02 02 FA F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 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 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 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 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 [10:19:31]Write to MH i2c: E2 02 01 F3 50 80 0D 02 02 FA 00 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 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 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 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 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 00 00 1A [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 F3 50 00 90 00 B7 [10:19:32]RAPDU: 90 00 [10:19:32]wFMCommunicate OK [10:19:32]wFMCommunicate request_size=255 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 80 0D 02 02 FA D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 CC D8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC D8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 37 AB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 [10:19:32]Write to MH i2c: E2 02 01 F4 50 80 0D 02 02 FA 00 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 CC D8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC D8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 37 AB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 00 00 25 [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 F4 50 00 90 00 B8 [10:19:32]RAPDU: 90 00 [10:19:32]wFMCommunicate OK [10:19:32]wFMCommunicate request_size=35 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8E 22 02 00 35 04 06 00 34 90 F6 0D 51 EC [10:19:32]Write to MH i2c: E2 26 00 F5 50 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8E 22 02 00 35 04 06 00 34 90 F6 0D 51 EC 00 00 70 [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 F5 50 00 90 00 B9 [10:19:32]RAPDU: 90 00 [10:19:32]wFMCommunicate OK [10:19:32]wFMCommunicate request_size=4 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 80 0D 03 02 [10:19:32]Write to MH i2c: E2 08 00 F6 50 80 0D 03 02 00 00 00 00 C1 [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 0B 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 0B 00 F6 50 00 58 D3 01 19 0A 68 83 6B 90 00 67 [10:19:32]RAPDU: 58 D3 01 19 0A 68 83 6B 90 00 [10:19:32]wFMCommunicate OK [10:19:32]SAM_PROTO_SignData done [10:19:32]FM_MakeSignedData done [10:19:32]CreateOFDProtocolMessage [10:19:32]wFMCommunicate request_size=4 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 80 11 00 00 [10:19:32]Write to MH i2c: E2 08 00 F7 50 80 11 00 00 00 00 00 00 C1 [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 17 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 17 00 F7 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1C [10:19:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:19:32]wFMCommunicate OK [10:19:32]CreateOFDProtocolMessage done [10:19:32]OFDSenderStorePacket 139918 [10:19:32]StoreOFDPacket docnum=139918 [10:19:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1C 03 00 00 47 0E 14 03 62 F8 5A 03 01 00 03 00 08 03 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 32 30 30 30 30 33 32 37 37 30 30 31 36 06 04 32 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D1 81 D1 8B D1 80 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 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 CC D8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC D8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 37 AB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8E 22 02 00 35 04 06 00 34 90 F6 0D 51 EC 58 D3 01 19 0A 68 83 6B [10:19:32]CheckFolder [10:19:32]dirname=/storage/ofd_packets [10:19:32]CheckFolder done [10:19:32]ProducePacketName [10:19:32]name=ofd_packets/00139918 [10:19:32]NVStorageSaveData ofd_packets/00139918 [10:19:32]File name is /storage/ofd_packets/00139918 [10:19:32]Write 826 bytes [10:19:32]NVStorageSaveData done [10:19:32]OFDSenderStorePacket done [10:19:32]KKMCreateOFDPacket done [10:19:32]NVStorageSaveData kkm_last_timestamp [10:19:32]File name is /storage/kkm_last_timestamp [10:19:32]Write 4 bytes [10:19:32]NVStorageSaveData done [10:19:32]ExternCall_PrintAddStr [10:19:32]wPrintStart [10:19:32]Write to MH i2c: 01 00 00 F8 50 48 [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: 01 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: 01 07 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: 01 07 00 F8 50 00 00 00 00 00 FF 0F 5D [10:19:32]RasterBufferAndPrint [10:19:32]line Счет N : (3)335739 [10:19:32]line ИНН: 02508201610067 [10:19:32]line Контрольно-Кассовый Чек [10:19:32]line ПРОДАЖА [10:19:32]line Товар: 2000032770016 [10:19:32]line Слойка DC треугольная сыр110г [10:19:32]line 1.000 * 65.00 [10:19:32]line = 65.00 [10:19:32]line НДС 12% НСП 1% [10:19:32]line > о реализуемом товаре [10:19:32]line Товар: 2000032780015 [10:19:32]line Слойка DC треугольная курица 110г [10:19:32]line 2.000 * 65.00 [10:19:32]line = 130.00 [10:19:32]line НДС 12% НСП 1% [10:19:32]line > о реализуемом товаре [10:19:32]line Товар: 2000032780025 [10:19:32]line Сосиска в тесте DC 110г [10:19:32]line 1.000 * 60.00 [10:19:32]line = 60.00 [10:19:32]line НДС 12% НСП 1% [10:19:32]line > о реализуемом товаре [10:19:32]line Товар: 2000036240010 [10:19:32]line Кофе Латте (GABB TRADE) [10:19:32]line 2.000 * 115.00 [10:19:32]line = 230.00 [10:19:32]line НДС 12% НСП 1% [10:19:32]line > о реализуемом товаре [10:19:32]line Товар: 4870202521186 [10:19:32]line Чай холодный MAXI черный со вкусом клубн [10:19:32]line 1.000 * 70.00 [10:19:32]line = 70.00 [10:19:32]line НДС 12% НСП 1% [10:19:32]line > о реализуемом товаре [10:19:32]line ИТОГО: 555.00 [10:19:32]line НСП 1% : 4.90 [10:19:32]line НДС 12% : 58.92 [10:19:33]line Наличными: 0.00 [10:19:33]line Безнал.: 555.00 [10:19:33]line Место: АЗС № 101 "Партнер Нефть" [10:19:33]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:19:33]line СНО: Общий режим [10:19:33]line Чек 99 01.11.2024 10:19 [10:19:33]line Смена: 558 ФФД: 1.0 [10:19:33]line ЗНМ: 0300000081 [10:19:33]line РНМ: 0000000000091631 [10:19:33]line Версия ККМ: 001 [10:19:33]line Платежная система: Mbank [10:19:33]line ФМ: 0000000000874669 [10:19:33]line ФД: 139918 [10:19:33]line ФПД: 57797208003052 [10:19:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T101935&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139918&fm=57797208003052&tin=02508201610067®Number=0000000000091631&sum=55500 [10:19:33]line 0 [10:19:33]OFD Sender: Processing packet 139918 [packets to send 34, broken 33] [10:19:33]ProducePacketName [10:19:33]name=ofd_packets/00139918 [10:19:33]OFD Sender: To server: pG, [10:19:33]CommunicateWithHost lk.salyk.kg:30040 [10:19:33]ConnectInit lk.salyk.kg [10:19:33]written 0, free lines is 4095 [10:19:33]Connected sock=10 [10:19:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1C 03 00 00 47 0E 14 03 62 F8 5A 03 01 00 03 00 08 03 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 32 30 30 30 30 33 32 37 37 30 30 31 36 06 04 32 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D1 81 D1 8B D1 80 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 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 CC D8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC D8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 37 AB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8E 22 02 00 35 04 06 00 34 90 F6 0D 51 EC 58 D3 01 19 0A 68 83 6B [10:19:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 AE D1 47 00 D3 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 34 36 36 39 10 04 04 00 8E 22 02 00 F4 03 04 00 E3 56 24 67 B6 04 01 00 00 AC 88 42 87 55 38 DC 27 [10:19:33]CommunicateWithHost err = 0 [10:19:33]CheckOFDResponse [10:19:33]1017 (14) - 77093643461234 [10:19:33]1041 (16) - 0000000000874669 [10:19:33]1040 (4) - 139918 [10:19:33]1012 (4) - 01.11.2024 04:19 [10:19:33]1206 (1) - 0 [10:19:33]OFD Sender: Remove packet 139918 [10:19:33]ProducePacketName [10:19:33]name=ofd_packets/00139918 [10:19:33]NVStorageDeleteData [10:19:33]Write to MH i2c: 01 00 00 3C 51 8D [10:19:33]Write i2c OK [10:19:33]MH_I2C_Read... [10:19:33]Read from MH i2c: 01 [10:19:33]MH_I2C_Read... [10:19:33]Read from MH i2c: 01 07 00 [10:19:33]MH_I2C_Read... [10:19:33]Read from MH i2c: 01 07 00 3C 51 00 00 00 00 00 B5 0B 54 [10:19:33]RasterBufferAndPrint [10:19:33]line [10:19:33]line [10:19:33]line [10:19:33]line [10:19:33]line [10:19:33]written 0, free lines is 3009 [10:19:33]MH_Cut [10:19:33]Write to MH i2c: D1 01 00 43 51 01 66 [10:19:33]Write i2c OK [10:19:33]MH_I2C_Read... [10:19:33]Read from MH i2c: D1 [10:19:33]MH_I2C_Read... [10:19:33]Read from MH i2c: D1 01 00 [10:19:33]MH_I2C_Read... [10:19:33]Read from MH i2c: D1 01 00 43 51 00 65 [10:19:33]Write to MH i2c: 01 00 00 44 51 95 [10:19:33]Write i2c OK [10:19:33]MH_I2C_Read... [10:19:33]OFD Sender: No OFD packet to send [10:19:34]*** Cut start [10:19:34]*** Partial cut [10:19:34]*** CUTSNS_PIN = 1 [10:19:34]*** CUTSNS_PIN = 0 [10:19:34]*** Brake cut motor [10:19:35]Read from MH i2c: 01 [10:19:35]MH_I2C_Read... [10:19:35]*** Stop cut motor [10:19:35]*** Cut end [10:19:35]Read from MH i2c: 01 07 00 [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: 01 07 00 44 51 00 00 00 00 00 FF 0F AA [10:19:35]process_action close_receipt done [10:19:35]requested_data is exist [10:19:35]produce_requested_data [10:19:35]requested_item fm.sn is exist - process it [10:19:35]wFMCommunicate request_size=4 [10:19:35]MH_SAM_APDU [10:19:35]CAPDU: 80 11 00 00 [10:19:35]Write to MH i2c: E2 08 00 45 51 80 11 00 00 00 00 00 00 10 [10:19:35]Write i2c OK [10:19:35]MH_I2C_Read... [10:19:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:35]Read from MH i2c: E2 [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: E2 17 00 [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: E2 17 00 45 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6B [10:19:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:19:35]wFMCommunicate OK [10:19:35]requested_item fd.num is exist - process it [10:19:35]SAM_PROTO_GetFieldsCounters [10:19:35]wFMCommunicate request_size=4 [10:19:35]MH_SAM_APDU [10:19:35]CAPDU: 80 13 00 00 [10:19:35]Write to MH i2c: E2 08 00 46 51 80 13 00 00 00 00 00 00 13 [10:19:35]Write i2c OK [10:19:35]MH_I2C_Read... [10:19:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:35]Read from MH i2c: E2 [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: E2 62 00 [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: E2 62 00 46 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 8E 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [10:19:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 8E 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:35]wFMCommunicate OK [10:19:35]SAM_PROTO_GetFieldsCounters done [10:19:35]requested_item shift.num is exist - process it [10:19:35]requested_item shift.opened is exist - process it [10:19:35]req_shift_opened [10:19:35]FM_GetShiftState [10:19:35]SAM_PROTO_GetShiftState [10:19:35]wFMCommunicate request_size=4 [10:19:35]MH_SAM_APDU [10:19:35]CAPDU: 80 13 01 00 [10:19:35]Write to MH i2c: E2 08 00 47 51 80 13 01 00 00 00 00 00 15 [10:19:35]Write i2c OK [10:19:35]MH_I2C_Read... [10:19:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:35]Read from MH i2c: E2 [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: E2 0E 00 [10:19:35]MH_I2C_Read... [10:19:35]Read from MH i2c: E2 0E 00 47 51 00 09 00 01 89 19 24 67 00 00 00 00 90 00 4E [10:19:35]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:19:35]wFMCommunicate OK [10:19:35]SAM_PROTO_GetShiftState done [10:19:35]FM_GetShiftState done [10:19:35]req_shift_opened done [10:19:35]requested_item shift.open_date is exist - process it [10:19:35]req_shift_open_date [10:19:35]req_shift_open_date done [10:19:35]produce_requested_data done [10:19:35]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139918,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [10:19:35]process_action_free close_receipt [10:19:35]json_value_free [10:19:35]json_value_free done [10:19:35]process_json_proto returns [10:19:35]Send response to host [10:19:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139918,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [10:19:35]free response buf [10:19:35]execute_script done [10:19:35]execute_script returns [10:19:35]free content buf [10:19:35]Sock 9.Close socket [10:19:35]Sock 9.Thread stoped [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:38]accept exits with 7 [10:23:38]New connection [10:23:38]New thread 3066510692 created [10:23:38]Thread 3066654052 joined [10:23:38]Waiting for new connection... [10:23:38] Sock 7.Parse request [10:23:38]Sock 7.Check first char [10:23:38]Sock 7.First char is OK [10:23:38]request: POST /json_proto HTTP/1.0 [10:23:38]Method: POST [10:23:38]URL: /json_proto [10:23:38]Method is POST - this is cgi request [10:23:38]url: /json_proto [10:23:38]query_string will be loaded in cgi processing [10:23:38]execute_cgi json_proto POST (null) [10:23:38]execute_cgi path=json_proto method=POST [10:23:38]POST find Content-Length [10:23:38]Host: 172.17.50.196:8080 [10:23:38]Content-Length: 2027 [10:23:38]Content-Type: application/json [10:23:38] [10:23:38]POST finish read [10:23:38]Found Content-Length = 2027 [10:23:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335740", "tax_sys" : 0, "items" : [ { "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571092", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u0437\u0435\u043B.\u044F\u0431\u043B", "price" : 150.00, "quantity" : 4.000, "sum" : 600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 3.000, "sum" : 177.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 69.00, "quantity" : 4.000, "sum" : 276.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1547.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:38]execute_script... [10:23: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)335740", "tax_sys" : 0, "items" : [ { "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571092", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u0437\u0435\u043B.\u044F\u0431\u043B", "price" : 150.00, "quantity" : 4.000, "sum" : 600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 3.000, "sum" : 177.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 69.00, "quantity" : 4.000, "sum" : 276.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1547.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:39]POST & json_proto [10:23:39]process_json_proto [10:23:39]json parsed OK: [10:23:39]protocol is kg_v1.0 [10:23:39]action value=close_receipt [10:23:39]process_action close_receipt [10:23:39]cmd_close_receipt [10:23:39]MH_GetDate [10:23:39]Write to MH i2c: F0 00 00 48 51 88 [10:23:39]OFD Sender: No OFD packet to send [10:23:39]Write i2c OK [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: F0 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: F0 09 00 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: F0 09 00 48 51 00 30 AC 24 67 72 0D 1C 67 FA [10:23:39]GetLastDocTimeStamp 1730456375 [10:23:39]current date 1730456624 [10:23:39]FM_GetShiftState [10:23:39]SAM_PROTO_GetShiftState [10:23:39]wFMCommunicate request_size=4 [10:23:39]MH_SAM_APDU [10:23:39]CAPDU: 80 13 01 00 [10:23:39]Write to MH i2c: E2 08 00 49 51 80 13 01 00 00 00 00 00 17 [10:23:39]Write i2c OK [10:23:39]MH_I2C_Read... [10:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:39]Read from MH i2c: E2 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: E2 0E 00 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: E2 0E 00 49 51 00 09 00 01 89 19 24 67 00 00 00 00 90 00 50 [10:23:39]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:23:39]wFMCommunicate OK [10:23:39]SAM_PROTO_GetShiftState done [10:23:39]FM_GetShiftState done [10:23:39]opened in 1730419081 [10:23:39]opened+sec_in_day 1730505481 [10:23:39]quantity*price = 2500 [10:23:39]sum+1 = 2501 [10:23:39]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001571092 Сок Da-Da 1л зел.ябл 4.000 * 150.00 = 600.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 3.000 * 59.00 = 177.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4000417211002 Шоколад Ritter SPORT мол карам.мусс 100г 1.000 * 209.00 = 209.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065000790 Шок M&M`s с арахисом 45г 4.000 * 69.00 = 276.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 2.000 * 130.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1547.00 НСП 1% : 13.69 НДС 12% : 164.28 Наличными: 1547.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 100 01.11.2024 10:23 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139919 ФПД: 261260160864631 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T102344&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139919&fm=261260160864631&tin=02508201610067®Number=0000000000091631&sum=154700 0 [10:23:40]StoreToDocumentArchive [10:23:40]shift 558 fd 139919 [10:23:40]save to /storage/0558/doc_00139919 [10:23:40]save last doc name /storage/0558/doc_00139919 to /storage/kkm_last_doc_name [10:23:40]save OK [10:23:40]Clear old archive folders... [10:23:40]ProcessDocumentItem done err = 0, tmpTLVsize=851 [10:23:40]tlvbuf is 00B77FA0 [10:23:40]SAM_PROTO_ClearQueue [10:23:40]wFMCommunicate request_size=4 [10:23:40]MH_SAM_APDU [10:23:40]CAPDU: 80 09 00 00 [10:23:40]Write to MH i2c: E2 08 00 56 51 80 09 00 00 00 00 00 00 19 [10:23:40]Write i2c OK [10:23:40]MH_I2C_Read... [10:23:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:40]Read from MH i2c: E2 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: E2 03 00 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: E2 03 00 56 51 00 90 00 1B [10:23:40]RAPDU: 90 00 [10:23:40]wFMCommunicate OK [10:23:40]SAM_PROTO_ClearQueue done [10:23:40]KKMCreateOFDPacket [10:23:40]OFDProtocolAddRootSTLVToBuf [10:23:40]FM_MakeSignedData [10:23:40]FM_MakeSignedData [10:23:40]SAM_PROTO_SignData [10:23:40]wFMCommunicate request_size=4 [10:23:40]MH_SAM_APDU [10:23:40]CAPDU: 80 0D 01 02 [10:23:40]Write to MH i2c: E2 08 00 57 51 80 0D 01 02 00 00 00 00 21 [10:23:40]Write i2c OK [10:23:40]MH_I2C_Read... [10:23:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:40]Read from MH i2c: E2 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: E2 03 00 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: E2 03 00 57 51 00 90 00 1C [10:23:40]RAPDU: 90 00 [10:23:40]wFMCommunicate OK [10:23:40]wFMCommunicate request_size=255 [10:23:40]MH_SAM_APDU [10:23:40]CAPDU: 80 0D 02 02 FA 03 00 53 03 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 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 62 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 39 32 06 04 1E 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 2E D1 8F D0 B1 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 [10:23:40]Write to MH i2c: E2 02 01 58 51 80 0D 02 02 FA 00 03 00 53 03 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 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 62 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 39 32 06 04 1E 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 2E D1 8F D0 B1 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 00 00 46 [10:23:40]Write i2c OK [10:23:40]MH_I2C_Read... [10:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:41]Read from MH i2c: E2 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 03 00 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 03 00 58 51 00 90 00 1D [10:23:41]RAPDU: 90 00 [10:23:41]wFMCommunicate OK [10:23:41]wFMCommunicate request_size=255 [10:23:41]MH_SAM_APDU [10:23:41]CAPDU: 80 0D 02 02 FA 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 24 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 [10:23:41]Write to MH i2c: E2 02 01 59 51 80 0D 02 02 FA 00 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 24 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 00 00 D2 [10:23:41]Write i2c OK [10:23:41]MH_I2C_Read... [10:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:41]Read from MH i2c: E2 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 03 00 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 03 00 59 51 00 90 00 1E [10:23:41]RAPDU: 90 00 [10:23:41]wFMCommunicate OK [10:23:41]wFMCommunicate request_size=255 [10:23:41]MH_SAM_APDU [10:23:41]CAPDU: 80 0D 02 02 FA D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 5C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 40 00 00 00 00 07 04 06 00 4C 5C 02 00 [10:23:41]Write to MH i2c: E2 02 01 5A 51 80 0D 02 02 FA 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 5C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 40 00 00 00 00 07 04 06 00 4C 5C 02 00 00 00 58 [10:23:41]Write i2c OK [10:23:41]MH_I2C_Read... [10:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:41]Read from MH i2c: E2 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 03 00 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 03 00 5A 51 00 90 00 1F [10:23:41]RAPDU: 90 00 [10:23:41]wFMCommunicate OK [10:23:41]wFMCommunicate request_size=110 [10:23:41]MH_SAM_APDU [10:23:41]CAPDU: 80 0D 02 02 69 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 30 AC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8F 22 02 00 35 04 06 00 ED 9D 5F 15 11 77 [10:23:41]Write to MH i2c: E2 71 00 5B 51 80 0D 02 02 69 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 30 AC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8F 22 02 00 35 04 06 00 ED 9D 5F 15 11 77 00 00 58 [10:23:41]Write i2c OK [10:23:41]MH_I2C_Read... [10:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:41]Read from MH i2c: E2 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 03 00 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 03 00 5B 51 00 90 00 20 [10:23:41]RAPDU: 90 00 [10:23:41]wFMCommunicate OK [10:23:41]wFMCommunicate request_size=4 [10:23:41]MH_SAM_APDU [10:23:41]CAPDU: 80 0D 03 02 [10:23:41]Write to MH i2c: E2 08 00 5C 51 80 0D 03 02 00 00 00 00 28 [10:23:41]Write i2c OK [10:23:41]MH_I2C_Read... [10:23:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:41]Read from MH i2c: E2 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 0B 00 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 0B 00 5C 51 00 F3 84 DE 8A C9 53 A6 77 90 00 41 [10:23:41]RAPDU: F3 84 DE 8A C9 53 A6 77 90 00 [10:23:41]wFMCommunicate OK [10:23:41]SAM_PROTO_SignData done [10:23:41]FM_MakeSignedData done [10:23:41]CreateOFDProtocolMessage [10:23:41]wFMCommunicate request_size=4 [10:23:41]MH_SAM_APDU [10:23:41]CAPDU: 80 11 00 00 [10:23:41]Write to MH i2c: E2 08 00 5D 51 80 11 00 00 00 00 00 00 28 [10:23:41]Write i2c OK [10:23:41]MH_I2C_Read... [10:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:41]Read from MH i2c: E2 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 17 00 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 17 00 5D 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 83 [10:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:23:41]wFMCommunicate OK [10:23:41]CreateOFDProtocolMessage done [10:23:41]OFDSenderStorePacket 139919 [10:23:41]StoreOFDPacket docnum=139919 [10:23:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 67 03 00 00 99 DC 5F 03 43 A8 5A 03 01 00 03 00 53 03 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 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 62 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 39 32 06 04 1E 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 2E D1 8F D0 B1 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 24 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 5C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 40 00 00 00 00 07 04 06 00 4C 5C 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 30 AC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8F 22 02 00 35 04 06 00 ED 9D 5F 15 11 77 F3 84 DE 8A C9 53 A6 77 [10:23:41]CheckFolder [10:23:41]dirname=/storage/ofd_packets [10:23:41]CheckFolder done [10:23:41]ProducePacketName [10:23:41]name=ofd_packets/00139919 [10:23:41]NVStorageSaveData ofd_packets/00139919 [10:23:41]File name is /storage/ofd_packets/00139919 [10:23:41]Write 901 bytes [10:23:41]NVStorageSaveData done [10:23:42]OFDSenderStorePacket done [10:23:42]KKMCreateOFDPacket done [10:23:42]NVStorageSaveData kkm_last_timestamp [10:23:42]File name is /storage/kkm_last_timestamp [10:23:42]Write 4 bytes [10:23:42]NVStorageSaveData done [10:23:42]ExternCall_PrintAddStr [10:23:42]wPrintStart [10:23:42]Write to MH i2c: 01 00 00 5E 51 AF [10:23:42]OFD Sender: Processing packet 139919 [packets to send 34, broken 33] [10:23:42]ProducePacketName [10:23:42]name=ofd_packets/00139919 [10:23:42]Write i2c OK [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: 01 [10:23:42]MH_I2C_Read... [10:23:42]OFD Sender: To server: pG, [10:23:42]CommunicateWithHost lk.salyk.kg:30040 [10:23:42]ConnectInit lk.salyk.kg [10:23:42]Read from MH i2c: 01 07 00 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: 01 07 00 5E 51 00 00 00 00 00 FF 0F C4 [10:23:42]RasterBufferAndPrint [10:23:42]line Счет N : (3)335740 [10:23:42]line ИНН: 02508201610067 [10:23:42]line Контрольно-Кассовый Чек [10:23:42]line ПРОДАЖА [10:23:42]line Товар: 2000027340020 [10:23:42]line Пакет бумажный витая ручка [10:23:42]line 1.000 * 25.00 [10:23:42]line = 25.00 [10:23:42]line НДС 12% НСП 1% [10:23:42]line > о реализуемом товаре [10:23:42]line Товар: 4870001571092 [10:23:42]line Сок Da-Da 1л зел.ябл [10:23:42]line 4.000 * 150.00 [10:23:42]line = 600.00 [10:23:42]line НДС 12% НСП 1% [10:23:42]line > о реализуемом товаре [10:23:42]line Товар: 4607065001445 [10:23:42]line Шок батончик Snickers 50,5г [10:23:42]line 3.000 * 59.00 [10:23:42]line = 177.00 [10:23:42]line НДС 12% НСП 1% [10:23:42]line > о реализуемом товаре [10:23:42]line Товар: 4000417211002 [10:23:42]line Шоколад Ritter SPORT мол карам.мусс 100г [10:23:42]line 1.000 * 209.00 [10:23:42]line = 209.00 [10:23:42]line НДС 12% НСП 1% [10:23:42]line > о реализуемом товаре [10:23:42]line Товар: 4607065000790 [10:23:42]line Шок M&M`s с арахисом 45г [10:23:42]line 4.000 * 69.00 [10:23:42]line = 276.00 [10:23:42]line НДС 12% НСП 1% [10:23:42]line > о реализуемом товаре [10:23:42]line Товар: 2000036230011 [10:23:42]line Кофе Латте XL(GABB TRADE) [10:23:42]line 2.000 * 130.00 [10:23:42]line = 260.00 [10:23:42]line НДС 12% НСП 1% [10:23:42]line > о реализуемом товаре [10:23:42]line ИТОГО: 1547.00 [10:23:42]line НСП 1% : 13.69 [10:23:42]line НДС 12% : 164.28 [10:23:42]line Наличными: 1547.00 [10:23:42]line Безнал.: 0.00 [10:23:42]line Место: АЗС № 101 "Партнер Нефть" [10:23:42]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:23:42]line СНО: Общий режим [10:23:42]line Чек 100 01.11.2024 10:23 [10:23:42]line Смена: 558 ФФД: 1.0 [10:23:42]line ЗНМ: 0300000081 [10:23:42]line РНМ: 0000000000091631 [10:23:42]line Версия ККМ: 001 [10:23:42]line ФМ: 0000000000874669 [10:23:42]line ФД: 139919 [10:23:42]line ФПД: 261260160864631 [10:23:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T102344&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139919&fm=261260160864631&tin=02508201610067®Number=0000000000091631&sum=154700 [10:23:42]line 0 [10:23:42]written 0, free lines is 4095 [10:23:42]Connected sock=10 [10:23:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 67 03 00 00 99 DC 5F 03 43 A8 5A 03 01 00 03 00 53 03 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 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 62 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 39 32 06 04 1E 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 2E D1 8F D0 B1 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 24 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 5C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 40 00 00 00 00 07 04 06 00 4C 5C 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 30 AC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8F 22 02 00 35 04 06 00 ED 9D 5F 15 11 77 F3 84 DE 8A C9 53 A6 77 [10:23:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 CD 11 47 00 7A E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8F 22 02 00 F4 03 04 00 DC 57 24 67 B6 04 01 00 00 DA 7B E0 4E 0A 12 6E 6B [10:23:42]CommunicateWithHost err = 0 [10:23:42]CheckOFDResponse [10:23:42]1017 (14) - 77093643461234 [10:23:42]1041 (16) - 0000000000874669 [10:23:42]1040 (4) - 139919 [10:23:42]1012 (4) - 01.11.2024 04:23 [10:23:42]1206 (1) - 0 [10:23:42]OFD Sender: Remove packet 139919 [10:23:42]ProducePacketName [10:23:42]name=ofd_packets/00139919 [10:23:42]NVStorageDeleteData [10:23:43]Write to MH i2c: 01 00 00 A5 51 F6 [10:23:43]Write i2c OK [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: 01 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: 01 07 00 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: 01 07 00 A5 51 00 00 00 00 00 9F 0B A7 [10:23:43]RasterBufferAndPrint [10:23:43]line [10:23:43]line [10:23:43]line [10:23:43]line [10:23:43]line [10:23:43]written 0, free lines is 2987 [10:23:43]MH_Cut [10:23:43]Write to MH i2c: D1 01 00 AC 51 01 CF [10:23:43]Write i2c OK [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: D1 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: D1 01 00 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: D1 01 00 AC 51 00 CE [10:23:43]Write to MH i2c: 01 00 00 AD 51 FE [10:23:43]OFD Sender: No OFD packet to send [10:23:43]Write i2c OK [10:23:43]MH_I2C_Read... [10:23:43]*** Cut start [10:23:43]*** Partial cut [10:23:43]*** CUTSNS_PIN = 1 [10:23:43]*** CUTSNS_PIN = 0 [10:23:44]*** Brake cut motor [10:23:44]Read from MH i2c: 01 [10:23:44]MH_I2C_Read... [10:23:44]*** Stop cut motor [10:23:44]*** Cut end [10:23:44]Read from MH i2c: 01 07 00 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: 01 07 00 AD 51 00 00 00 00 00 FF 0F 13 [10:23:44]process_action close_receipt done [10:23:44]requested_data is exist [10:23:44]produce_requested_data [10:23:44]requested_item fm.sn is exist - process it [10:23:44]wFMCommunicate request_size=4 [10:23:44]MH_SAM_APDU [10:23:44]CAPDU: 80 11 00 00 [10:23:44]Write to MH i2c: E2 08 00 AE 51 80 11 00 00 00 00 00 00 79 [10:23:44]Write i2c OK [10:23:44]MH_I2C_Read... [10:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:44]Read from MH i2c: E2 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: E2 17 00 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: E2 17 00 AE 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D4 [10:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:23:44]wFMCommunicate OK [10:23:44]requested_item fd.num is exist - process it [10:23:44]SAM_PROTO_GetFieldsCounters [10:23:44]wFMCommunicate request_size=4 [10:23:44]MH_SAM_APDU [10:23:44]CAPDU: 80 13 00 00 [10:23:44]Write to MH i2c: E2 08 00 AF 51 80 13 00 00 00 00 00 00 7C [10:23:44]Write i2c OK [10:23:44]MH_I2C_Read... [10:23:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:44]Read from MH i2c: E2 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: E2 62 00 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: E2 62 00 AF 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 8F 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [10:23:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 8F 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:44]wFMCommunicate OK [10:23:44]SAM_PROTO_GetFieldsCounters done [10:23:44]requested_item shift.num is exist - process it [10:23:44]requested_item shift.opened is exist - process it [10:23:44]req_shift_opened [10:23:44]FM_GetShiftState [10:23:44]SAM_PROTO_GetShiftState [10:23:44]wFMCommunicate request_size=4 [10:23:44]MH_SAM_APDU [10:23:44]CAPDU: 80 13 01 00 [10:23:44]Write to MH i2c: E2 08 00 B0 51 80 13 01 00 00 00 00 00 7E [10:23:44]Write i2c OK [10:23:44]MH_I2C_Read... [10:23:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:44]Read from MH i2c: E2 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: E2 0E 00 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: E2 0E 00 B0 51 00 09 00 01 89 19 24 67 00 00 00 00 90 00 B7 [10:23:44]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:23:44]wFMCommunicate OK [10:23:44]SAM_PROTO_GetShiftState done [10:23:44]FM_GetShiftState done [10:23:44]req_shift_opened done [10:23:44]requested_item shift.open_date is exist - process it [10:23:44]req_shift_open_date [10:23:44]req_shift_open_date done [10:23:44]produce_requested_data done [10:23:44]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139919,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [10:23:44]process_action_free close_receipt [10:23:44]json_value_free [10:23:44]json_value_free done [10:23:44]process_json_proto returns [10:23:44]Send response to host [10:23:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139919,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [10:23:44]free response buf [10:23:44]execute_script done [10:23:44]execute_script returns [10:23:44]free content buf [10:23:44]Sock 7.Close socket [10:23:44]Sock 7.Thread stoped [10:23:46]accept exits with 9 [10:23:46]New connection [10:23:46]New thread 3066654052 created [10:23:46]Thread 3066510692 joined [10:23:46]Waiting for new connection... [10:23:46] Sock 9.Parse request [10:23:46]Sock 9.Check first char [10:23:46]Sock 9.First char is OK [10:23:46]request: POST /json_proto HTTP/1.0 [10:23:46]Method: POST [10:23:46]URL: /json_proto [10:23:46]Method is POST - this is cgi request [10:23:46]url: /json_proto [10:23:46]query_string will be loaded in cgi processing [10:23:46]execute_cgi json_proto POST (null) [10:23:46]execute_cgi path=json_proto method=POST [10:23:46]POST find Content-Length [10:23:46]Host: 172.17.50.196:8080 [10:23:46]Content-Length: 656 [10:23:46]Content-Type: application/json [10:23:46] [10:23:46]POST finish read [10:23:46]Found Content-Length = 656 [10:23:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335742", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:46]execute_script... [10:23: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)335742", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:46]POST & json_proto [10:23:46]process_json_proto [10:23:46]json parsed OK: [10:23:46]protocol is kg_v1.0 [10:23:46]action value=close_receipt [10:23:46]process_action close_receipt [10:23:46]cmd_close_receipt [10:23:46]MH_GetDate [10:23:46]Write to MH i2c: F0 00 00 B1 51 F1 [10:23:46]Write i2c OK [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: F0 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: F0 09 00 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: F0 09 00 B1 51 00 38 AC 24 67 72 0D 1C 67 6B [10:23:46]GetLastDocTimeStamp 1730456624 [10:23:46]current date 1730456632 [10:23:46]FM_GetShiftState [10:23:46]SAM_PROTO_GetShiftState [10:23:46]wFMCommunicate request_size=4 [10:23:46]MH_SAM_APDU [10:23:46]CAPDU: 80 13 01 00 [10:23:46]Write to MH i2c: E2 08 00 B2 51 80 13 01 00 00 00 00 00 80 [10:23:46]Write i2c OK [10:23:46]MH_I2C_Read... [10:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:46]Read from MH i2c: E2 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: E2 0E 00 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: E2 0E 00 B2 51 00 09 00 01 89 19 24 67 00 00 00 00 90 00 B9 [10:23:46]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:23:46]wFMCommunicate OK [10:23:46]SAM_PROTO_GetShiftState done [10:23:46]FM_GetShiftState done [10:23:46]opened in 1730419081 [10:23:46]opened+sec_in_day 1730505481 [10:23:46]quantity*price = 400 [10:23:46]sum+1 = 401 [10:23:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4.00 НСП 1% : 0.03 НДС 12% : 0.42 Наличными: 4.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 101 01.11.2024 10:23 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139920 ФПД: 196150238779769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T102352&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139920&fm=196150238779769&tin=02508201610067®Number=0000000000091631&sum=400 0 [10:23:47]StoreToDocumentArchive [10:23:47]shift 558 fd 139920 [10:23:47]save to /storage/0558/doc_00139920 [10:23:47]save last doc name /storage/0558/doc_00139920 to /storage/kkm_last_doc_name [10:23:47]save OK [10:23:47]Clear old archive folders... [10:23:47]ProcessDocumentItem done err = 0, tmpTLVsize=278 [10:23:47]tlvbuf is 00AE1BD0 [10:23:47]SAM_PROTO_ClearQueue [10:23:47]wFMCommunicate request_size=4 [10:23:47]MH_SAM_APDU [10:23:47]CAPDU: 80 09 00 00 [10:23:47]Write to MH i2c: E2 08 00 BF 51 80 09 00 00 00 00 00 00 82 [10:23:47]Write i2c OK [10:23:47]MH_I2C_Read... [10:23:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:47]Read from MH i2c: E2 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 03 00 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 03 00 BF 51 00 90 00 84 [10:23:47]RAPDU: 90 00 [10:23:47]wFMCommunicate OK [10:23:47]SAM_PROTO_ClearQueue done [10:23:47]KKMCreateOFDPacket [10:23:47]OFDProtocolAddRootSTLVToBuf [10:23:47]FM_MakeSignedData [10:23:47]FM_MakeSignedData [10:23:47]SAM_PROTO_SignData [10:23:47]wFMCommunicate request_size=4 [10:23:47]MH_SAM_APDU [10:23:47]CAPDU: 80 0D 01 02 [10:23:47]Write to MH i2c: E2 08 00 C0 51 80 0D 01 02 00 00 00 00 8A [10:23:47]Write i2c OK [10:23:47]MH_I2C_Read... [10:23:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:48]Read from MH i2c: E2 [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: E2 03 00 [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: E2 03 00 C0 51 00 90 00 85 [10:23:48]RAPDU: 90 00 [10:23:48]wFMCommunicate OK [10:23:48]wFMCommunicate request_size=255 [10:23:48]MH_SAM_APDU [10:23:48]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 38 AC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 [10:23:48]Write to MH i2c: E2 02 01 C1 51 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 38 AC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 00 00 C6 [10:23:48]OFD Sender: No OFD packet to send [10:23:48]Write i2c OK [10:23:48]MH_I2C_Read... [10:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:48]Read from MH i2c: E2 [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: E2 03 00 [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: E2 03 00 C1 51 00 90 00 86 [10:23:48]RAPDU: 90 00 [10:23:48]wFMCommunicate OK [10:23:48]wFMCommunicate request_size=37 [10:23:48]MH_SAM_APDU [10:23:48]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 90 22 02 00 35 04 06 00 B2 65 C9 4E 19 79 [10:23:48]Write to MH i2c: E2 28 00 C2 51 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 90 22 02 00 35 04 06 00 B2 65 C9 4E 19 79 00 00 60 [10:23:48]Write i2c OK [10:23:48]MH_I2C_Read... [10:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:48]Read from MH i2c: E2 [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: E2 03 00 [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: E2 03 00 C2 51 00 90 00 87 [10:23:48]RAPDU: 90 00 [10:23:48]wFMCommunicate OK [10:23:48]wFMCommunicate request_size=4 [10:23:48]MH_SAM_APDU [10:23:48]CAPDU: 80 0D 03 02 [10:23:48]Write to MH i2c: E2 08 00 C3 51 80 0D 03 02 00 00 00 00 8F [10:23:48]Write i2c OK [10:23:48]MH_I2C_Read... [10:23:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:48]Read from MH i2c: E2 [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: E2 0B 00 [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: E2 0B 00 C3 51 00 F9 0E 96 CF 61 0F 69 1A 90 00 EF [10:23:48]RAPDU: F9 0E 96 CF 61 0F 69 1A 90 00 [10:23:48]wFMCommunicate OK [10:23:48]SAM_PROTO_SignData done [10:23:48]FM_MakeSignedData done [10:23:48]CreateOFDProtocolMessage [10:23:48]wFMCommunicate request_size=4 [10:23:48]MH_SAM_APDU [10:23:48]CAPDU: 80 11 00 00 [10:23:48]Write to MH i2c: E2 08 00 C4 51 80 11 00 00 00 00 00 00 8F [10:23:48]Write i2c OK [10:23:48]MH_I2C_Read... [10:23:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:48]Read from MH i2c: E2 [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: E2 17 00 [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: E2 17 00 C4 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EA [10:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:23:48]wFMCommunicate OK [10:23:48]CreateOFDProtocolMessage done [10:23:48]OFDSenderStorePacket 139920 [10:23:48]StoreOFDPacket docnum=139920 [10:23:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 97 CB 22 01 0B 0D 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 38 AC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 90 22 02 00 35 04 06 00 B2 65 C9 4E 19 79 F9 0E 96 CF 61 0F 69 1A [10:23:48]CheckFolder [10:23:48]dirname=/storage/ofd_packets [10:23:48]CheckFolder done [10:23:48]ProducePacketName [10:23:48]name=ofd_packets/00139920 [10:23:48]NVStorageSaveData ofd_packets/00139920 [10:23:48]File name is /storage/ofd_packets/00139920 [10:23:48]Write 328 bytes [10:23:48]NVStorageSaveData done [10:23:48]OFDSenderStorePacket done [10:23:48]KKMCreateOFDPacket done [10:23:48]NVStorageSaveData kkm_last_timestamp [10:23:48]File name is /storage/kkm_last_timestamp [10:23:48]Write 4 bytes [10:23:48]NVStorageSaveData done [10:23:48]ExternCall_PrintAddStr [10:23:48]wPrintStart [10:23:48]Write to MH i2c: 01 00 00 C5 51 16 [10:23:48]Write i2c OK [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: 01 [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: 01 07 00 [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: 01 07 00 C5 51 00 00 00 00 00 FF 0F 2B [10:23:48]RasterBufferAndPrint [10:23:48]line Счет N : (3)335742 [10:23:48]line ИНН: 02508201610067 [10:23:48]line Контрольно-Кассовый Чек [10:23:48]line ПРОДАЖА [10:23:48]line Товар: 2000031750019 [10:23:48]line Пакет Партнер Нефть [10:23:48]line 1.000 * 4.00 [10:23:48]line = 4.00 [10:23:48]line НДС 12% НСП 1% [10:23:48]line > о реализуемом товаре [10:23:48]line ИТОГО: 4.00 [10:23:48]line НСП 1% : 0.03 [10:23:48]line НДС 12% : 0.42 [10:23:48]line Наличными: 4.00 [10:23:48]line Безнал.: 0.00 [10:23:48]line Место: АЗС № 101 "Партнер Нефть" [10:23:48]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:23:48]line СНО: Общий режим [10:23:48]line Чек 101 01.11.2024 10:23 [10:23:48]line Смена: 558 ФФД: 1.0 [10:23:48]line ЗНМ: 0300000081 [10:23:48]line РНМ: 0000000000091631 [10:23:48]line Версия ККМ: 001 [10:23:48]line ФМ: 0000000000874669 [10:23:48]line ФД: 139920 [10:23:48]line ФПД: 196150238779769 [10:23:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T102352&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139920&fm=196150238779769&tin=02508201610067®Number=0000000000091631&sum=400 [10:23:48]line 0 [10:23:48]written 0, free lines is 4095 [10:23:48]OFD Sender: Processing packet 139920 [packets to send 34, broken 33] [10:23:48]ProducePacketName [10:23:48]name=ofd_packets/00139920 [10:23:48]OFD Sender: To server: pG, [10:23:48]CommunicateWithHost lk.salyk.kg:30040 [10:23:48]ConnectInit lk.salyk.kg [10:23:48]Connected sock=10 [10:23:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 97 CB 22 01 0B 0D 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 38 AC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 90 22 02 00 35 04 06 00 B2 65 C9 4E 19 79 F9 0E 96 CF 61 0F 69 1A [10:23:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 BA 9C 47 00 73 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 90 22 02 00 F4 03 04 00 E3 57 24 67 B6 04 01 00 00 80 AD 25 F4 0B B0 86 B8 [10:23:49]CommunicateWithHost err = 0 [10:23:49]CheckOFDResponse [10:23:49]1017 (14) - 77093643461234 [10:23:49]1041 (16) - 0000000000874669 [10:23:49]1040 (4) - 139920 [10:23:49]1012 (4) - 01.11.2024 04:24 [10:23:49]1206 (1) - 0 [10:23:49]OFD Sender: Remove packet 139920 [10:23:49]ProducePacketName [10:23:49]name=ofd_packets/00139920 [10:23:49]NVStorageDeleteData [10:23:49]Write to MH i2c: 01 00 00 ED 51 3E [10:23:49]Write i2c OK [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: 01 [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: 01 07 00 [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: 01 07 00 ED 51 00 00 00 00 00 50 0D A2 [10:23:49]RasterBufferAndPrint [10:23:49]line [10:23:49]line [10:23:49]line [10:23:49]line [10:23:49]line [10:23:49]written 0, free lines is 3429 [10:23:49]MH_Cut [10:23:49]Write to MH i2c: D1 01 00 F4 51 01 17 [10:23:49]Write i2c OK [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: D1 [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: D1 01 00 [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: D1 01 00 F4 51 00 16 [10:23:49]Write to MH i2c: 01 00 00 F5 51 46 [10:23:49]Write i2c OK [10:23:49]MH_I2C_Read... [10:23:49]OFD Sender: No OFD packet to send [10:23:49]*** Cut start [10:23:49]*** Partial cut [10:23:49]*** CUTSNS_PIN = 1 [10:23:49]*** CUTSNS_PIN = 0 [10:23:50]*** Brake cut motor [10:23:50]Read from MH i2c: 01 [10:23:50]MH_I2C_Read... [10:23:50]*** Stop cut motor [10:23:50]*** Cut end [10:23:50]Read from MH i2c: 01 07 00 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: 01 07 00 F5 51 00 00 00 00 00 FF 0F 5B [10:23:50]process_action close_receipt done [10:23:50]requested_data is exist [10:23:50]produce_requested_data [10:23:50]requested_item fm.sn is exist - process it [10:23:50]wFMCommunicate request_size=4 [10:23:50]MH_SAM_APDU [10:23:50]CAPDU: 80 11 00 00 [10:23:50]Write to MH i2c: E2 08 00 F6 51 80 11 00 00 00 00 00 00 C1 [10:23:50]Write i2c OK [10:23:50]MH_I2C_Read... [10:23:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:50]Read from MH i2c: E2 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 17 00 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 17 00 F6 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1C [10:23:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:23:50]wFMCommunicate OK [10:23:50]requested_item fd.num is exist - process it [10:23:50]SAM_PROTO_GetFieldsCounters [10:23:50]wFMCommunicate request_size=4 [10:23:50]MH_SAM_APDU [10:23:50]CAPDU: 80 13 00 00 [10:23:50]Write to MH i2c: E2 08 00 F7 51 80 13 00 00 00 00 00 00 C4 [10:23:50]Write i2c OK [10:23:50]MH_I2C_Read... [10:23:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:50]Read from MH i2c: E2 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 62 00 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 62 00 F7 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 90 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [10:23:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 90 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:50]wFMCommunicate OK [10:23:50]SAM_PROTO_GetFieldsCounters done [10:23:50]requested_item shift.num is exist - process it [10:23:50]requested_item shift.opened is exist - process it [10:23:50]req_shift_opened [10:23:50]FM_GetShiftState [10:23:50]SAM_PROTO_GetShiftState [10:23:50]wFMCommunicate request_size=4 [10:23:50]MH_SAM_APDU [10:23:50]CAPDU: 80 13 01 00 [10:23:50]Write to MH i2c: E2 08 00 F8 51 80 13 01 00 00 00 00 00 C6 [10:23:50]Write i2c OK [10:23:50]MH_I2C_Read... [10:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:50]Read from MH i2c: E2 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 0E 00 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 0E 00 F8 51 00 09 00 01 89 19 24 67 00 00 00 00 90 00 FF [10:23:50]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:23:50]wFMCommunicate OK [10:23:50]SAM_PROTO_GetShiftState done [10:23:50]FM_GetShiftState done [10:23:50]req_shift_opened done [10:23:50]requested_item shift.open_date is exist - process it [10:23:50]req_shift_open_date [10:23:50]req_shift_open_date done [10:23:50]produce_requested_data done [10:23:50]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139920,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [10:23:50]process_action_free close_receipt [10:23:50]json_value_free [10:23:50]json_value_free done [10:23:50]process_json_proto returns [10:23:50]Send response to host [10:23:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139920,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [10:23:50]free response buf [10:23:50]execute_script done [10:23:50]execute_script returns [10:23:50]free content buf [10:23:50]Sock 9.Close socket [10:23:50]Sock 9.Thread stoped [10:23:54]OFD Sender: No OFD packet to send [10:23:59]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:14]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:26:59]accept exits with 7 [10:26:59]New connection [10:26:59]New thread 3066510692 created [10:26:59]Thread 3066654052 joined [10:26:59]Waiting for new connection... [10:26:59] Sock 7.Parse request [10:26:59]Sock 7.Check first char [10:26:59]Sock 7.First char is OK [10:26:59]request: POST /json_proto HTTP/1.0 [10:26:59]Method: POST [10:26:59]URL: /json_proto [10:26:59]Method is POST - this is cgi request [10:26:59]url: /json_proto [10:26:59]query_string will be loaded in cgi processing [10:26:59]execute_cgi json_proto POST (null) [10:26:59]execute_cgi path=json_proto method=POST [10:26:59]POST find Content-Length [10:26:59]Host: 172.17.50.196:8080 [10:26:59]Content-Length: 614 [10:26:59]Content-Type: application/json [10:26:59] [10:26:59]POST finish read [10:26:59]Found Content-Length = 614 [10:26:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335743", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 119.00, "quantity" : 1.000, "sum" : 119.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 119.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:59]execute_script... [10:26: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)335743", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 119.00, "quantity" : 1.000, "sum" : 119.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 119.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:59]POST & json_proto [10:26:59]process_json_proto [10:26:59]json parsed OK: [10:26:59]protocol is kg_v1.0 [10:26:59]action value=close_receipt [10:26:59]process_action close_receipt [10:26:59]cmd_close_receipt [10:26:59]MH_GetDate [10:26:59]Write to MH i2c: F0 00 00 F9 51 39 [10:26:59]Write i2c OK [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: F0 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: F0 09 00 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: F0 09 00 F9 51 00 F9 AC 24 67 72 0D 1C 67 74 [10:26:59]GetLastDocTimeStamp 1730456632 [10:26:59]current date 1730456825 [10:26:59]FM_GetShiftState [10:26:59]SAM_PROTO_GetShiftState [10:26:59]wFMCommunicate request_size=4 [10:26:59]MH_SAM_APDU [10:26:59]CAPDU: 80 13 01 00 [10:26:59]Write to MH i2c: E2 08 00 FA 51 80 13 01 00 00 00 00 00 C8 [10:26:59]Write i2c OK [10:26:59]MH_I2C_Read... [10:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:59]Read from MH i2c: E2 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: E2 0E 00 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: E2 0E 00 FA 51 00 09 00 01 89 19 24 67 00 00 00 00 90 00 01 [10:26:59]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:26:59]wFMCommunicate OK [10:26:59]SAM_PROTO_GetShiftState done [10:26:59]FM_GetShiftState done [10:26:59]opened in 1730419081 [10:26:59]opened+sec_in_day 1730505481 [10:26:59]quantity*price = 11900 [10:26:59]sum+1 = 11901 [10:26:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 119.00 НСП 1% : 1.05 НДС 12% : 12.64 Наличными: 119.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 102 01.11.2024 10:27 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139921 ФПД: 269617710768051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T102705&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139921&fm=269617710768051&tin=02508201610067®Number=0000000000091631&sum=11900 0 [10:27:00]StoreToDocumentArchive [10:27:00]shift 558 fd 139921 [10:27:00]save to /storage/0558/doc_00139921 [10:27:00]save last doc name /storage/0558/doc_00139921 to /storage/kkm_last_doc_name [10:27:00]save OK [10:27:00]Clear old archive folders... [10:27:00]ProcessDocumentItem done err = 0, tmpTLVsize=266 [10:27:00]tlvbuf is 00BCC9E0 [10:27:00]SAM_PROTO_ClearQueue [10:27:00]wFMCommunicate request_size=4 [10:27:00]MH_SAM_APDU [10:27:00]CAPDU: 80 09 00 00 [10:27:00]Write to MH i2c: E2 08 00 07 52 80 09 00 00 00 00 00 00 CB [10:27:00]Write i2c OK [10:27:00]MH_I2C_Read... [10:27:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:01]Read from MH i2c: E2 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: E2 03 00 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: E2 03 00 07 52 00 90 00 CD [10:27:01]RAPDU: 90 00 [10:27:01]wFMCommunicate OK [10:27:01]SAM_PROTO_ClearQueue done [10:27:01]KKMCreateOFDPacket [10:27:01]OFDProtocolAddRootSTLVToBuf [10:27:01]FM_MakeSignedData [10:27:01]FM_MakeSignedData [10:27:01]SAM_PROTO_SignData [10:27:01]wFMCommunicate request_size=4 [10:27:01]MH_SAM_APDU [10:27:01]CAPDU: 80 0D 01 02 [10:27:01]Write to MH i2c: E2 08 00 08 52 80 0D 01 02 00 00 00 00 D3 [10:27:01]Write i2c OK [10:27:01]MH_I2C_Read... [10:27:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:01]Read from MH i2c: E2 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: E2 03 00 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: E2 03 00 08 52 00 90 00 CE [10:27:01]RAPDU: 90 00 [10:27:01]wFMCommunicate OK [10:27:01]wFMCommunicate request_size=255 [10:27:01]MH_SAM_APDU [10:27:01]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 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 7C 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 F9 AC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 [10:27:01]Write to MH i2c: E2 02 01 09 52 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 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 7C 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 F9 AC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 00 00 94 [10:27:01]Write i2c OK [10:27:01]MH_I2C_Read... [10:27:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:01]Read from MH i2c: E2 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: E2 03 00 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: E2 03 00 09 52 00 90 00 CF [10:27:01]RAPDU: 90 00 [10:27:01]wFMCommunicate OK [10:27:01]wFMCommunicate request_size=25 [10:27:01]MH_SAM_APDU [10:27:01]CAPDU: 80 0D 02 02 14 36 39 10 04 04 00 91 22 02 00 35 04 06 00 F5 37 43 E0 1F B3 [10:27:01]Write to MH i2c: E2 1C 00 0A 52 80 0D 02 02 14 00 36 39 10 04 04 00 91 22 02 00 35 04 06 00 F5 37 43 E0 1F B3 00 00 9A [10:27:01]Write i2c OK [10:27:01]MH_I2C_Read... [10:27:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:01]Read from MH i2c: E2 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: E2 03 00 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: E2 03 00 0A 52 00 90 00 D0 [10:27:01]RAPDU: 90 00 [10:27:01]wFMCommunicate OK [10:27:01]wFMCommunicate request_size=4 [10:27:01]MH_SAM_APDU [10:27:01]CAPDU: 80 0D 03 02 [10:27:01]Write to MH i2c: E2 08 00 0B 52 80 0D 03 02 00 00 00 00 D8 [10:27:01]Write i2c OK [10:27:01]MH_I2C_Read... [10:27:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:01]Read from MH i2c: E2 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: E2 0B 00 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: E2 0B 00 0B 52 00 F9 18 FD 57 73 99 37 C3 90 00 44 [10:27:01]RAPDU: F9 18 FD 57 73 99 37 C3 90 00 [10:27:01]wFMCommunicate OK [10:27:01]SAM_PROTO_SignData done [10:27:01]FM_MakeSignedData done [10:27:01]CreateOFDProtocolMessage [10:27:01]wFMCommunicate request_size=4 [10:27:01]MH_SAM_APDU [10:27:01]CAPDU: 80 11 00 00 [10:27:01]Write to MH i2c: E2 08 00 0C 52 80 11 00 00 00 00 00 00 D8 [10:27:01]Write i2c OK [10:27:01]MH_I2C_Read... [10:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:01]Read from MH i2c: E2 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: E2 17 00 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: E2 17 00 0C 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 33 [10:27:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:27:01]wFMCommunicate OK [10:27:01]CreateOFDProtocolMessage done [10:27:01]OFDSenderStorePacket 139921 [10:27:01]StoreOFDPacket docnum=139921 [10:27:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1E 01 00 00 06 19 16 01 9B 43 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 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 7C 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 F9 AC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 91 22 02 00 35 04 06 00 F5 37 43 E0 1F B3 F9 18 FD 57 73 99 37 C3 [10:27:01]CheckFolder [10:27:01]dirname=/storage/ofd_packets [10:27:01]CheckFolder done [10:27:01]ProducePacketName [10:27:01]name=ofd_packets/00139921 [10:27:01]NVStorageSaveData ofd_packets/00139921 [10:27:01]File name is /storage/ofd_packets/00139921 [10:27:01]Write 316 bytes [10:27:01]NVStorageSaveData done [10:27:01]OFDSenderStorePacket done [10:27:01]KKMCreateOFDPacket done [10:27:01]NVStorageSaveData kkm_last_timestamp [10:27:01]File name is /storage/kkm_last_timestamp [10:27:01]Write 4 bytes [10:27:01]NVStorageSaveData done [10:27:01]ExternCall_PrintAddStr [10:27:01]wPrintStart [10:27:01]Write to MH i2c: 01 00 00 0D 52 5F [10:27:01]Write i2c OK [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: 01 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: 01 07 00 [10:27:01]MH_I2C_Read... [10:27:01]Read from MH i2c: 01 07 00 0D 52 00 00 00 00 00 FF 0F 74 [10:27:01]RasterBufferAndPrint [10:27:01]line Счет N : (3)335743 [10:27:01]line ИНН: 02508201610067 [10:27:01]line Контрольно-Кассовый Чек [10:27:01]line ПРОДАЖА [10:27:01]line Товар: 4870001570071 [10:27:01]line Напиток Pepsi 1л [10:27:01]line 1.000 * 119.00 [10:27:01]line = 119.00 [10:27:01]line НДС 12% НСП 1% [10:27:01]line > о реализуемом товаре [10:27:01]line ИТОГО: 119.00 [10:27:01]line НСП 1% : 1.05 [10:27:01]line НДС 12% : 12.64 [10:27:01]line Наличными: 119.00 [10:27:01]line Безнал.: 0.00 [10:27:01]line Место: АЗС № 101 "Партнер Нефть" [10:27:01]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:27:01]line СНО: Общий режим [10:27:01]line Чек 102 01.11.2024 10:27 [10:27:01]line Смена: 558 ФФД: 1.0 [10:27:01]line ЗНМ: 0300000081 [10:27:01]line РНМ: 0000000000091631 [10:27:01]line Версия ККМ: 001 [10:27:01]line ФМ: 0000000000874669 [10:27:01]line ФД: 139921 [10:27:01]line ФПД: 269617710768051 [10:27:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T102705&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139921&fm=269617710768051&tin=02508201610067®Number=0000000000091631&sum=11900 [10:27:01]OFD Sender: Processing packet 139921 [packets to send 34, broken 33] [10:27:01]ProducePacketName [10:27:01]name=ofd_packets/00139921 [10:27:01]OFD Sender: To server: pG, [10:27:01]CommunicateWithHost lk.salyk.kg:30040 [10:27:01]ConnectInit lk.salyk.kg [10:27:01]line 0 [10:27:01]written 0, free lines is 4095 [10:27:01]Connected sock=11 [10:27:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1E 01 00 00 06 19 16 01 9B 43 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 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 7C 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 F9 AC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 91 22 02 00 35 04 06 00 F5 37 43 E0 1F B3 F9 18 FD 57 73 99 37 C3 [10:27:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 D2 C8 47 00 2B 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 91 22 02 00 F4 03 04 00 A4 58 24 67 B6 04 01 00 00 F8 D3 72 62 71 CB A0 A7 [10:27:02]CommunicateWithHost err = 0 [10:27:02]CheckOFDResponse [10:27:02]1017 (14) - 77093643461234 [10:27:02]1041 (16) - 0000000000874669 [10:27:02]1040 (4) - 139921 [10:27:02]1012 (4) - 01.11.2024 04:27 [10:27:02]1206 (1) - 0 [10:27:02]OFD Sender: Remove packet 139921 [10:27:02]ProducePacketName [10:27:02]name=ofd_packets/00139921 [10:27:02]NVStorageDeleteData [10:27:02]Write to MH i2c: 01 00 00 35 52 87 [10:27:02]Write i2c OK [10:27:02]MH_I2C_Read... [10:27:02]Read from MH i2c: 01 [10:27:02]MH_I2C_Read... [10:27:02]Read from MH i2c: 01 07 00 [10:27:02]MH_I2C_Read... [10:27:02]Read from MH i2c: 01 07 00 35 52 00 00 00 00 00 05 0D A0 [10:27:02]RasterBufferAndPrint [10:27:02]line [10:27:02]line [10:27:02]line [10:27:02]line [10:27:02]line [10:27:02]written 0, free lines is 3342 [10:27:02]MH_Cut [10:27:02]Write to MH i2c: D1 01 00 3C 52 01 60 [10:27:02]Write i2c OK [10:27:02]MH_I2C_Read... [10:27:02]Read from MH i2c: D1 [10:27:02]MH_I2C_Read... [10:27:02]Read from MH i2c: D1 01 00 [10:27:02]MH_I2C_Read... [10:27:02]Read from MH i2c: D1 01 00 3C 52 00 5F [10:27:02]Write to MH i2c: 01 00 00 3D 52 8F [10:27:02]Write i2c OK [10:27:02]MH_I2C_Read... [10:27:02]OFD Sender: No OFD packet to send [10:27:02]*** Cut start [10:27:02]*** Partial cut [10:27:02]*** CUTSNS_PIN = 1 [10:27:03]*** CUTSNS_PIN = 0 [10:27:03]*** Brake cut motor [10:27:03]Read from MH i2c: 01 [10:27:03]MH_I2C_Read... [10:27:03]*** Stop cut motor [10:27:03]*** Cut end [10:27:03]Read from MH i2c: 01 07 00 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: 01 07 00 3D 52 00 00 00 00 00 FF 0F A4 [10:27:03]process_action close_receipt done [10:27:03]requested_data is exist [10:27:03]produce_requested_data [10:27:03]requested_item fm.sn is exist - process it [10:27:03]wFMCommunicate request_size=4 [10:27:03]MH_SAM_APDU [10:27:03]CAPDU: 80 11 00 00 [10:27:03]Write to MH i2c: E2 08 00 3E 52 80 11 00 00 00 00 00 00 0A [10:27:03]Write i2c OK [10:27:03]MH_I2C_Read... [10:27:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:03]Read from MH i2c: E2 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: E2 17 00 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: E2 17 00 3E 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 65 [10:27:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:27:03]wFMCommunicate OK [10:27:03]requested_item fd.num is exist - process it [10:27:03]SAM_PROTO_GetFieldsCounters [10:27:03]wFMCommunicate request_size=4 [10:27:03]MH_SAM_APDU [10:27:03]CAPDU: 80 13 00 00 [10:27:03]Write to MH i2c: E2 08 00 3F 52 80 13 00 00 00 00 00 00 0D [10:27:03]Write i2c OK [10:27:03]MH_I2C_Read... [10:27:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:03]Read from MH i2c: E2 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: E2 62 00 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: E2 62 00 3F 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 91 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [10:27:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 91 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:03]wFMCommunicate OK [10:27:03]SAM_PROTO_GetFieldsCounters done [10:27:03]requested_item shift.num is exist - process it [10:27:03]requested_item shift.opened is exist - process it [10:27:03]req_shift_opened [10:27:03]FM_GetShiftState [10:27:03]SAM_PROTO_GetShiftState [10:27:03]wFMCommunicate request_size=4 [10:27:03]MH_SAM_APDU [10:27:03]CAPDU: 80 13 01 00 [10:27:03]Write to MH i2c: E2 08 00 40 52 80 13 01 00 00 00 00 00 0F [10:27:03]Write i2c OK [10:27:03]MH_I2C_Read... [10:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:03]Read from MH i2c: E2 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: E2 0E 00 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: E2 0E 00 40 52 00 09 00 01 89 19 24 67 00 00 00 00 90 00 48 [10:27:03]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:27:03]wFMCommunicate OK [10:27:03]SAM_PROTO_GetShiftState done [10:27:03]FM_GetShiftState done [10:27:03]req_shift_opened done [10:27:03]requested_item shift.open_date is exist - process it [10:27:03]req_shift_open_date [10:27:03]req_shift_open_date done [10:27:03]produce_requested_data done [10:27:03]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139921,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [10:27:03]process_action_free close_receipt [10:27:03]json_value_free [10:27:03]json_value_free done [10:27:03]process_json_proto returns [10:27:03]Send response to host [10:29:07]OFD Sender: No OFD packet to send [10:29:12]OFD Sender: No OFD packet to send [10:29:17]OFD Sender: No OFD packet to send [10:29:22]OFD Sender: No OFD packet to send [10:29:27]OFD Sender: No OFD packet to send [10:29:32]OFD Sender: No OFD packet to send [10:29:37]OFD Sender: No OFD packet to send [10:29:42]OFD Sender: No OFD packet to send [10:29:47]OFD Sender: No OFD packet to send [10:29:52]OFD Sender: No OFD packet to send [10:29:57]OFD Sender: No OFD packet to send [10:30:02]OFD Sender: No OFD packet to send [10:30:07]OFD Sender: No OFD packet to send [10:30:12]OFD Sender: No OFD packet to send [10:30:17]OFD Sender: No OFD packet to send [10:30:22]OFD Sender: No OFD packet to send [10:30:27]OFD Sender: No OFD packet to send [10:30:32]OFD Sender: No OFD packet to send [10:30:37]OFD Sender: No OFD packet to send [10:30:42]OFD Sender: No OFD packet to send [10:30:47]OFD Sender: No OFD packet to send [10:30:52]OFD Sender: No OFD packet to send [10:30:57]OFD Sender: No OFD packet to send [10:31:02]OFD Sender: No OFD packet to send [10:31:07]OFD Sender: No OFD packet to send [10:31:12]OFD Sender: No OFD packet to send [10:31:12]accept exits with 10 [10:31:12]New connection [10:31:12]New thread 3066654052 created [10:31:12]Thread 3066510692 joined [10:31:12]Waiting for new connection... [10:31:12] Sock 10.Parse request [10:31:12]Sock 10.Check first char [10:31:12]Sock 10.First char is OK [10:31:12]request: POST /json_proto HTTP/1.0 [10:31:12]Method: POST [10:31:12]URL: /json_proto [10:31:12]Method is POST - this is cgi request [10:31:12]url: /json_proto [10:31:12]query_string will be loaded in cgi processing [10:31:12]execute_cgi json_proto POST (null) [10:31:12]execute_cgi path=json_proto method=POST [10:31:12]POST find Content-Length [10:31:12]Host: 172.17.50.196:8080 [10:31:12]Content-Length: 855 [10:31:12]Content-Type: application/json [10:31:12] [10:31:12]POST finish read [10:31:12]Found Content-Length = 855 [10:31:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335744", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:12]execute_script... [10:31: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)335744", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:12]POST & json_proto [10:31:12]process_json_proto [10:31:12]json parsed OK: [10:31:12]protocol is kg_v1.0 [10:31:12]action value=close_receipt [10:31:12]process_action close_receipt [10:31:12]cmd_close_receipt [10:31:12]MH_GetDate [10:31:12]Write to MH i2c: F0 00 00 4B 52 8C [10:31:12]Write i2c OK [10:31:12]MH_I2C_Read... [10:31:12]Read from MH i2c: F0 [10:31:12]MH_I2C_Read... [10:31:12]Read from MH i2c: F0 09 00 [10:31:12]MH_I2C_Read... [10:31:12]Read from MH i2c: F0 09 00 4B 52 00 F6 AD 24 67 72 0D 1C 67 C5 [10:31:12]GetLastDocTimeStamp 1730456825 [10:31:12]current date 1730457078 [10:31:12]FM_GetShiftState [10:31:12]SAM_PROTO_GetShiftState [10:31:12]wFMCommunicate request_size=4 [10:31:12]MH_SAM_APDU [10:31:12]CAPDU: 80 13 01 00 [10:31:12]Write to MH i2c: E2 08 00 4C 52 80 13 01 00 00 00 00 00 1B [10:31:12]Write i2c OK [10:31:12]MH_I2C_Read... [10:31:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:12]Read from MH i2c: E2 [10:31:12]MH_I2C_Read... [10:31:12]Read from MH i2c: E2 0E 00 [10:31:12]MH_I2C_Read... [10:31:12]Read from MH i2c: E2 0E 00 4C 52 00 09 00 01 89 19 24 67 00 00 00 00 90 00 54 [10:31:12]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:31:12]wFMCommunicate OK [10:31:12]SAM_PROTO_GetShiftState done [10:31:12]FM_GetShiftState done [10:31:12]opened in 1730419081 [10:31:12]opened+sec_in_day 1730505481 [10:31:12]quantity*price = 12000 [10:31:12]sum+1 = 12001 [10:31:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 0.00 Безнал.: 120.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 103 01.11.2024 10:31 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139922 ФПД: 30109034291209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T103118&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139922&fm=30109034291209&tin=02508201610067®Number=0000000000091631&sum=12000 0 [10:31:14]StoreToDocumentArchive [10:31:14]shift 558 fd 139922 [10:31:14]save to /storage/0558/doc_00139922 [10:31:14]save last doc name /storage/0558/doc_00139922 to /storage/kkm_last_doc_name [10:31:14]save OK [10:31:14]Clear old archive folders... [10:31:14]ProcessDocumentItem done err = 0, tmpTLVsize=308 [10:31:14]tlvbuf is 00BCC630 [10:31:14]SAM_PROTO_ClearQueue [10:31:14]wFMCommunicate request_size=4 [10:31:14]MH_SAM_APDU [10:31:14]CAPDU: 80 09 00 00 [10:31:14]Write to MH i2c: E2 08 00 59 52 80 09 00 00 00 00 00 00 1D [10:31:14]Write i2c OK [10:31:14]MH_I2C_Read... [10:31:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:14]Read from MH i2c: E2 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: E2 03 00 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: E2 03 00 59 52 00 90 00 1F [10:31:14]RAPDU: 90 00 [10:31:14]wFMCommunicate OK [10:31:14]SAM_PROTO_ClearQueue done [10:31:14]KKMCreateOFDPacket [10:31:14]OFDProtocolAddRootSTLVToBuf [10:31:14]FM_MakeSignedData [10:31:14]FM_MakeSignedData [10:31:14]SAM_PROTO_SignData [10:31:14]wFMCommunicate request_size=4 [10:31:14]MH_SAM_APDU [10:31:14]CAPDU: 80 0D 01 02 [10:31:14]Write to MH i2c: E2 08 00 5A 52 80 0D 01 02 00 00 00 00 25 [10:31:14]Write i2c OK [10:31:14]MH_I2C_Read... [10:31:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:14]Read from MH i2c: E2 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: E2 03 00 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: E2 03 00 5A 52 00 90 00 20 [10:31:14]RAPDU: 90 00 [10:31:14]wFMCommunicate OK [10:31:14]wFMCommunicate request_size=255 [10:31:14]MH_SAM_APDU [10:31:14]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 F6 AD 24 67 0E 04 04 00 2E 02 00 00 B9 [10:31:14]Write to MH i2c: E2 02 01 5B 52 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 F6 AD 24 67 0E 04 04 00 2E 02 00 00 B9 00 00 1A [10:31:14]Write i2c OK [10:31:14]MH_I2C_Read... [10:31:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:14]Read from MH i2c: E2 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: E2 03 00 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: E2 03 00 5B 52 00 90 00 21 [10:31:14]RAPDU: 90 00 [10:31:14]wFMCommunicate OK [10:31:14]wFMCommunicate request_size=67 [10:31:14]MH_SAM_APDU [10:31:14]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 92 22 02 00 35 04 06 00 1B 62 4E 4B 20 09 [10:31:14]Write to MH i2c: E2 46 00 5C 52 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 92 22 02 00 35 04 06 00 1B 62 4E 4B 20 09 00 00 78 [10:31:14]Write i2c OK [10:31:14]MH_I2C_Read... [10:31:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:14]Read from MH i2c: E2 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: E2 03 00 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: E2 03 00 5C 52 00 90 00 22 [10:31:14]RAPDU: 90 00 [10:31:14]wFMCommunicate OK [10:31:14]wFMCommunicate request_size=4 [10:31:14]MH_SAM_APDU [10:31:14]CAPDU: 80 0D 03 02 [10:31:14]Write to MH i2c: E2 08 00 5D 52 80 0D 03 02 00 00 00 00 2A [10:31:14]Write i2c OK [10:31:14]MH_I2C_Read... [10:31:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:14]Read from MH i2c: E2 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: E2 0B 00 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: E2 0B 00 5D 52 00 8C 61 13 27 A8 F0 8D BE 90 00 35 [10:31:14]RAPDU: 8C 61 13 27 A8 F0 8D BE 90 00 [10:31:14]wFMCommunicate OK [10:31:14]SAM_PROTO_SignData done [10:31:14]FM_MakeSignedData done [10:31:14]CreateOFDProtocolMessage [10:31:14]wFMCommunicate request_size=4 [10:31:14]MH_SAM_APDU [10:31:14]CAPDU: 80 11 00 00 [10:31:14]Write to MH i2c: E2 08 00 5E 52 80 11 00 00 00 00 00 00 2A [10:31:14]Write i2c OK [10:31:14]MH_I2C_Read... [10:31:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:14]Read from MH i2c: E2 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: E2 17 00 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: E2 17 00 5E 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 85 [10:31:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:31:14]wFMCommunicate OK [10:31:14]CreateOFDProtocolMessage done [10:31:14]OFDSenderStorePacket 139922 [10:31:14]StoreOFDPacket docnum=139922 [10:31:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 48 01 00 00 CE 14 40 01 09 DB 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 F6 AD 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 92 22 02 00 35 04 06 00 1B 62 4E 4B 20 09 8C 61 13 27 A8 F0 8D BE [10:31:14]CheckFolder [10:31:14]dirname=/storage/ofd_packets [10:31:14]CheckFolder done [10:31:14]ProducePacketName [10:31:14]name=ofd_packets/00139922 [10:31:14]NVStorageSaveData ofd_packets/00139922 [10:31:14]File name is /storage/ofd_packets/00139922 [10:31:14]Write 358 bytes [10:31:14]NVStorageSaveData done [10:31:14]OFDSenderStorePacket done [10:31:14]KKMCreateOFDPacket done [10:31:14]NVStorageSaveData kkm_last_timestamp [10:31:14]File name is /storage/kkm_last_timestamp [10:31:14]Write 4 bytes [10:31:14]NVStorageSaveData done [10:31:14]ExternCall_PrintAddStr [10:31:14]wPrintStart [10:31:14]Write to MH i2c: 01 00 00 5F 52 B1 [10:31:14]Write i2c OK [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: 01 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: 01 07 00 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: 01 07 00 5F 52 00 00 00 00 00 FF 0F C6 [10:31:14]RasterBufferAndPrint [10:31:14]line Счет N : (3)335744 [10:31:14]line ИНН: 02508201610067 [10:31:14]line Контрольно-Кассовый Чек [10:31:14]line ПРОДАЖА [10:31:14]line Товар: 5449000027474 [10:31:14]line Напиток FuzeTea зел чай манго,ромашка 1л [10:31:14]line 1.000 * 120.00 [10:31:14]line = 120.00 [10:31:14]line НДС 12% НСП 1% [10:31:14]line > о реализуемом товаре [10:31:14]line ИТОГО: 120.00 [10:31:14]line НСП 1% : 1.06 [10:31:14]line НДС 12% : 12.74 [10:31:14]line Наличными: 0.00 [10:31:14]line Безнал.: 120.00 [10:31:14]line Место: АЗС № 101 "Партнер Нефть" [10:31:14]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:31:14]line СНО: Общий режим [10:31:14]line Чек 103 01.11.2024 10:31 [10:31:14]line Смена: 558 ФФД: 1.0 [10:31:14]line ЗНМ: 0300000081 [10:31:14]line РНМ: 0000000000091631 [10:31:14]line Версия ККМ: 001 [10:31:14]line Платежная система: Mbank [10:31:14]line ФМ: 0000000000874669 [10:31:14]line ФД: 139922 [10:31:14]line ФПД: 30109034291209 [10:31:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T103118&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139922&fm=30109034291209&tin=02508201610067®Number=0000000000091631&sum=12000 [10:31:15]line 0 [10:31:15]OFD Sender: Processing packet 139922 [packets to send 34, broken 33] [10:31:15]ProducePacketName [10:31:15]name=ofd_packets/00139922 [10:31:15]OFD Sender: To server: pG, [10:31:15]CommunicateWithHost lk.salyk.kg:30040 [10:31:15]ConnectInit lk.salyk.kg [10:31:15]written 0, free lines is 4095 [10:31:15]Connected sock=11 [10:31:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 48 01 00 00 CE 14 40 01 09 DB 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 F6 AD 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 92 22 02 00 35 04 06 00 1B 62 4E 4B 20 09 8C 61 13 27 A8 F0 8D BE [10:31:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 11 C4 47 00 CC 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 92 22 02 00 F4 03 04 00 A1 59 24 67 B6 04 01 00 00 3F 6C 62 77 18 B9 DB 29 [10:31:15]CommunicateWithHost err = 0 [10:31:15]CheckOFDResponse [10:31:15]1017 (14) - 77093643461234 [10:31:15]1041 (16) - 0000000000874669 [10:31:15]1040 (4) - 139922 [10:31:15]1012 (4) - 01.11.2024 04:31 [10:31:15]1206 (1) - 0 [10:31:15]OFD Sender: Remove packet 139922 [10:31:15]ProducePacketName [10:31:15]name=ofd_packets/00139922 [10:31:15]NVStorageDeleteData [10:31:15]Write to MH i2c: 01 00 00 89 52 DB [10:31:15]Write i2c OK [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: 01 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: 01 07 00 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: 01 07 00 89 52 00 00 00 00 00 E6 0C D4 [10:31:15]RasterBufferAndPrint [10:31:15]line [10:31:15]line [10:31:15]line [10:31:15]line [10:31:15]line [10:31:15]written 0, free lines is 3311 [10:31:15]MH_Cut [10:31:15]Write to MH i2c: D1 01 00 90 52 01 B4 [10:31:15]Write i2c OK [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: D1 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: D1 01 00 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: D1 01 00 90 52 00 B3 [10:31:15]Write to MH i2c: 01 00 00 91 52 E3 [10:31:15]Write i2c OK [10:31:15]MH_I2C_Read... [10:31:15]OFD Sender: No OFD packet to send [10:31:16]*** Cut start [10:31:16]*** Partial cut [10:31:16]*** CUTSNS_PIN = 1 [10:31:16]*** CUTSNS_PIN = 0 [10:31:16]*** Brake cut motor [10:31:16]ConnectInit Can't connect to host [10:31:16]Read from MH i2c: 01 [10:31:16]MH_I2C_Read... [10:31:16]*** Stop cut motor [10:31:16]*** Cut end [10:31:16]Read from MH i2c: 01 07 00 [10:31:16]MH_I2C_Read... [10:31:16]Read from MH i2c: 01 07 00 91 52 00 00 00 00 00 FF 0F F8 [10:31:16]process_action close_receipt done [10:31:16]requested_data is exist [10:31:16]produce_requested_data [10:31:16]requested_item fm.sn is exist - process it [10:31:16]wFMCommunicate request_size=4 [10:31:16]MH_SAM_APDU [10:31:16]CAPDU: 80 11 00 00 [10:31:16]Write to MH i2c: E2 08 00 92 52 80 11 00 00 00 00 00 00 5E [10:31:16]Write i2c OK [10:31:16]MH_I2C_Read... [10:31:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:16]Read from MH i2c: E2 [10:31:16]MH_I2C_Read... [10:31:16]Read from MH i2c: E2 17 00 [10:31:16]MH_I2C_Read... [10:31:16]Read from MH i2c: E2 17 00 92 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B9 [10:31:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:31:16]wFMCommunicate OK [10:31:16]requested_item fd.num is exist - process it [10:31:16]SAM_PROTO_GetFieldsCounters [10:31:16]wFMCommunicate request_size=4 [10:31:16]MH_SAM_APDU [10:31:16]CAPDU: 80 13 00 00 [10:31:16]Write to MH i2c: E2 08 00 93 52 80 13 00 00 00 00 00 00 61 [10:31:16]Write i2c OK [10:31:16]MH_I2C_Read... [10:31:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:16]Read from MH i2c: E2 [10:31:16]MH_I2C_Read... [10:31:16]Read from MH i2c: E2 62 00 [10:31:16]MH_I2C_Read... [10:31:16]Read from MH i2c: E2 62 00 93 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 92 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [10:31:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 92 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:16]wFMCommunicate OK [10:31:16]SAM_PROTO_GetFieldsCounters done [10:31:16]requested_item shift.num is exist - process it [10:31:16]requested_item shift.opened is exist - process it [10:31:16]req_shift_opened [10:31:16]FM_GetShiftState [10:31:16]SAM_PROTO_GetShiftState [10:31:16]wFMCommunicate request_size=4 [10:31:16]MH_SAM_APDU [10:31:16]CAPDU: 80 13 01 00 [10:31:16]Write to MH i2c: E2 08 00 94 52 80 13 01 00 00 00 00 00 63 [10:31:16]Write i2c OK [10:31:16]MH_I2C_Read... [10:31:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:17]Read from MH i2c: E2 [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: E2 0E 00 [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: E2 0E 00 94 52 00 09 00 01 89 19 24 67 00 00 00 00 90 00 9C [10:31:17]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:31:17]wFMCommunicate OK [10:31:17]SAM_PROTO_GetShiftState done [10:31:17]FM_GetShiftState done [10:31:17]req_shift_opened done [10:31:17]requested_item shift.open_date is exist - process it [10:31:17]req_shift_open_date [10:31:17]req_shift_open_date done [10:31:17]produce_requested_data done [10:31:17]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139922,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [10:31:17]process_action_free close_receipt [10:31:17]json_value_free [10:31:17]json_value_free done [10:31:17]process_json_proto returns [10:31:17]Send response to host [10:31:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139922,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [10:31:17]free response buf [10:31:17]execute_script done [10:31:17]execute_script returns [10:31:17]free content buf [10:31:17]Sock 10.Close socket [10:31:17]Sock 10.Thread stoped [10:31:20]OFD Sender: No OFD packet to send [10:31:25]OFD Sender: No OFD packet to send [10:31:30]OFD Sender: No OFD packet to send [10:31:35]OFD Sender: No OFD packet to send [10:31:40]OFD Sender: No OFD packet to send [10:31:45]OFD Sender: No OFD packet to send [10:31:50]OFD Sender: No OFD packet to send [10:31:55]OFD Sender: No OFD packet to send [10:32:00]OFD Sender: No OFD packet to send [10:32:05]OFD Sender: No OFD packet to send [10:32:10]OFD Sender: No OFD packet to send [10:32:15]OFD Sender: No OFD packet to send [10:32:20]OFD Sender: No OFD packet to send [10:32:25]OFD Sender: No OFD packet to send [10:32:30]OFD Sender: No OFD packet to send [10:32:35]OFD Sender: No OFD packet to send [10:32:40]OFD Sender: No OFD packet to send [10:32:45]OFD Sender: No OFD packet to send [10:32:50]OFD Sender: No OFD packet to send [10:32:55]OFD Sender: No OFD packet to send [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:10]OFD Sender: No OFD packet to send [10:33:15]OFD Sender: No OFD packet to send [10:33:20]OFD Sender: No OFD packet to send [10:33:24]accept exits with 9 [10:33:24]New connection [10:33:24]New thread 3066510692 created [10:33:24]Thread 3066654052 joined [10:33:24]Waiting for new connection... [10:33:24] Sock 9.Parse request [10:33:24]Sock 9.Check first char [10:33:24]Sock 9.First char is OK [10:33:24]request: POST /json_proto HTTP/1.0 [10:33:24]Method: POST [10:33:24]URL: /json_proto [10:33:24]Method is POST - this is cgi request [10:33:24]url: /json_proto [10:33:24]query_string will be loaded in cgi processing [10:33:24]execute_cgi json_proto POST (null) [10:33:24]execute_cgi path=json_proto method=POST [10:33:24]POST find Content-Length [10:33:24]Host: 172.17.50.196:8080 [10:33:24]Content-Length: 775 [10:33:24]Content-Type: application/json [10:33:24] [10:33:24]POST finish read [10:33:24]Found Content-Length = 775 [10:33:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 24.680, "sum" : 1880.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1880.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:24]execute_script... [10:33:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 24.680, "sum" : 1880.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1880.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:24]POST & json_proto [10:33:24]process_json_proto [10:33:24]json parsed OK: [10:33:24]protocol is kg_v1.0 [10:33:24]action value=close_receipt [10:33:24]process_action close_receipt [10:33:24]cmd_close_receipt [10:33:24]MH_GetDate [10:33:24]Write to MH i2c: F0 00 00 95 52 D6 [10:33:24]Write i2c OK [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: F0 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: F0 09 00 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: F0 09 00 95 52 00 79 AE 24 67 72 0D 1C 67 93 [10:33:24]GetLastDocTimeStamp 1730457078 [10:33:24]current date 1730457209 [10:33:24]FM_GetShiftState [10:33:24]SAM_PROTO_GetShiftState [10:33:24]wFMCommunicate request_size=4 [10:33:24]MH_SAM_APDU [10:33:24]CAPDU: 80 13 01 00 [10:33:24]Write to MH i2c: E2 08 00 96 52 80 13 01 00 00 00 00 00 65 [10:33:24]Write i2c OK [10:33:24]MH_I2C_Read... [10:33:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:24]Read from MH i2c: E2 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 0E 00 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 0E 00 96 52 00 09 00 01 89 19 24 67 00 00 00 00 90 00 9E [10:33:24]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:33:24]wFMCommunicate OK [10:33:24]SAM_PROTO_GetShiftState done [10:33:24]FM_GetShiftState done [10:33:24]opened in 1730419081 [10:33:24]opened+sec_in_day 1730505481 [10:33:24]quantity*price = 188061 [10:33:24]sum+1 = 188063 [10:33:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1880.62 НСП 1% : 16.64 НДС 12% : 199.71 Наличными: 0.00 Безнал.: 1880.62 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 104 01.11.2024 10:33 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139923 ФПД: 43070775658882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T103329&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139923&fm=43070775658882&tin=02508201610067®Number=0000000000091631&sum=188062 [10:33:25]StoreToDocumentArchive [10:33:25]shift 558 fd 139923 [10:33:25]save to /storage/0558/doc_00139923 [10:33:25]save last doc name /storage/0558/doc_00139923 to /storage/kkm_last_doc_name [10:33:25]save OK [10:33:25]Clear old archive folders... [10:33:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:33:25]tlvbuf is 00AE5F40 [10:33:25]SAM_PROTO_ClearQueue [10:33:25]wFMCommunicate request_size=4 [10:33:25]MH_SAM_APDU [10:33:25]CAPDU: 80 09 00 00 [10:33:25]Write to MH i2c: E2 08 00 A3 52 80 09 00 00 00 00 00 00 67 [10:33:25]Write i2c OK [10:33:25]MH_I2C_Read... [10:33:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:25]Read from MH i2c: E2 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: E2 03 00 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: E2 03 00 A3 52 00 90 00 69 [10:33:25]RAPDU: 90 00 [10:33:25]wFMCommunicate OK [10:33:25]SAM_PROTO_ClearQueue done [10:33:25]KKMCreateOFDPacket [10:33:25]OFDProtocolAddRootSTLVToBuf [10:33:25]FM_MakeSignedData [10:33:25]FM_MakeSignedData [10:33:25]SAM_PROTO_SignData [10:33:25]wFMCommunicate request_size=4 [10:33:25]MH_SAM_APDU [10:33:25]CAPDU: 80 0D 01 02 [10:33:25]Write to MH i2c: E2 08 00 A4 52 80 0D 01 02 00 00 00 00 6F [10:33:25]Write i2c OK [10:33:25]MH_I2C_Read... [10:33:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:25]Read from MH i2c: E2 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: E2 03 00 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: E2 03 00 A4 52 00 90 00 6A [10:33:25]RAPDU: 90 00 [10:33:25]wFMCommunicate OK [10:33:25]wFMCommunicate request_size=255 [10:33:25]MH_SAM_APDU [10:33:25]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 68 60 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9E DE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E DE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 4E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E DE 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 79 AE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 93 22 02 00 35 04 06 00 [10:33:25]Write to MH i2c: E2 02 01 A5 52 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 68 60 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9E DE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E DE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 4E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E DE 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 79 AE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 93 22 02 00 35 04 06 00 00 00 AF [10:33:25]Write i2c OK [10:33:25]MH_I2C_Read... [10:33:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:25]Read from MH i2c: E2 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: E2 03 00 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: E2 03 00 A5 52 00 90 00 6B [10:33:25]RAPDU: 90 00 [10:33:25]wFMCommunicate OK [10:33:25]wFMCommunicate request_size=11 [10:33:25]MH_SAM_APDU [10:33:25]CAPDU: 80 0D 02 02 06 27 2C 32 48 89 82 [10:33:25]Write to MH i2c: E2 0E 00 A6 52 80 0D 02 02 06 00 27 2C 32 48 89 82 00 00 56 [10:33:25]Write i2c OK [10:33:25]MH_I2C_Read... [10:33:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:25]Read from MH i2c: E2 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: E2 03 00 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: E2 03 00 A6 52 00 90 00 6C [10:33:25]RAPDU: 90 00 [10:33:25]wFMCommunicate OK [10:33:25]wFMCommunicate request_size=4 [10:33:25]MH_SAM_APDU [10:33:25]CAPDU: 80 0D 03 02 [10:33:25]Write to MH i2c: E2 08 00 A7 52 80 0D 03 02 00 00 00 00 74 [10:33:25]Write i2c OK [10:33:25]MH_I2C_Read... [10:33:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:25]Read from MH i2c: E2 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: E2 0B 00 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: E2 0B 00 A7 52 00 E4 B7 67 2D 5A 50 C0 B1 90 00 BF [10:33:25]RAPDU: E4 B7 67 2D 5A 50 C0 B1 90 00 [10:33:25]wFMCommunicate OK [10:33:25]SAM_PROTO_SignData done [10:33:25]FM_MakeSignedData done [10:33:25]CreateOFDProtocolMessage [10:33:25]wFMCommunicate request_size=4 [10:33:25]MH_SAM_APDU [10:33:25]CAPDU: 80 11 00 00 [10:33:25]Write to MH i2c: E2 08 00 A8 52 80 11 00 00 00 00 00 00 74 [10:33:25]Write i2c OK [10:33:25]MH_I2C_Read... [10:33:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:25]Read from MH i2c: E2 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: E2 17 00 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: E2 17 00 A8 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CF [10:33:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:33:25]wFMCommunicate OK [10:33:25]CreateOFDProtocolMessage done [10:33:25]OFDSenderStorePacket 139923 [10:33:25]StoreOFDPacket docnum=139923 [10:33:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 51 91 08 01 C5 E7 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 68 60 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9E DE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E DE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 4E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E DE 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 79 AE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 93 22 02 00 35 04 06 00 27 2C 32 48 89 82 E4 B7 67 2D 5A 50 C0 B1 [10:33:25]CheckFolder [10:33:25]dirname=/storage/ofd_packets [10:33:25]CheckFolder done [10:33:25]ProducePacketName [10:33:25]name=ofd_packets/00139923 [10:33:25]NVStorageSaveData ofd_packets/00139923 [10:33:25]File name is /storage/ofd_packets/00139923 [10:33:25]Write 302 bytes [10:33:25]NVStorageSaveData done [10:33:25]OFDSenderStorePacket done [10:33:25]KKMCreateOFDPacket done [10:33:25]NVStorageSaveData kkm_last_timestamp [10:33:25]File name is /storage/kkm_last_timestamp [10:33:25]Write 4 bytes [10:33:25]NVStorageSaveData done [10:33:25]ExternCall_PrintAddStr [10:33:25]wPrintStart [10:33:25]Write to MH i2c: 01 00 00 A9 52 FB [10:33:25]Write i2c OK [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: 01 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: 01 07 00 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: 01 07 00 A9 52 00 00 00 00 00 FF 0F 10 [10:33:25]RasterBufferAndPrint [10:33:25]line Счет N : (1)1095807 [10:33:25]line ИНН: 02508201610067 [10:33:25]line Контрольно-Кассовый Чек [10:33:25]line ПРОДАЖА [10:33:25]line ТРК (МРК, ГНК) : 11 [10:33:25]line Товар: 2710194210 [10:33:25]line ДТ(л)-К-2 [10:33:25]line 24.680 * 76.20 [10:33:25]line = 1880.62 [10:33:25]line НДС 12% НСП 1% [10:33:25]line > о реализуемом товаре [10:33:25]line ИТОГО: 1880.62 [10:33:25]line НСП 1% : 16.64 [10:33:25]line НДС 12% : 199.71 [10:33:25]line Наличными: 0.00 [10:33:25]line Безнал.: 1880.62 [10:33:25]line Место: АЗС № 101 "Партнер Нефть" [10:33:25]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:33:25]line СНО: Общий режим [10:33:25]line Чек 104 01.11.2024 10:33 [10:33:25]line Смена: 558 ФФД: 1.0 [10:33:25]line ЗНМ: 0300000081 [10:33:25]line РНМ: 0000000000091631 [10:33:25]line Версия ККМ: 001 [10:33:25]line Платежная система: Mbank [10:33:25]line ФМ: 0000000000874669 [10:33:25]line ФД: 139923 [10:33:25]line ФПД: 43070775658882 [10:33:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T103329&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139923&fm=43070775658882&tin=02508201610067®Number=0000000000091631&sum=188062 [10:33:26]written 0, free lines is 4095 [10:33:26]OFD Sender: Processing packet 139923 [packets to send 34, broken 33] [10:33:26]ProducePacketName [10:33:26]name=ofd_packets/00139923 [10:33:26]OFD Sender: To server: pG, [10:33:26]CommunicateWithHost lk.salyk.kg:30040 [10:33:26]ConnectInit lk.salyk.kg [10:33:26]Connected sock=11 [10:33:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 51 91 08 01 C5 E7 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 68 60 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9E DE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E DE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 4E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E DE 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 79 AE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 93 22 02 00 35 04 06 00 27 2C 32 48 89 82 E4 B7 67 2D 5A 50 C0 B1 [10:33:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 A0 85 47 00 7E 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 93 22 02 00 F4 03 04 00 24 5A 24 67 B6 04 01 00 00 33 7C 36 4D A7 AF 47 89 [10:33:26]CommunicateWithHost err = 0 [10:33:26]CheckOFDResponse [10:33:26]1017 (14) - 77093643461234 [10:33:26]1041 (16) - 0000000000874669 [10:33:26]1040 (4) - 139923 [10:33:26]1012 (4) - 01.11.2024 04:33 [10:33:26]1206 (1) - 0 [10:33:26]OFD Sender: Remove packet 139923 [10:33:26]ProducePacketName [10:33:26]name=ofd_packets/00139923 [10:33:26]NVStorageDeleteData [10:33:26]Write to MH i2c: 01 00 00 D2 52 24 [10:33:26]Write i2c OK [10:33:26]MH_I2C_Read... [10:33:26]Read from MH i2c: 01 [10:33:26]MH_I2C_Read... [10:33:26]Read from MH i2c: 01 07 00 [10:33:26]MH_I2C_Read... [10:33:26]Read from MH i2c: 01 07 00 D2 52 00 00 00 00 00 14 0D 4C [10:33:26]RasterBufferAndPrint [10:33:26]line [10:33:26]line [10:33:26]line [10:33:26]line [10:33:26]line [10:33:26]written 0, free lines is 3358 [10:33:26]MH_Cut [10:33:26]Write to MH i2c: D1 01 00 D9 52 01 FD [10:33:26]Write i2c OK [10:33:26]MH_I2C_Read... [10:33:26]Read from MH i2c: D1 [10:33:26]MH_I2C_Read... [10:33:26]Read from MH i2c: D1 01 00 [10:33:26]MH_I2C_Read... [10:33:26]Read from MH i2c: D1 01 00 D9 52 00 FC [10:33:26]Write to MH i2c: 01 00 00 DA 52 2C [10:33:26]Write i2c OK [10:33:26]MH_I2C_Read... [10:33:26]OFD Sender: No OFD packet to send [10:33:27]*** Cut start [10:33:27]*** Partial cut [10:33:27]*** CUTSNS_PIN = 1 [10:33:27]*** CUTSNS_PIN = 0 [10:33:27]*** Brake cut motor [10:33:27]Read from MH i2c: 01 [10:33:27]MH_I2C_Read... [10:33:27]*** Stop cut motor [10:33:27]*** Cut end [10:33:27]Read from MH i2c: 01 07 00 [10:33:27]MH_I2C_Read... [10:33:27]Read from MH i2c: 01 07 00 DA 52 00 00 00 00 00 FF 0F 41 [10:33:27]process_action close_receipt done [10:33:27]requested_data is exist [10:33:27]produce_requested_data [10:33:27]requested_item fm.sn is exist - process it [10:33:27]wFMCommunicate request_size=4 [10:33:27]MH_SAM_APDU [10:33:27]CAPDU: 80 11 00 00 [10:33:27]Write to MH i2c: E2 08 00 DB 52 80 11 00 00 00 00 00 00 A7 [10:33:27]Write i2c OK [10:33:27]MH_I2C_Read... [10:33:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:27]Read from MH i2c: E2 [10:33:27]MH_I2C_Read... [10:33:27]Read from MH i2c: E2 17 00 [10:33:27]MH_I2C_Read... [10:33:27]Read from MH i2c: E2 17 00 DB 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 02 [10:33:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:33:27]wFMCommunicate OK [10:33:27]requested_item fd.num is exist - process it [10:33:27]SAM_PROTO_GetFieldsCounters [10:33:27]wFMCommunicate request_size=4 [10:33:27]MH_SAM_APDU [10:33:27]CAPDU: 80 13 00 00 [10:33:27]Write to MH i2c: E2 08 00 DC 52 80 13 00 00 00 00 00 00 AA [10:33:27]Write i2c OK [10:33:27]MH_I2C_Read... [10:33:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:28]Read from MH i2c: E2 [10:33:28]MH_I2C_Read... [10:33:28]Read from MH i2c: E2 62 00 [10:33:28]MH_I2C_Read... [10:33:28]Read from MH i2c: E2 62 00 DC 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 93 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [10:33:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 93 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:33:28]wFMCommunicate OK [10:33:28]SAM_PROTO_GetFieldsCounters done [10:33:28]requested_item shift.num is exist - process it [10:33:28]requested_item shift.opened is exist - process it [10:33:28]req_shift_opened [10:33:28]FM_GetShiftState [10:33:28]SAM_PROTO_GetShiftState [10:33:28]wFMCommunicate request_size=4 [10:33:28]MH_SAM_APDU [10:33:28]CAPDU: 80 13 01 00 [10:33:28]Write to MH i2c: E2 08 00 DD 52 80 13 01 00 00 00 00 00 AC [10:33:28]Write i2c OK [10:33:28]MH_I2C_Read... [10:33:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:28]Read from MH i2c: E2 [10:33:28]MH_I2C_Read... [10:33:28]Read from MH i2c: E2 0E 00 [10:33:28]MH_I2C_Read... [10:33:28]Read from MH i2c: E2 0E 00 DD 52 00 09 00 01 89 19 24 67 00 00 00 00 90 00 E5 [10:33:28]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:33:28]wFMCommunicate OK [10:33:28]SAM_PROTO_GetShiftState done [10:33:28]FM_GetShiftState done [10:33:28]req_shift_opened done [10:33:28]requested_item shift.open_date is exist - process it [10:33:28]req_shift_open_date [10:33:28]req_shift_open_date done [10:33:28]produce_requested_data done [10:33:28]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139923,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [10:33:28]process_action_free close_receipt [10:33:28]json_value_free [10:33:28]json_value_free done [10:33:28]process_json_proto returns [10:33:28]Send response to host [10:33:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139923,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [10:33:28]free response buf [10:33:28]execute_script done [10:33:28]execute_script returns [10:33:28]free content buf [10:33:28]Sock 9.Close socket [10:33:28]Sock 9.Thread stoped [10:33:31]OFD Sender: No OFD packet to send [10:33:35]accept exits with 10 [10:33:35]New connection [10:33:35]New thread 3066654052 created [10:33:35]Thread 3066510692 joined [10:33:35]Waiting for new connection... [10:33:35] Sock 10.Parse request [10:33:35]Sock 10.Check first char [10:33:35]Sock 10.First char is OK [10:33:35]request: POST /json_proto HTTP/1.0 [10:33:35]Method: POST [10:33:35]URL: /json_proto [10:33:35]Method is POST - this is cgi request [10:33:35]url: /json_proto [10:33:35]query_string will be loaded in cgi processing [10:33:35]execute_cgi json_proto POST (null) [10:33:35]execute_cgi path=json_proto method=POST [10:33:35]POST find Content-Length [10:33:35]Host: 172.17.50.196:8080 [10:33:35]Content-Length: 623 [10:33:35]Content-Type: application/json [10:33:35] [10:33:35]POST finish read [10:33:35]Found Content-Length = 623 [10:33:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335745", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 3.000, "sum" : 432.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 432.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:35]execute_script... [10:33: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)335745", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 3.000, "sum" : 432.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 432.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:35]POST & json_proto [10:33:35]process_json_proto [10:33:35]json parsed OK: [10:33:35]protocol is kg_v1.0 [10:33:35]action value=close_receipt [10:33:35]process_action close_receipt [10:33:35]cmd_close_receipt [10:33:35]MH_GetDate [10:33:35]Write to MH i2c: F0 00 00 DE 52 1F [10:33:35]Write i2c OK [10:33:35]MH_I2C_Read... [10:33:35]Read from MH i2c: F0 [10:33:35]MH_I2C_Read... [10:33:35]Read from MH i2c: F0 09 00 [10:33:35]MH_I2C_Read... [10:33:35]Read from MH i2c: F0 09 00 DE 52 00 85 AE 24 67 72 0D 1C 67 E8 [10:33:35]GetLastDocTimeStamp 1730457209 [10:33:35]current date 1730457221 [10:33:35]FM_GetShiftState [10:33:35]SAM_PROTO_GetShiftState [10:33:35]wFMCommunicate request_size=4 [10:33:35]MH_SAM_APDU [10:33:35]CAPDU: 80 13 01 00 [10:33:35]Write to MH i2c: E2 08 00 DF 52 80 13 01 00 00 00 00 00 AE [10:33:35]Write i2c OK [10:33:35]MH_I2C_Read... [10:33:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:35]Read from MH i2c: E2 [10:33:35]MH_I2C_Read... [10:33:35]Read from MH i2c: E2 0E 00 [10:33:35]MH_I2C_Read... [10:33:35]Read from MH i2c: E2 0E 00 DF 52 00 09 00 01 89 19 24 67 00 00 00 00 90 00 E7 [10:33:35]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:33:35]wFMCommunicate OK [10:33:35]SAM_PROTO_GetShiftState done [10:33:35]FM_GetShiftState done [10:33:35]opened in 1730419081 [10:33:35]opened+sec_in_day 1730505481 [10:33:35]quantity*price = 43200 [10:33:35]sum+1 = 43201 [10:33:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 432.00 НСП 1% : 3.82 НДС 12% : 45.88 Наличными: 432.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 105 01.11.2024 10:33 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139924 ФПД: 27315760576554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T103341&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139924&fm=27315760576554&tin=02508201610067®Number=0000000000091631&sum=43200 0 [10:33:36]StoreToDocumentArchive [10:33:36]shift 558 fd 139924 [10:33:36]save to /storage/0558/doc_00139924 [10:33:36]save last doc name /storage/0558/doc_00139924 to /storage/kkm_last_doc_name [10:33:36]save OK [10:33:36]Clear old archive folders... [10:33:36]ProcessDocumentItem done err = 0, tmpTLVsize=275 [10:33:36]tlvbuf is 00B4B580 [10:33:36]SAM_PROTO_ClearQueue [10:33:36]wFMCommunicate request_size=4 [10:33:36]MH_SAM_APDU [10:33:36]CAPDU: 80 09 00 00 [10:33:36]Write to MH i2c: E2 08 00 EC 52 80 09 00 00 00 00 00 00 B0 [10:33:36]Write i2c OK [10:33:36]MH_I2C_Read... [10:33:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:36]Read from MH i2c: E2 [10:33:36]MH_I2C_Read... [10:33:36]Read from MH i2c: E2 03 00 [10:33:36]MH_I2C_Read... [10:33:36]Read from MH i2c: E2 03 00 EC 52 00 90 00 B2 [10:33:36]RAPDU: 90 00 [10:33:36]wFMCommunicate OK [10:33:36]SAM_PROTO_ClearQueue done [10:33:36]KKMCreateOFDPacket [10:33:36]OFDProtocolAddRootSTLVToBuf [10:33:36]FM_MakeSignedData [10:33:36]FM_MakeSignedData [10:33:36]SAM_PROTO_SignData [10:33:36]wFMCommunicate request_size=4 [10:33:36]MH_SAM_APDU [10:33:36]CAPDU: 80 0D 01 02 [10:33:36]Write to MH i2c: E2 08 00 ED 52 80 0D 01 02 00 00 00 00 B8 [10:33:36]Write i2c OK [10:33:36]MH_I2C_Read... [10:33:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:36]OFD Sender: No OFD packet to send [10:33:36]Read from MH i2c: E2 [10:33:36]MH_I2C_Read... [10:33:36]Read from MH i2c: E2 03 00 [10:33:36]MH_I2C_Read... [10:33:36]Read from MH i2c: E2 03 00 ED 52 00 90 00 B3 [10:33:36]RAPDU: 90 00 [10:33:36]wFMCommunicate OK [10:33:36]wFMCommunicate request_size=255 [10:33:36]MH_SAM_APDU [10:33:36]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 B8 0B 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 C0 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 11 00 00 00 00 07 04 06 00 C0 A8 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 85 AE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 [10:33:37]Write to MH i2c: E2 02 01 EE 52 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 B8 0B 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 C0 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 11 00 00 00 00 07 04 06 00 C0 A8 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 85 AE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 00 00 B6 [10:33:37]Write i2c OK [10:33:37]MH_I2C_Read... [10:33:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:37]Read from MH i2c: E2 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: E2 03 00 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: E2 03 00 EE 52 00 90 00 B4 [10:33:37]RAPDU: 90 00 [10:33:37]wFMCommunicate OK [10:33:37]wFMCommunicate request_size=34 [10:33:37]MH_SAM_APDU [10:33:37]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 94 22 02 00 35 04 06 00 18 D7 F2 34 B8 2A [10:33:37]Write to MH i2c: E2 25 00 EF 52 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 94 22 02 00 35 04 06 00 18 D7 F2 34 B8 2A 00 00 33 [10:33:37]Write i2c OK [10:33:37]MH_I2C_Read... [10:33:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:37]Read from MH i2c: E2 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: E2 03 00 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: E2 03 00 EF 52 00 90 00 B5 [10:33:37]RAPDU: 90 00 [10:33:37]wFMCommunicate OK [10:33:37]wFMCommunicate request_size=4 [10:33:37]MH_SAM_APDU [10:33:37]CAPDU: 80 0D 03 02 [10:33:37]Write to MH i2c: E2 08 00 F0 52 80 0D 03 02 00 00 00 00 BD [10:33:37]Write i2c OK [10:33:37]MH_I2C_Read... [10:33:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:37]Read from MH i2c: E2 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: E2 0B 00 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: E2 0B 00 F0 52 00 99 32 9A BB 38 60 86 4C 90 00 48 [10:33:37]RAPDU: 99 32 9A BB 38 60 86 4C 90 00 [10:33:37]wFMCommunicate OK [10:33:37]SAM_PROTO_SignData done [10:33:37]FM_MakeSignedData done [10:33:37]CreateOFDProtocolMessage [10:33:37]wFMCommunicate request_size=4 [10:33:37]MH_SAM_APDU [10:33:37]CAPDU: 80 11 00 00 [10:33:37]Write to MH i2c: E2 08 00 F1 52 80 11 00 00 00 00 00 00 BD [10:33:37]Write i2c OK [10:33:37]MH_I2C_Read... [10:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:37]Read from MH i2c: E2 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: E2 17 00 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: E2 17 00 F1 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 18 [10:33:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:33:37]wFMCommunicate OK [10:33:37]CreateOFDProtocolMessage done [10:33:37]OFDSenderStorePacket 139924 [10:33:37]StoreOFDPacket docnum=139924 [10:33:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 27 01 00 00 79 D1 1F 01 04 BF 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 B8 0B 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 C0 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 11 00 00 00 00 07 04 06 00 C0 A8 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 85 AE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 94 22 02 00 35 04 06 00 18 D7 F2 34 B8 2A 99 32 9A BB 38 60 86 4C [10:33:37]CheckFolder [10:33:37]dirname=/storage/ofd_packets [10:33:37]CheckFolder done [10:33:37]ProducePacketName [10:33:37]name=ofd_packets/00139924 [10:33:37]NVStorageSaveData ofd_packets/00139924 [10:33:37]File name is /storage/ofd_packets/00139924 [10:33:37]Write 325 bytes [10:33:37]NVStorageSaveData done [10:33:37]OFDSenderStorePacket done [10:33:37]KKMCreateOFDPacket done [10:33:37]NVStorageSaveData kkm_last_timestamp [10:33:37]File name is /storage/kkm_last_timestamp [10:33:37]Write 4 bytes [10:33:37]NVStorageSaveData done [10:33:37]ExternCall_PrintAddStr [10:33:37]wPrintStart [10:33:37]Write to MH i2c: 01 00 00 F2 52 44 [10:33:37]Write i2c OK [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: 01 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: 01 07 00 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: 01 07 00 F2 52 00 00 00 00 00 FF 0F 59 [10:33:37]RasterBufferAndPrint [10:33:37]line Счет N : (3)335745 [10:33:37]line ИНН: 02508201610067 [10:33:37]line Контрольно-Кассовый Чек [10:33:37]line ПРОДАЖА [10:33:37]line Товар: 48743587 [10:33:37]line Сигареты Winston XStyle Silver [10:33:37]line 3.000 * 144.00 [10:33:37]line = 432.00 [10:33:37]line НДС 12% НСП 1% [10:33:37]line > о реализуемом товаре [10:33:37]line ИТОГО: 432.00 [10:33:37]line НСП 1% : 3.82 [10:33:37]line НДС 12% : 45.88 [10:33:37]line Наличными: 432.00 [10:33:37]line Безнал.: 0.00 [10:33:37]line Место: АЗС № 101 "Партнер Нефть" [10:33:37]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:33:37]line СНО: Общий режим [10:33:37]line Чек 105 01.11.2024 10:33 [10:33:37]line Смена: 558 ФФД: 1.0 [10:33:37]line ЗНМ: 0300000081 [10:33:37]line РНМ: 0000000000091631 [10:33:37]line Версия ККМ: 001 [10:33:37]line ФМ: 0000000000874669 [10:33:37]line ФД: 139924 [10:33:37]line ФПД: 27315760576554 [10:33:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T103341&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139924&fm=27315760576554&tin=02508201610067®Number=0000000000091631&sum=43200 [10:33:37]line 0 [10:33:37]written 0, free lines is 4095 [10:33:37]OFD Sender: Processing packet 139924 [packets to send 34, broken 33] [10:33:37]ProducePacketName [10:33:37]name=ofd_packets/00139924 [10:33:37]OFD Sender: To server: pG, [10:33:37]CommunicateWithHost lk.salyk.kg:30040 [10:33:37]ConnectInit lk.salyk.kg [10:33:37]Connected sock=11 [10:33:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 27 01 00 00 79 D1 1F 01 04 BF 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 B8 0B 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 C0 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 11 00 00 00 00 07 04 06 00 C0 A8 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 85 AE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 94 22 02 00 35 04 06 00 18 D7 F2 34 B8 2A 99 32 9A BB 38 60 86 4C [10:33:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 19 3F 47 00 8D EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 94 22 02 00 F4 03 04 00 30 5A 24 67 B6 04 01 00 00 34 E1 AC 33 BF A4 DE 08 [10:33:38]CommunicateWithHost err = 0 [10:33:38]CheckOFDResponse [10:33:38]1017 (14) - 77093643461234 [10:33:38]1041 (16) - 0000000000874669 [10:33:38]1040 (4) - 139924 [10:33:38]1012 (4) - 01.11.2024 04:33 [10:33:38]1206 (1) - 0 [10:33:38]OFD Sender: Remove packet 139924 [10:33:38]ProducePacketName [10:33:38]name=ofd_packets/00139924 [10:33:38]NVStorageDeleteData [10:33:38]Write to MH i2c: 01 00 00 1B 53 6E [10:33:38]Write i2c OK [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: 01 [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: 01 07 00 [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: 01 07 00 1B 53 00 00 00 00 00 0F 0D 91 [10:33:38]RasterBufferAndPrint [10:33:38]line [10:33:38]line [10:33:38]line [10:33:38]line [10:33:38]line [10:33:38]written 0, free lines is 3365 [10:33:38]MH_Cut [10:33:38]Write to MH i2c: D1 01 00 22 53 01 47 [10:33:38]Write i2c OK [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: D1 [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: D1 01 00 [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: D1 01 00 22 53 00 46 [10:33:38]Write to MH i2c: 01 00 00 23 53 76 [10:33:38]Write i2c OK [10:33:38]MH_I2C_Read... [10:33:38]OFD Sender: No OFD packet to send [10:33:38]*** Cut start [10:33:38]*** Partial cut [10:33:38]*** CUTSNS_PIN = 1 [10:33:38]*** CUTSNS_PIN = 0 [10:33:38]*** Brake cut motor [10:33:39]Read from MH i2c: 01 [10:33:39]MH_I2C_Read... [10:33:39]*** Stop cut motor [10:33:39]*** Cut end [10:33:39]Read from MH i2c: 01 07 00 [10:33:39]MH_I2C_Read... [10:33:39]Read from MH i2c: 01 07 00 23 53 00 00 00 00 00 FF 0F 8B [10:33:39]process_action close_receipt done [10:33:39]requested_data is exist [10:33:39]produce_requested_data [10:33:39]requested_item fm.sn is exist - process it [10:33:39]wFMCommunicate request_size=4 [10:33:39]MH_SAM_APDU [10:33:39]CAPDU: 80 11 00 00 [10:33:39]Write to MH i2c: E2 08 00 24 53 80 11 00 00 00 00 00 00 F1 [10:33:39]Write i2c OK [10:33:39]MH_I2C_Read... [10:33:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:39]Read from MH i2c: E2 [10:33:39]MH_I2C_Read... [10:33:39]Read from MH i2c: E2 17 00 [10:33:39]MH_I2C_Read... [10:33:39]Read from MH i2c: E2 17 00 24 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4C [10:33:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:33:39]wFMCommunicate OK [10:33:39]requested_item fd.num is exist - process it [10:33:39]SAM_PROTO_GetFieldsCounters [10:33:39]wFMCommunicate request_size=4 [10:33:39]MH_SAM_APDU [10:33:39]CAPDU: 80 13 00 00 [10:33:39]Write to MH i2c: E2 08 00 25 53 80 13 00 00 00 00 00 00 F4 [10:33:39]Write i2c OK [10:33:39]MH_I2C_Read... [10:33:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:39]Read from MH i2c: E2 [10:33:39]MH_I2C_Read... [10:33:39]Read from MH i2c: E2 62 00 [10:33:39]MH_I2C_Read... [10:33:39]Read from MH i2c: E2 62 00 25 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 94 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [10:33: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 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 94 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:33:39]wFMCommunicate OK [10:33:39]SAM_PROTO_GetFieldsCounters done [10:33:39]requested_item shift.num is exist - process it [10:33:39]requested_item shift.opened is exist - process it [10:33:39]req_shift_opened [10:33:39]FM_GetShiftState [10:33:39]SAM_PROTO_GetShiftState [10:33:39]wFMCommunicate request_size=4 [10:33:39]MH_SAM_APDU [10:33:39]CAPDU: 80 13 01 00 [10:33:39]Write to MH i2c: E2 08 00 26 53 80 13 01 00 00 00 00 00 F6 [10:33:39]Write i2c OK [10:33:39]MH_I2C_Read... [10:33:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:39]Read from MH i2c: E2 [10:33:39]MH_I2C_Read... [10:33:39]Read from MH i2c: E2 0E 00 [10:33:39]MH_I2C_Read... [10:33:39]Read from MH i2c: E2 0E 00 26 53 00 09 00 01 89 19 24 67 00 00 00 00 90 00 2F [10:33:39]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:33:39]wFMCommunicate OK [10:33:39]SAM_PROTO_GetShiftState done [10:33:39]FM_GetShiftState done [10:33:39]req_shift_opened done [10:33:39]requested_item shift.open_date is exist - process it [10:33:39]req_shift_open_date [10:33:39]req_shift_open_date done [10:33:39]produce_requested_data done [10:33:39]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139924,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [10:33:39]process_action_free close_receipt [10:33:39]json_value_free [10:33:39]json_value_free done [10:33:39]process_json_proto returns [10:33:39]Send response to host [10:33:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139924,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [10:33:39]free response buf [10:33:39]execute_script done [10:33:39]execute_script returns [10:33:39]free content buf [10:33:39]Sock 10.Close socket [10:33:39]Sock 10.Thread stoped [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:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:28]OFD Sender: No OFD packet to send [10:35:33]OFD Sender: No OFD packet to send [10:35:38]OFD Sender: No OFD packet to send [10:35:43]OFD Sender: No OFD packet to send [10:35:48]OFD Sender: No OFD packet to send [10:35:53]OFD Sender: No OFD packet to send [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:13]OFD Sender: No OFD packet to send [10:36:18]OFD Sender: No OFD packet to send [10:36:23]OFD Sender: No OFD packet to send [10:36:28]OFD Sender: No OFD packet to send [10:36:33]OFD Sender: No OFD packet to send [10:36:38]OFD Sender: No OFD packet to send [10:36:43]OFD Sender: No OFD packet to send [10:36:48]OFD Sender: No OFD packet to send [10:36:53]OFD Sender: No OFD packet to send [10:36:58]OFD Sender: No OFD packet to send [10:37:03]OFD Sender: No OFD packet to send [10:37:08]OFD Sender: No OFD packet to send [10:37:13]OFD Sender: No OFD packet to send [10:37:18]OFD Sender: No OFD packet to send [10:37:23]OFD Sender: No OFD packet to send [10:37:28]OFD Sender: No OFD packet to send [10:37:33]OFD Sender: No OFD packet to send [10:37:38]OFD Sender: No OFD packet to send [10:37:43]OFD Sender: No OFD packet to send [10:37:48]OFD Sender: No OFD packet to send [10:37:53]OFD Sender: No OFD packet to send [10:37:58]OFD Sender: No OFD packet to send [10:38:03]OFD Sender: No OFD packet to send [10:38:08]OFD Sender: No OFD packet to send [10:38:13]OFD Sender: No OFD packet to send [10:38:18]OFD Sender: No OFD packet to send [10:38:23]OFD Sender: No OFD packet to send [10:38:28]OFD Sender: No OFD packet to send [10:38:33]OFD Sender: No OFD packet to send [10:38:33]accept exits with 9 [10:38:33]New connection [10:38:33]New thread 3066510692 created [10:38:33]Thread 3066654052 joined [10:38:33]Waiting for new connection... [10:38:33] Sock 9.Parse request [10:38:33]Sock 9.Check first char [10:38:33]Sock 9.First char is OK [10:38:33]request: POST /json_proto HTTP/1.0 [10:38:33]Method: POST [10:38:33]URL: /json_proto [10:38:33]Method is POST - this is cgi request [10:38:33]url: /json_proto [10:38:33]query_string will be loaded in cgi processing [10:38:33]execute_cgi json_proto POST (null) [10:38:33]execute_cgi path=json_proto method=POST [10:38:33]POST find Content-Length [10:38:33]Host: 172.17.50.196:8080 [10:38:33]Content-Length: 628 [10:38:33]Content-Type: application/json [10:38:33] [10:38:33]POST finish read [10:38:33]Found Content-Length = 628 [10:38:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335746", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:33]execute_script... [10:38:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335746", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:33]POST & json_proto [10:38:33]process_json_proto [10:38:33]json parsed OK: [10:38:33]protocol is kg_v1.0 [10:38:33]action value=close_receipt [10:38:33]process_action close_receipt [10:38:33]cmd_close_receipt [10:38:33]MH_GetDate [10:38:33]Write to MH i2c: F0 00 00 27 53 69 [10:38:33]Write i2c OK [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: F0 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: F0 09 00 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: F0 09 00 27 53 00 AF AF 24 67 72 0D 1C 67 5D [10:38:33]GetLastDocTimeStamp 1730457221 [10:38:33]current date 1730457519 [10:38:33]FM_GetShiftState [10:38:33]SAM_PROTO_GetShiftState [10:38:33]wFMCommunicate request_size=4 [10:38:33]MH_SAM_APDU [10:38:33]CAPDU: 80 13 01 00 [10:38:33]Write to MH i2c: E2 08 00 28 53 80 13 01 00 00 00 00 00 F8 [10:38:33]Write i2c OK [10:38:33]MH_I2C_Read... [10:38:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:33]Read from MH i2c: E2 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: E2 0E 00 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: E2 0E 00 28 53 00 09 00 01 89 19 24 67 00 00 00 00 90 00 31 [10:38:33]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:38:33]wFMCommunicate OK [10:38:33]SAM_PROTO_GetShiftState done [10:38:33]FM_GetShiftState done [10:38:33]opened in 1730419081 [10:38:33]opened+sec_in_day 1730505481 [10:38:33]quantity*price = 13000 [10:38:33]sum+1 = 13001 [10:38:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 106 01.11.2024 10:38 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139925 ФПД: 220830846880098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T103839&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139925&fm=220830846880098&tin=02508201610067®Number=0000000000091631&sum=13000 0 [10:38:34]StoreToDocumentArchive [10:38:34]shift 558 fd 139925 [10:38:34]save to /storage/0558/doc_00139925 [10:38:34]save last doc name /storage/0558/doc_00139925 to /storage/kkm_last_doc_name [10:38:34]save OK [10:38:34]Clear old archive folders... [10:38:35]ProcessDocumentItem done err = 0, tmpTLVsize=276 [10:38:35]tlvbuf is 00AE6090 [10:38:35]SAM_PROTO_ClearQueue [10:38:35]wFMCommunicate request_size=4 [10:38:35]MH_SAM_APDU [10:38:35]CAPDU: 80 09 00 00 [10:38:35]Write to MH i2c: E2 08 00 35 53 80 09 00 00 00 00 00 00 FA [10:38:35]Write i2c OK [10:38:35]MH_I2C_Read... [10:38:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:35]Read from MH i2c: E2 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 03 00 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 03 00 35 53 00 90 00 FC [10:38:35]RAPDU: 90 00 [10:38:35]wFMCommunicate OK [10:38:35]SAM_PROTO_ClearQueue done [10:38:35]KKMCreateOFDPacket [10:38:35]OFDProtocolAddRootSTLVToBuf [10:38:35]FM_MakeSignedData [10:38:35]FM_MakeSignedData [10:38:35]SAM_PROTO_SignData [10:38:35]wFMCommunicate request_size=4 [10:38:35]MH_SAM_APDU [10:38:35]CAPDU: 80 0D 01 02 [10:38:35]Write to MH i2c: E2 08 00 36 53 80 0D 01 02 00 00 00 00 02 [10:38:35]Write i2c OK [10:38:35]MH_I2C_Read... [10:38:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:35]Read from MH i2c: E2 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 03 00 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 03 00 36 53 00 90 00 FD [10:38:35]RAPDU: 90 00 [10:38:35]wFMCommunicate OK [10:38:35]wFMCommunicate request_size=255 [10:38:35]MH_SAM_APDU [10:38:35]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 AF AF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 [10:38:35]Write to MH i2c: E2 02 01 37 53 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 AF AF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 00 00 9B [10:38:35]Write i2c OK [10:38:35]MH_I2C_Read... [10:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:35]Read from MH i2c: E2 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 03 00 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 03 00 37 53 00 90 00 FE [10:38:35]RAPDU: 90 00 [10:38:35]wFMCommunicate OK [10:38:35]wFMCommunicate request_size=35 [10:38:35]MH_SAM_APDU [10:38:35]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 95 22 02 00 35 04 06 00 C8 D8 30 2F 09 62 [10:38:35]Write to MH i2c: E2 26 00 38 53 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 95 22 02 00 35 04 06 00 C8 D8 30 2F 09 62 00 00 23 [10:38:35]Write i2c OK [10:38:35]MH_I2C_Read... [10:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:35]Read from MH i2c: E2 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 03 00 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 03 00 38 53 00 90 00 FF [10:38:35]RAPDU: 90 00 [10:38:35]wFMCommunicate OK [10:38:35]wFMCommunicate request_size=4 [10:38:35]MH_SAM_APDU [10:38:35]CAPDU: 80 0D 03 02 [10:38:35]Write to MH i2c: E2 08 00 39 53 80 0D 03 02 00 00 00 00 07 [10:38:35]Write i2c OK [10:38:35]MH_I2C_Read... [10:38:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:35]Read from MH i2c: E2 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 0B 00 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 0B 00 39 53 00 79 DB F2 B0 3D 15 FC 08 90 00 54 [10:38:35]RAPDU: 79 DB F2 B0 3D 15 FC 08 90 00 [10:38:35]wFMCommunicate OK [10:38:35]SAM_PROTO_SignData done [10:38:35]FM_MakeSignedData done [10:38:35]CreateOFDProtocolMessage [10:38:35]wFMCommunicate request_size=4 [10:38:35]MH_SAM_APDU [10:38:35]CAPDU: 80 11 00 00 [10:38:35]Write to MH i2c: E2 08 00 3A 53 80 11 00 00 00 00 00 00 07 [10:38:35]Write i2c OK [10:38:35]MH_I2C_Read... [10:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:35]Read from MH i2c: E2 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 17 00 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 17 00 3A 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 62 [10:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:38:35]wFMCommunicate OK [10:38:35]CreateOFDProtocolMessage done [10:38:35]OFDSenderStorePacket 139925 [10:38:35]StoreOFDPacket docnum=139925 [10:38:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 28 01 00 00 E4 D0 20 01 3D 73 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 AF AF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 95 22 02 00 35 04 06 00 C8 D8 30 2F 09 62 79 DB F2 B0 3D 15 FC 08 [10:38:35]CheckFolder [10:38:35]dirname=/storage/ofd_packets [10:38:35]CheckFolder done [10:38:35]ProducePacketName [10:38:35]name=ofd_packets/00139925 [10:38:35]NVStorageSaveData ofd_packets/00139925 [10:38:35]File name is /storage/ofd_packets/00139925 [10:38:35]Write 326 bytes [10:38:35]NVStorageSaveData done [10:38:35]OFDSenderStorePacket done [10:38:35]KKMCreateOFDPacket done [10:38:35]NVStorageSaveData kkm_last_timestamp [10:38:35]File name is /storage/kkm_last_timestamp [10:38:35]Write 4 bytes [10:38:35]NVStorageSaveData done [10:38:35]ExternCall_PrintAddStr [10:38:35]wPrintStart [10:38:35]Write to MH i2c: 01 00 00 3B 53 8E [10:38:35]Write i2c OK [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: 01 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: 01 07 00 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: 01 07 00 3B 53 00 00 00 00 00 FF 0F A3 [10:38:35]RasterBufferAndPrint [10:38:35]line Счет N : (3)335746 [10:38:35]line ИНН: 02508201610067 [10:38:35]line Контрольно-Кассовый Чек [10:38:35]line ПРОДАЖА [10:38:35]line Товар: 2000036230011 [10:38:35]line Кофе Латте XL(GABB TRADE) [10:38:35]line 1.000 * 130.00 [10:38:35]line = 130.00 [10:38:35]line НДС 12% НСП 1% [10:38:35]line > о реализуемом товаре [10:38:35]line ИТОГО: 130.00 [10:38:35]line НСП 1% : 1.15 [10:38:35]line НДС 12% : 13.80 [10:38:35]line Наличными: 130.00 [10:38:35]line Безнал.: 0.00 [10:38:35]line Место: АЗС № 101 "Партнер Нефть" [10:38:35]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:38:35]line СНО: Общий режим [10:38:35]line Чек 106 01.11.2024 10:38 [10:38:35]line Смена: 558 ФФД: 1.0 [10:38:35]line ЗНМ: 0300000081 [10:38:35]line РНМ: 0000000000091631 [10:38:35]line Версия ККМ: 001 [10:38:35]line ФМ: 0000000000874669 [10:38:35]line ФД: 139925 [10:38:35]line ФПД: 220830846880098 [10:38:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T103839&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139925&fm=220830846880098&tin=02508201610067®Number=0000000000091631&sum=13000 [10:38:35]OFD Sender: Processing packet 139925 [packets to send 34, broken 33] [10:38:35]ProducePacketName [10:38:35]name=ofd_packets/00139925 [10:38:35]OFD Sender: To server: pG, [10:38:35]CommunicateWithHost lk.salyk.kg:30040 [10:38:35]ConnectInit lk.salyk.kg [10:38:35]line 0 [10:38:35]written 0, free lines is 4095 [10:38:35]Connected sock=7 [10:38:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 28 01 00 00 E4 D0 20 01 3D 73 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 AF AF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 95 22 02 00 35 04 06 00 C8 D8 30 2F 09 62 79 DB F2 B0 3D 15 FC 08 [10:38:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 D2 2A 47 00 57 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 34 36 36 39 10 04 04 00 95 22 02 00 F4 03 04 00 5A 5B 24 67 B6 04 01 00 00 7F 88 10 A2 B8 D3 D3 C8 [10:38:36]CommunicateWithHost err = 0 [10:38:36]CheckOFDResponse [10:38:36]1017 (14) - 77093643461234 [10:38:36]1041 (16) - 0000000000874669 [10:38:36]1040 (4) - 139925 [10:38:36]1012 (4) - 01.11.2024 04:38 [10:38:36]1206 (1) - 0 [10:38:36]OFD Sender: Remove packet 139925 [10:38:36]ProducePacketName [10:38:36]name=ofd_packets/00139925 [10:38:36]NVStorageDeleteData [10:38:36]Write to MH i2c: 01 00 00 63 53 B6 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: 01 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: 01 07 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: 01 07 00 63 53 00 00 00 00 00 22 0D EC [10:38:36]RasterBufferAndPrint [10:38:36]line [10:38:36]line [10:38:36]line [10:38:36]line [10:38:36]line [10:38:36]written 0, free lines is 3370 [10:38:36]MH_Cut [10:38:36]Write to MH i2c: D1 01 00 6A 53 01 8F [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: D1 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: D1 01 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: D1 01 00 6A 53 00 8E [10:38:36]Write to MH i2c: 01 00 00 6B 53 BE [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]OFD Sender: No OFD packet to send [10:38:36]*** Cut start [10:38:36]*** Partial cut [10:38:36]*** CUTSNS_PIN = 1 [10:38:37]*** CUTSNS_PIN = 0 [10:38:37]*** Brake cut motor [10:38:37]Read from MH i2c: 01 [10:38:37]MH_I2C_Read... [10:38:37]*** Stop cut motor [10:38:37]*** Cut end [10:38:37]Read from MH i2c: 01 07 00 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: 01 07 00 6B 53 00 00 00 00 00 FF 0F D3 [10:38:37]process_action close_receipt done [10:38:37]requested_data is exist [10:38:37]produce_requested_data [10:38:37]requested_item fm.sn is exist - process it [10:38:37]wFMCommunicate request_size=4 [10:38:37]MH_SAM_APDU [10:38:37]CAPDU: 80 11 00 00 [10:38:37]Write to MH i2c: E2 08 00 6C 53 80 11 00 00 00 00 00 00 39 [10:38:37]Write i2c OK [10:38:37]MH_I2C_Read... [10:38:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:37]Read from MH i2c: E2 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: E2 17 00 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: E2 17 00 6C 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 94 [10:38:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:38:37]wFMCommunicate OK [10:38:37]requested_item fd.num is exist - process it [10:38:37]SAM_PROTO_GetFieldsCounters [10:38:37]wFMCommunicate request_size=4 [10:38:37]MH_SAM_APDU [10:38:37]CAPDU: 80 13 00 00 [10:38:37]Write to MH i2c: E2 08 00 6D 53 80 13 00 00 00 00 00 00 3C [10:38:37]Write i2c OK [10:38:37]MH_I2C_Read... [10:38:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:37]Read from MH i2c: E2 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: E2 62 00 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: E2 62 00 6D 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 95 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [10:38:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 95 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:37]wFMCommunicate OK [10:38:37]SAM_PROTO_GetFieldsCounters done [10:38:37]requested_item shift.num is exist - process it [10:38:37]requested_item shift.opened is exist - process it [10:38:37]req_shift_opened [10:38:37]FM_GetShiftState [10:38:37]SAM_PROTO_GetShiftState [10:38:37]wFMCommunicate request_size=4 [10:38:37]MH_SAM_APDU [10:38:37]CAPDU: 80 13 01 00 [10:38:37]Write to MH i2c: E2 08 00 6E 53 80 13 01 00 00 00 00 00 3E [10:38:37]Write i2c OK [10:38:37]MH_I2C_Read... [10:38:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:37]Read from MH i2c: E2 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: E2 0E 00 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: E2 0E 00 6E 53 00 09 00 01 89 19 24 67 00 00 00 00 90 00 77 [10:38:37]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:38:37]wFMCommunicate OK [10:38:37]SAM_PROTO_GetShiftState done [10:38:37]FM_GetShiftState done [10:38:37]req_shift_opened done [10:38:37]requested_item shift.open_date is exist - process it [10:38:37]req_shift_open_date [10:38:37]req_shift_open_date done [10:38:37]produce_requested_data done [10:38:37]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139925,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [10:38:37]process_action_free close_receipt [10:38:37]json_value_free [10:38:37]json_value_free done [10:38:37]process_json_proto returns [10:38:37]Send response to host [10:38:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139925,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [10:38:37]free response buf [10:38:37]execute_script done [10:38:37]execute_script returns [10:38:37]free content buf [10:38:37]Sock 9.Close socket [10:38:37]Sock 9.Thread stoped [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:21]OFD Sender: No OFD packet to send [10:41:22]accept exits with 10 [10:41:22]New connection [10:41:22]New thread 3066654052 created [10:41:22]Thread 3066510692 joined [10:41:22]Waiting for new connection... [10:41:22] Sock 10.Parse request [10:41:22]Sock 10.Check first char [10:41:22]Sock 10.First char is OK [10:41:22]request: POST /json_proto HTTP/1.0 [10:41:22]Method: POST [10:41:22]URL: /json_proto [10:41:22]Method is POST - this is cgi request [10:41:22]url: /json_proto [10:41:22]query_string will be loaded in cgi processing [10:41:22]execute_cgi json_proto POST (null) [10:41:22]execute_cgi path=json_proto method=POST [10:41:22]POST find Content-Length [10:41:22]Host: 172.17.50.196:8080 [10:41:22]Content-Length: 621 [10:41:22]Content-Type: application/json [10:41:22] [10:41:22]POST finish read [10:41:22]Found Content-Length = 621 [10:41:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335747", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:22]execute_script... [10:41: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)335747", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:22]POST & json_proto [10:41:22]process_json_proto [10:41:22]json parsed OK: [10:41:22]protocol is kg_v1.0 [10:41:22]action value=close_receipt [10:41:22]process_action close_receipt [10:41:22]cmd_close_receipt [10:41:22]MH_GetDate [10:41:22]Write to MH i2c: F0 00 00 6F 53 B1 [10:41:22]Write i2c OK [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: F0 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: F0 09 00 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: F0 09 00 6F 53 00 58 B0 24 67 72 0D 1C 67 4F [10:41:22]GetLastDocTimeStamp 1730457519 [10:41:22]current date 1730457688 [10:41:22]FM_GetShiftState [10:41:22]SAM_PROTO_GetShiftState [10:41:22]wFMCommunicate request_size=4 [10:41:22]MH_SAM_APDU [10:41:22]CAPDU: 80 13 01 00 [10:41:22]Write to MH i2c: E2 08 00 70 53 80 13 01 00 00 00 00 00 40 [10:41:22]Write i2c OK [10:41:22]MH_I2C_Read... [10:41:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:22]Read from MH i2c: E2 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: E2 0E 00 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: E2 0E 00 70 53 00 09 00 01 89 19 24 67 00 00 00 00 90 00 79 [10:41:22]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:41:22]wFMCommunicate OK [10:41:22]SAM_PROTO_GetShiftState done [10:41:22]FM_GetShiftState done [10:41:22]opened in 1730419081 [10:41:22]opened+sec_in_day 1730505481 [10:41:22]quantity*price = 28800 [10:41:22]sum+1 = 28801 [10:41:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 107 01.11.2024 10:41 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139926 ФПД: 151237418776006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T104128&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139926&fm=151237418776006&tin=02508201610067®Number=0000000000091631&sum=28800 0 [10:41:24]StoreToDocumentArchive [10:41:24]shift 558 fd 139926 [10:41:24]save to /storage/0558/doc_00139926 [10:41:24]save last doc name /storage/0558/doc_00139926 to /storage/kkm_last_doc_name [10:41:24]save OK [10:41:24]Clear old archive folders... [10:41:24]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:41:24]tlvbuf is 00B88E20 [10:41:24]SAM_PROTO_ClearQueue [10:41:24]wFMCommunicate request_size=4 [10:41:24]MH_SAM_APDU [10:41:24]CAPDU: 80 09 00 00 [10:41:24]Write to MH i2c: E2 08 00 7D 53 80 09 00 00 00 00 00 00 42 [10:41:24]Write i2c OK [10:41:24]MH_I2C_Read... [10:41:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:24]Read from MH i2c: E2 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 03 00 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 03 00 7D 53 00 90 00 44 [10:41:24]RAPDU: 90 00 [10:41:24]wFMCommunicate OK [10:41:24]SAM_PROTO_ClearQueue done [10:41:24]KKMCreateOFDPacket [10:41:24]OFDProtocolAddRootSTLVToBuf [10:41:24]FM_MakeSignedData [10:41:24]FM_MakeSignedData [10:41:24]SAM_PROTO_SignData [10:41:24]wFMCommunicate request_size=4 [10:41:24]MH_SAM_APDU [10:41:24]CAPDU: 80 0D 01 02 [10:41:24]Write to MH i2c: E2 08 00 7E 53 80 0D 01 02 00 00 00 00 4A [10:41:24]Write i2c OK [10:41:24]MH_I2C_Read... [10:41:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:24]Read from MH i2c: E2 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 03 00 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 03 00 7E 53 00 90 00 45 [10:41:24]RAPDU: 90 00 [10:41:24]wFMCommunicate OK [10:41:24]wFMCommunicate request_size=255 [10:41:24]MH_SAM_APDU [10:41:24]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 36 36 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 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 58 B0 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 [10:41:24]Write to MH i2c: E2 02 01 7F 53 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 36 36 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 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 58 B0 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 D8 [10:41:24]Write i2c OK [10:41:24]MH_I2C_Read... [10:41:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:24]Read from MH i2c: E2 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 03 00 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 03 00 7F 53 00 90 00 46 [10:41:24]RAPDU: 90 00 [10:41:24]wFMCommunicate OK [10:41:24]wFMCommunicate request_size=32 [10:41:24]MH_SAM_APDU [10:41:24]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 36 39 10 04 04 00 96 22 02 00 35 04 06 00 89 8C B4 9F 75 C6 [10:41:24]Write to MH i2c: E2 23 00 80 53 80 0D 02 02 1B 00 30 30 30 38 37 34 36 36 39 10 04 04 00 96 22 02 00 35 04 06 00 89 8C B4 9F 75 C6 00 00 0F [10:41:24]Write i2c OK [10:41:24]MH_I2C_Read... [10:41:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:24]Read from MH i2c: E2 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 03 00 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 03 00 80 53 00 90 00 47 [10:41:24]RAPDU: 90 00 [10:41:24]wFMCommunicate OK [10:41:24]wFMCommunicate request_size=4 [10:41:24]MH_SAM_APDU [10:41:24]CAPDU: 80 0D 03 02 [10:41:24]Write to MH i2c: E2 08 00 81 53 80 0D 03 02 00 00 00 00 4F [10:41:24]Write i2c OK [10:41:24]MH_I2C_Read... [10:41:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:24]Read from MH i2c: E2 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 0B 00 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 0B 00 81 53 00 C7 CF 0B 84 3A FC FE FF 90 00 A8 [10:41:24]RAPDU: C7 CF 0B 84 3A FC FE FF 90 00 [10:41:24]wFMCommunicate OK [10:41:24]SAM_PROTO_SignData done [10:41:24]FM_MakeSignedData done [10:41:24]CreateOFDProtocolMessage [10:41:24]wFMCommunicate request_size=4 [10:41:24]MH_SAM_APDU [10:41:24]CAPDU: 80 11 00 00 [10:41:24]Write to MH i2c: E2 08 00 82 53 80 11 00 00 00 00 00 00 4F [10:41:24]Write i2c OK [10:41:24]MH_I2C_Read... [10:41:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:24]Read from MH i2c: E2 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 17 00 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 17 00 82 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AA [10:41:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:41:24]wFMCommunicate OK [10:41:24]CreateOFDProtocolMessage done [10:41:24]OFDSenderStorePacket 139926 [10:41:24]StoreOFDPacket docnum=139926 [10:41:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 5C 50 1D 01 C2 8B 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 36 36 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 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 58 B0 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 96 22 02 00 35 04 06 00 89 8C B4 9F 75 C6 C7 CF 0B 84 3A FC FE FF [10:41:24]CheckFolder [10:41:24]dirname=/storage/ofd_packets [10:41:24]CheckFolder done [10:41:24]ProducePacketName [10:41:24]name=ofd_packets/00139926 [10:41:24]NVStorageSaveData ofd_packets/00139926 [10:41:24]File name is /storage/ofd_packets/00139926 [10:41:24]Write 323 bytes [10:41:24]NVStorageSaveData done [10:41:24]OFDSenderStorePacket done [10:41:24]KKMCreateOFDPacket done [10:41:24]NVStorageSaveData kkm_last_timestamp [10:41:24]File name is /storage/kkm_last_timestamp [10:41:24]Write 4 bytes [10:41:24]NVStorageSaveData done [10:41:24]ExternCall_PrintAddStr [10:41:24]wPrintStart [10:41:24]Write to MH i2c: 01 00 00 83 53 D6 [10:41:24]Write i2c OK [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: 01 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: 01 07 00 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: 01 07 00 83 53 00 00 00 00 00 FF 0F EB [10:41:24]RasterBufferAndPrint [10:41:24]line Счет N : (3)335747 [10:41:24]line ИНН: 02508201610067 [10:41:24]line Контрольно-Кассовый Чек [10:41:24]line ПРОДАЖА [10:41:24]line Товар: 48747066 [10:41:24]line Сигареты Winston True Silver [10:41:24]line 2.000 * 144.00 [10:41:24]line = 288.00 [10:41:24]line НДС 12% НСП 1% [10:41:24]line > о реализуемом товаре [10:41:24]line ИТОГО: 288.00 [10:41:24]line НСП 1% : 2.55 [10:41:24]line НДС 12% : 30.58 [10:41:24]line Наличными: 288.00 [10:41:24]line Безнал.: 0.00 [10:41:24]line Место: АЗС № 101 "Партнер Нефть" [10:41:24]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:41:24]line СНО: Общий режим [10:41:24]line Чек 107 01.11.2024 10:41 [10:41:24]line Смена: 558 ФФД: 1.0 [10:41:24]line ЗНМ: 0300000081 [10:41:24]line РНМ: 0000000000091631 [10:41:24]line Версия ККМ: 001 [10:41:24]line ФМ: 0000000000874669 [10:41:24]line ФД: 139926 [10:41:24]line ФПД: 151237418776006 [10:41:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T104128&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139926&fm=151237418776006&tin=02508201610067®Number=0000000000091631&sum=28800 [10:41:24]OFD Sender: Processing packet 139926 [packets to send 34, broken 33] [10:41:24]ProducePacketName [10:41:24]name=ofd_packets/00139926 [10:41:24]OFD Sender: To server: pG, [10:41:24]CommunicateWithHost lk.salyk.kg:30040 [10:41:24]ConnectInit lk.salyk.kg [10:41:24]line 0 [10:41:24]written 0, free lines is 4095 [10:41:25]Connected sock=9 [10:41:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 5C 50 1D 01 C2 8B 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 36 36 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 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 58 B0 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 96 22 02 00 35 04 06 00 89 8C B4 9F 75 C6 C7 CF 0B 84 3A FC FE FF [10:41:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 AF 31 47 00 48 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 34 36 36 39 10 04 04 00 96 22 02 00 F4 03 04 00 03 5C 24 67 B6 04 01 00 00 65 90 09 CC 61 11 53 91 [10:41:25]CommunicateWithHost err = 0 [10:41:25]CheckOFDResponse [10:41:25]1017 (14) - 77093643461234 [10:41:25]1041 (16) - 0000000000874669 [10:41:25]1040 (4) - 139926 [10:41:25]1012 (4) - 01.11.2024 04:41 [10:41:25]1206 (1) - 0 [10:41:25]OFD Sender: Remove packet 139926 [10:41:25]ProducePacketName [10:41:25]name=ofd_packets/00139926 [10:41:25]NVStorageDeleteData [10:41:25]Write to MH i2c: 01 00 00 AB 53 FE [10:41:25]Write i2c OK [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: 01 [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: 01 07 00 [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: 01 07 00 AB 53 00 00 00 00 00 20 0D 32 [10:41:25]RasterBufferAndPrint [10:41:25]line [10:41:25]line [10:41:25]line [10:41:25]line [10:41:25]line [10:41:25]written 0, free lines is 3369 [10:41:25]MH_Cut [10:41:25]Write to MH i2c: D1 01 00 B2 53 01 D7 [10:41:25]Write i2c OK [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: D1 [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: D1 01 00 [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: D1 01 00 B2 53 00 D6 [10:41:25]Write to MH i2c: 01 00 00 B3 53 06 [10:41:25]Write i2c OK [10:41:25]MH_I2C_Read... [10:41:25]OFD Sender: No OFD packet to send [10:41:26]*** Cut start [10:41:26]*** Partial cut [10:41:26]*** CUTSNS_PIN = 1 [10:41:26]*** CUTSNS_PIN = 0 [10:41:26]*** Brake cut motor [10:41:26]Read from MH i2c: 01 [10:41:26]MH_I2C_Read... [10:41:26]*** Stop cut motor [10:41:26]*** Cut end [10:41:26]Read from MH i2c: 01 07 00 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: 01 07 00 B3 53 00 00 00 00 00 FF 0F 1B [10:41:26]process_action close_receipt done [10:41:26]requested_data is exist [10:41:26]produce_requested_data [10:41:26]requested_item fm.sn is exist - process it [10:41:26]wFMCommunicate request_size=4 [10:41:26]MH_SAM_APDU [10:41:26]CAPDU: 80 11 00 00 [10:41:26]Write to MH i2c: E2 08 00 B4 53 80 11 00 00 00 00 00 00 81 [10:41:26]Write i2c OK [10:41:26]MH_I2C_Read... [10:41:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:26]Read from MH i2c: E2 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 17 00 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 17 00 B4 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DC [10:41:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:41:26]wFMCommunicate OK [10:41:26]requested_item fd.num is exist - process it [10:41:26]SAM_PROTO_GetFieldsCounters [10:41:26]wFMCommunicate request_size=4 [10:41:26]MH_SAM_APDU [10:41:26]CAPDU: 80 13 00 00 [10:41:26]Write to MH i2c: E2 08 00 B5 53 80 13 00 00 00 00 00 00 84 [10:41:26]Write i2c OK [10:41:26]MH_I2C_Read... [10:41:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:26]Read from MH i2c: E2 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 62 00 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 62 00 B5 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 96 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [10:41:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 96 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:41:26]wFMCommunicate OK [10:41:26]SAM_PROTO_GetFieldsCounters done [10:41:26]requested_item shift.num is exist - process it [10:41:26]requested_item shift.opened is exist - process it [10:41:26]req_shift_opened [10:41:26]FM_GetShiftState [10:41:26]SAM_PROTO_GetShiftState [10:41:26]wFMCommunicate request_size=4 [10:41:26]MH_SAM_APDU [10:41:26]CAPDU: 80 13 01 00 [10:41:26]Write to MH i2c: E2 08 00 B6 53 80 13 01 00 00 00 00 00 86 [10:41:26]Write i2c OK [10:41:26]MH_I2C_Read... [10:41:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:26]Read from MH i2c: E2 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 0E 00 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 0E 00 B6 53 00 09 00 01 89 19 24 67 00 00 00 00 90 00 BF [10:41:26]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:41:26]wFMCommunicate OK [10:41:26]SAM_PROTO_GetShiftState done [10:41:26]FM_GetShiftState done [10:41:26]req_shift_opened done [10:41:26]requested_item shift.open_date is exist - process it [10:41:26]req_shift_open_date [10:41:26]req_shift_open_date done [10:41:26]produce_requested_data done [10:41:26]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139926,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [10:41:26]process_action_free close_receipt [10:41:26]json_value_free [10:41:26]json_value_free done [10:41:26]process_json_proto returns [10:41:26]Send response to host [10:41:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139926,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [10:41:26]free response buf [10:41:26]execute_script done [10:41:26]execute_script returns [10:41:26]free content buf [10:41:26]Sock 10.Close socket [10:41:26]Sock 10.Thread stoped [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:42:00]OFD Sender: No OFD packet to send [10:42:05]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:47:31]OFD Sender: No OFD packet to send [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [10:48:16]OFD Sender: No OFD packet to send [10:48:21]OFD Sender: No OFD packet to send [10:48:26]OFD Sender: No OFD packet to send [10:48:31]OFD Sender: No OFD packet to send [10:48:36]OFD Sender: No OFD packet to send [10:48:41]OFD Sender: No OFD packet to send [10:48:46]OFD Sender: No OFD packet to send [10:48:51]OFD Sender: No OFD packet to send [10:48:56]OFD Sender: No OFD packet to send [10:49:01]OFD Sender: No OFD packet to send [10:49:06]OFD Sender: No OFD packet to send [10:49:11]OFD Sender: No OFD packet to send [10:49:16]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:31]OFD Sender: No OFD packet to send [10:49:36]OFD Sender: No OFD packet to send [10:49:41]OFD Sender: No OFD packet to send [10:49:46]OFD Sender: No OFD packet to send [10:49:51]OFD Sender: No OFD packet to send [10:49:56]OFD Sender: No OFD packet to send [10:50:01]OFD Sender: No OFD packet to send [10:50:06]OFD Sender: No OFD packet to send [10:50:11]OFD Sender: No OFD packet to send [10:50:16]OFD Sender: No OFD packet to send [10:50:21]OFD Sender: No OFD packet to send [10:50:26]OFD Sender: No OFD packet to send [10:50:31]OFD Sender: No OFD packet to send [10:50:36]OFD Sender: No OFD packet to send [10:50:41]OFD Sender: No OFD packet to send [10:50:46]OFD Sender: No OFD packet to send [10:50:51]OFD Sender: No OFD packet to send [10:50:56]OFD Sender: No OFD packet to send [10:51:01]OFD Sender: No OFD packet to send [10:51:06]OFD Sender: No OFD packet to send [10:51:11]OFD Sender: No OFD packet to send [10:51:16]OFD Sender: No OFD packet to send [10:51:21]OFD Sender: No OFD packet to send [10:51:26]OFD Sender: No OFD packet to send [10:51:31]OFD Sender: No OFD packet to send [10:51:36]OFD Sender: No OFD packet to send [10:51:41]OFD Sender: No OFD packet to send [10:51:46]OFD Sender: No OFD packet to send [10:51:51]OFD Sender: No OFD packet to send [10:51:56]OFD Sender: No OFD packet to send [10:52:01]OFD Sender: No OFD packet to send [10:52:06]OFD Sender: No OFD packet to send [10:52:11]OFD Sender: No OFD packet to send [10:52:16]OFD Sender: No OFD packet to send [10:52:21]OFD Sender: No OFD packet to send [10:52:26]OFD Sender: No OFD packet to send [10:52:31]OFD Sender: No OFD packet to send [10:52:36]OFD Sender: No OFD packet to send [10:52:41]OFD Sender: No OFD packet to send [10:52:46]OFD Sender: No OFD packet to send [10:52:51]OFD Sender: No OFD packet to send [10:52:56]OFD Sender: No OFD packet to send [10:53:01]OFD Sender: No OFD packet to send [10:53:06]OFD Sender: No OFD packet to send [10:53:11]OFD Sender: No OFD packet to send [10:53:16]OFD Sender: No OFD packet to send [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54:21]OFD Sender: No OFD packet to send [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:51]OFD Sender: No OFD packet to send [10:54:56]OFD Sender: No OFD packet to send [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:46]OFD Sender: No OFD packet to send [10:55:51]OFD Sender: No OFD packet to send [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:11]accept exits with 7 [10:59:11]New connection [10:59:11]New thread 3066510692 created [10:59:11]Thread 3066654052 joined [10:59:11]Waiting for new connection... [10:59:11] Sock 7.Parse request [10:59:11]Sock 7.Check first char [10:59:11]Sock 7.First char is OK [10:59:11]request: POST /json_proto HTTP/1.0 [10:59:11]Method: POST [10:59:11]URL: /json_proto [10:59:11]Method is POST - this is cgi request [10:59:11]url: /json_proto [10:59:11]query_string will be loaded in cgi processing [10:59:11]execute_cgi json_proto POST (null) [10:59:11]execute_cgi path=json_proto method=POST [10:59:11]POST find Content-Length [10:59:11]Host: 172.17.50.196:8080 [10:59:11]Content-Length: 655 [10:59:11]Content-Type: application/json [10:59:11] [10:59:11]POST finish read [10:59:11]Found Content-Length = 655 [10:59:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335748", "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" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:11]execute_script... [10:59: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)335748", "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" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:11]POST & json_proto [10:59:11]process_json_proto [10:59:11]json parsed OK: [10:59:11]protocol is kg_v1.0 [10:59:11]action value=close_receipt [10:59:11]process_action close_receipt [10:59:11]cmd_close_receipt [10:59:11]MH_GetDate [10:59:11]Write to MH i2c: F0 00 00 B7 53 F9 [10:59:11]Write i2c OK [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: F0 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: F0 09 00 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: F0 09 00 B7 53 00 85 B4 24 67 72 0D 1C 67 C8 [10:59:11]GetLastDocTimeStamp 1730457688 [10:59:11]current date 1730458757 [10:59:11]FM_GetShiftState [10:59:11]SAM_PROTO_GetShiftState [10:59:11]wFMCommunicate request_size=4 [10:59:11]MH_SAM_APDU [10:59:11]CAPDU: 80 13 01 00 [10:59:11]Write to MH i2c: E2 08 00 B8 53 80 13 01 00 00 00 00 00 88 [10:59:11]Write i2c OK [10:59:11]MH_I2C_Read... [10:59:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:11]Read from MH i2c: E2 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: E2 0E 00 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: E2 0E 00 B8 53 00 09 00 01 89 19 24 67 00 00 00 00 90 00 C1 [10:59:11]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:59:11]wFMCommunicate OK [10:59:11]SAM_PROTO_GetShiftState done [10:59:11]FM_GetShiftState done [10:59:11]opened in 1730419081 [10:59:11]opened+sec_in_day 1730505481 [10:59:11]quantity*price = 6900 [10:59:11]sum+1 = 6901 [10:59:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 69.00 НСП 1% : 0.61 НДС 12% : 7.33 Наличными: 69.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 108 01.11.2024 10:59 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139927 ФПД: 116268618596921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T105917&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139927&fm=116268618596921&tin=02508201610067®Number=0000000000091631&sum=6900 0 [10:59:13]StoreToDocumentArchive [10:59:13]shift 558 fd 139927 [10:59:13]save to /storage/0558/doc_00139927 [10:59:13]save last doc name /storage/0558/doc_00139927 to /storage/kkm_last_doc_name [10:59:13]save OK [10:59:13]Clear old archive folders... [10:59:13]ProcessDocumentItem done err = 0, tmpTLVsize=294 [10:59:13]tlvbuf is 00AFCFA0 [10:59:13]SAM_PROTO_ClearQueue [10:59:13]wFMCommunicate request_size=4 [10:59:13]MH_SAM_APDU [10:59:13]CAPDU: 80 09 00 00 [10:59:13]Write to MH i2c: E2 08 00 C5 53 80 09 00 00 00 00 00 00 8A [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:13]Read from MH i2c: E2 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 C5 53 00 90 00 8C [10:59:13]RAPDU: 90 00 [10:59:13]wFMCommunicate OK [10:59:13]SAM_PROTO_ClearQueue done [10:59:13]KKMCreateOFDPacket [10:59:13]OFDProtocolAddRootSTLVToBuf [10:59:13]FM_MakeSignedData [10:59:13]FM_MakeSignedData [10:59:13]SAM_PROTO_SignData [10:59:13]wFMCommunicate request_size=4 [10:59:13]MH_SAM_APDU [10:59:13]CAPDU: 80 0D 01 02 [10:59:13]Write to MH i2c: E2 08 00 C6 53 80 0D 01 02 00 00 00 00 92 [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:13]Read from MH i2c: E2 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 C6 53 00 90 00 8D [10:59:13]RAPDU: 90 00 [10:59:13]wFMCommunicate OK [10:59:13]wFMCommunicate request_size=255 [10:59:13]MH_SAM_APDU [10:59:13]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 85 B4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [10:59:13]Write to MH i2c: E2 02 01 C7 53 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 85 B4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 01 [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:13]Read from MH i2c: E2 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 C7 53 00 90 00 8E [10:59:13]RAPDU: 90 00 [10:59:13]wFMCommunicate OK [10:59:13]wFMCommunicate request_size=53 [10:59:13]MH_SAM_APDU [10:59:13]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 97 22 02 00 35 04 06 00 69 BE E5 B5 C2 39 [10:59:13]Write to MH i2c: E2 38 00 C8 53 80 0D 02 02 30 00 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 97 22 02 00 35 04 06 00 69 BE E5 B5 C2 39 00 00 04 [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:13]Read from MH i2c: E2 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 C8 53 00 90 00 8F [10:59:13]RAPDU: 90 00 [10:59:13]wFMCommunicate OK [10:59:13]wFMCommunicate request_size=4 [10:59:13]MH_SAM_APDU [10:59:13]CAPDU: 80 0D 03 02 [10:59:13]Write to MH i2c: E2 08 00 C9 53 80 0D 03 02 00 00 00 00 97 [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:13]Read from MH i2c: E2 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 0B 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 0B 00 C9 53 00 BB 0D 82 11 F3 FD EB 05 90 00 D3 [10:59:13]RAPDU: BB 0D 82 11 F3 FD EB 05 90 00 [10:59:13]wFMCommunicate OK [10:59:13]SAM_PROTO_SignData done [10:59:13]FM_MakeSignedData done [10:59:13]CreateOFDProtocolMessage [10:59:13]wFMCommunicate request_size=4 [10:59:13]MH_SAM_APDU [10:59:13]CAPDU: 80 11 00 00 [10:59:13]Write to MH i2c: E2 08 00 CA 53 80 11 00 00 00 00 00 00 97 [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:13]Read from MH i2c: E2 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 17 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 17 00 CA 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F2 [10:59:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:59:13]wFMCommunicate OK [10:59:13]CreateOFDProtocolMessage done [10:59:13]OFDSenderStorePacket 139927 [10:59:13]StoreOFDPacket docnum=139927 [10:59:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3A 01 00 00 F5 B3 32 01 CE 29 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 85 B4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 97 22 02 00 35 04 06 00 69 BE E5 B5 C2 39 BB 0D 82 11 F3 FD EB 05 [10:59:13]CheckFolder [10:59:13]dirname=/storage/ofd_packets [10:59:13]CheckFolder done [10:59:13]ProducePacketName [10:59:13]name=ofd_packets/00139927 [10:59:13]NVStorageSaveData ofd_packets/00139927 [10:59:13]File name is /storage/ofd_packets/00139927 [10:59:13]Write 344 bytes [10:59:13]NVStorageSaveData done [10:59:13]OFDSenderStorePacket done [10:59:13]KKMCreateOFDPacket done [10:59:13]NVStorageSaveData kkm_last_timestamp [10:59:13]File name is /storage/kkm_last_timestamp [10:59:13]Write 4 bytes [10:59:13]NVStorageSaveData done [10:59:13]ExternCall_PrintAddStr [10:59:13]wPrintStart [10:59:13]Write to MH i2c: 01 00 00 CB 53 1E [10:59:13]OFD Sender: Processing packet 139927 [packets to send 34, broken 33] [10:59:13]ProducePacketName [10:59:13]name=ofd_packets/00139927 [10:59:13]OFD Sender: To server: pG, [10:59:13]CommunicateWithHost lk.salyk.kg:30040 [10:59:13]ConnectInit lk.salyk.kg [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: 01 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: 01 07 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: 01 07 00 CB 53 00 00 00 00 00 FF 0F 33 [10:59:13]RasterBufferAndPrint [10:59:13]line Счет N : (3)335748 [10:59:13]line ИНН: 02508201610067 [10:59:13]line Контрольно-Кассовый Чек [10:59:13]line ПРОДАЖА [10:59:13]line Товар: 4600682557456 [10:59:13]line Напиток FLash up energy эн ж/б 0,5/0,45л [10:59:13]line 1.000 * 69.00 [10:59:13]line = 69.00 [10:59:13]line НДС 12% НСП 1% [10:59:13]line > о реализуемом товаре [10:59:13]line ИТОГО: 69.00 [10:59:13]line НСП 1% : 0.61 [10:59:13]line НДС 12% : 7.33 [10:59:13]line Наличными: 69.00 [10:59:13]line Безнал.: 0.00 [10:59:13]line Место: АЗС № 101 "Партнер Нефть" [10:59:13]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:59:13]line СНО: Общий режим [10:59:13]line Чек 108 01.11.2024 10:59 [10:59:13]line Смена: 558 ФФД: 1.0 [10:59:13]line ЗНМ: 0300000081 [10:59:13]line РНМ: 0000000000091631 [10:59:13]line Версия ККМ: 001 [10:59:13]line ФМ: 0000000000874669 [10:59:13]line ФД: 139927 [10:59:13]line ФПД: 116268618596921 [10:59:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T105917&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139927&fm=116268618596921&tin=02508201610067®Number=0000000000091631&sum=6900 [10:59:13]line 0 [10:59:13]Connected sock=10 [10:59:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3A 01 00 00 F5 B3 32 01 CE 29 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 85 B4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 97 22 02 00 35 04 06 00 69 BE E5 B5 C2 39 BB 0D 82 11 F3 FD EB 05 [10:59:14]written 0, free lines is 4095 [10:59:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 45 56 47 00 66 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 97 22 02 00 F4 03 04 00 30 60 24 67 B6 04 01 00 00 73 39 F4 CD F5 D3 CF 65 [10:59:14]CommunicateWithHost err = 0 [10:59:14]CheckOFDResponse [10:59:14]1017 (14) - 77093643461234 [10:59:14]1041 (16) - 0000000000874669 [10:59:14]1040 (4) - 139927 [10:59:14]1012 (4) - 01.11.2024 04:59 [10:59:14]1206 (1) - 0 [10:59:14]OFD Sender: Remove packet 139927 [10:59:14]ProducePacketName [10:59:14]name=ofd_packets/00139927 [10:59:14]NVStorageDeleteData [10:59:14]Write to MH i2c: 01 00 00 F4 53 47 [10:59:14]Write i2c OK [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: 01 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: 01 07 00 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: 01 07 00 F4 53 00 00 00 00 00 03 0D 5E [10:59:14]RasterBufferAndPrint [10:59:14]line [10:59:14]line [10:59:14]line [10:59:14]line [10:59:14]line [10:59:14]written 0, free lines is 3337 [10:59:14]MH_Cut [10:59:14]Write to MH i2c: D1 01 00 FB 53 01 20 [10:59:14]Write i2c OK [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: D1 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: D1 01 00 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: D1 01 00 FB 53 00 1F [10:59:14]Write to MH i2c: 01 00 00 FC 53 4F [10:59:14]Write i2c OK [10:59:14]MH_I2C_Read... [10:59:14]OFD Sender: No OFD packet to send [10:59:15]*** Cut start [10:59:15]*** Partial cut [10:59:15]*** CUTSNS_PIN = 1 [10:59:15]*** CUTSNS_PIN = 0 [10:59:15]*** Brake cut motor [10:59:15]Read from MH i2c: 01 [10:59:15]MH_I2C_Read... [10:59:15]*** Stop cut motor [10:59:15]*** Cut end [10:59:15]Read from MH i2c: 01 07 00 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: 01 07 00 FC 53 00 00 00 00 00 FF 0F 64 [10:59:15]process_action close_receipt done [10:59:15]requested_data is exist [10:59:15]produce_requested_data [10:59:15]requested_item fm.sn is exist - process it [10:59:15]wFMCommunicate request_size=4 [10:59:15]MH_SAM_APDU [10:59:15]CAPDU: 80 11 00 00 [10:59:15]Write to MH i2c: E2 08 00 FD 53 80 11 00 00 00 00 00 00 CA [10:59:15]Write i2c OK [10:59:15]MH_I2C_Read... [10:59:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:15]Read from MH i2c: E2 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 17 00 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 17 00 FD 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 25 [10:59:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:59:15]wFMCommunicate OK [10:59:15]requested_item fd.num is exist - process it [10:59:15]SAM_PROTO_GetFieldsCounters [10:59:15]wFMCommunicate request_size=4 [10:59:15]MH_SAM_APDU [10:59:15]CAPDU: 80 13 00 00 [10:59:15]Write to MH i2c: E2 08 00 FE 53 80 13 00 00 00 00 00 00 CD [10:59:15]Write i2c OK [10:59:15]MH_I2C_Read... [10:59:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:15]Read from MH i2c: E2 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 62 00 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 62 00 FE 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 97 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [10:59:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 97 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:15]wFMCommunicate OK [10:59:15]SAM_PROTO_GetFieldsCounters done [10:59:15]requested_item shift.num is exist - process it [10:59:15]requested_item shift.opened is exist - process it [10:59:15]req_shift_opened [10:59:15]FM_GetShiftState [10:59:15]SAM_PROTO_GetShiftState [10:59:15]wFMCommunicate request_size=4 [10:59:15]MH_SAM_APDU [10:59:15]CAPDU: 80 13 01 00 [10:59:15]Write to MH i2c: E2 08 00 FF 53 80 13 01 00 00 00 00 00 CF [10:59:15]Write i2c OK [10:59:15]MH_I2C_Read... [10:59:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:15]Read from MH i2c: E2 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: E2 0E 00 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: E2 0E 00 FF 53 00 09 00 01 89 19 24 67 00 00 00 00 90 00 08 [10:59:16]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [10:59:16]wFMCommunicate OK [10:59:16]SAM_PROTO_GetShiftState done [10:59:16]FM_GetShiftState done [10:59:16]req_shift_opened done [10:59:16]requested_item shift.open_date is exist - process it [10:59:16]req_shift_open_date [10:59:16]req_shift_open_date done [10:59:16]produce_requested_data done [10:59:16]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139927,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [10:59:16]process_action_free close_receipt [10:59:16]json_value_free [10:59:16]json_value_free done [10:59:16]process_json_proto returns [10:59:16]Send response to host [10:59:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139927,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [10:59:16]free response buf [10:59:16]execute_script done [10:59:16]execute_script returns [10:59:16]free content buf [10:59:16]Sock 7.Close socket [10:59:16]Sock 7.Thread stoped [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00:45]accept exits with 9 [11:00:45]New connection [11:00:45]New thread 3066654052 created [11:00:45]Thread 3066510692 joined [11:00:45]Waiting for new connection... [11:00:45] Sock 9.Parse request [11:00:45]Sock 9.Check first char [11:00:45]Sock 9.First char is OK [11:00:45]request: POST /json_proto HTTP/1.0 [11:00:45]Method: POST [11:00:45]URL: /json_proto [11:00:45]Method is POST - this is cgi request [11:00:45]url: /json_proto [11:00:45]query_string will be loaded in cgi processing [11:00:45]execute_cgi json_proto POST (null) [11:00:45]execute_cgi path=json_proto method=POST [11:00:45]POST find Content-Length [11:00:45]Host: 172.17.50.196:8080 [11:00:45]Content-Length: 1514 [11:00:45]Content-Type: application/json [11:00:45] [11:00:45]POST finish read [11:00:45]Found Content-Length = 1514 [11:00:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335750", "tax_sys" : 0, "items" : [ { "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.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": "4603290003032", "name": "\u041A\u0440\u0435\u043A\u0435\u0440 \u042F\u0448\u043A\u0438\u043D\u043E \u0424\u0440\u0430\u043D\u0446\u0443\u0437\u0441\u043A\u0438\u0439 \u0445\u0440\u0443\u0441\u0442 \u0441 \u043A\u0443\u043D\u0436\u0443\u0442", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 228.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:45]execute_script... [11:00: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)335750", "tax_sys" : 0, "items" : [ { "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.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": "4603290003032", "name": "\u041A\u0440\u0435\u043A\u0435\u0440 \u042F\u0448\u043A\u0438\u043D\u043E \u0424\u0440\u0430\u043D\u0446\u0443\u0437\u0441\u043A\u0438\u0439 \u0445\u0440\u0443\u0441\u0442 \u0441 \u043A\u0443\u043D\u0436\u0443\u0442", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 228.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:45]POST & json_proto [11:00:45]process_json_proto [11:00:45]json parsed OK: [11:00:45]protocol is kg_v1.0 [11:00:45]action value=close_receipt [11:00:45]process_action close_receipt [11:00:45]cmd_close_receipt [11:00:45]MH_GetDate [11:00:45]Write to MH i2c: F0 00 00 00 54 43 [11:00:45]Write i2c OK [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: F0 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: F0 09 00 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: F0 09 00 00 54 00 E2 B4 24 67 72 0D 1C 67 6F [11:00:45]GetLastDocTimeStamp 1730458757 [11:00:45]current date 1730458850 [11:00:45]FM_GetShiftState [11:00:45]SAM_PROTO_GetShiftState [11:00:45]wFMCommunicate request_size=4 [11:00:45]MH_SAM_APDU [11:00:45]CAPDU: 80 13 01 00 [11:00:45]Write to MH i2c: E2 08 00 01 54 80 13 01 00 00 00 00 00 D2 [11:00:45]Write i2c OK [11:00:45]MH_I2C_Read... [11:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:45]Read from MH i2c: E2 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 0E 00 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 0E 00 01 54 00 09 00 01 89 19 24 67 00 00 00 00 90 00 0B [11:00:45]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:00:45]wFMCommunicate OK [11:00:45]SAM_PROTO_GetShiftState done [11:00:45]FM_GetShiftState done [11:00:45]opened in 1730419081 [11:00:45]opened+sec_in_day 1730505481 [11:00:45]quantity*price = 4900 [11:00:45]sum+1 = 4901 [11:00:45]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% > о реализуемом товаре Товар: 4603290003032 Крекер Яшкино Французский хруст с кунжут 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 228.00 НСП 1% : 2.01 НДС 12% : 24.20 Наличными: 228.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 109 01.11.2024 11:00 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139928 ФПД: 137323301985771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T110051&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139928&fm=137323301985771&tin=02508201610067®Number=0000000000091631&sum=22800 0 [11:00:46]StoreToDocumentArchive [11:00:46]shift 558 fd 139928 [11:00:46]save to /storage/0558/doc_00139928 [11:00:46]save last doc name /storage/0558/doc_00139928 to /storage/kkm_last_doc_name [11:00:46]save OK [11:00:46]Clear old archive folders... [11:00:47]ProcessDocumentItem done err = 0, tmpTLVsize=636 [11:00:47]tlvbuf is 00AB29B0 [11:00:47]SAM_PROTO_ClearQueue [11:00:47]wFMCommunicate request_size=4 [11:00:47]MH_SAM_APDU [11:00:47]CAPDU: 80 09 00 00 [11:00:47]Write to MH i2c: E2 08 00 0E 54 80 09 00 00 00 00 00 00 D4 [11:00:47]Write i2c OK [11:00:47]MH_I2C_Read... [11:00:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:47]Read from MH i2c: E2 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 03 00 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 03 00 0E 54 00 90 00 D6 [11:00:47]RAPDU: 90 00 [11:00:47]wFMCommunicate OK [11:00:47]SAM_PROTO_ClearQueue done [11:00:47]KKMCreateOFDPacket [11:00:47]OFDProtocolAddRootSTLVToBuf [11:00:47]FM_MakeSignedData [11:00:47]FM_MakeSignedData [11:00:47]SAM_PROTO_SignData [11:00:47]wFMCommunicate request_size=4 [11:00:47]MH_SAM_APDU [11:00:47]CAPDU: 80 0D 01 02 [11:00:47]Write to MH i2c: E2 08 00 0F 54 80 0D 01 02 00 00 00 00 DC [11:00:47]Write i2c OK [11:00:47]MH_I2C_Read... [11:00:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:47]Read from MH i2c: E2 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 03 00 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 03 00 0F 54 00 90 00 D7 [11:00:47]RAPDU: 90 00 [11:00:47]wFMCommunicate OK [11:00:47]wFMCommunicate request_size=255 [11:00:47]MH_SAM_APDU [11:00:47]CAPDU: 80 0D 02 02 FA 03 00 7C 02 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 8F 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 33 30 33 32 06 04 4B 00 D0 9A D1 80 D0 B5 D0 BA [11:00:47]Write to MH i2c: E2 02 01 10 54 80 0D 02 02 FA 00 03 00 7C 02 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 8F 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 33 30 33 32 06 04 4B 00 D0 9A D1 80 D0 B5 D0 BA 00 00 7D [11:00:47]Write i2c OK [11:00:47]MH_I2C_Read... [11:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:47]Read from MH i2c: E2 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 03 00 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 03 00 10 54 00 90 00 D8 [11:00:47]RAPDU: 90 00 [11:00:47]wFMCommunicate OK [11:00:47]wFMCommunicate request_size=255 [11:00:47]MH_SAM_APDU [11:00:47]CAPDU: 80 0D 02 02 FA D0 B5 D1 80 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 A4 D1 80 D0 B0 D0 BD D1 86 D1 83 D0 B7 D1 81 D0 BA D0 B8 D0 B9 20 D1 85 D1 80 D1 83 D1 81 D1 82 20 D1 81 20 D0 BA D1 83 D0 BD D0 B6 D1 83 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [11:00:47]Write to MH i2c: E2 02 01 11 54 80 0D 02 02 FA 00 D0 B5 D1 80 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 A4 D1 80 D0 B0 D0 BD D1 86 D1 83 D0 B7 D1 81 D0 BA D0 B8 D0 B9 20 D1 85 D1 80 D1 83 D1 81 D1 82 20 D1 81 20 D0 BA D1 83 D0 BD D0 B6 D1 83 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 CE [11:00:47]Write i2c OK [11:00:47]MH_I2C_Read... [11:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:47]Read from MH i2c: E2 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 03 00 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 03 00 11 54 00 90 00 D9 [11:00:47]RAPDU: 90 00 [11:00:47]wFMCommunicate OK [11:00:47]wFMCommunicate request_size=145 [11:00:47]MH_SAM_APDU [11:00:47]CAPDU: 80 0D 02 02 8C 06 00 C9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 09 00 00 00 00 07 04 06 00 10 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 6D 00 00 00 F4 03 04 00 E3 B4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 98 22 02 00 35 04 06 00 7C E5 12 A2 5D EB [11:00:47]Write to MH i2c: E2 94 00 12 54 80 0D 02 02 8C 00 06 00 C9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 09 00 00 00 00 07 04 06 00 10 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 6D 00 00 00 F4 03 04 00 E3 B4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 98 22 02 00 35 04 06 00 7C E5 12 A2 5D EB 00 00 B5 [11:00:47]Write i2c OK [11:00:47]MH_I2C_Read... [11:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:47]Read from MH i2c: E2 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 03 00 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 03 00 12 54 00 90 00 DA [11:00:47]RAPDU: 90 00 [11:00:47]wFMCommunicate OK [11:00:47]wFMCommunicate request_size=4 [11:00:47]MH_SAM_APDU [11:00:47]CAPDU: 80 0D 03 02 [11:00:47]Write to MH i2c: E2 08 00 13 54 80 0D 03 02 00 00 00 00 E2 [11:00:47]Write i2c OK [11:00:47]MH_I2C_Read... [11:00:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:47]Read from MH i2c: E2 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 0B 00 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 0B 00 13 54 00 67 88 7B 14 1A DB BC B0 90 00 C2 [11:00:47]RAPDU: 67 88 7B 14 1A DB BC B0 90 00 [11:00:47]wFMCommunicate OK [11:00:47]SAM_PROTO_SignData done [11:00:47]FM_MakeSignedData done [11:00:47]CreateOFDProtocolMessage [11:00:47]wFMCommunicate request_size=4 [11:00:47]MH_SAM_APDU [11:00:47]CAPDU: 80 11 00 00 [11:00:47]Write to MH i2c: E2 08 00 14 54 80 11 00 00 00 00 00 00 E2 [11:00:47]Write i2c OK [11:00:47]MH_I2C_Read... [11:00:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:47]Read from MH i2c: E2 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 17 00 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 17 00 14 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3D [11:00:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:00:47]wFMCommunicate OK [11:00:47]CreateOFDProtocolMessage done [11:00:47]OFDSenderStorePacket 139928 [11:00:47]StoreOFDPacket docnum=139928 [11:00:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 02 00 00 7A 3F 88 02 58 E7 5A 03 01 00 03 00 7C 02 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 8F 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 33 30 33 32 06 04 4B 00 D0 9A D1 80 D0 B5 D0 BA D0 B5 D1 80 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 A4 D1 80 D0 B0 D0 BD D1 86 D1 83 D0 B7 D1 81 D0 BA D0 B8 D0 B9 20 D1 85 D1 80 D1 83 D1 81 D1 82 20 D1 81 20 D0 BA D1 83 D0 BD D0 B6 D1 83 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 09 00 00 00 00 07 04 06 00 10 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 6D 00 00 00 F4 03 04 00 E3 B4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 98 22 02 00 35 04 06 00 7C E5 12 A2 5D EB 67 88 7B 14 1A DB BC B0 [11:00:47]CheckFolder [11:00:47]dirname=/storage/ofd_packets [11:00:47]CheckFolder done [11:00:47]ProducePacketName [11:00:47]name=ofd_packets/00139928 [11:00:47]NVStorageSaveData ofd_packets/00139928 [11:00:47]File name is /storage/ofd_packets/00139928 [11:00:47]Write 686 bytes [11:00:47]NVStorageSaveData done [11:00:47]OFDSenderStorePacket done [11:00:47]KKMCreateOFDPacket done [11:00:47]NVStorageSaveData kkm_last_timestamp [11:00:47]File name is /storage/kkm_last_timestamp [11:00:47]Write 4 bytes [11:00:47]NVStorageSaveData done [11:00:47]ExternCall_PrintAddStr [11:00:47]wPrintStart [11:00:47]Write to MH i2c: 01 00 00 15 54 69 [11:00:47]Write i2c OK [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: 01 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: 01 07 00 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: 01 07 00 15 54 00 00 00 00 00 FF 0F 7E [11:00:47]RasterBufferAndPrint [11:00:47]line Счет N : (3)335750 [11:00:47]line ИНН: 02508201610067 [11:00:47]line Контрольно-Кассовый Чек [11:00:47]line ПРОДАЖА [11:00:47]line Товар: 46214645 [11:00:47]line Р/ж mentos pure white клуб 16/15,5г [11:00:47]line 1.000 * 49.00 [11:00:47]line = 49.00 [11:00:47]line НДС 12% НСП 1% [11:00:47]line > о реализуемом товаре [11:00:47]line Товар: 4700000160358 [11:00:48]line Вода Легенда 1л [11:00:48]line 1.000 * 50.00 [11:00:48]line = 50.00 [11:00:48]line НДС 12% НСП 1% [11:00:48]line > о реализуемом товаре [11:00:48]line Товар: 4603290003032 [11:00:48]line Крекер Яшкино Французский хруст с кунжут [11:00:48]line 1.000 * 70.00 [11:00:48]line = 70.00 [11:00:48]line НДС 12% НСП 1% [11:00:48]line > о реализуемом товаре [11:00:48]line Товар: 4607065001445 [11:00:48]line Шок батончик Snickers 50,5г [11:00:48]line 1.000 * 59.00 [11:00:48]line = 59.00 [11:00:48]line НДС 12% НСП 1% [11:00:48]line > о реализуемом товаре [11:00:48]line ИТОГО: 228.00 [11:00:48]line НСП 1% : 2.01 [11:00:48]line НДС 12% : 24.20 [11:00:48]line Наличными: 228.00 [11:00:48]line Безнал.: 0.00 [11:00:48]line Место: АЗС № 101 "Партнер Нефть" [11:00:48]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:00:48]line СНО: Общий режим [11:00:48]line Чек 109 01.11.2024 11:00 [11:00:48]line Смена: 558 ФФД: 1.0 [11:00:48]line ЗНМ: 0300000081 [11:00:48]line РНМ: 0000000000091631 [11:00:48]line Версия ККМ: 001 [11:00:48]line ФМ: 0000000000874669 [11:00:48]line ФД: 139928 [11:00:48]line ФПД: 137323301985771 [11:00:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T110051&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139928&fm=137323301985771&tin=02508201610067®Number=0000000000091631&sum=22800 [11:00:48]line 0 [11:00:48]OFD Sender: Processing packet 139928 [packets to send 34, broken 33] [11:00:48]ProducePacketName [11:00:48]name=ofd_packets/00139928 [11:00:48]OFD Sender: To server: pG, [11:00:48]CommunicateWithHost lk.salyk.kg:30040 [11:00:48]ConnectInit lk.salyk.kg [11:00:48]written 0, free lines is 4095 [11:00:48]Connected sock=10 [11:00:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 02 00 00 7A 3F 88 02 58 E7 5A 03 01 00 03 00 7C 02 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 8F 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 33 30 33 32 06 04 4B 00 D0 9A D1 80 D0 B5 D0 BA D0 B5 D1 80 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 A4 D1 80 D0 B0 D0 BD D1 86 D1 83 D0 B7 D1 81 D0 BA D0 B8 D0 B9 20 D1 85 D1 80 D1 83 D1 81 D1 82 20 D1 81 20 D0 BA D1 83 D0 BD D0 B6 D1 83 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 09 00 00 00 00 07 04 06 00 10 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 6D 00 00 00 F4 03 04 00 E3 B4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 98 22 02 00 35 04 06 00 7C E5 12 A2 5D EB 67 88 7B 14 1A DB BC B0 [11:00:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 0A 83 47 00 89 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 98 22 02 00 F4 03 04 00 8E 60 24 67 B6 04 01 00 00 83 AA CD A0 E8 4E 85 96 [11:00:48]CommunicateWithHost err = 0 [11:00:48]CheckOFDResponse [11:00:48]1017 (14) - 77093643461234 [11:00:48]1041 (16) - 0000000000874669 [11:00:48]1040 (4) - 139928 [11:00:48]1012 (4) - 01.11.2024 05:01 [11:00:48]1206 (1) - 0 [11:00:48]OFD Sender: Remove packet 139928 [11:00:48]ProducePacketName [11:00:48]name=ofd_packets/00139928 [11:00:48]NVStorageDeleteData [11:00:48]Write to MH i2c: 01 00 00 51 54 A5 [11:00:48]Write i2c OK [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: 01 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: 01 07 00 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: 01 07 00 51 54 00 00 00 00 00 1B 0C D3 [11:00:48]RasterBufferAndPrint [11:00:48]line [11:00:48]line [11:00:48]line [11:00:48]line [11:00:48]line [11:00:48]written 0, free lines is 3108 [11:00:48]MH_Cut [11:00:48]Write to MH i2c: D1 01 00 58 54 01 7E [11:00:48]Write i2c OK [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: D1 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: D1 01 00 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: D1 01 00 58 54 00 7D [11:00:48]Write to MH i2c: 01 00 00 59 54 AD [11:00:48]Write i2c OK [11:00:48]MH_I2C_Read... [11:00:49]OFD Sender: No OFD packet to send [11:00:49]*** Cut start [11:00:49]*** Partial cut [11:00:49]*** CUTSNS_PIN = 1 [11:00:49]*** CUTSNS_PIN = 0 [11:00:50]*** Brake cut motor [11:00:50]Read from MH i2c: 01 [11:00:50]MH_I2C_Read... [11:00:50]*** Stop cut motor [11:00:50]*** Cut end [11:00:50]Read from MH i2c: 01 07 00 [11:00:50]MH_I2C_Read... [11:00:50]Read from MH i2c: 01 07 00 59 54 00 00 00 00 00 FF 0F C2 [11:00:50]process_action close_receipt done [11:00:50]requested_data is exist [11:00:50]produce_requested_data [11:00:50]requested_item fm.sn is exist - process it [11:00:50]wFMCommunicate request_size=4 [11:00:50]MH_SAM_APDU [11:00:50]CAPDU: 80 11 00 00 [11:00:50]Write to MH i2c: E2 08 00 5A 54 80 11 00 00 00 00 00 00 28 [11:00:50]Write i2c OK [11:00:50]MH_I2C_Read... [11:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:50]Read from MH i2c: E2 [11:00:50]MH_I2C_Read... [11:00:50]Read from MH i2c: E2 17 00 [11:00:50]MH_I2C_Read... [11:00:50]Read from MH i2c: E2 17 00 5A 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 83 [11:00:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:00:50]wFMCommunicate OK [11:00:50]requested_item fd.num is exist - process it [11:00:50]SAM_PROTO_GetFieldsCounters [11:00:50]wFMCommunicate request_size=4 [11:00:50]MH_SAM_APDU [11:00:50]CAPDU: 80 13 00 00 [11:00:50]Write to MH i2c: E2 08 00 5B 54 80 13 00 00 00 00 00 00 2B [11:00:50]Write i2c OK [11:00:50]MH_I2C_Read... [11:00:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:50]Read from MH i2c: E2 [11:00:50]MH_I2C_Read... [11:00:50]Read from MH i2c: E2 62 00 [11:00:50]MH_I2C_Read... [11:00:50]Read from MH i2c: E2 62 00 5B 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 98 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [11:00:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 98 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:50]wFMCommunicate OK [11:00:50]SAM_PROTO_GetFieldsCounters done [11:00:50]requested_item shift.num is exist - process it [11:00:50]requested_item shift.opened is exist - process it [11:00:50]req_shift_opened [11:00:50]FM_GetShiftState [11:00:50]SAM_PROTO_GetShiftState [11:00:50]wFMCommunicate request_size=4 [11:00:50]MH_SAM_APDU [11:00:50]CAPDU: 80 13 01 00 [11:00:50]Write to MH i2c: E2 08 00 5C 54 80 13 01 00 00 00 00 00 2D [11:00:50]Write i2c OK [11:00:50]MH_I2C_Read... [11:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:50]Read from MH i2c: E2 [11:00:50]MH_I2C_Read... [11:00:50]Read from MH i2c: E2 0E 00 [11:00:50]MH_I2C_Read... [11:00:50]Read from MH i2c: E2 0E 00 5C 54 00 09 00 01 89 19 24 67 00 00 00 00 90 00 66 [11:00:50]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:00:50]wFMCommunicate OK [11:00:50]SAM_PROTO_GetShiftState done [11:00:50]FM_GetShiftState done [11:00:50]req_shift_opened done [11:00:50]requested_item shift.open_date is exist - process it [11:00:50]req_shift_open_date [11:00:50]req_shift_open_date done [11:00:50]produce_requested_data done [11:00:50]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139928,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [11:00:50]process_action_free close_receipt [11:00:50]json_value_free [11:00:50]json_value_free done [11:00:50]process_json_proto returns [11:00:50]Send response to host [11:00:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139928,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [11:00:50]free response buf [11:00:50]execute_script done [11:00:50]execute_script returns [11:00:50]free content buf [11:00:50]Sock 9.Close socket [11:00:50]Sock 9.Thread stoped [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:01:04]OFD Sender: No OFD packet to send [11:01:09]OFD Sender: No OFD packet to send [11:01:12]accept exits with 7 [11:01:12]New connection [11:01:12]New thread 3066510692 created [11:01:12]Thread 3066654052 joined [11:01:12]Waiting for new connection... [11:01:12] Sock 7.Parse request [11:01:12]Sock 7.Check first char [11:01:12]Sock 7.First char is OK [11:01:12]request: POST /json_proto HTTP/1.0 [11:01:12]Method: POST [11:01:12]URL: /json_proto [11:01:12]Method is POST - this is cgi request [11:01:12]url: /json_proto [11:01:12]query_string will be loaded in cgi processing [11:01:12]execute_cgi json_proto POST (null) [11:01:12]execute_cgi path=json_proto method=POST [11:01:12]POST find Content-Length [11:01:12]Host: 172.17.50.196:8080 [11:01:12]Content-Length: 984 [11:01:12]Content-Type: application/json [11:01:12] [11:01:12]POST finish read [11:01:12]Found Content-Length = 984 [11:01:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335751", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 283.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:12]execute_script... [11:01: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)335751", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 283.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:12]POST & json_proto [11:01:12]process_json_proto [11:01:12]json parsed OK: [11:01:12]protocol is kg_v1.0 [11:01:12]action value=close_receipt [11:01:12]process_action close_receipt [11:01:12]cmd_close_receipt [11:01:12]MH_GetDate [11:01:12]Write to MH i2c: F0 00 00 5D 54 A0 [11:01:12]Write i2c OK [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: F0 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: F0 09 00 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: F0 09 00 5D 54 00 FE B4 24 67 72 0D 1C 67 E8 [11:01:12]GetLastDocTimeStamp 1730458851 [11:01:12]current date 1730458878 [11:01:12]FM_GetShiftState [11:01:12]SAM_PROTO_GetShiftState [11:01:12]wFMCommunicate request_size=4 [11:01:12]MH_SAM_APDU [11:01:12]CAPDU: 80 13 01 00 [11:01:12]Write to MH i2c: E2 08 00 5E 54 80 13 01 00 00 00 00 00 2F [11:01:12]Write i2c OK [11:01:12]MH_I2C_Read... [11:01:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:13]Read from MH i2c: E2 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: E2 0E 00 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: E2 0E 00 5E 54 00 09 00 01 89 19 24 67 00 00 00 00 90 00 68 [11:01:13]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:01:13]wFMCommunicate OK [11:01:13]SAM_PROTO_GetShiftState done [11:01:13]FM_GetShiftState done [11:01:13]opened in 1730419081 [11:01:13]opened+sec_in_day 1730505481 [11:01:13]quantity*price = 13900 [11:01:13]sum+1 = 13901 [11:01:13]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 283.00 НСП 1% : 2.50 НДС 12% : 30.05 Наличными: 0.00 Безнал.: 283.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 110 01.11.2024 11:01 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139929 ФПД: 258072953415180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T110118&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139929&fm=258072953415180&tin=02508201610067®Number=0000000000091631&sum=28300 0 [11:01:14]StoreToDocumentArchive [11:01:14]shift 558 fd 139929 [11:01:14]save to /storage/0558/doc_00139929 [11:01:14]save last doc name /storage/0558/doc_00139929 to /storage/kkm_last_doc_name [11:01:14]save OK [11:01:14]Clear old archive folders... [11:01:14]ProcessDocumentItem done err = 0, tmpTLVsize=375 [11:01:14]tlvbuf is 00BCC6D0 [11:01:14]SAM_PROTO_ClearQueue [11:01:14]wFMCommunicate request_size=4 [11:01:14]MH_SAM_APDU [11:01:14]CAPDU: 80 09 00 00 [11:01:14]Write to MH i2c: E2 08 00 6B 54 80 09 00 00 00 00 00 00 31 [11:01:14]Write i2c OK [11:01:14]MH_I2C_Read... [11:01:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:14]Read from MH i2c: E2 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 03 00 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 03 00 6B 54 00 90 00 33 [11:01:14]RAPDU: 90 00 [11:01:14]wFMCommunicate OK [11:01:14]SAM_PROTO_ClearQueue done [11:01:14]KKMCreateOFDPacket [11:01:14]OFDProtocolAddRootSTLVToBuf [11:01:14]FM_MakeSignedData [11:01:14]FM_MakeSignedData [11:01:14]SAM_PROTO_SignData [11:01:14]wFMCommunicate request_size=4 [11:01:14]MH_SAM_APDU [11:01:14]CAPDU: 80 0D 01 02 [11:01:14]Write to MH i2c: E2 08 00 6C 54 80 0D 01 02 00 00 00 00 39 [11:01:14]Write i2c OK [11:01:14]MH_I2C_Read... [11:01:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:14]Read from MH i2c: E2 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 03 00 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 03 00 6C 54 00 90 00 34 [11:01:14]RAPDU: 90 00 [11:01:14]wFMCommunicate OK [11:01:14]wFMCommunicate request_size=255 [11:01:14]MH_SAM_APDU [11:01:14]CAPDU: 80 0D 02 02 FA 03 00 77 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 00 00 00 00 00 EE 03 0F [11:01:14]Write to MH i2c: E2 02 01 6D 54 80 0D 02 02 FA 00 03 00 77 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 00 00 00 00 00 EE 03 0F 00 00 E5 [11:01:14]Write i2c OK [11:01:14]MH_I2C_Read... [11:01:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:14]Read from MH i2c: E2 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 03 00 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 03 00 6D 54 00 90 00 35 [11:01:14]RAPDU: 90 00 [11:01:14]wFMCommunicate OK [11:01:14]wFMCommunicate request_size=134 [11:01:14]MH_SAM_APDU [11:01:14]CAPDU: 80 0D 02 02 81 00 F2 03 01 00 01 F3 03 06 00 BD 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 6E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 FE B4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 99 22 02 00 35 04 06 00 EA B7 4A B6 E6 0C [11:01:14]Write to MH i2c: E2 89 00 6E 54 80 0D 02 02 81 00 00 F2 03 01 00 01 F3 03 06 00 BD 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 6E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 FE B4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 99 22 02 00 35 04 06 00 EA B7 4A B6 E6 0C 00 00 5B [11:01:14]Write i2c OK [11:01:14]MH_I2C_Read... [11:01:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:14]Read from MH i2c: E2 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 03 00 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 03 00 6E 54 00 90 00 36 [11:01:14]RAPDU: 90 00 [11:01:14]wFMCommunicate OK [11:01:14]wFMCommunicate request_size=4 [11:01:14]MH_SAM_APDU [11:01:14]CAPDU: 80 0D 03 02 [11:01:14]Write to MH i2c: E2 08 00 6F 54 80 0D 03 02 00 00 00 00 3E [11:01:14]Write i2c OK [11:01:14]MH_I2C_Read... [11:01:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:14]Read from MH i2c: E2 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 0B 00 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 0B 00 6F 54 00 24 85 1E 53 7E 03 83 C5 90 00 22 [11:01:14]RAPDU: 24 85 1E 53 7E 03 83 C5 90 00 [11:01:14]wFMCommunicate OK [11:01:14]SAM_PROTO_SignData done [11:01:14]FM_MakeSignedData done [11:01:14]CreateOFDProtocolMessage [11:01:14]wFMCommunicate request_size=4 [11:01:14]MH_SAM_APDU [11:01:14]CAPDU: 80 11 00 00 [11:01:14]Write to MH i2c: E2 08 00 70 54 80 11 00 00 00 00 00 00 3E [11:01:14]Write i2c OK [11:01:14]MH_I2C_Read... [11:01:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:14]Read from MH i2c: E2 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 17 00 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 17 00 70 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 99 [11:01:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:01:14]wFMCommunicate OK [11:01:14]CreateOFDProtocolMessage done [11:01:14]OFDSenderStorePacket 139929 [11:01:14]StoreOFDPacket docnum=139929 [11:01:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 8B 01 00 00 54 DB 83 01 79 33 5A 03 01 00 03 00 77 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 6E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 FE B4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 99 22 02 00 35 04 06 00 EA B7 4A B6 E6 0C 24 85 1E 53 7E 03 83 C5 [11:01:14]CheckFolder [11:01:14]dirname=/storage/ofd_packets [11:01:14]CheckFolder done [11:01:14]ProducePacketName [11:01:14]name=ofd_packets/00139929 [11:01:14]NVStorageSaveData ofd_packets/00139929 [11:01:14]File name is /storage/ofd_packets/00139929 [11:01:14]Write 425 bytes [11:01:14]NVStorageSaveData done [11:01:14]OFDSenderStorePacket done [11:01:14]KKMCreateOFDPacket done [11:01:14]NVStorageSaveData kkm_last_timestamp [11:01:14]File name is /storage/kkm_last_timestamp [11:01:14]Write 4 bytes [11:01:14]NVStorageSaveData done [11:01:14]ExternCall_PrintAddStr [11:01:14]wPrintStart [11:01:14]Write to MH i2c: 01 00 00 71 54 C5 [11:01:14]Write i2c OK [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: 01 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: 01 07 00 [11:01:15]MH_I2C_Read... [11:01:15]OFD Sender: Processing packet 139929 [packets to send 34, broken 33] [11:01:15]ProducePacketName [11:01:15]name=ofd_packets/00139929 [11:01:15]OFD Sender: To server: pG, [11:01:15]CommunicateWithHost lk.salyk.kg:30040 [11:01:15]ConnectInit lk.salyk.kg [11:01:15]Read from MH i2c: 01 07 00 71 54 00 00 00 00 00 FF 0F DA [11:01:15]RasterBufferAndPrint [11:01:15]line Счет N : (3)335751 [11:01:15]line ИНН: 02508201610067 [11:01:15]line Контрольно-Кассовый Чек [11:01:15]line ПРОДАЖА [11:01:15]line Товар: 48745000 [11:01:15]line Сигареты Winston Purple Mix [11:01:15]line 1.000 * 139.00 [11:01:15]line = 139.00 [11:01:15]line НДС 12% НСП 1% [11:01:15]line > о реализуемом товаре [11:01:15]line Товар: 48747059 [11:01:15]line Сигареты Winston Legend Blue [11:01:15]line 1.000 * 144.00 [11:01:15]line = 144.00 [11:01:15]line НДС 12% НСП 1% [11:01:15]line > о реализуемом товаре [11:01:15]line ИТОГО: 283.00 [11:01:15]line НСП 1% : 2.50 [11:01:15]line НДС 12% : 30.05 [11:01:15]line Наличными: 0.00 [11:01:15]line Безнал.: 283.00 [11:01:15]line Место: АЗС № 101 "Партнер Нефть" [11:01:15]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:01:15]line СНО: Общий режим [11:01:15]line Чек 110 01.11.2024 11:01 [11:01:15]line Смена: 558 ФФД: 1.0 [11:01:15]line ЗНМ: 0300000081 [11:01:15]line РНМ: 0000000000091631 [11:01:15]line Версия ККМ: 001 [11:01:15]line Платежная система: Mbank [11:01:15]line ФМ: 0000000000874669 [11:01:15]line ФД: 139929 [11:01:15]line ФПД: 258072953415180 [11:01:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T110118&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139929&fm=258072953415180&tin=02508201610067®Number=0000000000091631&sum=28300 [11:01:15]line 0 [11:01:15]written 0, free lines is 4095 [11:01:15]Connected sock=10 [11:01:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 8B 01 00 00 54 DB 83 01 79 33 5A 03 01 00 03 00 77 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 6E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 FE B4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 99 22 02 00 35 04 06 00 EA B7 4A B6 E6 0C 24 85 1E 53 7E 03 83 C5 [11:01:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 00 62 47 00 FB 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 99 22 02 00 F4 03 04 00 A9 60 24 67 B6 04 01 00 00 5E 55 5B 44 08 90 5E 08 [11:01:15]CommunicateWithHost err = 0 [11:01:15]CheckOFDResponse [11:01:15]1017 (14) - 77093643461234 [11:01:15]1041 (16) - 0000000000874669 [11:01:15]1040 (4) - 139929 [11:01:15]1012 (4) - 01.11.2024 05:01 [11:01:15]1206 (1) - 0 [11:01:15]OFD Sender: Remove packet 139929 [11:01:15]ProducePacketName [11:01:15]name=ofd_packets/00139929 [11:01:15]NVStorageDeleteData [11:01:15]Write to MH i2c: 01 00 00 A1 54 F5 [11:01:15]Write i2c OK [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: 01 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: 01 07 00 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: 01 07 00 A1 54 00 00 00 00 00 9D 0C A5 [11:01:15]RasterBufferAndPrint [11:01:15]line [11:01:15]line [11:01:15]line [11:01:15]line [11:01:15]line [11:01:15]written 0, free lines is 3239 [11:01:15]MH_Cut [11:01:15]Write to MH i2c: D1 01 00 A8 54 01 CE [11:01:15]Write i2c OK [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: D1 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: D1 01 00 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: D1 01 00 A8 54 00 CD [11:01:15]Write to MH i2c: 01 00 00 A9 54 FD [11:01:15]Write i2c OK [11:01:15]MH_I2C_Read... [11:01:15]OFD Sender: No OFD packet to send [11:01:16]*** Cut start [11:01:16]*** Partial cut [11:01:16]*** CUTSNS_PIN = 1 [11:01:16]*** CUTSNS_PIN = 0 [11:01:16]*** Brake cut motor [11:01:16]Read from MH i2c: 01 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: 01 07 00 [11:01:16]MH_I2C_Read... [11:01:16]*** Stop cut motor [11:01:16]Read from MH i2c: 01 07 00 A9 54 00 00 00 00 00 FF 0F 12 [11:01:17]process_action close_receipt done [11:01:17]requested_data is exist [11:01:17]produce_requested_data [11:01:17]requested_item fm.sn is exist - process it [11:01:17]wFMCommunicate request_size=4 [11:01:17]MH_SAM_APDU [11:01:17]CAPDU: 80 11 00 00 [11:01:17]Write to MH i2c: E2 08 00 AA 54 80 11 00 00 00 00 00 00 78 [11:01:17]*** Cut end [11:01:17]Write i2c OK [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: E2 [11:01:17]MH_I2C_Read... [11:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:17]Read from MH i2c: E2 17 00 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: E2 17 00 AA 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D3 [11:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:01:17]wFMCommunicate OK [11:01:17]requested_item fd.num is exist - process it [11:01:17]SAM_PROTO_GetFieldsCounters [11:01:17]wFMCommunicate request_size=4 [11:01:17]MH_SAM_APDU [11:01:17]CAPDU: 80 13 00 00 [11:01:17]Write to MH i2c: E2 08 00 AB 54 80 13 00 00 00 00 00 00 7B [11:01:17]Write i2c OK [11:01:17]MH_I2C_Read... [11:01:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:17]Read from MH i2c: E2 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: E2 62 00 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: E2 62 00 AB 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 99 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [11:01:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 99 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:17]wFMCommunicate OK [11:01:17]SAM_PROTO_GetFieldsCounters done [11:01:17]requested_item shift.num is exist - process it [11:01:17]requested_item shift.opened is exist - process it [11:01:17]req_shift_opened [11:01:17]FM_GetShiftState [11:01:17]SAM_PROTO_GetShiftState [11:01:17]wFMCommunicate request_size=4 [11:01:17]MH_SAM_APDU [11:01:17]CAPDU: 80 13 01 00 [11:01:17]Write to MH i2c: E2 08 00 AC 54 80 13 01 00 00 00 00 00 7D [11:01:17]Write i2c OK [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: E2 [11:01:17]MH_I2C_Read... [11:01:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:17]Read from MH i2c: E2 0E 00 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: E2 0E 00 AC 54 00 09 00 01 89 19 24 67 00 00 00 00 90 00 B6 [11:01:17]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:01:17]wFMCommunicate OK [11:01:17]SAM_PROTO_GetShiftState done [11:01:17]FM_GetShiftState done [11:01:17]req_shift_opened done [11:01:17]requested_item shift.open_date is exist - process it [11:01:17]req_shift_open_date [11:01:17]req_shift_open_date done [11:01:17]produce_requested_data done [11:01:17]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139929,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [11:01:17]process_action_free close_receipt [11:01:17]json_value_free [11:01:17]json_value_free done [11:01:17]process_json_proto returns [11:01:17]Send response to host [11:01:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139929,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [11:01:17]free response buf [11:01:17]execute_script done [11:01:17]execute_script returns [11:01:17]free content buf [11:01:17]Sock 7.Close socket [11:01:17]Sock 7.Thread stoped [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:46]OFD Sender: No OFD packet to send [11:02:51]OFD Sender: No OFD packet to send [11:02:56]OFD Sender: No OFD packet to send [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:11]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:21]OFD Sender: No OFD packet to send [11:05:26]OFD Sender: No OFD packet to send [11:05:31]OFD Sender: No OFD packet to send [11:05:36]OFD Sender: No OFD packet to send [11:05:41]OFD Sender: No OFD packet to send [11:05:46]OFD Sender: No OFD packet to send [11:05:51]OFD Sender: No OFD packet to send [11:05:56]OFD Sender: No OFD packet to send [11:06:01]OFD Sender: No OFD packet to send [11:06:06]OFD Sender: No OFD packet to send [11:06:11]OFD Sender: No OFD packet to send [11:06:16]OFD Sender: No OFD packet to send [11:06:21]OFD Sender: No OFD packet to send [11:06:26]OFD Sender: No OFD packet to send [11:06:31]OFD Sender: No OFD packet to send [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:09:01]OFD Sender: No OFD packet to send [11:09:06]OFD Sender: No OFD packet to send [11:09:11]OFD Sender: No OFD packet to send [11:09:16]OFD Sender: No OFD packet to send [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]OFD Sender: No OFD packet to send [11:09:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10:06]OFD Sender: No OFD packet to send [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:36]OFD Sender: No OFD packet to send [11:10:41]OFD Sender: No OFD packet to send [11:10:46]OFD Sender: No OFD packet to send [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:11:01]OFD Sender: No OFD packet to send [11:11:03]accept exits with 9 [11:11:03]New connection [11:11:03]New thread 3066654052 created [11:11:03]Thread 3066510692 joined [11:11:03]Waiting for new connection... [11:11:03] Sock 9.Parse request [11:11:03]Sock 9.Check first char [11:11:03]Sock 9.First char is OK [11:11:03]request: POST /json_proto HTTP/1.0 [11:11:03]Method: POST [11:11:03]URL: /json_proto [11:11:03]Method is POST - this is cgi request [11:11:03]url: /json_proto [11:11:03]query_string will be loaded in cgi processing [11:11:03]execute_cgi json_proto POST (null) [11:11:03]execute_cgi path=json_proto method=POST [11:11:03]POST find Content-Length [11:11:03]Host: 172.17.50.196:8080 [11:11:03]Content-Length: 633 [11:11:03]Content-Type: application/json [11:11:03] [11:11:03]POST finish read [11:11:03]Found Content-Length = 633 [11:11:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335752", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:03]execute_script... [11:11:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335752", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:03]POST & json_proto [11:11:03]process_json_proto [11:11:03]json parsed OK: [11:11:03]protocol is kg_v1.0 [11:11:03]action value=close_receipt [11:11:03]process_action close_receipt [11:11:03]cmd_close_receipt [11:11:03]MH_GetDate [11:11:03]Write to MH i2c: F0 00 00 AD 54 F0 [11:11:03]Write i2c OK [11:11:03]MH_I2C_Read... [11:11:03]Read from MH i2c: F0 [11:11:03]MH_I2C_Read... [11:11:03]Read from MH i2c: F0 09 00 [11:11:03]MH_I2C_Read... [11:11:03]Read from MH i2c: F0 09 00 AD 54 00 4D B7 24 67 72 0D 1C 67 8A [11:11:03]GetLastDocTimeStamp 1730458878 [11:11:03]current date 1730459469 [11:11:03]FM_GetShiftState [11:11:03]SAM_PROTO_GetShiftState [11:11:03]wFMCommunicate request_size=4 [11:11:03]MH_SAM_APDU [11:11:03]CAPDU: 80 13 01 00 [11:11:03]Write to MH i2c: E2 08 00 AE 54 80 13 01 00 00 00 00 00 7F [11:11:03]Write i2c OK [11:11:03]MH_I2C_Read... [11:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:03]Read from MH i2c: E2 [11:11:03]MH_I2C_Read... [11:11:03]Read from MH i2c: E2 0E 00 [11:11:03]MH_I2C_Read... [11:11:03]Read from MH i2c: E2 0E 00 AE 54 00 09 00 01 89 19 24 67 00 00 00 00 90 00 B8 [11:11:03]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:11:03]wFMCommunicate OK [11:11:03]SAM_PROTO_GetShiftState done [11:11:03]FM_GetShiftState done [11:11:03]opened in 1730419081 [11:11:03]opened+sec_in_day 1730505481 [11:11:03]quantity*price = 13900 [11:11:03]sum+1 = 13901 [11:11:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 111 01.11.2024 11:11 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139930 ФПД: 53634513674429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T111109&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139930&fm=53634513674429&tin=02508201610067®Number=0000000000091631&sum=13900 0 [11:11:04]StoreToDocumentArchive [11:11:04]shift 558 fd 139930 [11:11:04]save to /storage/0558/doc_00139930 [11:11:04]save last doc name /storage/0558/doc_00139930 to /storage/kkm_last_doc_name [11:11:04]save OK [11:11:04]Clear old archive folders... [11:11:04]ProcessDocumentItem done err = 0, tmpTLVsize=285 [11:11:04]tlvbuf is 00AC3760 [11:11:04]SAM_PROTO_ClearQueue [11:11:04]wFMCommunicate request_size=4 [11:11:04]MH_SAM_APDU [11:11:04]CAPDU: 80 09 00 00 [11:11:04]Write to MH i2c: E2 08 00 BB 54 80 09 00 00 00 00 00 00 81 [11:11:04]Write i2c OK [11:11:04]MH_I2C_Read... [11:11:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:04]Read from MH i2c: E2 [11:11:04]MH_I2C_Read... [11:11:04]Read from MH i2c: E2 03 00 [11:11:04]MH_I2C_Read... [11:11:04]Read from MH i2c: E2 03 00 BB 54 00 90 00 83 [11:11:04]RAPDU: 90 00 [11:11:04]wFMCommunicate OK [11:11:04]SAM_PROTO_ClearQueue done [11:11:04]KKMCreateOFDPacket [11:11:04]OFDProtocolAddRootSTLVToBuf [11:11:04]FM_MakeSignedData [11:11:04]FM_MakeSignedData [11:11:04]SAM_PROTO_SignData [11:11:04]wFMCommunicate request_size=4 [11:11:04]MH_SAM_APDU [11:11:04]CAPDU: 80 0D 01 02 [11:11:04]Write to MH i2c: E2 08 00 BC 54 80 0D 01 02 00 00 00 00 89 [11:11:04]Write i2c OK [11:11:04]MH_I2C_Read... [11:11:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:04]Read from MH i2c: E2 [11:11:04]MH_I2C_Read... [11:11:04]Read from MH i2c: E2 03 00 [11:11:04]MH_I2C_Read... [11:11:04]Read from MH i2c: E2 03 00 BC 54 00 90 00 84 [11:11:04]RAPDU: 90 00 [11:11:04]wFMCommunicate OK [11:11:04]wFMCommunicate request_size=255 [11:11:04]MH_SAM_APDU [11:11:04]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 4D B7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 [11:11:04]Write to MH i2c: E2 02 01 BD 54 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 4D B7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 00 00 02 [11:11:04]Write i2c OK [11:11:04]MH_I2C_Read... [11:11:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:05]Read from MH i2c: E2 [11:11:05]MH_I2C_Read... [11:11:05]Read from MH i2c: E2 03 00 [11:11:05]MH_I2C_Read... [11:11:05]Read from MH i2c: E2 03 00 BD 54 00 90 00 85 [11:11:05]RAPDU: 90 00 [11:11:05]wFMCommunicate OK [11:11:05]wFMCommunicate request_size=44 [11:11:05]MH_SAM_APDU [11:11:05]CAPDU: 80 0D 02 02 27 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9A 22 02 00 35 04 06 00 30 C7 C2 22 A0 BD [11:11:05]Write to MH i2c: E2 2F 00 BE 54 80 0D 02 02 27 00 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9A 22 02 00 35 04 06 00 30 C7 C2 22 A0 BD 00 00 A5 [11:11:05]Write i2c OK [11:11:05]MH_I2C_Read... [11:11:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:05]Read from MH i2c: E2 [11:11:05]MH_I2C_Read... [11:11:05]Read from MH i2c: E2 03 00 [11:11:05]MH_I2C_Read... [11:11:05]Read from MH i2c: E2 03 00 BE 54 00 90 00 86 [11:11:05]RAPDU: 90 00 [11:11:05]wFMCommunicate OK [11:11:05]wFMCommunicate request_size=4 [11:11:05]MH_SAM_APDU [11:11:05]CAPDU: 80 0D 03 02 [11:11:05]Write to MH i2c: E2 08 00 BF 54 80 0D 03 02 00 00 00 00 8E [11:11:05]Write i2c OK [11:11:05]MH_I2C_Read... [11:11:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:05]Read from MH i2c: E2 [11:11:05]MH_I2C_Read... [11:11:05]Read from MH i2c: E2 0B 00 [11:11:05]MH_I2C_Read... [11:11:05]Read from MH i2c: E2 0B 00 BF 54 00 C5 23 A7 29 58 6E 52 C9 90 00 28 [11:11:05]RAPDU: C5 23 A7 29 58 6E 52 C9 90 00 [11:11:05]wFMCommunicate OK [11:11:05]SAM_PROTO_SignData done [11:11:05]FM_MakeSignedData done [11:11:05]CreateOFDProtocolMessage [11:11:05]wFMCommunicate request_size=4 [11:11:05]MH_SAM_APDU [11:11:05]CAPDU: 80 11 00 00 [11:11:05]Write to MH i2c: E2 08 00 C0 54 80 11 00 00 00 00 00 00 8E [11:11:05]Write i2c OK [11:11:05]MH_I2C_Read... [11:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:05]Read from MH i2c: E2 [11:11:05]MH_I2C_Read... [11:11:05]Read from MH i2c: E2 17 00 [11:11:05]MH_I2C_Read... [11:11:05]Read from MH i2c: E2 17 00 C0 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E9 [11:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:11:05]wFMCommunicate OK [11:11:05]CreateOFDProtocolMessage done [11:11:05]OFDSenderStorePacket 139930 [11:11:05]StoreOFDPacket docnum=139930 [11:11:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 31 01 00 00 10 94 29 01 CD 75 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 4D B7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9A 22 02 00 35 04 06 00 30 C7 C2 22 A0 BD C5 23 A7 29 58 6E 52 C9 [11:11:05]CheckFolder [11:11:05]dirname=/storage/ofd_packets [11:11:05]CheckFolder done [11:11:05]ProducePacketName [11:11:05]name=ofd_packets/00139930 [11:11:05]NVStorageSaveData ofd_packets/00139930 [11:11:05]File name is /storage/ofd_packets/00139930 [11:11:05]Write 335 bytes [11:11:05]NVStorageSaveData done [11:11:05]OFDSenderStorePacket done [11:11:05]KKMCreateOFDPacket done [11:11:05]NVStorageSaveData kkm_last_timestamp [11:11:05]File name is /storage/kkm_last_timestamp [11:11:05]Write 4 bytes [11:11:05]NVStorageSaveData done [11:11:05]ExternCall_PrintAddStr [11:11:05]wPrintStart [11:11:05]Write to MH i2c: 01 00 00 C1 54 15 [11:11:05]Write i2c OK [11:11:05]MH_I2C_Read... [11:11:05]Read from MH i2c: 01 [11:11:05]MH_I2C_Read... [11:11:05]Read from MH i2c: 01 07 00 [11:11:05]MH_I2C_Read... [11:11:05]Read from MH i2c: 01 07 00 C1 54 00 00 00 00 00 FF 0F 2A [11:11:05]RasterBufferAndPrint [11:11:05]line Счет N : (3)335752 [11:11:05]line ИНН: 02508201610067 [11:11:05]line Контрольно-Кассовый Чек [11:11:05]line ПРОДАЖА [11:11:05]line Товар: 48745291 [11:11:05]line Сигареты Parliament SOHO NYC COMPACT BLU [11:11:05]line 1.000 * 139.00 [11:11:05]line = 139.00 [11:11:05]line НДС 12% НСП 1% [11:11:05]line > о реализуемом товаре [11:11:05]line ИТОГО: 139.00 [11:11:05]line НСП 1% : 1.23 [11:11:05]line НДС 12% : 14.76 [11:11:05]line Наличными: 139.00 [11:11:05]line Безнал.: 0.00 [11:11:05]line Место: АЗС № 101 "Партнер Нефть" [11:11:05]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:11:05]line СНО: Общий режим [11:11:05]line Чек 111 01.11.2024 11:11 [11:11:05]line Смена: 558 ФФД: 1.0 [11:11:05]line ЗНМ: 0300000081 [11:11:05]line РНМ: 0000000000091631 [11:11:05]line Версия ККМ: 001 [11:11:05]line ФМ: 0000000000874669 [11:11:05]line ФД: 139930 [11:11:05]line ФПД: 53634513674429 [11:11:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T111109&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139930&fm=53634513674429&tin=02508201610067®Number=0000000000091631&sum=13900 [11:11:05]line 0 [11:11:05]OFD Sender: Processing packet 139930 [packets to send 34, broken 33] [11:11:05]ProducePacketName [11:11:05]name=ofd_packets/00139930 [11:11:05]OFD Sender: To server: pG, [11:11:05]CommunicateWithHost lk.salyk.kg:30040 [11:11:05]ConnectInit lk.salyk.kg [11:11:05]written 0, free lines is 4095 [11:11:05]Connected sock=10 [11:11:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 31 01 00 00 10 94 29 01 CD 75 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 4D B7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9A 22 02 00 35 04 06 00 30 C7 C2 22 A0 BD C5 23 A7 29 58 6E 52 C9 [11:11:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 3B 66 47 00 73 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 34 36 36 39 10 04 04 00 9A 22 02 00 F4 03 04 00 F8 62 24 67 B6 04 01 00 00 61 B9 66 31 95 E8 96 F8 [11:11:06]CommunicateWithHost err = 0 [11:11:06]CheckOFDResponse [11:11:06]1017 (14) - 77093643461234 [11:11:06]1041 (16) - 0000000000874669 [11:11:06]1040 (4) - 139930 [11:11:06]1012 (4) - 01.11.2024 05:11 [11:11:06]1206 (1) - 0 [11:11:06]OFD Sender: Remove packet 139930 [11:11:06]ProducePacketName [11:11:06]name=ofd_packets/00139930 [11:11:06]NVStorageDeleteData [11:11:06]Write to MH i2c: 01 00 00 EA 54 3E [11:11:06]Write i2c OK [11:11:06]MH_I2C_Read... [11:11:06]Read from MH i2c: 01 [11:11:06]MH_I2C_Read... [11:11:06]Read from MH i2c: 01 07 00 [11:11:06]MH_I2C_Read... [11:11:06]Read from MH i2c: 01 07 00 EA 54 00 00 00 00 00 04 0D 56 [11:11:06]RasterBufferAndPrint [11:11:06]line [11:11:06]line [11:11:06]line [11:11:06]line [11:11:06]line [11:11:06]written 0, free lines is 3341 [11:11:06]MH_Cut [11:11:06]Write to MH i2c: D1 01 00 F1 54 01 17 [11:11:06]Write i2c OK [11:11:06]MH_I2C_Read... [11:11:06]Read from MH i2c: D1 [11:11:06]MH_I2C_Read... [11:11:06]Read from MH i2c: D1 01 00 [11:11:06]MH_I2C_Read... [11:11:06]Read from MH i2c: D1 01 00 F1 54 00 16 [11:11:06]Write to MH i2c: 01 00 00 F2 54 46 [11:11:06]Write i2c OK [11:11:06]MH_I2C_Read... [11:11:06]OFD Sender: No OFD packet to send [11:11:06]*** Cut start [11:11:06]*** Partial cut [11:11:06]*** CUTSNS_PIN = 1 [11:11:06]*** CUTSNS_PIN = 0 [11:11:07]*** Brake cut motor [11:11:07]Read from MH i2c: 01 [11:11:07]MH_I2C_Read... [11:11:07]*** Stop cut motor [11:11:07]*** Cut end [11:11:07]Read from MH i2c: 01 07 00 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: 01 07 00 F2 54 00 00 00 00 00 FF 0F 5B [11:11:07]process_action close_receipt done [11:11:07]requested_data is exist [11:11:07]produce_requested_data [11:11:07]requested_item fm.sn is exist - process it [11:11:07]wFMCommunicate request_size=4 [11:11:07]MH_SAM_APDU [11:11:07]CAPDU: 80 11 00 00 [11:11:07]Write to MH i2c: E2 08 00 F3 54 80 11 00 00 00 00 00 00 C1 [11:11:07]Write i2c OK [11:11:07]MH_I2C_Read... [11:11:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:07]Read from MH i2c: E2 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: E2 17 00 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: E2 17 00 F3 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1C [11:11:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:11:07]wFMCommunicate OK [11:11:07]requested_item fd.num is exist - process it [11:11:07]SAM_PROTO_GetFieldsCounters [11:11:07]wFMCommunicate request_size=4 [11:11:07]MH_SAM_APDU [11:11:07]CAPDU: 80 13 00 00 [11:11:07]Write to MH i2c: E2 08 00 F4 54 80 13 00 00 00 00 00 00 C4 [11:11:07]Write i2c OK [11:11:07]MH_I2C_Read... [11:11:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:07]Read from MH i2c: E2 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: E2 62 00 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: E2 62 00 F4 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 9A 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [11:11:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 9A 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:07]wFMCommunicate OK [11:11:07]SAM_PROTO_GetFieldsCounters done [11:11:07]requested_item shift.num is exist - process it [11:11:07]requested_item shift.opened is exist - process it [11:11:07]req_shift_opened [11:11:07]FM_GetShiftState [11:11:07]SAM_PROTO_GetShiftState [11:11:07]wFMCommunicate request_size=4 [11:11:07]MH_SAM_APDU [11:11:07]CAPDU: 80 13 01 00 [11:11:07]Write to MH i2c: E2 08 00 F5 54 80 13 01 00 00 00 00 00 C6 [11:11:07]Write i2c OK [11:11:07]MH_I2C_Read... [11:11:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:07]Read from MH i2c: E2 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: E2 0E 00 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: E2 0E 00 F5 54 00 09 00 01 89 19 24 67 00 00 00 00 90 00 FF [11:11:07]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:11:07]wFMCommunicate OK [11:11:07]SAM_PROTO_GetShiftState done [11:11:07]FM_GetShiftState done [11:11:07]req_shift_opened done [11:11:07]requested_item shift.open_date is exist - process it [11:11:07]req_shift_open_date [11:11:07]req_shift_open_date done [11:11:07]produce_requested_data done [11:11:07]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139930,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [11:11:07]process_action_free close_receipt [11:11:07]json_value_free [11:11:07]json_value_free done [11:11:07]process_json_proto returns [11:11:07]Send response to host [11:11:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139930,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [11:11:07]free response buf [11:11:07]execute_script done [11:11:07]execute_script returns [11:11:07]free content buf [11:11:07]Sock 9.Close socket [11:11:07]Sock 9.Thread stoped [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:12:01]OFD Sender: No OFD packet to send [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:16]OFD Sender: No OFD packet to send [11:12:21]OFD Sender: No OFD packet to send [11:12:26]OFD Sender: No OFD packet to send [11:12:31]OFD Sender: No OFD packet to send [11:12:36]OFD Sender: No OFD packet to send [11:12:41]OFD Sender: No OFD packet to send [11:12:46]OFD Sender: No OFD packet to send [11:12:47]accept exits with 7 [11:12:47]New connection [11:12:47]New thread 3066510692 created [11:12:47]Thread 3066654052 joined [11:12:47]Waiting for new connection... [11:12:47] Sock 7.Parse request [11:12:47]Sock 7.Check first char [11:12:47]Sock 7.First char is OK [11:12:47]request: POST /json_proto HTTP/1.0 [11:12:47]Method: POST [11:12:47]URL: /json_proto [11:12:47]Method is POST - this is cgi request [11:12:47]url: /json_proto [11:12:47]query_string will be loaded in cgi processing [11:12:47]execute_cgi json_proto POST (null) [11:12:47]execute_cgi path=json_proto method=POST [11:12:47]POST find Content-Length [11:12:47]Host: 172.17.50.196:8080 [11:12:47]Content-Length: 708 [11:12:47]Content-Type: application/json [11:12:47] [11:12:47]POST finish read [11:12:47]Found Content-Length = 708 [11:12:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335753", "tax_sys" : 0, "items" : [ { "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" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:47]execute_script... [11:12: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)335753", "tax_sys" : 0, "items" : [ { "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" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:47]POST & json_proto [11:12:47]process_json_proto [11:12:47]json parsed OK: [11:12:47]protocol is kg_v1.0 [11:12:47]action value=close_receipt [11:12:47]process_action close_receipt [11:12:47]cmd_close_receipt [11:12:47]MH_GetDate [11:12:47]Write to MH i2c: F0 00 00 F6 54 39 [11:12:47]Write i2c OK [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: F0 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: F0 09 00 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: F0 09 00 F6 54 00 B5 B7 24 67 72 0D 1C 67 3B [11:12:47]GetLastDocTimeStamp 1730459469 [11:12:47]current date 1730459573 [11:12:47]FM_GetShiftState [11:12:47]SAM_PROTO_GetShiftState [11:12:47]wFMCommunicate request_size=4 [11:12:47]MH_SAM_APDU [11:12:47]CAPDU: 80 13 01 00 [11:12:47]Write to MH i2c: E2 08 00 F7 54 80 13 01 00 00 00 00 00 C8 [11:12:47]Write i2c OK [11:12:47]MH_I2C_Read... [11:12:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:47]Read from MH i2c: E2 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: E2 0E 00 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: E2 0E 00 F7 54 00 09 00 01 89 19 24 67 00 00 00 00 90 00 01 [11:12:47]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:12:47]wFMCommunicate OK [11:12:47]SAM_PROTO_GetShiftState done [11:12:47]FM_GetShiftState done [11:12:47]opened in 1730419081 [11:12:47]opened+sec_in_day 1730505481 [11:12:47]quantity*price = 8900 [11:12:47]sum+1 = 8901 [11:12:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 89.00 НСП 1% : 0.79 НДС 12% : 9.45 Наличными: 89.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 112 01.11.2024 11:12 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139931 ФПД: 226463674106172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T111253&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139931&fm=226463674106172&tin=02508201610067®Number=0000000000091631&sum=8900 0 [11:12:49]StoreToDocumentArchive [11:12:49]shift 558 fd 139931 [11:12:49]save to /storage/0558/doc_00139931 [11:12:49]save last doc name /storage/0558/doc_00139931 to /storage/kkm_last_doc_name [11:12:49]save OK [11:12:49]Clear old archive folders... [11:12:49]ProcessDocumentItem done err = 0, tmpTLVsize=299 [11:12:49]tlvbuf is 00AFCD80 [11:12:49]SAM_PROTO_ClearQueue [11:12:49]wFMCommunicate request_size=4 [11:12:49]MH_SAM_APDU [11:12:49]CAPDU: 80 09 00 00 [11:12:49]Write to MH i2c: E2 08 00 04 55 80 09 00 00 00 00 00 00 CB [11:12:49]Write i2c OK [11:12:49]MH_I2C_Read... [11:12:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:49]Read from MH i2c: E2 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 03 00 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 03 00 04 55 00 90 00 CD [11:12:49]RAPDU: 90 00 [11:12:49]wFMCommunicate OK [11:12:49]SAM_PROTO_ClearQueue done [11:12:49]KKMCreateOFDPacket [11:12:49]OFDProtocolAddRootSTLVToBuf [11:12:49]FM_MakeSignedData [11:12:49]FM_MakeSignedData [11:12:49]SAM_PROTO_SignData [11:12:49]wFMCommunicate request_size=4 [11:12:49]MH_SAM_APDU [11:12:49]CAPDU: 80 0D 01 02 [11:12:49]Write to MH i2c: E2 08 00 05 55 80 0D 01 02 00 00 00 00 D3 [11:12:49]Write i2c OK [11:12:49]MH_I2C_Read... [11:12:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:49]Read from MH i2c: E2 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 03 00 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 03 00 05 55 00 90 00 CE [11:12:49]RAPDU: 90 00 [11:12:49]wFMCommunicate OK [11:12:49]wFMCommunicate request_size=255 [11:12:49]MH_SAM_APDU [11:12:49]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 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 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 B5 B7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 [11:12:49]Write to MH i2c: E2 02 01 06 55 80 0D 02 02 FA 00 03 00 2B 01 1E 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 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 B5 B7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 CE [11:12:49]Write i2c OK [11:12:49]MH_I2C_Read... [11:12:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:49]Read from MH i2c: E2 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 03 00 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 03 00 06 55 00 90 00 CF [11:12:49]RAPDU: 90 00 [11:12:49]wFMCommunicate OK [11:12:49]wFMCommunicate request_size=58 [11:12:49]MH_SAM_APDU [11:12:49]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9B 22 02 00 35 04 06 00 CD F7 AE D9 81 3C [11:12:49]Write to MH i2c: E2 3D 00 07 55 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9B 22 02 00 35 04 06 00 CD F7 AE D9 81 3C 00 00 8F [11:12:49]Write i2c OK [11:12:49]MH_I2C_Read... [11:12:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:49]Read from MH i2c: E2 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 03 00 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 03 00 07 55 00 90 00 D0 [11:12:49]RAPDU: 90 00 [11:12:49]wFMCommunicate OK [11:12:49]wFMCommunicate request_size=4 [11:12:49]MH_SAM_APDU [11:12:49]CAPDU: 80 0D 03 02 [11:12:49]Write to MH i2c: E2 08 00 08 55 80 0D 03 02 00 00 00 00 D8 [11:12:49]Write i2c OK [11:12:49]MH_I2C_Read... [11:12:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:49]Read from MH i2c: E2 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 0B 00 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 0B 00 08 55 00 0E 7E 2D 2B 56 57 74 AF 90 00 8D [11:12:49]RAPDU: 0E 7E 2D 2B 56 57 74 AF 90 00 [11:12:49]wFMCommunicate OK [11:12:49]SAM_PROTO_SignData done [11:12:49]FM_MakeSignedData done [11:12:49]CreateOFDProtocolMessage [11:12:49]wFMCommunicate request_size=4 [11:12:49]MH_SAM_APDU [11:12:49]CAPDU: 80 11 00 00 [11:12:49]Write to MH i2c: E2 08 00 09 55 80 11 00 00 00 00 00 00 D8 [11:12:49]Write i2c OK [11:12:49]MH_I2C_Read... [11:12:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:49]Read from MH i2c: E2 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 17 00 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 17 00 09 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 33 [11:12:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:12:49]wFMCommunicate OK [11:12:49]CreateOFDProtocolMessage done [11:12:49]OFDSenderStorePacket 139931 [11:12:49]StoreOFDPacket docnum=139931 [11:12:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3F 01 00 00 53 C7 37 01 88 8A 5A 03 01 00 03 00 2B 01 1E 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 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 B5 B7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9B 22 02 00 35 04 06 00 CD F7 AE D9 81 3C 0E 7E 2D 2B 56 57 74 AF [11:12:49]CheckFolder [11:12:49]dirname=/storage/ofd_packets [11:12:49]CheckFolder done [11:12:49]ProducePacketName [11:12:49]name=ofd_packets/00139931 [11:12:49]NVStorageSaveData ofd_packets/00139931 [11:12:49]File name is /storage/ofd_packets/00139931 [11:12:49]Write 349 bytes [11:12:49]NVStorageSaveData done [11:12:49]OFDSenderStorePacket done [11:12:49]KKMCreateOFDPacket done [11:12:49]NVStorageSaveData kkm_last_timestamp [11:12:49]File name is /storage/kkm_last_timestamp [11:12:49]Write 4 bytes [11:12:49]NVStorageSaveData done [11:12:49]ExternCall_PrintAddStr [11:12:49]wPrintStart [11:12:49]Write to MH i2c: 01 00 00 0A 55 5F [11:12:49]OFD Sender: Processing packet 139931 [packets to send 34, broken 33] [11:12:49]ProducePacketName [11:12:49]name=ofd_packets/00139931 [11:12:49]OFD Sender: To server: pG, [11:12:49]CommunicateWithHost lk.salyk.kg:30040 [11:12:49]ConnectInit lk.salyk.kg [11:12:49]Write i2c OK [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: 01 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: 01 07 00 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: 01 07 00 0A 55 00 00 00 00 00 FF 0F 74 [11:12:49]RasterBufferAndPrint [11:12:49]line Счет N : (3)335753 [11:12:49]line ИНН: 02508201610067 [11:12:49]line Контрольно-Кассовый Чек [11:12:49]line ПРОДАЖА [11:12:49]line Товар: 4660085515163 [11:12:49]line Шок Батончик Сникерс супер 95/80г [11:12:49]line 1.000 * 89.00 [11:12:49]line = 89.00 [11:12:49]line НДС 12% НСП 1% [11:12:49]line > о реализуемом товаре [11:12:49]line ИТОГО: 89.00 [11:12:49]line НСП 1% : 0.79 [11:12:49]line НДС 12% : 9.45 [11:12:49]line Наличными: 89.00 [11:12:49]line Безнал.: 0.00 [11:12:49]line Место: АЗС № 101 "Партнер Нефть" [11:12:49]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:12:49]line СНО: Общий режим [11:12:49]line Чек 112 01.11.2024 11:12 [11:12:49]line Смена: 558 ФФД: 1.0 [11:12:49]line ЗНМ: 0300000081 [11:12:49]line РНМ: 0000000000091631 [11:12:49]line Версия ККМ: 001 [11:12:49]line ФМ: 0000000000874669 [11:12:49]line ФД: 139931 [11:12:49]line ФПД: 226463674106172 [11:12:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T111253&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139931&fm=226463674106172&tin=02508201610067®Number=0000000000091631&sum=8900 [11:12:49]line 0 [11:12:49]Connected sock=10 [11:12:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3F 01 00 00 53 C7 37 01 88 8A 5A 03 01 00 03 00 2B 01 1E 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 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 B5 B7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9B 22 02 00 35 04 06 00 CD F7 AE D9 81 3C 0E 7E 2D 2B 56 57 74 AF [11:12:49]written 0, free lines is 4095 [11:12:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 57 CF 47 00 30 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9B 22 02 00 F4 03 04 00 60 63 24 67 B6 04 01 00 00 1A 62 A9 E1 42 C5 0A FE [11:12:50]CommunicateWithHost err = 0 [11:12:50]CheckOFDResponse [11:12:50]1017 (14) - 77093643461234 [11:12:50]1041 (16) - 0000000000874669 [11:12:50]1040 (4) - 139931 [11:12:50]1012 (4) - 01.11.2024 05:13 [11:12:50]1206 (1) - 0 [11:12:50]OFD Sender: Remove packet 139931 [11:12:50]ProducePacketName [11:12:50]name=ofd_packets/00139931 [11:12:50]NVStorageDeleteData [11:12:50]Write to MH i2c: 01 00 00 33 55 88 [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: 01 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: 01 07 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: 01 07 00 33 55 00 00 00 00 00 01 0D 9D [11:12:50]RasterBufferAndPrint [11:12:50]line [11:12:50]line [11:12:50]line [11:12:50]line [11:12:50]line [11:12:50]written 0, free lines is 3338 [11:12:50]MH_Cut [11:12:50]Write to MH i2c: D1 01 00 3A 55 01 61 [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: D1 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: D1 01 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: D1 01 00 3A 55 00 60 [11:12:50]Write to MH i2c: 01 00 00 3B 55 90 [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]OFD Sender: No OFD packet to send [11:12:51]*** Cut start [11:12:51]*** Partial cut [11:12:51]*** CUTSNS_PIN = 1 [11:12:51]*** CUTSNS_PIN = 0 [11:12:51]*** Brake cut motor [11:12:51]Read from MH i2c: 01 [11:12:51]MH_I2C_Read... [11:12:51]*** Stop cut motor [11:12:51]*** Cut end [11:12:51]Read from MH i2c: 01 07 00 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: 01 07 00 3B 55 00 00 00 00 00 FF 0F A5 [11:12:51]process_action close_receipt done [11:12:51]requested_data is exist [11:12:51]produce_requested_data [11:12:51]requested_item fm.sn is exist - process it [11:12:51]wFMCommunicate request_size=4 [11:12:51]MH_SAM_APDU [11:12:51]CAPDU: 80 11 00 00 [11:12:51]Write to MH i2c: E2 08 00 3C 55 80 11 00 00 00 00 00 00 0B [11:12:51]Write i2c OK [11:12:51]MH_I2C_Read... [11:12:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:51]Read from MH i2c: E2 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: E2 17 00 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: E2 17 00 3C 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 66 [11:12:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:12:51]wFMCommunicate OK [11:12:51]requested_item fd.num is exist - process it [11:12:51]SAM_PROTO_GetFieldsCounters [11:12:51]wFMCommunicate request_size=4 [11:12:51]MH_SAM_APDU [11:12:51]CAPDU: 80 13 00 00 [11:12:51]Write to MH i2c: E2 08 00 3D 55 80 13 00 00 00 00 00 00 0E [11:12:51]Write i2c OK [11:12:51]MH_I2C_Read... [11:12:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:51]Read from MH i2c: E2 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: E2 62 00 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: E2 62 00 3D 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 9B 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [11:12:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 9B 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:51]wFMCommunicate OK [11:12:51]SAM_PROTO_GetFieldsCounters done [11:12:51]requested_item shift.num is exist - process it [11:12:51]requested_item shift.opened is exist - process it [11:12:51]req_shift_opened [11:12:51]FM_GetShiftState [11:12:51]SAM_PROTO_GetShiftState [11:12:51]wFMCommunicate request_size=4 [11:12:51]MH_SAM_APDU [11:12:51]CAPDU: 80 13 01 00 [11:12:51]Write to MH i2c: E2 08 00 3E 55 80 13 01 00 00 00 00 00 10 [11:12:51]Write i2c OK [11:12:51]MH_I2C_Read... [11:12:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:51]Read from MH i2c: E2 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: E2 0E 00 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: E2 0E 00 3E 55 00 09 00 01 89 19 24 67 00 00 00 00 90 00 49 [11:12:51]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:12:51]wFMCommunicate OK [11:12:51]SAM_PROTO_GetShiftState done [11:12:51]FM_GetShiftState done [11:12:51]req_shift_opened done [11:12:51]requested_item shift.open_date is exist - process it [11:12:51]req_shift_open_date [11:12:51]req_shift_open_date done [11:12:51]produce_requested_data done [11:12:51]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139931,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [11:12:51]process_action_free close_receipt [11:12:51]json_value_free [11:12:51]json_value_free done [11:12:51]process_json_proto returns [11:12:51]Send response to host [11:12:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139931,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [11:12:51]free response buf [11:12:51]execute_script done [11:12:51]execute_script returns [11:12:51]free content buf [11:12:51]Sock 7.Close socket [11:12:51]Sock 7.Thread stoped [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:13:57]accept exits with 9 [11:13:57]New connection [11:13:57]New thread 3066654052 created [11:13:57]Thread 3066510692 joined [11:13:57]Waiting for new connection... [11:13:57] Sock 9.Parse request [11:13:57]Sock 9.Check first char [11:13:57]Sock 9.First char is OK [11:13:57]request: POST /json_proto HTTP/1.0 [11:13:57]Method: POST [11:13:57]URL: /json_proto [11:13:57]Method is POST - this is cgi request [11:13:57]url: /json_proto [11:13:57]query_string will be loaded in cgi processing [11:13:57]execute_cgi json_proto POST (null) [11:13:57]execute_cgi path=json_proto method=POST [11:13:57]POST find Content-Length [11:13:57]Host: 172.17.50.196:8080 [11:13:57]Content-Length: 1612 [11:13:57]Content-Type: application/json [11:13:57] [11:13:57]POST finish read [11:13:57]Found Content-Length = 1612 [11:13:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335754", "tax_sys" : 0, "items" : [ { "code": "4607120854177", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 30\u0433", "price" : 25.00, "quantity" : 2.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 3.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607018771791", "name": "\u041C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0432\u043E\u0434\u0430 \u0415\u0441\u0441\u0435\u043D\u0442\u0443\u043A\u0438 17 0,45\u043B \u0441\u0442", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 489.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:57]execute_script... [11:13:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335754", "tax_sys" : 0, "items" : [ { "code": "4607120854177", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 30\u0433", "price" : 25.00, "quantity" : 2.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 3.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607018771791", "name": "\u041C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0432\u043E\u0434\u0430 \u0415\u0441\u0441\u0435\u043D\u0442\u0443\u043A\u0438 17 0,45\u043B \u0441\u0442", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 489.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:57]POST & json_proto [11:13:57]process_json_proto [11:13:57]json parsed OK: [11:13:57]protocol is kg_v1.0 [11:13:57]action value=close_receipt [11:13:57]process_action close_receipt [11:13:57]cmd_close_receipt [11:13:57]MH_GetDate [11:13:57]Write to MH i2c: F0 00 00 3F 55 83 [11:13:57]Write i2c OK [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: F0 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: F0 09 00 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: F0 09 00 3F 55 00 FB B7 24 67 72 0D 1C 67 CB [11:13:57]GetLastDocTimeStamp 1730459573 [11:13:57]current date 1730459643 [11:13:57]FM_GetShiftState [11:13:57]SAM_PROTO_GetShiftState [11:13:57]wFMCommunicate request_size=4 [11:13:57]MH_SAM_APDU [11:13:57]CAPDU: 80 13 01 00 [11:13:57]Write to MH i2c: E2 08 00 40 55 80 13 01 00 00 00 00 00 12 [11:13:57]Write i2c OK [11:13:57]MH_I2C_Read... [11:13:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:57]Read from MH i2c: E2 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: E2 0E 00 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: E2 0E 00 40 55 00 09 00 01 89 19 24 67 00 00 00 00 90 00 4B [11:13:57]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:13:57]wFMCommunicate OK [11:13:57]SAM_PROTO_GetShiftState done [11:13:57]FM_GetShiftState done [11:13:57]opened in 1730419081 [11:13:57]opened+sec_in_day 1730505481 [11:13:57]quantity*price = 5000 [11:13:57]sum+1 = 5001 [11:13:57]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112003956 Шок батончик ALBENI SUPER Альбени Супер 3.000 * 75.00 = 225.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607018771791 Минеральная вода Ессентуки 17 0,45л ст 2.000 * 105.00 = 210.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 489.00 НСП 1% : 4.32 НДС 12% : 51.92 Наличными: 489.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 113 01.11.2024 11:14 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139932 ФПД: 249537473257985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T111403&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139932&fm=249537473257985&tin=02508201610067®Number=0000000000091631&sum=48900 0 [11:13:58]StoreToDocumentArchive [11:13:58]shift 558 fd 139932 [11:13:58]save to /storage/0558/doc_00139932 [11:13:58]save last doc name /storage/0558/doc_00139932 to /storage/kkm_last_doc_name [11:13:58]save OK [11:13:58]Clear old archive folders... [11:13:58]ProcessDocumentItem done err = 0, tmpTLVsize=665 [11:13:58]tlvbuf is 00C11730 [11:13:58]SAM_PROTO_ClearQueue [11:13:58]wFMCommunicate request_size=4 [11:13:58]MH_SAM_APDU [11:13:58]CAPDU: 80 09 00 00 [11:13:58]Write to MH i2c: E2 08 00 4D 55 80 09 00 00 00 00 00 00 14 [11:13:58]Write i2c OK [11:13:58]MH_I2C_Read... [11:13:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:59]Read from MH i2c: E2 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 03 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 03 00 4D 55 00 90 00 16 [11:13:59]RAPDU: 90 00 [11:13:59]wFMCommunicate OK [11:13:59]SAM_PROTO_ClearQueue done [11:13:59]KKMCreateOFDPacket [11:13:59]OFDProtocolAddRootSTLVToBuf [11:13:59]FM_MakeSignedData [11:13:59]FM_MakeSignedData [11:13:59]SAM_PROTO_SignData [11:13:59]wFMCommunicate request_size=4 [11:13:59]MH_SAM_APDU [11:13:59]CAPDU: 80 0D 01 02 [11:13:59]Write to MH i2c: E2 08 00 4E 55 80 0D 01 02 00 00 00 00 1C [11:13:59]Write i2c OK [11:13:59]MH_I2C_Read... [11:13:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:59]Read from MH i2c: E2 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 03 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 03 00 4E 55 00 90 00 17 [11:13:59]RAPDU: 90 00 [11:13:59]wFMCommunicate OK [11:13:59]wFMCommunicate request_size=255 [11:13:59]MH_SAM_APDU [11:13:59]CAPDU: 80 0D 02 02 FA 03 00 99 02 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 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 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 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 [11:13:59]Write to MH i2c: E2 02 01 4F 55 80 0D 02 02 FA 00 03 00 99 02 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 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 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 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 00 00 B8 [11:13:59]Write i2c OK [11:13:59]MH_I2C_Read... [11:13:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:59]Read from MH i2c: E2 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 03 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 03 00 4F 55 00 90 00 18 [11:13:59]RAPDU: 90 00 [11:13:59]wFMCommunicate OK [11:13:59]wFMCommunicate request_size=255 [11:13:59]MH_SAM_APDU [11:13:59]CAPDU: 80 0D 02 02 FA 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 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 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC [11:13:59]Write to MH i2c: E2 02 01 50 55 80 0D 02 02 FA 00 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 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 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 00 00 2D [11:13:59]Write i2c OK [11:13:59]MH_I2C_Read... [11:13:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:59]Read from MH i2c: E2 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 03 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 03 00 50 55 00 90 00 19 [11:13:59]RAPDU: 90 00 [11:13:59]wFMCommunicate OK [11:13:59]wFMCommunicate request_size=174 [11:13:59]MH_SAM_APDU [11:13:59]CAPDU: 80 0D 02 02 A9 04 01 00 01 FC 03 06 00 04 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 14 00 00 00 00 07 04 06 00 04 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 FB B7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9C 22 02 00 35 04 06 00 E2 F3 F8 73 A2 01 [11:13:59]Write to MH i2c: E2 B1 00 51 55 80 0D 02 02 A9 00 04 01 00 01 FC 03 06 00 04 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 14 00 00 00 00 07 04 06 00 04 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 FB B7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9C 22 02 00 35 04 06 00 E2 F3 F8 73 A2 01 00 00 D1 [11:13:59]Write i2c OK [11:13:59]MH_I2C_Read... [11:13:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:59]Read from MH i2c: E2 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 03 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 03 00 51 55 00 90 00 1A [11:13:59]RAPDU: 90 00 [11:13:59]wFMCommunicate OK [11:13:59]wFMCommunicate request_size=4 [11:13:59]MH_SAM_APDU [11:13:59]CAPDU: 80 0D 03 02 [11:13:59]Write to MH i2c: E2 08 00 52 55 80 0D 03 02 00 00 00 00 22 [11:13:59]Write i2c OK [11:13:59]MH_I2C_Read... [11:13:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:59]Read from MH i2c: E2 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 0B 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 0B 00 52 55 00 A7 F0 8A 13 2B D1 02 F0 90 00 45 [11:13:59]RAPDU: A7 F0 8A 13 2B D1 02 F0 90 00 [11:13:59]wFMCommunicate OK [11:13:59]SAM_PROTO_SignData done [11:13:59]FM_MakeSignedData done [11:13:59]CreateOFDProtocolMessage [11:13:59]wFMCommunicate request_size=4 [11:13:59]MH_SAM_APDU [11:13:59]CAPDU: 80 11 00 00 [11:13:59]Write to MH i2c: E2 08 00 53 55 80 11 00 00 00 00 00 00 22 [11:13:59]Write i2c OK [11:13:59]MH_I2C_Read... [11:13:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:59]Read from MH i2c: E2 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 17 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 17 00 53 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 7D [11:13:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:13:59]wFMCommunicate OK [11:13:59]CreateOFDProtocolMessage done [11:13:59]OFDSenderStorePacket 139932 [11:13:59]StoreOFDPacket docnum=139932 [11:13:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 AD 02 00 00 13 E9 A5 02 2F 80 5A 03 01 00 03 00 99 02 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 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 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 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 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 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 14 00 00 00 00 07 04 06 00 04 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 FB B7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9C 22 02 00 35 04 06 00 E2 F3 F8 73 A2 01 A7 F0 8A 13 2B D1 02 F0 [11:13:59]CheckFolder [11:13:59]dirname=/storage/ofd_packets [11:13:59]CheckFolder done [11:13:59]ProducePacketName [11:13:59]name=ofd_packets/00139932 [11:13:59]NVStorageSaveData ofd_packets/00139932 [11:13:59]File name is /storage/ofd_packets/00139932 [11:13:59]Write 715 bytes [11:13:59]NVStorageSaveData done [11:13:59]OFDSenderStorePacket done [11:13:59]KKMCreateOFDPacket done [11:13:59]NVStorageSaveData kkm_last_timestamp [11:13:59]File name is /storage/kkm_last_timestamp [11:13:59]Write 4 bytes [11:13:59]NVStorageSaveData done [11:13:59]ExternCall_PrintAddStr [11:13:59]wPrintStart [11:13:59]Write to MH i2c: 01 00 00 54 55 A9 [11:13:59]Write i2c OK [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: 01 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: 01 07 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: 01 07 00 54 55 00 00 00 00 00 FF 0F BE [11:13:59]RasterBufferAndPrint [11:13:59]line Счет N : (3)335754 [11:13:59]line ИНН: 02508201610067 [11:13:59]line Контрольно-Кассовый Чек [11:13:59]line ПРОДАЖА [11:13:59]line Товар: 4607120854177 [11:14:00]line Снек Орехи BEERKa Арахис 30г [11:14:00]line 2.000 * 25.00 [11:14:00]line = 50.00 [11:14:00]line НДС 12% НСП 1% [11:14:00]line > о реализуемом товаре [11:14:00]line Товар: 4870112003956 [11:14:00]line Шок батончик ALBENI SUPER Альбени Супер [11:14:00]line 3.000 * 75.00 [11:14:00]line = 225.00 [11:14:00]line НДС 12% НСП 1% [11:14:00]line > о реализуемом товаре [11:14:00]line Товар: 4607018771791 [11:14:00]line Минеральная вода Ессентуки 17 0,45л ст [11:14:00]line 2.000 * 105.00 [11:14:00]line = 210.00 [11:14:00]line НДС 12% НСП 1% [11:14:00]line > о реализуемом товаре [11:14:00]line Товар: 2000031750019 [11:14:00]line Пакет Партнер Нефть [11:14:00]line 1.000 * 4.00 [11:14:00]line = 4.00 [11:14:00]line НДС 12% НСП 1% [11:14:00]line > о реализуемом товаре [11:14:00]line ИТОГО: 489.00 [11:14:00]line НСП 1% : 4.32 [11:14:00]line НДС 12% : 51.92 [11:14:00]line Наличными: 489.00 [11:14:00]line Безнал.: 0.00 [11:14:00]line Место: АЗС № 101 "Партнер Нефть" [11:14:00]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:14:00]line СНО: Общий режим [11:14:00]line Чек 113 01.11.2024 11:14 [11:14:00]line Смена: 558 ФФД: 1.0 [11:14:00]line ЗНМ: 0300000081 [11:14:00]line РНМ: 0000000000091631 [11:14:00]line Версия ККМ: 001 [11:14:00]line ФМ: 0000000000874669 [11:14:00]line ФД: 139932 [11:14:00]line ФПД: 249537473257985 [11:14:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T111403&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139932&fm=249537473257985&tin=02508201610067®Number=0000000000091631&sum=48900 [11:14:00]OFD Sender: Processing packet 139932 [packets to send 34, broken 33] [11:14:00]ProducePacketName [11:14:00]name=ofd_packets/00139932 [11:14:00]OFD Sender: To server: pG, [11:14:00]CommunicateWithHost lk.salyk.kg:30040 [11:14:00]ConnectInit lk.salyk.kg [11:14:00]line 0 [11:14:00]written 0, free lines is 4095 [11:14:00]Connected sock=10 [11:14:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 AD 02 00 00 13 E9 A5 02 2F 80 5A 03 01 00 03 00 99 02 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 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 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 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 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 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 14 00 00 00 00 07 04 06 00 04 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 FB B7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9C 22 02 00 35 04 06 00 E2 F3 F8 73 A2 01 A7 F0 8A 13 2B D1 02 F0 [11:14:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 9B F6 47 00 B1 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 34 36 36 39 10 04 04 00 9C 22 02 00 F4 03 04 00 A6 63 24 67 B6 04 01 00 00 D4 7B 44 2C 3E 07 EB 22 [11:14:00]CommunicateWithHost err = 0 [11:14:00]CheckOFDResponse [11:14:00]1017 (14) - 77093643461234 [11:14:00]1041 (16) - 0000000000874669 [11:14:00]1040 (4) - 139932 [11:14:00]1012 (4) - 01.11.2024 05:14 [11:14:00]1206 (1) - 0 [11:14:00]OFD Sender: Remove packet 139932 [11:14:00]ProducePacketName [11:14:00]name=ofd_packets/00139932 [11:14:00]NVStorageDeleteData [11:14:00]Write to MH i2c: 01 00 00 91 55 E6 [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: 01 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: 01 07 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: 01 07 00 91 55 00 00 00 00 00 E2 0B DA [11:14:00]RasterBufferAndPrint [11:14:00]line [11:14:00]line [11:14:00]line [11:14:00]line [11:14:00]line [11:14:00]written 0, free lines is 3054 [11:14:00]MH_Cut [11:14:00]Write to MH i2c: D1 01 00 98 55 01 BF [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: D1 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: D1 01 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: D1 01 00 98 55 00 BE [11:14:00]Write to MH i2c: 01 00 00 99 55 EE [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:01]OFD Sender: No OFD packet to send [11:14:01]*** Cut start [11:14:01]*** Partial cut [11:14:01]*** CUTSNS_PIN = 1 [11:14:01]*** CUTSNS_PIN = 0 [11:14:02]*** Brake cut motor [11:14:02]Read from MH i2c: 01 [11:14:02]MH_I2C_Read... [11:14:02]*** Stop cut motor [11:14:02]*** Cut end [11:14:02]Read from MH i2c: 01 07 00 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: 01 07 00 99 55 00 00 00 00 00 FF 0F 03 [11:14:02]process_action close_receipt done [11:14:02]requested_data is exist [11:14:02]produce_requested_data [11:14:02]requested_item fm.sn is exist - process it [11:14:02]wFMCommunicate request_size=4 [11:14:02]MH_SAM_APDU [11:14:02]CAPDU: 80 11 00 00 [11:14:02]Write to MH i2c: E2 08 00 9A 55 80 11 00 00 00 00 00 00 69 [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:02]Read from MH i2c: E2 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: E2 17 00 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: E2 17 00 9A 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C4 [11:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:14:02]wFMCommunicate OK [11:14:02]requested_item fd.num is exist - process it [11:14:02]SAM_PROTO_GetFieldsCounters [11:14:02]wFMCommunicate request_size=4 [11:14:02]MH_SAM_APDU [11:14:02]CAPDU: 80 13 00 00 [11:14:02]Write to MH i2c: E2 08 00 9B 55 80 13 00 00 00 00 00 00 6C [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:02]Read from MH i2c: E2 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: E2 62 00 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: E2 62 00 9B 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 9C 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [11:14:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 9C 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:02]wFMCommunicate OK [11:14:02]SAM_PROTO_GetFieldsCounters done [11:14:02]requested_item shift.num is exist - process it [11:14:02]requested_item shift.opened is exist - process it [11:14:02]req_shift_opened [11:14:02]FM_GetShiftState [11:14:02]SAM_PROTO_GetShiftState [11:14:02]wFMCommunicate request_size=4 [11:14:02]MH_SAM_APDU [11:14:02]CAPDU: 80 13 01 00 [11:14:02]Write to MH i2c: E2 08 00 9C 55 80 13 01 00 00 00 00 00 6E [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:02]Read from MH i2c: E2 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: E2 0E 00 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: E2 0E 00 9C 55 00 09 00 01 89 19 24 67 00 00 00 00 90 00 A7 [11:14:02]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:14:02]wFMCommunicate OK [11:14:02]SAM_PROTO_GetShiftState done [11:14:02]FM_GetShiftState done [11:14:02]req_shift_opened done [11:14:02]requested_item shift.open_date is exist - process it [11:14:02]req_shift_open_date [11:14:02]req_shift_open_date done [11:14:02]produce_requested_data done [11:14:02]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139932,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [11:14:02]process_action_free close_receipt [11:14:02]json_value_free [11:14:02]json_value_free done [11:14:02]process_json_proto returns [11:14:02]Send response to host [11:14:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139932,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [11:14:02]free response buf [11:14:02]execute_script done [11:14:02]execute_script returns [11:14:02]free content buf [11:14:02]Sock 9.Close socket [11:14:02]Sock 9.Thread stoped [11:14:06]OFD Sender: No OFD packet to send [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:26]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:22:57]accept exits with 7 [11:22:57]New connection [11:22:57]New thread 3066510692 created [11:22:57]Thread 3066654052 joined [11:22:57]Waiting for new connection... [11:22:57] Sock 7.Parse request [11:22:57]Sock 7.Check first char [11:22:57]Sock 7.First char is OK [11:22:57]request: POST /json_proto HTTP/1.0 [11:22:57]Method: POST [11:22:57]URL: /json_proto [11:22:57]Method is POST - this is cgi request [11:22:57]url: /json_proto [11:22:57]query_string will be loaded in cgi processing [11:22:57]execute_cgi json_proto POST (null) [11:22:57]execute_cgi path=json_proto method=POST [11:22:57]POST find Content-Length [11:22:57]Host: 172.17.50.196:8080 [11:22:57]Content-Length: 746 [11:22:57]Content-Type: application/json [11:22:57] [11:22:57]POST finish read [11:22:57]Found Content-Length = 746 [11:22:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335755", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:57]execute_script... [11:22:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335755", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:57]POST & json_proto [11:22:57]process_json_proto [11:22:57]json parsed OK: [11:22:57]protocol is kg_v1.0 [11:22:57]action value=close_receipt [11:22:57]process_action close_receipt [11:22:57]cmd_close_receipt [11:22:57]MH_GetDate [11:22:57]Write to MH i2c: F0 00 00 9D 55 E1 [11:22:57]Write i2c OK [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: F0 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: F0 09 00 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: F0 09 00 9D 55 00 17 BA 24 67 72 0D 1C 67 48 [11:22:57]GetLastDocTimeStamp 1730459643 [11:22:57]current date 1730460183 [11:22:57]FM_GetShiftState [11:22:57]SAM_PROTO_GetShiftState [11:22:57]wFMCommunicate request_size=4 [11:22:57]MH_SAM_APDU [11:22:57]CAPDU: 80 13 01 00 [11:22:57]Write to MH i2c: E2 08 00 9E 55 80 13 01 00 00 00 00 00 70 [11:22:57]Write i2c OK [11:22:57]MH_I2C_Read... [11:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:57]Read from MH i2c: E2 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: E2 0E 00 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: E2 0E 00 9E 55 00 09 00 01 89 19 24 67 00 00 00 00 90 00 A9 [11:22:57]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:22:57]wFMCommunicate OK [11:22:57]SAM_PROTO_GetShiftState done [11:22:57]FM_GetShiftState done [11:22:57]opened in 1730419081 [11:22:57]opened+sec_in_day 1730505481 [11:22:57]quantity*price = 14400 [11:22:57]sum+1 = 14401 [11:22:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 0.00 Безнал.: 144.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 114 01.11.2024 11:23 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139933 ФПД: 271603071901070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T112303&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139933&fm=271603071901070&tin=02508201610067®Number=0000000000091631&sum=14400 0 [11:22:58]StoreToDocumentArchive [11:22:58]shift 558 fd 139933 [11:22:58]save to /storage/0558/doc_00139933 [11:22:58]save last doc name /storage/0558/doc_00139933 to /storage/kkm_last_doc_name [11:22:58]save OK [11:22:58]Clear old archive folders... [11:22:58]ProcessDocumentItem done err = 0, tmpTLVsize=271 [11:22:58]tlvbuf is 00B5AEC0 [11:22:58]SAM_PROTO_ClearQueue [11:22:58]wFMCommunicate request_size=4 [11:22:58]MH_SAM_APDU [11:22:58]CAPDU: 80 09 00 00 [11:22:58]Write to MH i2c: E2 08 00 AB 55 80 09 00 00 00 00 00 00 72 [11:22:58]Write i2c OK [11:22:58]MH_I2C_Read... [11:22:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:59]Read from MH i2c: E2 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: E2 03 00 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: E2 03 00 AB 55 00 90 00 74 [11:22:59]RAPDU: 90 00 [11:22:59]wFMCommunicate OK [11:22:59]SAM_PROTO_ClearQueue done [11:22:59]KKMCreateOFDPacket [11:22:59]OFDProtocolAddRootSTLVToBuf [11:22:59]FM_MakeSignedData [11:22:59]FM_MakeSignedData [11:22:59]SAM_PROTO_SignData [11:22:59]wFMCommunicate request_size=4 [11:22:59]MH_SAM_APDU [11:22:59]CAPDU: 80 0D 01 02 [11:22:59]Write to MH i2c: E2 08 00 AC 55 80 0D 01 02 00 00 00 00 7A [11:22:59]Write i2c OK [11:22:59]MH_I2C_Read... [11:22:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:59]Read from MH i2c: E2 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: E2 03 00 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: E2 03 00 AC 55 00 90 00 75 [11:22:59]RAPDU: 90 00 [11:22:59]wFMCommunicate OK [11:22:59]wFMCommunicate request_size=255 [11:22:59]MH_SAM_APDU [11:22:59]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 17 BA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 [11:22:59]Write to MH i2c: E2 02 01 AD 55 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 17 BA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 6C [11:22:59]Write i2c OK [11:22:59]MH_I2C_Read... [11:22:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:59]Read from MH i2c: E2 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: E2 03 00 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: E2 03 00 AD 55 00 90 00 76 [11:22:59]RAPDU: 90 00 [11:22:59]wFMCommunicate OK [11:22:59]wFMCommunicate request_size=30 [11:22:59]MH_SAM_APDU [11:22:59]CAPDU: 80 0D 02 02 19 30 38 37 34 36 36 39 10 04 04 00 9D 22 02 00 35 04 06 00 F7 05 84 9E DD 8E [11:22:59]Write to MH i2c: E2 21 00 AE 55 80 0D 02 02 19 00 30 38 37 34 36 36 39 10 04 04 00 9D 22 02 00 35 04 06 00 F7 05 84 9E DD 8E 00 00 C8 [11:22:59]Write i2c OK [11:22:59]MH_I2C_Read... [11:22:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:59]Read from MH i2c: E2 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: E2 03 00 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: E2 03 00 AE 55 00 90 00 77 [11:22:59]RAPDU: 90 00 [11:22:59]wFMCommunicate OK [11:22:59]wFMCommunicate request_size=4 [11:22:59]MH_SAM_APDU [11:22:59]CAPDU: 80 0D 03 02 [11:22:59]Write to MH i2c: E2 08 00 AF 55 80 0D 03 02 00 00 00 00 7F [11:22:59]Write i2c OK [11:22:59]MH_I2C_Read... [11:22:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:59]Read from MH i2c: E2 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: E2 0B 00 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: E2 0B 00 AF 55 00 74 16 11 F8 82 AD 77 74 90 00 2D [11:22:59]RAPDU: 74 16 11 F8 82 AD 77 74 90 00 [11:22:59]wFMCommunicate OK [11:22:59]SAM_PROTO_SignData done [11:22:59]FM_MakeSignedData done [11:22:59]CreateOFDProtocolMessage [11:22:59]wFMCommunicate request_size=4 [11:22:59]MH_SAM_APDU [11:22:59]CAPDU: 80 11 00 00 [11:22:59]Write to MH i2c: E2 08 00 B0 55 80 11 00 00 00 00 00 00 7F [11:22:59]Write i2c OK [11:22:59]MH_I2C_Read... [11:22:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:59]Read from MH i2c: E2 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: E2 17 00 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: E2 17 00 B0 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DA [11:22:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:22:59]wFMCommunicate OK [11:22:59]CreateOFDProtocolMessage done [11:22:59]OFDSenderStorePacket 139933 [11:22:59]StoreOFDPacket docnum=139933 [11:22:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 23 01 00 00 DC 9B 1B 01 6E 69 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 17 BA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9D 22 02 00 35 04 06 00 F7 05 84 9E DD 8E 74 16 11 F8 82 AD 77 74 [11:22:59]CheckFolder [11:22:59]dirname=/storage/ofd_packets [11:22:59]CheckFolder done [11:22:59]ProducePacketName [11:22:59]name=ofd_packets/00139933 [11:22:59]NVStorageSaveData ofd_packets/00139933 [11:22:59]File name is /storage/ofd_packets/00139933 [11:22:59]Write 321 bytes [11:22:59]NVStorageSaveData done [11:22:59]OFDSenderStorePacket done [11:22:59]KKMCreateOFDPacket done [11:22:59]NVStorageSaveData kkm_last_timestamp [11:22:59]File name is /storage/kkm_last_timestamp [11:22:59]Write 4 bytes [11:22:59]NVStorageSaveData done [11:22:59]ExternCall_PrintAddStr [11:22:59]wPrintStart [11:22:59]Write to MH i2c: 01 00 00 B1 55 06 [11:22:59]Write i2c OK [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: 01 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: 01 07 00 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: 01 07 00 B1 55 00 00 00 00 00 FF 0F 1B [11:22:59]RasterBufferAndPrint [11:22:59]line Счет N : (3)335755 [11:22:59]line ИНН: 02508201610067 [11:22:59]line Контрольно-Кассовый Чек [11:22:59]line ПРОДАЖА [11:22:59]line Товар: 47802995 [11:22:59]line Сигареты Winston XS Silver [11:22:59]line 1.000 * 144.00 [11:22:59]line = 144.00 [11:22:59]line НДС 12% НСП 1% [11:22:59]line > о реализуемом товаре [11:22:59]line ИТОГО: 144.00 [11:22:59]line НСП 1% : 1.27 [11:22:59]line НДС 12% : 15.29 [11:22:59]line Наличными: 0.00 [11:22:59]line Безнал.: 144.00 [11:22:59]line Место: АЗС № 101 "Партнер Нефть" [11:22:59]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:22:59]line СНО: Общий режим [11:22:59]line Чек 114 01.11.2024 11:23 [11:22:59]line Смена: 558 ФФД: 1.0 [11:22:59]line ЗНМ: 0300000081 [11:22:59]line РНМ: 0000000000091631 [11:22:59]line Версия ККМ: 001 [11:22:59]line Платежная система: Mbank [11:22:59]line ФМ: 0000000000874669 [11:22:59]line ФД: 139933 [11:22:59]line ФПД: 271603071901070 [11:22:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T112303&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139933&fm=271603071901070&tin=02508201610067®Number=0000000000091631&sum=14400 [11:22:59]OFD Sender: Processing packet 139933 [packets to send 34, broken 33] [11:22:59]ProducePacketName [11:22:59]name=ofd_packets/00139933 [11:22:59]OFD Sender: To server: pG, [11:22:59]CommunicateWithHost lk.salyk.kg:30040 [11:22:59]ConnectInit lk.salyk.kg [11:22:59]line 0 [11:22:59]written 0, free lines is 4095 [11:22:59]Connected sock=10 [11:22:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 23 01 00 00 DC 9B 1B 01 6E 69 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 17 BA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9D 22 02 00 35 04 06 00 F7 05 84 9E DD 8E 74 16 11 F8 82 AD 77 74 [11:23:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 9B 63 47 00 A9 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9D 22 02 00 F4 03 04 00 C2 65 24 67 B6 04 01 00 00 72 50 E2 80 35 19 C4 45 [11:23:00]CommunicateWithHost err = 0 [11:23:00]CheckOFDResponse [11:23:00]1017 (14) - 77093643461234 [11:23:00]1041 (16) - 0000000000874669 [11:23:00]1040 (4) - 139933 [11:23:00]1012 (4) - 01.11.2024 05:23 [11:23:00]1206 (1) - 0 [11:23:00]OFD Sender: Remove packet 139933 [11:23:00]ProducePacketName [11:23:00]name=ofd_packets/00139933 [11:23:00]NVStorageDeleteData [11:23:00]Write to MH i2c: 01 00 00 DA 55 2F [11:23:00]Write i2c OK [11:23:00]MH_I2C_Read... [11:23:00]Read from MH i2c: 01 [11:23:00]MH_I2C_Read... [11:23:00]Read from MH i2c: 01 07 00 [11:23:00]MH_I2C_Read... [11:23:00]Read from MH i2c: 01 07 00 DA 55 00 00 00 00 00 0F 0D 52 [11:23:00]RasterBufferAndPrint [11:23:00]line [11:23:00]line [11:23:00]line [11:23:00]line [11:23:00]line [11:23:00]written 0, free lines is 3350 [11:23:00]MH_Cut [11:23:00]Write to MH i2c: D1 01 00 E1 55 01 08 [11:23:00]Write i2c OK [11:23:00]MH_I2C_Read... [11:23:00]Read from MH i2c: D1 [11:23:00]MH_I2C_Read... [11:23:00]Read from MH i2c: D1 01 00 [11:23:00]MH_I2C_Read... [11:23:00]Read from MH i2c: D1 01 00 E1 55 00 07 [11:23:00]Write to MH i2c: 01 00 00 E2 55 37 [11:23:00]Write i2c OK [11:23:00]MH_I2C_Read... [11:23:00]OFD Sender: No OFD packet to send [11:23:00]*** Cut start [11:23:00]*** Partial cut [11:23:00]*** CUTSNS_PIN = 1 [11:23:01]*** CUTSNS_PIN = 0 [11:23:01]*** Brake cut motor [11:23:01]Read from MH i2c: 01 [11:23:01]MH_I2C_Read... [11:23:01]*** Stop cut motor [11:23:01]*** Cut end [11:23:01]Read from MH i2c: 01 07 00 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: 01 07 00 E2 55 00 00 00 00 00 FF 0F 4C [11:23:01]process_action close_receipt done [11:23:01]requested_data is exist [11:23:01]produce_requested_data [11:23:01]requested_item fm.sn is exist - process it [11:23:01]wFMCommunicate request_size=4 [11:23:01]MH_SAM_APDU [11:23:01]CAPDU: 80 11 00 00 [11:23:01]Write to MH i2c: E2 08 00 E3 55 80 11 00 00 00 00 00 00 B2 [11:23:01]Write i2c OK [11:23:01]MH_I2C_Read... [11:23:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:01]Read from MH i2c: E2 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: E2 17 00 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: E2 17 00 E3 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0D [11:23:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:23:01]wFMCommunicate OK [11:23:01]requested_item fd.num is exist - process it [11:23:01]SAM_PROTO_GetFieldsCounters [11:23:01]wFMCommunicate request_size=4 [11:23:01]MH_SAM_APDU [11:23:01]CAPDU: 80 13 00 00 [11:23:01]Write to MH i2c: E2 08 00 E4 55 80 13 00 00 00 00 00 00 B5 [11:23:01]Write i2c OK [11:23:01]MH_I2C_Read... [11:23:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:01]Read from MH i2c: E2 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: E2 62 00 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: E2 62 00 E4 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 9D 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [11:23:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 9D 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:01]wFMCommunicate OK [11:23:01]SAM_PROTO_GetFieldsCounters done [11:23:01]requested_item shift.num is exist - process it [11:23:01]requested_item shift.opened is exist - process it [11:23:01]req_shift_opened [11:23:01]FM_GetShiftState [11:23:01]SAM_PROTO_GetShiftState [11:23:01]wFMCommunicate request_size=4 [11:23:01]MH_SAM_APDU [11:23:01]CAPDU: 80 13 01 00 [11:23:01]Write to MH i2c: E2 08 00 E5 55 80 13 01 00 00 00 00 00 B7 [11:23:01]Write i2c OK [11:23:01]MH_I2C_Read... [11:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:01]Read from MH i2c: E2 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: E2 0E 00 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: E2 0E 00 E5 55 00 09 00 01 89 19 24 67 00 00 00 00 90 00 F0 [11:23:01]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:23:01]wFMCommunicate OK [11:23:01]SAM_PROTO_GetShiftState done [11:23:01]FM_GetShiftState done [11:23:01]req_shift_opened done [11:23:01]requested_item shift.open_date is exist - process it [11:23:01]req_shift_open_date [11:23:01]req_shift_open_date done [11:23:01]produce_requested_data done [11:23:01]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139933,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [11:23:01]process_action_free close_receipt [11:23:01]json_value_free [11:23:01]json_value_free done [11:23:01]process_json_proto returns [11:23:01]Send response to host [11:23:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139933,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [11:23:01]free response buf [11:23:01]execute_script done [11:23:01]execute_script returns [11:23:01]free content buf [11:23:01]Sock 7.Close socket [11:23:01]Sock 7.Thread stoped [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:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:01]accept exits with 9 [11:26:01]New connection [11:26:01]New thread 3066654052 created [11:26:01]Thread 3066510692 joined [11:26:01]Waiting for new connection... [11:26:01] Sock 9.Parse request [11:26:01]Sock 9.Check first char [11:26:01]Sock 9.First char is OK [11:26:01]request: POST /json_proto HTTP/1.0 [11:26:01]Method: POST [11:26:01]URL: /json_proto [11:26:01]Method is POST - this is cgi request [11:26:01]url: /json_proto [11:26:01]query_string will be loaded in cgi processing [11:26:01]execute_cgi json_proto POST (null) [11:26:01]execute_cgi path=json_proto method=POST [11:26:01]POST find Content-Length [11:26:01]Host: 172.17.50.196:8080 [11:26:01]Content-Length: 1651 [11:26:01]Content-Type: application/json [11:26:01] [11:26:01]POST finish read [11:26:01]Found Content-Length = 1651 [11:26:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335756", "tax_sys" : 0, "items" : [ { "code": "4700003010476", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.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" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 4.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 504.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:01]execute_script... [11:26: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)335756", "tax_sys" : 0, "items" : [ { "code": "4700003010476", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.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" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 4.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 504.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:01]POST & json_proto [11:26:01]process_json_proto [11:26:01]json parsed OK: [11:26:01]protocol is kg_v1.0 [11:26:01]action value=close_receipt [11:26:01]process_action close_receipt [11:26:01]cmd_close_receipt [11:26:01]MH_GetDate [11:26:01]Write to MH i2c: F0 00 00 E6 55 2A [11:26:01]Write i2c OK [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: F0 [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: F0 09 00 [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: F0 09 00 E6 55 00 CF BA 24 67 72 0D 1C 67 49 [11:26:01]GetLastDocTimeStamp 1730460183 [11:26:01]current date 1730460367 [11:26:01]FM_GetShiftState [11:26:01]SAM_PROTO_GetShiftState [11:26:01]wFMCommunicate request_size=4 [11:26:01]MH_SAM_APDU [11:26:01]CAPDU: 80 13 01 00 [11:26:01]Write to MH i2c: E2 08 00 E7 55 80 13 01 00 00 00 00 00 B9 [11:26:01]Write i2c OK [11:26:01]MH_I2C_Read... [11:26:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:01]Read from MH i2c: E2 [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: E2 0E 00 [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: E2 0E 00 E7 55 00 09 00 01 89 19 24 67 00 00 00 00 90 00 F2 [11:26:01]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:26:01]wFMCommunicate OK [11:26:01]SAM_PROTO_GetShiftState done [11:26:01]FM_GetShiftState done [11:26:01]opened in 1730419081 [11:26:01]opened+sec_in_day 1730505481 [11:26:01]quantity*price = 8000 [11:26:01]sum+1 = 8001 [11:26:01]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48741958 Сигареты Parliament Aqua Blue 1.000 * 160.00 = 160.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000032780015 Слойка DC треугольная курица 110г 4.000 * 65.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 504.00 НСП 1% : 4.46 НДС 12% : 53.52 Наличными: 0.00 Безнал.: 504.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 115 01.11.2024 11:26 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139934 ФПД: 164025632306731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T112607&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139934&fm=164025632306731&tin=02508201610067®Number=0000000000091631&sum=50400 0 [11:26:02]StoreToDocumentArchive [11:26:02]shift 558 fd 139934 [11:26:02]save to /storage/0558/doc_00139934 [11:26:02]save last doc name /storage/0558/doc_00139934 to /storage/kkm_last_doc_name [11:26:02]save OK [11:26:02]Clear old archive folders... [11:26:02]ProcessDocumentItem done err = 0, tmpTLVsize=637 [11:26:02]tlvbuf is 00A5D6B0 [11:26:02]SAM_PROTO_ClearQueue [11:26:02]wFMCommunicate request_size=4 [11:26:02]MH_SAM_APDU [11:26:02]CAPDU: 80 09 00 00 [11:26:02]Write to MH i2c: E2 08 00 F4 55 80 09 00 00 00 00 00 00 BB [11:26:02]Write i2c OK [11:26:02]MH_I2C_Read... [11:26:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:02]Read from MH i2c: E2 [11:26:02]MH_I2C_Read... [11:26:02]Read from MH i2c: E2 03 00 [11:26:02]MH_I2C_Read... [11:26:02]Read from MH i2c: E2 03 00 F4 55 00 90 00 BD [11:26:02]RAPDU: 90 00 [11:26:02]wFMCommunicate OK [11:26:02]SAM_PROTO_ClearQueue done [11:26:02]KKMCreateOFDPacket [11:26:02]OFDProtocolAddRootSTLVToBuf [11:26:02]FM_MakeSignedData [11:26:02]FM_MakeSignedData [11:26:02]SAM_PROTO_SignData [11:26:02]wFMCommunicate request_size=4 [11:26:02]MH_SAM_APDU [11:26:02]CAPDU: 80 0D 01 02 [11:26:02]Write to MH i2c: E2 08 00 F5 55 80 0D 01 02 00 00 00 00 C3 [11:26:02]Write i2c OK [11:26:02]MH_I2C_Read... [11:26:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:02]Read from MH i2c: E2 [11:26:02]MH_I2C_Read... [11:26:02]Read from MH i2c: E2 03 00 [11:26:02]MH_I2C_Read... [11:26:02]Read from MH i2c: E2 03 00 F5 55 00 90 00 BE [11:26:02]RAPDU: 90 00 [11:26:02]wFMCommunicate OK [11:26:02]wFMCommunicate request_size=255 [11:26:02]MH_SAM_APDU [11:26:02]CAPDU: 80 0D 02 02 FA 03 00 7D 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 [11:26:02]Write to MH i2c: E2 02 01 F6 55 80 0D 02 02 FA 00 03 00 7D 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 00 00 84 [11:26:02]Write i2c OK [11:26:02]MH_I2C_Read... [11:26:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:03]Read from MH i2c: E2 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 03 00 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 03 00 F6 55 00 90 00 BF [11:26:03]RAPDU: 90 00 [11:26:03]wFMCommunicate OK [11:26:03]wFMCommunicate request_size=255 [11:26:03]MH_SAM_APDU [11:26:03]CAPDU: 80 0D 02 02 FA 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 64 19 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [11:26:03]Write to MH i2c: E2 02 01 F7 55 80 0D 02 02 FA 00 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 64 19 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 20 [11:26:03]Write i2c OK [11:26:03]MH_I2C_Read... [11:26:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:03]Read from MH i2c: E2 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 03 00 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 03 00 F7 55 00 90 00 C0 [11:26:03]RAPDU: 90 00 [11:26:03]wFMCommunicate OK [11:26:03]wFMCommunicate request_size=146 [11:26:03]MH_SAM_APDU [11:26:03]CAPDU: 80 0D 02 02 8D 03 06 00 BE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 C4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 CF BA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9E 22 02 00 35 04 06 00 95 2E 31 8C 36 2B [11:26:03]Write to MH i2c: E2 95 00 F8 55 80 0D 02 02 8D 00 03 06 00 BE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 C4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 CF BA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9E 22 02 00 35 04 06 00 95 2E 31 8C 36 2B 00 00 D3 [11:26:03]Write i2c OK [11:26:03]MH_I2C_Read... [11:26:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:03]Read from MH i2c: E2 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 03 00 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 03 00 F8 55 00 90 00 C1 [11:26:03]RAPDU: 90 00 [11:26:03]wFMCommunicate OK [11:26:03]wFMCommunicate request_size=4 [11:26:03]MH_SAM_APDU [11:26:03]CAPDU: 80 0D 03 02 [11:26:03]Write to MH i2c: E2 08 00 F9 55 80 0D 03 02 00 00 00 00 C9 [11:26:03]Write i2c OK [11:26:03]MH_I2C_Read... [11:26:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:03]Read from MH i2c: E2 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 0B 00 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 0B 00 F9 55 00 82 06 84 48 28 44 C8 37 90 00 89 [11:26:03]RAPDU: 82 06 84 48 28 44 C8 37 90 00 [11:26:03]wFMCommunicate OK [11:26:03]SAM_PROTO_SignData done [11:26:03]FM_MakeSignedData done [11:26:03]CreateOFDProtocolMessage [11:26:03]wFMCommunicate request_size=4 [11:26:03]MH_SAM_APDU [11:26:03]CAPDU: 80 11 00 00 [11:26:03]Write to MH i2c: E2 08 00 FA 55 80 11 00 00 00 00 00 00 C9 [11:26:03]Write i2c OK [11:26:03]MH_I2C_Read... [11:26:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:03]Read from MH i2c: E2 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 17 00 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 17 00 FA 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 24 [11:26:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:26:03]wFMCommunicate OK [11:26:03]CreateOFDProtocolMessage done [11:26:03]OFDSenderStorePacket 139934 [11:26:03]StoreOFDPacket docnum=139934 [11:26:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 91 02 00 00 39 5F 89 02 50 15 5A 03 01 00 03 00 7D 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 64 19 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 C4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 CF BA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9E 22 02 00 35 04 06 00 95 2E 31 8C 36 2B 82 06 84 48 28 44 C8 37 [11:26:03]CheckFolder [11:26:03]dirname=/storage/ofd_packets [11:26:03]CheckFolder done [11:26:03]ProducePacketName [11:26:03]name=ofd_packets/00139934 [11:26:03]NVStorageSaveData ofd_packets/00139934 [11:26:03]File name is /storage/ofd_packets/00139934 [11:26:03]Write 687 bytes [11:26:03]NVStorageSaveData done [11:26:03]OFDSenderStorePacket done [11:26:03]KKMCreateOFDPacket done [11:26:03]NVStorageSaveData kkm_last_timestamp [11:26:03]File name is /storage/kkm_last_timestamp [11:26:03]Write 4 bytes [11:26:03]NVStorageSaveData done [11:26:03]ExternCall_PrintAddStr [11:26:03]wPrintStart [11:26:03]Write to MH i2c: 01 00 00 FB 55 50 [11:26:03]Write i2c OK [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: 01 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: 01 07 00 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: 01 07 00 FB 55 00 00 00 00 00 FF 0F 65 [11:26:03]RasterBufferAndPrint [11:26:03]line Счет N : (3)335756 [11:26:03]line ИНН: 02508201610067 [11:26:03]line Контрольно-Кассовый Чек [11:26:03]line ПРОДАЖА [11:26:03]line Товар: 4700003010476 [11:26:03]line Напиток Let`s Go! с/с яблоко ПЭТ 1л [11:26:03]line 1.000 * 80.00 [11:26:04]line = 80.00 [11:26:04]line НДС 12% НСП 1% [11:26:04]line > о реализуемом товаре [11:26:04]line Товар: 48741958 [11:26:04]line Сигареты Parliament Aqua Blue [11:26:04]line 1.000 * 160.00 [11:26:04]line = 160.00 [11:26:04]line НДС 12% НСП 1% [11:26:04]line > о реализуемом товаре [11:26:04]line Товар: 2000032780015 [11:26:04]line Слойка DC треугольная курица 110г [11:26:04]line 4.000 * 65.00 [11:26:04]line = 260.00 [11:26:04]line НДС 12% НСП 1% [11:26:04]line > о реализуемом товаре [11:26:04]line Товар: 2000031750019 [11:26:04]line Пакет Партнер Нефть [11:26:04]line 1.000 * 4.00 [11:26:04]line = 4.00 [11:26:04]line НДС 12% НСП 1% [11:26:04]line > о реализуемом товаре [11:26:04]line ИТОГО: 504.00 [11:26:04]line НСП 1% : 4.46 [11:26:04]line НДС 12% : 53.52 [11:26:04]line Наличными: 0.00 [11:26:04]line Безнал.: 504.00 [11:26:04]line Место: АЗС № 101 "Партнер Нефть" [11:26:04]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:26:04]line СНО: Общий режим [11:26:04]line Чек 115 01.11.2024 11:26 [11:26:04]line Смена: 558 ФФД: 1.0 [11:26:04]line ЗНМ: 0300000081 [11:26:04]line РНМ: 0000000000091631 [11:26:04]line Версия ККМ: 001 [11:26:04]line Платежная система: Mbank [11:26:04]line ФМ: 0000000000874669 [11:26:04]line ФД: 139934 [11:26:04]line ФПД: 164025632306731 [11:26:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T112607&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139934&fm=164025632306731&tin=02508201610067®Number=0000000000091631&sum=50400 [11:26:04]line 0 [11:26:04]OFD Sender: Processing packet 139934 [packets to send 34, broken 33] [11:26:04]ProducePacketName [11:26:04]name=ofd_packets/00139934 [11:26:04]OFD Sender: To server: pG, [11:26:04]CommunicateWithHost lk.salyk.kg:30040 [11:26:04]ConnectInit lk.salyk.kg [11:26:04]written 0, free lines is 4095 [11:26:04]Connected sock=10 [11:26:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 91 02 00 00 39 5F 89 02 50 15 5A 03 01 00 03 00 7D 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 64 19 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 C4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 CF BA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9E 22 02 00 35 04 06 00 95 2E 31 8C 36 2B 82 06 84 48 28 44 C8 37 [11:26:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 B4 E0 47 00 A7 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9E 22 02 00 F4 03 04 00 7A 66 24 67 B6 04 01 00 00 1B 10 1F 45 43 8D DD 9F [11:26:04]CommunicateWithHost err = 0 [11:26:04]CheckOFDResponse [11:26:04]1017 (14) - 77093643461234 [11:26:04]1041 (16) - 0000000000874669 [11:26:04]1040 (4) - 139934 [11:26:04]1012 (4) - 01.11.2024 05:26 [11:26:04]1206 (1) - 0 [11:26:04]OFD Sender: Remove packet 139934 [11:26:04]ProducePacketName [11:26:04]name=ofd_packets/00139934 [11:26:04]NVStorageDeleteData [11:26:04]Write to MH i2c: 01 00 00 39 56 8F [11:26:04]Write i2c OK [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: 01 [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: 01 07 00 [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: 01 07 00 39 56 00 00 00 00 00 ED 0B 8E [11:26:04]RasterBufferAndPrint [11:26:04]line [11:26:04]line [11:26:04]line [11:26:04]line [11:26:04]line [11:26:04]written 0, free lines is 3062 [11:26:04]MH_Cut [11:26:04]Write to MH i2c: D1 01 00 40 56 01 68 [11:26:04]Write i2c OK [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: D1 [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: D1 01 00 [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: D1 01 00 40 56 00 67 [11:26:04]Write to MH i2c: 01 00 00 41 56 97 [11:26:04]Write i2c OK [11:26:04]MH_I2C_Read... [11:26:04]OFD Sender: No OFD packet to send [11:26:05]*** Cut start [11:26:05]*** Partial cut [11:26:05]*** CUTSNS_PIN = 1 [11:26:05]*** CUTSNS_PIN = 0 [11:26:05]*** Brake cut motor [11:26:06]Read from MH i2c: 01 [11:26:06]MH_I2C_Read... [11:26:06]*** Stop cut motor [11:26:06]*** Cut end [11:26:06]Read from MH i2c: 01 07 00 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: 01 07 00 41 56 00 00 00 00 00 FF 0F AC [11:26:06]process_action close_receipt done [11:26:06]requested_data is exist [11:26:06]produce_requested_data [11:26:06]requested_item fm.sn is exist - process it [11:26:06]wFMCommunicate request_size=4 [11:26:06]MH_SAM_APDU [11:26:06]CAPDU: 80 11 00 00 [11:26:06]Write to MH i2c: E2 08 00 42 56 80 11 00 00 00 00 00 00 12 [11:26:06]Write i2c OK [11:26:06]MH_I2C_Read... [11:26:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:06]Read from MH i2c: E2 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: E2 17 00 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: E2 17 00 42 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6D [11:26:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:26:06]wFMCommunicate OK [11:26:06]requested_item fd.num is exist - process it [11:26:06]SAM_PROTO_GetFieldsCounters [11:26:06]wFMCommunicate request_size=4 [11:26:06]MH_SAM_APDU [11:26:06]CAPDU: 80 13 00 00 [11:26:06]Write to MH i2c: E2 08 00 43 56 80 13 00 00 00 00 00 00 15 [11:26:06]Write i2c OK [11:26:06]MH_I2C_Read... [11:26:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:06]Read from MH i2c: E2 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: E2 62 00 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: E2 62 00 43 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 9E 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [11:26: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 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 9E 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:06]wFMCommunicate OK [11:26:06]SAM_PROTO_GetFieldsCounters done [11:26:06]requested_item shift.num is exist - process it [11:26:06]requested_item shift.opened is exist - process it [11:26:06]req_shift_opened [11:26:06]FM_GetShiftState [11:26:06]SAM_PROTO_GetShiftState [11:26:06]wFMCommunicate request_size=4 [11:26:06]MH_SAM_APDU [11:26:06]CAPDU: 80 13 01 00 [11:26:06]Write to MH i2c: E2 08 00 44 56 80 13 01 00 00 00 00 00 17 [11:26:06]Write i2c OK [11:26:06]MH_I2C_Read... [11:26:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:06]Read from MH i2c: E2 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: E2 0E 00 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: E2 0E 00 44 56 00 09 00 01 89 19 24 67 00 00 00 00 90 00 50 [11:26:06]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:26:06]wFMCommunicate OK [11:26:06]SAM_PROTO_GetShiftState done [11:26:06]FM_GetShiftState done [11:26:06]req_shift_opened done [11:26:06]requested_item shift.open_date is exist - process it [11:26:06]req_shift_open_date [11:26:06]req_shift_open_date done [11:26:06]produce_requested_data done [11:26:06]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139934,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [11:26:06]process_action_free close_receipt [11:26:06]json_value_free [11:26:06]json_value_free done [11:26:06]process_json_proto returns [11:26:06]Send response to host [11:26:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139934,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [11:26:06]free response buf [11:26:06]execute_script done [11:26:06]execute_script returns [11:26:06]free content buf [11:26:06]Sock 9.Close socket [11:26:06]Sock 9.Thread stoped [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]accept exits with 7 [11:27:19]New connection [11:27:19]New thread 3066510692 created [11:27:19]Thread 3066654052 joined [11:27:19]Waiting for new connection... [11:27:19] Sock 7.Parse request [11:27:19]Sock 7.Check first char [11:27:19]Sock 7.First char is OK [11:27:19]request: POST /json_proto HTTP/1.0 [11:27:19]Method: POST [11:27:19]URL: /json_proto [11:27:19]Method is POST - this is cgi request [11:27:19]url: /json_proto [11:27:19]query_string will be loaded in cgi processing [11:27:19]execute_cgi json_proto POST (null) [11:27:19]execute_cgi path=json_proto method=POST [11:27:19]POST find Content-Length [11:27:19]Host: 172.17.50.196:8080 [11:27:19]Content-Length: 695 [11:27:19]Content-Type: application/json [11:27:19] [11:27:19]POST finish read [11:27:19]Found Content-Length = 695 [11:27:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 139930, "base_FM": "0000000000874669", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335752", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "139930" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:19]execute_script... [11:27:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 139930, "base_FM": "0000000000874669", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335752", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "139930" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:19]POST & json_proto [11:27:19]process_json_proto [11:27:19]json parsed OK: [11:27:19]protocol is kg_v1.0 [11:27:19]action value=close_receipt [11:27:19]process_action close_receipt [11:27:19]cmd_close_receipt [11:27:19]MH_GetDate [11:27:19]Write to MH i2c: F0 00 00 45 56 8A [11:27:19]Write i2c OK [11:27:19]MH_I2C_Read... [11:27:19]Read from MH i2c: F0 [11:27:19]MH_I2C_Read... [11:27:19]Read from MH i2c: F0 09 00 [11:27:19]MH_I2C_Read... [11:27:19]Read from MH i2c: F0 09 00 45 56 00 1D BB 24 67 72 0D 1C 67 F8 [11:27:19]GetLastDocTimeStamp 1730460367 [11:27:19]current date 1730460445 [11:27:19]FM_GetShiftState [11:27:19]SAM_PROTO_GetShiftState [11:27:19]wFMCommunicate request_size=4 [11:27:19]MH_SAM_APDU [11:27:19]CAPDU: 80 13 01 00 [11:27:19]Write to MH i2c: E2 08 00 46 56 80 13 01 00 00 00 00 00 19 [11:27:19]Write i2c OK [11:27:19]MH_I2C_Read... [11:27:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:19]Read from MH i2c: E2 [11:27:19]MH_I2C_Read... [11:27:19]Read from MH i2c: E2 0E 00 [11:27:19]MH_I2C_Read... [11:27:19]Read from MH i2c: E2 0E 00 46 56 00 09 00 01 89 19 24 67 00 00 00 00 90 00 52 [11:27:19]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:27:19]wFMCommunicate OK [11:27:19]SAM_PROTO_GetShiftState done [11:27:19]FM_GetShiftState done [11:27:19]opened in 1730419081 [11:27:19]opened+sec_in_day 1730505481 [11:27:19]quantity*price = 13900 [11:27:19]sum+1 = 13901 [11:27:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 116 01.11.2024 11:27 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФД осн.: 139930 ФМ осн.: 0000000000874669 ФМ: 0000000000874669 ФД: 139935 ФПД: 78784341818991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T112725&type=2&operation_type=1&fn_number=0000000000874669&fd_number=139935&fm=78784341818991&tin=02508201610067®Number=0000000000091631&sum=13900 139930 [11:27:20]StoreToDocumentArchive [11:27:20]shift 558 fd 139935 [11:27:20]save to /storage/0558/doc_00139935 [11:27:20]save last doc name /storage/0558/doc_00139935 to /storage/kkm_last_doc_name [11:27:20]save OK [11:27:20]Clear old archive folders... [11:27:20]ProcessDocumentItem done err = 0, tmpTLVsize=313 [11:27:20]tlvbuf is 00AE6160 [11:27:20]SAM_PROTO_ClearQueue [11:27:20]wFMCommunicate request_size=4 [11:27:20]MH_SAM_APDU [11:27:20]CAPDU: 80 09 00 00 [11:27:20]Write to MH i2c: E2 08 00 55 56 80 09 00 00 00 00 00 00 1D [11:27:20]Write i2c OK [11:27:20]MH_I2C_Read... [11:27:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:21]Read from MH i2c: E2 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 03 00 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 03 00 55 56 00 90 00 1F [11:27:21]RAPDU: 90 00 [11:27:21]wFMCommunicate OK [11:27:21]SAM_PROTO_ClearQueue done [11:27:21]KKMCreateOFDPacket [11:27:21]OFDProtocolAddRootSTLVToBuf [11:27:21]FM_MakeSignedData [11:27:21]FM_MakeSignedData [11:27:21]SAM_PROTO_SignData [11:27:21]wFMCommunicate request_size=4 [11:27:21]MH_SAM_APDU [11:27:21]CAPDU: 80 0D 01 02 [11:27:21]Write to MH i2c: E2 08 00 56 56 80 0D 01 02 00 00 00 00 25 [11:27:21]Write i2c OK [11:27:21]MH_I2C_Read... [11:27:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:21]Read from MH i2c: E2 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 03 00 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 03 00 56 56 00 90 00 20 [11:27:21]RAPDU: 90 00 [11:27:21]wFMCommunicate OK [11:27:21]wFMCommunicate request_size=255 [11:27:21]MH_SAM_APDU [11:27:21]CAPDU: 80 0D 02 02 FA 03 00 39 01 1E 04 01 00 02 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 1D BB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 [11:27:21]Write to MH i2c: E2 02 01 57 56 80 0D 02 02 FA 00 03 00 39 01 1E 04 01 00 02 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 1D BB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 00 00 94 [11:27:21]Write i2c OK [11:27:21]MH_I2C_Read... [11:27:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:21]Read from MH i2c: E2 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 03 00 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 03 00 57 56 00 90 00 21 [11:27:21]RAPDU: 90 00 [11:27:21]wFMCommunicate OK [11:27:21]wFMCommunicate request_size=72 [11:27:21]MH_SAM_APDU [11:27:21]CAPDU: 80 0D 02 02 43 31 27 04 04 00 9A 22 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9F 22 02 00 35 04 06 00 47 A7 68 B5 3E 6F [11:27:21]Write to MH i2c: E2 4B 00 58 56 80 0D 02 02 43 00 31 27 04 04 00 9A 22 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9F 22 02 00 35 04 06 00 47 A7 68 B5 3E 6F 00 00 4F [11:27:21]Write i2c OK [11:27:21]MH_I2C_Read... [11:27:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:21]Read from MH i2c: E2 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 03 00 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 03 00 58 56 00 90 00 22 [11:27:21]RAPDU: 90 00 [11:27:21]wFMCommunicate OK [11:27:21]wFMCommunicate request_size=4 [11:27:21]MH_SAM_APDU [11:27:21]CAPDU: 80 0D 03 02 [11:27:21]Write to MH i2c: E2 08 00 59 56 80 0D 03 02 00 00 00 00 2A [11:27:21]Write i2c OK [11:27:21]MH_I2C_Read... [11:27:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:21]Read from MH i2c: E2 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 0B 00 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 0B 00 59 56 00 F2 89 17 D9 03 F7 96 E5 90 00 0B [11:27:21]RAPDU: F2 89 17 D9 03 F7 96 E5 90 00 [11:27:21]wFMCommunicate OK [11:27:21]SAM_PROTO_SignData done [11:27:21]FM_MakeSignedData done [11:27:21]CreateOFDProtocolMessage [11:27:21]wFMCommunicate request_size=4 [11:27:21]MH_SAM_APDU [11:27:21]CAPDU: 80 11 00 00 [11:27:21]Write to MH i2c: E2 08 00 5A 56 80 11 00 00 00 00 00 00 2A [11:27:21]Write i2c OK [11:27:21]MH_I2C_Read... [11:27:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:21]Read from MH i2c: E2 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 17 00 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 17 00 5A 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 85 [11:27:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:27:21]wFMCommunicate OK [11:27:21]CreateOFDProtocolMessage done [11:27:21]OFDSenderStorePacket 139935 [11:27:21]StoreOFDPacket docnum=139935 [11:27:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4D 01 00 00 9C 6E 45 01 9E 5A 5A 03 01 00 03 00 39 01 1E 04 01 00 02 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 1D BB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 27 04 04 00 9A 22 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9F 22 02 00 35 04 06 00 47 A7 68 B5 3E 6F F2 89 17 D9 03 F7 96 E5 [11:27:21]CheckFolder [11:27:21]dirname=/storage/ofd_packets [11:27:21]CheckFolder done [11:27:21]ProducePacketName [11:27:21]name=ofd_packets/00139935 [11:27:21]NVStorageSaveData ofd_packets/00139935 [11:27:21]File name is /storage/ofd_packets/00139935 [11:27:21]Write 363 bytes [11:27:21]NVStorageSaveData done [11:27:21]OFDSenderStorePacket done [11:27:21]KKMCreateOFDPacket done [11:27:21]NVStorageSaveData kkm_last_timestamp [11:27:21]File name is /storage/kkm_last_timestamp [11:27:21]Write 4 bytes [11:27:21]NVStorageSaveData done [11:27:21]ExternCall_PrintAddStr [11:27:21]wPrintStart [11:27:21]Write to MH i2c: 01 00 00 5B 56 B1 [11:27:21]Write i2c OK [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: 01 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: 01 07 00 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: 01 07 00 5B 56 00 00 00 00 00 FF 0F C6 [11:27:21]RasterBufferAndPrint [11:27:21]line Счет N : (3)335752 [11:27:21]line ИНН: 02508201610067 [11:27:21]line Контрольно-Кассовый Чек [11:27:21]line ВОЗВРАТ ПРОДАЖИ [11:27:21]line Товар: 48745291 [11:27:21]line Сигареты Parliament SOHO NYC COMPACT BLU [11:27:21]line 1.000 * 139.00 [11:27:21]line = 139.00 [11:27:21]line НДС 12% НСП 1% [11:27:21]line > о реализуемом товаре [11:27:21]line ИТОГО: 139.00 [11:27:21]line НСП 1% : 1.23 [11:27:21]line НДС 12% : 14.76 [11:27:21]line Наличными: 139.00 [11:27:21]line Безнал.: 0.00 [11:27:21]line Место: АЗС № 101 "Партнер Нефть" [11:27:21]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:27:21]line СНО: Общий режим [11:27:21]line Чек 116 01.11.2024 11:27 [11:27:21]line Смена: 558 ФФД: 1.0 [11:27:21]line ЗНМ: 0300000081 [11:27:21]line РНМ: 0000000000091631 [11:27:21]line Версия ККМ: 001 [11:27:21]line ФД осн.: 139930 [11:27:21]line ФМ осн.: 0000000000874669 [11:27:21]line ФМ: 0000000000874669 [11:27:21]line ФД: 139935 [11:27:21]line ФПД: 78784341818991 [11:27:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T112725&type=2&operation_type=1&fn_number=0000000000874669&fd_number=139935&fm=78784341818991&tin=02508201610067®Number=0000000000091631&sum=13900 [11:27:21]line 139930 [11:27:21]OFD Sender: Processing packet 139935 [packets to send 34, broken 33] [11:27:21]ProducePacketName [11:27:21]name=ofd_packets/00139935 [11:27:21]OFD Sender: To server: pG, [11:27:21]CommunicateWithHost lk.salyk.kg:30040 [11:27:21]ConnectInit lk.salyk.kg [11:27:21]written 0, free lines is 4095 [11:27:21]Connected sock=10 [11:27:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4D 01 00 00 9C 6E 45 01 9E 5A 5A 03 01 00 03 00 39 01 1E 04 01 00 02 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 1D BB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 27 04 04 00 9A 22 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9F 22 02 00 35 04 06 00 47 A7 68 B5 3E 6F F2 89 17 D9 03 F7 96 E5 [11:27:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 70 0A 47 00 3D 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9F 22 02 00 F4 03 04 00 C8 66 24 67 B6 04 01 00 00 82 02 95 7D EA 37 DD 6B [11:27:22]CommunicateWithHost err = 0 [11:27:22]CheckOFDResponse [11:27:22]1017 (14) - 77093643461234 [11:27:22]1041 (16) - 0000000000874669 [11:27:22]1040 (4) - 139935 [11:27:22]1012 (4) - 01.11.2024 05:27 [11:27:22]1206 (1) - 0 [11:27:22]OFD Sender: Remove packet 139935 [11:27:22]ProducePacketName [11:27:22]name=ofd_packets/00139935 [11:27:22]NVStorageDeleteData [11:27:22]Write to MH i2c: 01 00 00 86 56 DC [11:27:22]Write i2c OK [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: 01 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: 01 07 00 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: 01 07 00 86 56 00 00 00 00 00 FA 0C E9 [11:27:22]RasterBufferAndPrint [11:27:22]line [11:27:22]line [11:27:22]line [11:27:22]line [11:27:22]line [11:27:22]written 0, free lines is 3329 [11:27:22]MH_Cut [11:27:22]Write to MH i2c: D1 01 00 8D 56 01 B5 [11:27:22]Write i2c OK [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: D1 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: D1 01 00 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: D1 01 00 8D 56 00 B4 [11:27:22]Write to MH i2c: 01 00 00 8E 56 E4 [11:27:22]Write i2c OK [11:27:22]MH_I2C_Read... [11:27:22]OFD Sender: No OFD packet to send [11:27:23]*** Cut start [11:27:23]*** Partial cut [11:27:23]*** CUTSNS_PIN = 1 [11:27:23]*** CUTSNS_PIN = 0 [11:27:23]*** Brake cut motor [11:27:23]Read from MH i2c: 01 [11:27:23]MH_I2C_Read... [11:27:23]*** Stop cut motor [11:27:23]*** Cut end [11:27:23]Read from MH i2c: 01 07 00 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: 01 07 00 8E 56 00 00 00 00 00 FF 0F F9 [11:27:23]process_action close_receipt done [11:27:23]requested_data is exist [11:27:23]produce_requested_data [11:27:23]requested_item fm.sn is exist - process it [11:27:23]wFMCommunicate request_size=4 [11:27:23]MH_SAM_APDU [11:27:23]CAPDU: 80 11 00 00 [11:27:23]Write to MH i2c: E2 08 00 8F 56 80 11 00 00 00 00 00 00 5F [11:27:23]Write i2c OK [11:27:23]MH_I2C_Read... [11:27:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:23]Read from MH i2c: E2 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 17 00 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 17 00 8F 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BA [11:27:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:27:23]wFMCommunicate OK [11:27:23]requested_item fd.num is exist - process it [11:27:23]SAM_PROTO_GetFieldsCounters [11:27:23]wFMCommunicate request_size=4 [11:27:23]MH_SAM_APDU [11:27:23]CAPDU: 80 13 00 00 [11:27:23]Write to MH i2c: E2 08 00 90 56 80 13 00 00 00 00 00 00 62 [11:27:23]Write i2c OK [11:27:23]MH_I2C_Read... [11:27:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:23]Read from MH i2c: E2 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 62 00 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 62 00 90 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 9F 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [11:27:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 9F 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:23]wFMCommunicate OK [11:27:23]SAM_PROTO_GetFieldsCounters done [11:27:23]requested_item shift.num is exist - process it [11:27:23]requested_item shift.opened is exist - process it [11:27:23]req_shift_opened [11:27:23]FM_GetShiftState [11:27:23]SAM_PROTO_GetShiftState [11:27:23]wFMCommunicate request_size=4 [11:27:23]MH_SAM_APDU [11:27:23]CAPDU: 80 13 01 00 [11:27:23]Write to MH i2c: E2 08 00 91 56 80 13 01 00 00 00 00 00 64 [11:27:23]Write i2c OK [11:27:23]MH_I2C_Read... [11:27:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:23]Read from MH i2c: E2 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 0E 00 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 0E 00 91 56 00 09 00 01 89 19 24 67 00 00 00 00 90 00 9D [11:27:23]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:27:23]wFMCommunicate OK [11:27:23]SAM_PROTO_GetShiftState done [11:27:23]FM_GetShiftState done [11:27:23]req_shift_opened done [11:27:23]requested_item shift.open_date is exist - process it [11:27:23]req_shift_open_date [11:27:23]req_shift_open_date done [11:27:23]produce_requested_data done [11:27:23]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139935,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [11:27:23]process_action_free close_receipt [11:27:23]json_value_free [11:27:23]json_value_free done [11:27:23]process_json_proto returns [11:27:23]Send response to host [11:27:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139935,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [11:27:23]free response buf [11:27:23]execute_script done [11:27:23]execute_script returns [11:27:23]free content buf [11:27:23]Sock 7.Close socket [11:27:23]Sock 7.Thread stoped [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:34]accept exits with 9 [11:27:34]New connection [11:27:34]New thread 3066654052 created [11:27:34]Thread 3066510692 joined [11:27:34]Waiting for new connection... [11:27:34] Sock 9.Parse request [11:27:34]Sock 9.Check first char [11:27:34]Sock 9.First char is OK [11:27:34]request: POST /json_proto HTTP/1.0 [11:27:34]Method: POST [11:27:34]URL: /json_proto [11:27:34]Method is POST - this is cgi request [11:27:34]url: /json_proto [11:27:34]query_string will be loaded in cgi processing [11:27:34]execute_cgi json_proto POST (null) [11:27:34]execute_cgi path=json_proto method=POST [11:27:34]POST find Content-Length [11:27:34]Host: 172.17.50.196:8080 [11:27:34]Content-Length: 633 [11:27:34]Content-Type: application/json [11:27:34] [11:27:34]POST finish read [11:27:34]Found Content-Length = 633 [11:27:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335757", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:34]execute_script... [11:27: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)335757", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:34]POST & json_proto [11:27:34]process_json_proto [11:27:34]json parsed OK: [11:27:34]protocol is kg_v1.0 [11:27:34]action value=close_receipt [11:27:34]process_action close_receipt [11:27:34]cmd_close_receipt [11:27:34]MH_GetDate [11:27:34]Write to MH i2c: F0 00 00 92 56 D7 [11:27:34]Write i2c OK [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: F0 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: F0 09 00 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: F0 09 00 92 56 00 2C BB 24 67 72 0D 1C 67 54 [11:27:34]GetLastDocTimeStamp 1730460445 [11:27:34]current date 1730460460 [11:27:34]FM_GetShiftState [11:27:34]SAM_PROTO_GetShiftState [11:27:34]wFMCommunicate request_size=4 [11:27:34]MH_SAM_APDU [11:27:34]CAPDU: 80 13 01 00 [11:27:34]Write to MH i2c: E2 08 00 93 56 80 13 01 00 00 00 00 00 66 [11:27:34]Write i2c OK [11:27:34]MH_I2C_Read... [11:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:34]Read from MH i2c: E2 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 0E 00 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 0E 00 93 56 00 09 00 01 89 19 24 67 00 00 00 00 90 00 9F [11:27:34]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:27:34]wFMCommunicate OK [11:27:34]SAM_PROTO_GetShiftState done [11:27:34]FM_GetShiftState done [11:27:34]opened in 1730419081 [11:27:34]opened+sec_in_day 1730505481 [11:27:34]quantity*price = 13900 [11:27:34]sum+1 = 13901 [11:27:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 117 01.11.2024 11:27 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139936 ФПД: 93281273758528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T112740&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139936&fm=93281273758528&tin=02508201610067®Number=0000000000091631&sum=13900 0 [11:27:35]StoreToDocumentArchive [11:27:35]shift 558 fd 139936 [11:27:35]save to /storage/0558/doc_00139936 [11:27:35]save last doc name /storage/0558/doc_00139936 to /storage/kkm_last_doc_name [11:27:35]save OK [11:27:35]Clear old archive folders... [11:27:35]ProcessDocumentItem done err = 0, tmpTLVsize=285 [11:27:35]tlvbuf is B6E916A0 [11:27:35]SAM_PROTO_ClearQueue [11:27:35]wFMCommunicate request_size=4 [11:27:35]MH_SAM_APDU [11:27:35]CAPDU: 80 09 00 00 [11:27:35]Write to MH i2c: E2 08 00 A0 56 80 09 00 00 00 00 00 00 68 [11:27:35]Write i2c OK [11:27:35]MH_I2C_Read... [11:27:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:35]Read from MH i2c: E2 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: E2 03 00 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: E2 03 00 A0 56 00 90 00 6A [11:27:35]RAPDU: 90 00 [11:27:35]wFMCommunicate OK [11:27:35]SAM_PROTO_ClearQueue done [11:27:35]KKMCreateOFDPacket [11:27:35]OFDProtocolAddRootSTLVToBuf [11:27:35]FM_MakeSignedData [11:27:35]FM_MakeSignedData [11:27:35]SAM_PROTO_SignData [11:27:35]wFMCommunicate request_size=4 [11:27:35]MH_SAM_APDU [11:27:35]CAPDU: 80 0D 01 02 [11:27:35]Write to MH i2c: E2 08 00 A1 56 80 0D 01 02 00 00 00 00 70 [11:27:35]Write i2c OK [11:27:35]MH_I2C_Read... [11:27:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:36]Read from MH i2c: E2 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 03 00 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 03 00 A1 56 00 90 00 6B [11:27:36]RAPDU: 90 00 [11:27:36]wFMCommunicate OK [11:27:36]wFMCommunicate request_size=255 [11:27:36]MH_SAM_APDU [11:27:36]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 2C BB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 [11:27:36]Write to MH i2c: E2 02 01 A2 56 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 2C BB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 00 00 D2 [11:27:36]Write i2c OK [11:27:36]MH_I2C_Read... [11:27:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:36]Read from MH i2c: E2 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 03 00 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 03 00 A2 56 00 90 00 6C [11:27:36]RAPDU: 90 00 [11:27:36]wFMCommunicate OK [11:27:36]wFMCommunicate request_size=44 [11:27:36]MH_SAM_APDU [11:27:36]CAPDU: 80 0D 02 02 27 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A0 22 02 00 35 04 06 00 54 D6 BD 2F C3 40 [11:27:36]Write to MH i2c: E2 2F 00 A3 56 80 0D 02 02 27 00 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A0 22 02 00 35 04 06 00 54 D6 BD 2F C3 40 00 00 73 [11:27:36]Write i2c OK [11:27:36]MH_I2C_Read... [11:27:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:36]Read from MH i2c: E2 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 03 00 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 03 00 A3 56 00 90 00 6D [11:27:36]RAPDU: 90 00 [11:27:36]wFMCommunicate OK [11:27:36]wFMCommunicate request_size=4 [11:27:36]MH_SAM_APDU [11:27:36]CAPDU: 80 0D 03 02 [11:27:36]Write to MH i2c: E2 08 00 A4 56 80 0D 03 02 00 00 00 00 75 [11:27:36]Write i2c OK [11:27:36]MH_I2C_Read... [11:27:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:36]Read from MH i2c: E2 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 0B 00 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 0B 00 A4 56 00 CF D0 0B D7 6C 45 D6 8A 90 00 08 [11:27:36]RAPDU: CF D0 0B D7 6C 45 D6 8A 90 00 [11:27:36]wFMCommunicate OK [11:27:36]SAM_PROTO_SignData done [11:27:36]FM_MakeSignedData done [11:27:36]CreateOFDProtocolMessage [11:27:36]wFMCommunicate request_size=4 [11:27:36]MH_SAM_APDU [11:27:36]CAPDU: 80 11 00 00 [11:27:36]Write to MH i2c: E2 08 00 A5 56 80 11 00 00 00 00 00 00 75 [11:27:36]Write i2c OK [11:27:36]MH_I2C_Read... [11:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:36]Read from MH i2c: E2 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 17 00 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 17 00 A5 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D0 [11:27:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:27:36]wFMCommunicate OK [11:27:36]CreateOFDProtocolMessage done [11:27:36]OFDSenderStorePacket 139936 [11:27:36]StoreOFDPacket docnum=139936 [11:27:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 31 01 00 00 00 3F 29 01 20 AA 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 2C BB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A0 22 02 00 35 04 06 00 54 D6 BD 2F C3 40 CF D0 0B D7 6C 45 D6 8A [11:27:36]CheckFolder [11:27:36]dirname=/storage/ofd_packets [11:27:36]CheckFolder done [11:27:36]ProducePacketName [11:27:36]name=ofd_packets/00139936 [11:27:36]NVStorageSaveData ofd_packets/00139936 [11:27:36]File name is /storage/ofd_packets/00139936 [11:27:36]Write 335 bytes [11:27:36]NVStorageSaveData done [11:27:36]OFDSenderStorePacket done [11:27:36]KKMCreateOFDPacket done [11:27:36]NVStorageSaveData kkm_last_timestamp [11:27:36]File name is /storage/kkm_last_timestamp [11:27:36]Write 4 bytes [11:27:36]NVStorageSaveData done [11:27:36]ExternCall_PrintAddStr [11:27:36]wPrintStart [11:27:36]Write to MH i2c: 01 00 00 A6 56 FC [11:27:36]Write i2c OK [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: 01 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: 01 07 00 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: 01 07 00 A6 56 00 00 00 00 00 FF 0F 11 [11:27:36]RasterBufferAndPrint [11:27:36]line Счет N : (3)335757 [11:27:36]line ИНН: 02508201610067 [11:27:36]line Контрольно-Кассовый Чек [11:27:36]line ПРОДАЖА [11:27:36]line Товар: 48745291 [11:27:36]line Сигареты Parliament SOHO NYC COMPACT BLU [11:27:36]line 1.000 * 139.00 [11:27:36]line = 139.00 [11:27:36]line НДС 12% НСП 1% [11:27:36]line > о реализуемом товаре [11:27:36]line ИТОГО: 139.00 [11:27:36]line НСП 1% : 1.23 [11:27:36]line НДС 12% : 14.76 [11:27:36]line Наличными: 139.00 [11:27:36]line Безнал.: 0.00 [11:27:36]line Место: АЗС № 101 "Партнер Нефть" [11:27:36]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:27:36]line СНО: Общий режим [11:27:36]line Чек 117 01.11.2024 11:27 [11:27:36]line Смена: 558 ФФД: 1.0 [11:27:36]line ЗНМ: 0300000081 [11:27:36]line РНМ: 0000000000091631 [11:27:36]line Версия ККМ: 001 [11:27:36]line ФМ: 0000000000874669 [11:27:36]line ФД: 139936 [11:27:36]line ФПД: 93281273758528 [11:27:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T112740&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139936&fm=93281273758528&tin=02508201610067®Number=0000000000091631&sum=13900 [11:27:36]line 0 [11:27:36]OFD Sender: Processing packet 139936 [packets to send 34, broken 33] [11:27:36]ProducePacketName [11:27:36]name=ofd_packets/00139936 [11:27:36]OFD Sender: To server: pG, [11:27:36]CommunicateWithHost lk.salyk.kg:30040 [11:27:36]ConnectInit lk.salyk.kg [11:27:36]written 0, free lines is 4095 [11:27:36]Connected sock=11 [11:27:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 31 01 00 00 00 3F 29 01 20 AA 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 2C BB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A0 22 02 00 35 04 06 00 54 D6 BD 2F C3 40 CF D0 0B D7 6C 45 D6 8A [11:27:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 21 7C 47 00 A9 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 34 36 36 39 10 04 04 00 A0 22 02 00 F4 03 04 00 D7 66 24 67 B6 04 01 00 00 B0 16 E2 0C F2 C6 73 3C [11:27:37]CommunicateWithHost err = 0 [11:27:37]CheckOFDResponse [11:27:37]1017 (14) - 77093643461234 [11:27:37]1041 (16) - 0000000000874669 [11:27:37]1040 (4) - 139936 [11:27:37]1012 (4) - 01.11.2024 05:27 [11:27:37]1206 (1) - 0 [11:27:37]OFD Sender: Remove packet 139936 [11:27:37]ProducePacketName [11:27:37]name=ofd_packets/00139936 [11:27:37]NVStorageDeleteData [11:27:37]Write to MH i2c: 01 00 00 CF 56 25 [11:27:37]Write i2c OK [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: 01 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: 01 07 00 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: 01 07 00 CF 56 00 00 00 00 00 FA 0C 32 [11:27:37]RasterBufferAndPrint [11:27:37]line [11:27:37]line [11:27:37]line [11:27:37]line [11:27:37]line [11:27:37]written 0, free lines is 3327 [11:27:37]MH_Cut [11:27:37]Write to MH i2c: D1 01 00 D6 56 01 FE [11:27:37]Write i2c OK [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: D1 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: D1 01 00 [11:27:37]MH_I2C_Read... [11:27:37]Read from MH i2c: D1 01 00 D6 56 00 FD [11:27:37]Write to MH i2c: 01 00 00 D7 56 2D [11:27:37]Write i2c OK [11:27:37]MH_I2C_Read... [11:27:37]OFD Sender: No OFD packet to send [11:27:37]*** Cut start [11:27:37]*** Partial cut [11:27:37]*** CUTSNS_PIN = 1 [11:27:37]*** CUTSNS_PIN = 0 [11:27:38]*** Brake cut motor [11:27:38]Read from MH i2c: 01 [11:27:38]MH_I2C_Read... [11:27:38]*** Stop cut motor [11:27:38]*** Cut end [11:27:38]Read from MH i2c: 01 07 00 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: 01 07 00 D7 56 00 00 00 00 00 FF 0F 42 [11:27:38]process_action close_receipt done [11:27:38]requested_data is exist [11:27:38]produce_requested_data [11:27:38]requested_item fm.sn is exist - process it [11:27:38]wFMCommunicate request_size=4 [11:27:38]MH_SAM_APDU [11:27:38]CAPDU: 80 11 00 00 [11:27:38]Write to MH i2c: E2 08 00 D8 56 80 11 00 00 00 00 00 00 A8 [11:27:38]Write i2c OK [11:27:38]MH_I2C_Read... [11:27:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:38]Read from MH i2c: E2 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 17 00 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 17 00 D8 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 03 [11:27:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:27:38]wFMCommunicate OK [11:27:38]requested_item fd.num is exist - process it [11:27:38]SAM_PROTO_GetFieldsCounters [11:27:38]wFMCommunicate request_size=4 [11:27:38]MH_SAM_APDU [11:27:38]CAPDU: 80 13 00 00 [11:27:38]Write to MH i2c: E2 08 00 D9 56 80 13 00 00 00 00 00 00 AB [11:27:38]Write i2c OK [11:27:38]MH_I2C_Read... [11:27:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:38]Read from MH i2c: E2 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 62 00 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 62 00 D9 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A0 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [11:27:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A0 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:38]wFMCommunicate OK [11:27:38]SAM_PROTO_GetFieldsCounters done [11:27:38]requested_item shift.num is exist - process it [11:27:38]requested_item shift.opened is exist - process it [11:27:38]req_shift_opened [11:27:38]FM_GetShiftState [11:27:38]SAM_PROTO_GetShiftState [11:27:38]wFMCommunicate request_size=4 [11:27:38]MH_SAM_APDU [11:27:38]CAPDU: 80 13 01 00 [11:27:38]Write to MH i2c: E2 08 00 DA 56 80 13 01 00 00 00 00 00 AD [11:27:38]Write i2c OK [11:27:38]MH_I2C_Read... [11:27:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:38]Read from MH i2c: E2 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 0E 00 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 0E 00 DA 56 00 09 00 01 89 19 24 67 00 00 00 00 90 00 E6 [11:27:38]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:27:38]wFMCommunicate OK [11:27:38]SAM_PROTO_GetShiftState done [11:27:38]FM_GetShiftState done [11:27:38]req_shift_opened done [11:27:38]requested_item shift.open_date is exist - process it [11:27:38]req_shift_open_date [11:27:38]req_shift_open_date done [11:27:38]produce_requested_data done [11:27:38]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139936,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [11:27:38]process_action_free close_receipt [11:27:38]json_value_free [11:27:38]json_value_free done [11:27:38]process_json_proto returns [11:27:38]Send response to host [11:27:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139936,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [11:27:38]free response buf [11:27:38]execute_script done [11:27:38]execute_script returns [11:27:38]free content buf [11:27:38]Sock 9.Close socket [11:27:38]Sock 9.Thread stoped [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [11:27:50]accept exits with 7 [11:27:50]New connection [11:27:50]New thread 3066510692 created [11:27:50]Thread 3066654052 joined [11:27:50]Waiting for new connection... [11:27:50] Sock 7.Parse request [11:27:50]Sock 7.Check first char [11:27:50]Sock 7.First char is OK [11:27:50]request: POST /json_proto HTTP/1.0 [11:27:50]Method: POST [11:27:50]URL: /json_proto [11:27:50]Method is POST - this is cgi request [11:27:50]url: /json_proto [11:27:50]query_string will be loaded in cgi processing [11:27:50]execute_cgi json_proto POST (null) [11:27:50]execute_cgi path=json_proto method=POST [11:27:50]POST find Content-Length [11:27:50]Host: 172.17.50.196:8080 [11:27:50]Content-Length: 773 [11:27:50]Content-Type: application/json [11:27:50] [11:27:50]POST finish read [11:27:50]Found Content-Length = 773 [11:27:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335758", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:50]execute_script... [11:27: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)335758", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:50]POST & json_proto [11:27:50]process_json_proto [11:27:50]json parsed OK: [11:27:50]protocol is kg_v1.0 [11:27:50]action value=close_receipt [11:27:50]process_action close_receipt [11:27:50]cmd_close_receipt [11:27:50]MH_GetDate [11:27:50]Write to MH i2c: F0 00 00 DB 56 20 [11:27:50]Write i2c OK [11:27:50]MH_I2C_Read... [11:27:50]Read from MH i2c: F0 [11:27:50]MH_I2C_Read... [11:27:50]Read from MH i2c: F0 09 00 [11:27:50]MH_I2C_Read... [11:27:50]Read from MH i2c: F0 09 00 DB 56 00 3C BB 24 67 72 0D 1C 67 AD [11:27:50]GetLastDocTimeStamp 1730460460 [11:27:50]current date 1730460476 [11:27:50]FM_GetShiftState [11:27:50]SAM_PROTO_GetShiftState [11:27:50]wFMCommunicate request_size=4 [11:27:50]MH_SAM_APDU [11:27:50]CAPDU: 80 13 01 00 [11:27:50]Write to MH i2c: E2 08 00 DC 56 80 13 01 00 00 00 00 00 AF [11:27:50]Write i2c OK [11:27:50]MH_I2C_Read... [11:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:50]Read from MH i2c: E2 [11:27:50]MH_I2C_Read... [11:27:50]Read from MH i2c: E2 0E 00 [11:27:50]MH_I2C_Read... [11:27:50]Read from MH i2c: E2 0E 00 DC 56 00 09 00 01 89 19 24 67 00 00 00 00 90 00 E8 [11:27:50]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:27:50]wFMCommunicate OK [11:27:50]SAM_PROTO_GetShiftState done [11:27:50]FM_GetShiftState done [11:27:50]opened in 1730419081 [11:27:50]opened+sec_in_day 1730505481 [11:27:50]quantity*price = 13000 [11:27:50]sum+1 = 13001 [11:27:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 118 01.11.2024 11:27 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139937 ФПД: 125433579400554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T112756&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139937&fm=125433579400554&tin=02508201610067®Number=0000000000091631&sum=13000 0 [11:27:51]StoreToDocumentArchive [11:27:51]shift 558 fd 139937 [11:27:51]save to /storage/0558/doc_00139937 [11:27:51]save last doc name /storage/0558/doc_00139937 to /storage/kkm_last_doc_name [11:27:51]save OK [11:27:51]Clear old archive folders... [11:27:51]ProcessDocumentItem done err = 0, tmpTLVsize=282 [11:27:51]tlvbuf is 00AB3150 [11:27:51]SAM_PROTO_ClearQueue [11:27:51]wFMCommunicate request_size=4 [11:27:51]MH_SAM_APDU [11:27:51]CAPDU: 80 09 00 00 [11:27:51]Write to MH i2c: E2 08 00 E9 56 80 09 00 00 00 00 00 00 B1 [11:27:51]Write i2c OK [11:27:51]MH_I2C_Read... [11:27:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:51]Read from MH i2c: E2 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 03 00 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 03 00 E9 56 00 90 00 B3 [11:27:51]RAPDU: 90 00 [11:27:51]wFMCommunicate OK [11:27:51]SAM_PROTO_ClearQueue done [11:27:51]KKMCreateOFDPacket [11:27:51]OFDProtocolAddRootSTLVToBuf [11:27:51]FM_MakeSignedData [11:27:51]FM_MakeSignedData [11:27:51]SAM_PROTO_SignData [11:27:51]wFMCommunicate request_size=4 [11:27:51]MH_SAM_APDU [11:27:51]CAPDU: 80 0D 01 02 [11:27:51]Write to MH i2c: E2 08 00 EA 56 80 0D 01 02 00 00 00 00 B9 [11:27:51]Write i2c OK [11:27:51]MH_I2C_Read... [11:27:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:52]Read from MH i2c: E2 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 03 00 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 03 00 EA 56 00 90 00 B4 [11:27:52]RAPDU: 90 00 [11:27:52]wFMCommunicate OK [11:27:52]wFMCommunicate request_size=255 [11:27:52]MH_SAM_APDU [11:27:52]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 3C BB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 [11:27:52]Write to MH i2c: E2 02 01 EB 56 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 3C BB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 00 00 EB [11:27:52]Write i2c OK [11:27:52]MH_I2C_Read... [11:27:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:52]Read from MH i2c: E2 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 03 00 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 03 00 EB 56 00 90 00 B5 [11:27:52]RAPDU: 90 00 [11:27:52]wFMCommunicate OK [11:27:52]wFMCommunicate request_size=41 [11:27:52]MH_SAM_APDU [11:27:52]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A1 22 02 00 35 04 06 00 72 14 C7 F1 6D 6A [11:27:52]Write to MH i2c: E2 2C 00 EC 56 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A1 22 02 00 35 04 06 00 72 14 C7 F1 6D 6A 00 00 6D [11:27:52]Write i2c OK [11:27:52]MH_I2C_Read... [11:27:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:52]Read from MH i2c: E2 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 03 00 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 03 00 EC 56 00 90 00 B6 [11:27:52]RAPDU: 90 00 [11:27:52]wFMCommunicate OK [11:27:52]wFMCommunicate request_size=4 [11:27:52]MH_SAM_APDU [11:27:52]CAPDU: 80 0D 03 02 [11:27:52]Write to MH i2c: E2 08 00 ED 56 80 0D 03 02 00 00 00 00 BE [11:27:52]Write i2c OK [11:27:52]MH_I2C_Read... [11:27:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:52]Read from MH i2c: E2 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 0B 00 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 0B 00 ED 56 00 66 DC C4 D3 11 F1 F8 10 90 00 A2 [11:27:52]RAPDU: 66 DC C4 D3 11 F1 F8 10 90 00 [11:27:52]wFMCommunicate OK [11:27:52]SAM_PROTO_SignData done [11:27:52]FM_MakeSignedData done [11:27:52]CreateOFDProtocolMessage [11:27:52]wFMCommunicate request_size=4 [11:27:52]MH_SAM_APDU [11:27:52]CAPDU: 80 11 00 00 [11:27:52]Write to MH i2c: E2 08 00 EE 56 80 11 00 00 00 00 00 00 BE [11:27:52]Write i2c OK [11:27:52]MH_I2C_Read... [11:27:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:52]Read from MH i2c: E2 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 17 00 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 17 00 EE 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 19 [11:27:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:27:52]wFMCommunicate OK [11:27:52]CreateOFDProtocolMessage done [11:27:52]OFDSenderStorePacket 139937 [11:27:52]StoreOFDPacket docnum=139937 [11:27:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2E 01 00 00 D4 AE 26 01 BD 08 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 3C BB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A1 22 02 00 35 04 06 00 72 14 C7 F1 6D 6A 66 DC C4 D3 11 F1 F8 10 [11:27:52]CheckFolder [11:27:52]dirname=/storage/ofd_packets [11:27:52]CheckFolder done [11:27:52]ProducePacketName [11:27:52]name=ofd_packets/00139937 [11:27:52]NVStorageSaveData ofd_packets/00139937 [11:27:52]File name is /storage/ofd_packets/00139937 [11:27:52]Write 332 bytes [11:27:52]NVStorageSaveData done [11:27:52]OFDSenderStorePacket done [11:27:52]KKMCreateOFDPacket done [11:27:52]NVStorageSaveData kkm_last_timestamp [11:27:52]File name is /storage/kkm_last_timestamp [11:27:52]Write 4 bytes [11:27:52]NVStorageSaveData done [11:27:52]ExternCall_PrintAddStr [11:27:52]wPrintStart [11:27:52]Write to MH i2c: 01 00 00 EF 56 45 [11:27:52]Write i2c OK [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: 01 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: 01 07 00 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: 01 07 00 EF 56 00 00 00 00 00 FF 0F 5A [11:27:52]RasterBufferAndPrint [11:27:52]line Счет N : (3)335758 [11:27:52]line ИНН: 02508201610067 [11:27:52]line Контрольно-Кассовый Чек [11:27:52]line ПРОДАЖА [11:27:52]line Товар: 2000036220012 [11:27:52]line Кофе Капучино XL(GABB TRADE) [11:27:52]line 1.000 * 130.00 [11:27:52]line = 130.00 [11:27:52]line НДС 12% НСП 1% [11:27:52]line > о реализуемом товаре [11:27:52]line ИТОГО: 130.00 [11:27:52]line НСП 1% : 1.15 [11:27:52]line НДС 12% : 13.80 [11:27:52]line Наличными: 0.00 [11:27:52]line Безнал.: 130.00 [11:27:52]line Место: АЗС № 101 "Партнер Нефть" [11:27:52]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:27:52]line СНО: Общий режим [11:27:52]line Чек 118 01.11.2024 11:27 [11:27:52]line Смена: 558 ФФД: 1.0 [11:27:52]line ЗНМ: 0300000081 [11:27:52]line РНМ: 0000000000091631 [11:27:52]line Версия ККМ: 001 [11:27:52]line Платежная система: Mbank [11:27:52]line ФМ: 0000000000874669 [11:27:52]line ФД: 139937 [11:27:52]line ФПД: 125433579400554 [11:27:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T112756&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139937&fm=125433579400554&tin=02508201610067®Number=0000000000091631&sum=13000 [11:27:52]line 0 [11:27:52]OFD Sender: Processing packet 139937 [packets to send 34, broken 33] [11:27:52]ProducePacketName [11:27:52]name=ofd_packets/00139937 [11:27:52]OFD Sender: To server: pG, [11:27:52]CommunicateWithHost lk.salyk.kg:30040 [11:27:52]ConnectInit lk.salyk.kg [11:27:52]written 0, free lines is 4095 [11:27:52]Connected sock=10 [11:27:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2E 01 00 00 D4 AE 26 01 BD 08 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 3C BB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A1 22 02 00 35 04 06 00 72 14 C7 F1 6D 6A 66 DC C4 D3 11 F1 F8 10 [11:27:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 5C A1 47 00 EE 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A1 22 02 00 F4 03 04 00 E7 66 24 67 B6 04 01 00 00 92 5D 36 60 11 77 4F EF [11:27:53]CommunicateWithHost err = 0 [11:27:53]CheckOFDResponse [11:27:53]1017 (14) - 77093643461234 [11:27:53]1041 (16) - 0000000000874669 [11:27:53]1040 (4) - 139937 [11:27:53]1012 (4) - 01.11.2024 05:28 [11:27:53]1206 (1) - 0 [11:27:53]OFD Sender: Remove packet 139937 [11:27:53]ProducePacketName [11:27:53]name=ofd_packets/00139937 [11:27:53]NVStorageDeleteData [11:27:53]Write to MH i2c: 01 00 00 19 57 70 [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: 01 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: 01 07 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: 01 07 00 19 57 00 00 00 00 00 F1 0C 74 [11:27:53]RasterBufferAndPrint [11:27:53]line [11:27:53]line [11:27:53]line [11:27:53]line [11:27:53]line [11:27:53]written 0, free lines is 3319 [11:27:53]MH_Cut [11:27:53]Write to MH i2c: D1 01 00 20 57 01 49 [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: D1 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: D1 01 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: D1 01 00 20 57 00 48 [11:27:53]Write to MH i2c: 01 00 00 21 57 78 [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]OFD Sender: No OFD packet to send [11:27:53]*** Cut start [11:27:53]*** Partial cut [11:27:53]*** CUTSNS_PIN = 1 [11:27:53]*** CUTSNS_PIN = 0 [11:27:54]*** Brake cut motor [11:27:54]Read from MH i2c: 01 [11:27:54]MH_I2C_Read... [11:27:54]*** Stop cut motor [11:27:54]*** Cut end [11:27:54]Read from MH i2c: 01 07 00 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: 01 07 00 21 57 00 00 00 00 00 FF 0F 8D [11:27:54]process_action close_receipt done [11:27:54]requested_data is exist [11:27:54]produce_requested_data [11:27:54]requested_item fm.sn is exist - process it [11:27:54]wFMCommunicate request_size=4 [11:27:54]MH_SAM_APDU [11:27:54]CAPDU: 80 11 00 00 [11:27:54]Write to MH i2c: E2 08 00 22 57 80 11 00 00 00 00 00 00 F3 [11:27:54]Write i2c OK [11:27:54]MH_I2C_Read... [11:27:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:54]Read from MH i2c: E2 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: E2 17 00 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: E2 17 00 22 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4E [11:27:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:27:54]wFMCommunicate OK [11:27:54]requested_item fd.num is exist - process it [11:27:54]SAM_PROTO_GetFieldsCounters [11:27:54]wFMCommunicate request_size=4 [11:27:54]MH_SAM_APDU [11:27:54]CAPDU: 80 13 00 00 [11:27:54]Write to MH i2c: E2 08 00 23 57 80 13 00 00 00 00 00 00 F6 [11:27:54]Write i2c OK [11:27:54]MH_I2C_Read... [11:27:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:54]Read from MH i2c: E2 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: E2 62 00 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: E2 62 00 23 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A1 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [11:27:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A1 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:54]wFMCommunicate OK [11:27:54]SAM_PROTO_GetFieldsCounters done [11:27:54]requested_item shift.num is exist - process it [11:27:54]requested_item shift.opened is exist - process it [11:27:54]req_shift_opened [11:27:54]FM_GetShiftState [11:27:54]SAM_PROTO_GetShiftState [11:27:54]wFMCommunicate request_size=4 [11:27:54]MH_SAM_APDU [11:27:54]CAPDU: 80 13 01 00 [11:27:54]Write to MH i2c: E2 08 00 24 57 80 13 01 00 00 00 00 00 F8 [11:27:54]Write i2c OK [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: E2 [11:27:54]MH_I2C_Read... [11:27:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:54]Read from MH i2c: E2 0E 00 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: E2 0E 00 24 57 00 09 00 01 89 19 24 67 00 00 00 00 90 00 31 [11:27:54]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:27:54]wFMCommunicate OK [11:27:54]SAM_PROTO_GetShiftState done [11:27:54]FM_GetShiftState done [11:27:54]req_shift_opened done [11:27:54]requested_item shift.open_date is exist - process it [11:27:54]req_shift_open_date [11:27:54]req_shift_open_date done [11:27:54]produce_requested_data done [11:27:54]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139937,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [11:27:54]process_action_free close_receipt [11:27:54]json_value_free [11:27:54]json_value_free done [11:27:54]process_json_proto returns [11:27:54]Send response to host [11:27:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139937,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [11:27:54]free response buf [11:27:54]execute_script done [11:27:54]execute_script returns [11:27:54]free content buf [11:27:54]Sock 7.Close socket [11:27:54]Sock 7.Thread stoped [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]OFD Sender: No OFD packet to send [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:13]OFD Sender: No OFD packet to send [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [11:29:43]OFD Sender: No OFD packet to send [11:29:48]OFD Sender: No OFD packet to send [11:29:53]OFD Sender: No OFD packet to send [11:29:58]OFD Sender: No OFD packet to send [11:30:03]OFD Sender: No OFD packet to send [11:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:23]OFD Sender: No OFD packet to send [11:30:28]OFD Sender: No OFD packet to send [11:30:33]OFD Sender: No OFD packet to send [11:30:38]OFD Sender: No OFD packet to send [11:30:43]OFD Sender: No OFD packet to send [11:30:48]OFD Sender: No OFD packet to send [11:30:53]OFD Sender: No OFD packet to send [11:30:58]OFD Sender: No OFD packet to send [11:31:03]OFD Sender: No OFD packet to send [11:31:08]OFD Sender: No OFD packet to send [11:31:13]OFD Sender: No OFD packet to send [11:31:18]OFD Sender: No OFD packet to send [11:31:23]OFD Sender: No OFD packet to send [11:31:28]OFD Sender: No OFD packet to send [11:31:33]OFD Sender: No OFD packet to send [11:31:38]OFD Sender: No OFD packet to send [11:31:43]OFD Sender: No OFD packet to send [11:31:48]OFD Sender: No OFD packet to send [11:31:53]OFD Sender: No OFD packet to send [11:31:58]OFD Sender: No OFD packet to send [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:24]OFD Sender: No OFD packet to send [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42:24]OFD Sender: No OFD packet to send [11:42:29]OFD Sender: No OFD packet to send [11:42:34]OFD Sender: No OFD packet to send [11:42:39]OFD Sender: No OFD packet to send [11:42:44]OFD Sender: No OFD packet to send [11:42:49]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:59]OFD Sender: No OFD packet to send [11:43:04]OFD Sender: No OFD packet to send [11:43:09]OFD Sender: No OFD packet to send [11:43:14]OFD Sender: No OFD packet to send [11:43:19]OFD Sender: No OFD packet to send [11:43:24]OFD Sender: No OFD packet to send [11:43:29]OFD Sender: No OFD packet to send [11:43:34]OFD Sender: No OFD packet to send [11:43:39]OFD Sender: No OFD packet to send [11:43:44]OFD Sender: No OFD packet to send [11:43:49]OFD Sender: No OFD packet to send [11:43:54]OFD Sender: No OFD packet to send [11:43:59]OFD Sender: No OFD packet to send [11:44:03]accept exits with 9 [11:44:03]New connection [11:44:03]New thread 3066654052 created [11:44:03]Thread 3066510692 joined [11:44:03]Waiting for new connection... [11:44:03] Sock 9.Parse request [11:44:03]Sock 9.Check first char [11:44:03]Sock 9.First char is OK [11:44:03]request: POST /json_proto HTTP/1.0 [11:44:03]Method: POST [11:44:03]URL: /json_proto [11:44:03]Method is POST - this is cgi request [11:44:03]url: /json_proto [11:44:03]query_string will be loaded in cgi processing [11:44:03]execute_cgi json_proto POST (null) [11:44:03]execute_cgi path=json_proto method=POST [11:44:03]POST find Content-Length [11:44:03]Host: 172.17.50.196:8080 [11:44:03]Content-Length: 1957 [11:44:03]Content-Type: application/json [11:44:03] [11:44:03]POST finish read [11:44:03]Found Content-Length = 1957 [11:44:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335759", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607120858977", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u043A\u0440\u0430\u0431 40\u0433", "price" : 38.00, "quantity" : 1.000, "sum" : 38.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": "5904917031261", "name": "\u0414\u0440\u0430\u0436\u0435 TURBO VENTILATOR Johny Bee", "price" : 243.00, "quantity" : 1.000, "sum" : 243.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 505.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:03]execute_script... [11:44: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)335759", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607120858977", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u043A\u0440\u0430\u0431 40\u0433", "price" : 38.00, "quantity" : 1.000, "sum" : 38.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": "5904917031261", "name": "\u0414\u0440\u0430\u0436\u0435 TURBO VENTILATOR Johny Bee", "price" : 243.00, "quantity" : 1.000, "sum" : 243.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 505.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:03]POST & json_proto [11:44:03]process_json_proto [11:44:03]json parsed OK: [11:44:03]protocol is kg_v1.0 [11:44:03]action value=close_receipt [11:44:03]process_action close_receipt [11:44:03]cmd_close_receipt [11:44:03]MH_GetDate [11:44:03]Write to MH i2c: F0 00 00 25 57 6B [11:44:03]Write i2c OK [11:44:03]MH_I2C_Read... [11:44:03]Read from MH i2c: F0 [11:44:03]MH_I2C_Read... [11:44:03]Read from MH i2c: F0 09 00 [11:44:03]MH_I2C_Read... [11:44:03]Read from MH i2c: F0 09 00 25 57 00 09 BF 24 67 72 0D 1C 67 C9 [11:44:03]GetLastDocTimeStamp 1730460476 [11:44:03]current date 1730461449 [11:44:03]FM_GetShiftState [11:44:03]SAM_PROTO_GetShiftState [11:44:03]wFMCommunicate request_size=4 [11:44:03]MH_SAM_APDU [11:44:03]CAPDU: 80 13 01 00 [11:44:03]Write to MH i2c: E2 08 00 26 57 80 13 01 00 00 00 00 00 FA [11:44:03]Write i2c OK [11:44:03]MH_I2C_Read... [11:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:03]Read from MH i2c: E2 [11:44:03]MH_I2C_Read... [11:44:03]Read from MH i2c: E2 0E 00 [11:44:03]MH_I2C_Read... [11:44:03]Read from MH i2c: E2 0E 00 26 57 00 09 00 01 89 19 24 67 00 00 00 00 90 00 33 [11:44:03]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:44:03]wFMCommunicate OK [11:44:03]SAM_PROTO_GetShiftState done [11:44:03]FM_GetShiftState done [11:44:03]opened in 1730419081 [11:44:03]opened+sec_in_day 1730505481 [11:44:03]quantity*price = 10400 [11:44:03]sum+1 = 10401 [11:44:03]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521186 Чай холодный MAXI черный со вкусом клубн 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607120858977 Чипсы Чипсоны краб 40г 1.000 * 38.00 = 38.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5904917031261 Драже TURBO VENTILATOR Johny Bee 1.000 * 243.00 = 243.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 505.00 НСП 1% : 4.47 НДС 12% : 53.61 Наличными: 0.00 Безнал.: 505.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 119 01.11.2024 11:44 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139938 ФПД: 85346667407277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T114409&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139938&fm=85346667407277&tin=02508201610067®Number=0000000000091631&sum=50500 0 [11:44:05]StoreToDocumentArchive [11:44:05]shift 558 fd 139938 [11:44:05]save to /storage/0558/doc_00139938 [11:44:05]save last doc name /storage/0558/doc_00139938 to /storage/kkm_last_doc_name [11:44:05]save OK [11:44:05]Clear old archive folders... [11:44:05]ProcessDocumentItem done err = 0, tmpTLVsize=764 [11:44:05]tlvbuf is B6D5F430 [11:44:05]SAM_PROTO_ClearQueue [11:44:05]wFMCommunicate request_size=4 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 09 00 00 [11:44:05]Write to MH i2c: E2 08 00 33 57 80 09 00 00 00 00 00 00 FC [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 33 57 00 90 00 FE [11:44:05]RAPDU: 90 00 [11:44:05]wFMCommunicate OK [11:44:05]SAM_PROTO_ClearQueue done [11:44:05]KKMCreateOFDPacket [11:44:05]OFDProtocolAddRootSTLVToBuf [11:44:05]FM_MakeSignedData [11:44:05]FM_MakeSignedData [11:44:05]SAM_PROTO_SignData [11:44:05]wFMCommunicate request_size=4 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 0D 01 02 [11:44:05]Write to MH i2c: E2 08 00 34 57 80 0D 01 02 00 00 00 00 04 [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 34 57 00 90 00 FF [11:44:05]RAPDU: 90 00 [11:44:05]wFMCommunicate OK [11:44:05]wFMCommunicate request_size=255 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 0D 02 02 FA 03 00 FC 02 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 [11:44:05]Write to MH i2c: E2 02 01 35 57 80 0D 02 02 FA 00 03 00 FC 02 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 00 00 EA [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 35 57 00 90 00 00 [11:44:05]RAPDU: 90 00 [11:44:05]wFMCommunicate OK [11:44:05]wFMCommunicate request_size=255 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 0D 02 02 FA 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 38 39 37 37 06 04 27 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 D0 BA D1 80 D0 B0 D0 B1 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 0E 00 00 00 00 13 04 06 00 D8 0E 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 69 00 8A 04 [11:44:05]Write to MH i2c: E2 02 01 36 57 80 0D 02 02 FA 00 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 38 39 37 37 06 04 27 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 D0 BA D1 80 D0 B0 D0 B1 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 0E 00 00 00 00 13 04 06 00 D8 0E 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 69 00 8A 04 00 00 06 [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 36 57 00 90 00 01 [11:44:06]RAPDU: 90 00 [11:44:06]wFMCommunicate OK [11:44:06]wFMCommunicate request_size=255 [11:44:06]MH_SAM_APDU [11:44:06]CAPDU: 80 0D 02 02 FA 0D 00 35 39 30 34 39 31 37 30 33 31 32 36 31 06 04 25 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 54 55 52 42 4F 20 56 45 4E 54 49 4C 41 54 4F 52 20 4A 6F 68 6E 79 20 42 65 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 5E 00 00 00 00 13 04 06 00 EC 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 C5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 09 BF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 [11:44:06]Write to MH i2c: E2 02 01 37 57 80 0D 02 02 FA 00 0D 00 35 39 30 34 39 31 37 30 33 31 32 36 31 06 04 25 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 54 55 52 42 4F 20 56 45 4E 54 49 4C 41 54 4F 52 20 4A 6F 68 6E 79 20 42 65 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 5E 00 00 00 00 13 04 06 00 EC 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 C5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 09 BF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 00 00 9E [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 37 57 00 90 00 02 [11:44:06]RAPDU: 90 00 [11:44:06]wFMCommunicate OK [11:44:06]wFMCommunicate request_size=23 [11:44:06]MH_SAM_APDU [11:44:06]CAPDU: 80 0D 02 02 12 10 04 04 00 A2 22 02 00 35 04 06 00 4D 9F 51 CB 27 AD [11:44:06]Write to MH i2c: E2 1A 00 38 57 80 0D 02 02 12 00 10 04 04 00 A2 22 02 00 35 04 06 00 4D 9F 51 CB 27 AD 00 00 26 [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 38 57 00 90 00 03 [11:44:06]RAPDU: 90 00 [11:44:06]wFMCommunicate OK [11:44:06]wFMCommunicate request_size=4 [11:44:06]MH_SAM_APDU [11:44:06]CAPDU: 80 0D 03 02 [11:44:06]Write to MH i2c: E2 08 00 39 57 80 0D 03 02 00 00 00 00 0B [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 0B 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 0B 00 39 57 00 C8 5F 83 83 6A B8 0D BC 90 00 24 [11:44:06]RAPDU: C8 5F 83 83 6A B8 0D BC 90 00 [11:44:06]wFMCommunicate OK [11:44:06]SAM_PROTO_SignData done [11:44:06]FM_MakeSignedData done [11:44:06]CreateOFDProtocolMessage [11:44:06]wFMCommunicate request_size=4 [11:44:06]MH_SAM_APDU [11:44:06]CAPDU: 80 11 00 00 [11:44:06]Write to MH i2c: E2 08 00 3A 57 80 11 00 00 00 00 00 00 0B [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 17 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 17 00 3A 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 66 [11:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:44:06]wFMCommunicate OK [11:44:06]CreateOFDProtocolMessage done [11:44:06]OFDSenderStorePacket 139938 [11:44:06]StoreOFDPacket docnum=139938 [11:44:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 03 00 00 1C 8D 08 03 8F 0D 5A 03 01 00 03 00 FC 02 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 38 39 37 37 06 04 27 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 D0 BA D1 80 D0 B0 D0 B1 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 0E 00 00 00 00 13 04 06 00 D8 0E 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 69 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 31 32 36 31 06 04 25 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 54 55 52 42 4F 20 56 45 4E 54 49 4C 41 54 4F 52 20 4A 6F 68 6E 79 20 42 65 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 5E 00 00 00 00 13 04 06 00 EC 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 C5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 09 BF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A2 22 02 00 35 04 06 00 4D 9F 51 CB 27 AD C8 5F 83 83 6A B8 0D BC [11:44:06]CheckFolder [11:44:06]dirname=/storage/ofd_packets [11:44:06]CheckFolder done [11:44:06]ProducePacketName [11:44:06]name=ofd_packets/00139938 [11:44:06]NVStorageSaveData ofd_packets/00139938 [11:44:06]File name is /storage/ofd_packets/00139938 [11:44:06]Write 814 bytes [11:44:06]NVStorageSaveData done [11:44:06]OFDSenderStorePacket done [11:44:06]KKMCreateOFDPacket done [11:44:06]NVStorageSaveData kkm_last_timestamp [11:44:06]File name is /storage/kkm_last_timestamp [11:44:06]Write 4 bytes [11:44:06]NVStorageSaveData done [11:44:06]ExternCall_PrintAddStr [11:44:06]wPrintStart [11:44:06]Write to MH i2c: 01 00 00 3B 57 92 [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 07 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 07 00 3B 57 00 00 00 00 00 FF 0F A7 [11:44:06]RasterBufferAndPrint [11:44:06]line Счет N : (3)335759 [11:44:06]line ИНН: 02508201610067 [11:44:06]line Контрольно-Кассовый Чек [11:44:06]line ПРОДАЖА [11:44:06]line Товар: 4870202521216 [11:44:06]line Напиток MAXI чай 1,2 зел.лимон (новый) [11:44:06]line 1.000 * 104.00 [11:44:06]line = 104.00 [11:44:06]line НДС 12% НСП 1% [11:44:06]line > о реализуемом товаре [11:44:06]line Товар: 4870202521186 [11:44:06]line Чай холодный MAXI черный со вкусом клубн [11:44:06]line 1.000 * 70.00 [11:44:06]line = 70.00 [11:44:06]line НДС 12% НСП 1% [11:44:06]line > о реализуемом товаре [11:44:06]line Товар: 4607120858977 [11:44:06]line Чипсы Чипсоны краб 40г [11:44:06]line 1.000 * 38.00 [11:44:06]line = 38.00 [11:44:06]line НДС 12% НСП 1% [11:44:06]line > о реализуемом товаре [11:44:06]line Товар: 4700000160358 [11:44:06]line Вода Легенда 1л [11:44:06]line 1.000 * 50.00 [11:44:06]line = 50.00 [11:44:06]line НДС 12% НСП 1% [11:44:06]line > о реализуемом товаре [11:44:06]line Товар: 5904917031261 [11:44:06]line Драже TURBO VENTILATOR Johny Bee [11:44:06]line 1.000 * 243.00 [11:44:06]line = 243.00 [11:44:06]line НДС 12% НСП 1% [11:44:06]line > о реализуемом товаре [11:44:06]line ИТОГО: 505.00 [11:44:06]line НСП 1% : 4.47 [11:44:06]line НДС 12% : 53.61 [11:44:06]line Наличными: 0.00 [11:44:06]line Безнал.: 505.00 [11:44:06]line Место: АЗС № 101 "Партнер Нефть" [11:44:06]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:44:06]line СНО: Общий режим [11:44:06]line Чек 119 01.11.2024 11:44 [11:44:06]line Смена: 558 ФФД: 1.0 [11:44:06]line ЗНМ: 0300000081 [11:44:06]line РНМ: 0000000000091631 [11:44:06]line Версия ККМ: 001 [11:44:06]line Платежная система: Mbank [11:44:06]line ФМ: 0000000000874669 [11:44:06]line ФД: 139938 [11:44:06]line ФПД: 85346667407277 [11:44:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T114409&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139938&fm=85346667407277&tin=02508201610067®Number=0000000000091631&sum=50500 [11:44:06]line 0 [11:44:06]OFD Sender: Processing packet 139938 [packets to send 34, broken 33] [11:44:06]ProducePacketName [11:44:06]name=ofd_packets/00139938 [11:44:06]OFD Sender: To server: pG, [11:44:06]CommunicateWithHost lk.salyk.kg:30040 [11:44:06]ConnectInit lk.salyk.kg [11:44:06]written 0, free lines is 4095 [11:44:06]Connected sock=10 [11:44:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 03 00 00 1C 8D 08 03 8F 0D 5A 03 01 00 03 00 FC 02 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 38 39 37 37 06 04 27 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 D0 BA D1 80 D0 B0 D0 B1 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 0E 00 00 00 00 13 04 06 00 D8 0E 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 69 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 31 32 36 31 06 04 25 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 54 55 52 42 4F 20 56 45 4E 54 49 4C 41 54 4F 52 20 4A 6F 68 6E 79 20 42 65 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 5E 00 00 00 00 13 04 06 00 EC 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 C5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 09 BF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A2 22 02 00 35 04 06 00 4D 9F 51 CB 27 AD C8 5F 83 83 6A B8 0D BC [11:44:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 92 9A 47 00 2C 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 34 36 36 39 10 04 04 00 A2 22 02 00 F4 03 04 00 B5 6A 24 67 B6 04 01 00 00 E0 1C 5F ED 0A 95 DE A7 [11:44:07]CommunicateWithHost err = 0 [11:44:07]CheckOFDResponse [11:44:07]1017 (14) - 77093643461234 [11:44:07]1041 (16) - 0000000000874669 [11:44:07]1040 (4) - 139938 [11:44:07]1012 (4) - 01.11.2024 05:44 [11:44:07]1206 (1) - 0 [11:44:07]OFD Sender: Remove packet 139938 [11:44:07]ProducePacketName [11:44:07]name=ofd_packets/00139938 [11:44:07]NVStorageDeleteData [11:44:07]Write to MH i2c: 01 00 00 7F 57 D6 [11:44:07]Write i2c OK [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: 01 [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: 01 07 00 [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: 01 07 00 7F 57 00 00 00 00 00 B7 0B 9F [11:44:07]RasterBufferAndPrint [11:44:07]line [11:44:07]line [11:44:07]line [11:44:07]line [11:44:07]line [11:44:07]written 0, free lines is 3011 [11:44:07]MH_Cut [11:44:07]Write to MH i2c: D1 01 00 86 57 01 AF [11:44:07]Write i2c OK [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: D1 [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: D1 01 00 [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: D1 01 00 86 57 00 AE [11:44:07]Write to MH i2c: 01 00 00 87 57 DE [11:44:07]Write i2c OK [11:44:07]MH_I2C_Read... [11:44:07]OFD Sender: No OFD packet to send [11:44:08]*** Cut start [11:44:08]*** Partial cut [11:44:08]*** CUTSNS_PIN = 1 [11:44:08]*** CUTSNS_PIN = 0 [11:44:08]*** Brake cut motor [11:44:09]Read from MH i2c: 01 [11:44:09]MH_I2C_Read... [11:44:09]*** Stop cut motor [11:44:09]*** Cut end [11:44:09]Read from MH i2c: 01 07 00 [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: 01 07 00 87 57 00 00 00 00 00 FF 0F F3 [11:44:09]process_action close_receipt done [11:44:09]requested_data is exist [11:44:09]produce_requested_data [11:44:09]requested_item fm.sn is exist - process it [11:44:09]wFMCommunicate request_size=4 [11:44:09]MH_SAM_APDU [11:44:09]CAPDU: 80 11 00 00 [11:44:09]Write to MH i2c: E2 08 00 88 57 80 11 00 00 00 00 00 00 59 [11:44:09]Write i2c OK [11:44:09]MH_I2C_Read... [11:44:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:09]Read from MH i2c: E2 [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: E2 17 00 [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: E2 17 00 88 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B4 [11:44:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:44:09]wFMCommunicate OK [11:44:09]requested_item fd.num is exist - process it [11:44:09]SAM_PROTO_GetFieldsCounters [11:44:09]wFMCommunicate request_size=4 [11:44:09]MH_SAM_APDU [11:44:09]CAPDU: 80 13 00 00 [11:44:09]Write to MH i2c: E2 08 00 89 57 80 13 00 00 00 00 00 00 5C [11:44:09]Write i2c OK [11:44:09]MH_I2C_Read... [11:44:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:09]Read from MH i2c: E2 [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: E2 62 00 [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: E2 62 00 89 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A2 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [11:44:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A2 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:09]wFMCommunicate OK [11:44:09]SAM_PROTO_GetFieldsCounters done [11:44:09]requested_item shift.num is exist - process it [11:44:09]requested_item shift.opened is exist - process it [11:44:09]req_shift_opened [11:44:09]FM_GetShiftState [11:44:09]SAM_PROTO_GetShiftState [11:44:09]wFMCommunicate request_size=4 [11:44:09]MH_SAM_APDU [11:44:09]CAPDU: 80 13 01 00 [11:44:09]Write to MH i2c: E2 08 00 8A 57 80 13 01 00 00 00 00 00 5E [11:44:09]Write i2c OK [11:44:09]MH_I2C_Read... [11:44:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:09]Read from MH i2c: E2 [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: E2 0E 00 [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: E2 0E 00 8A 57 00 09 00 01 89 19 24 67 00 00 00 00 90 00 97 [11:44:09]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:44:09]wFMCommunicate OK [11:44:09]SAM_PROTO_GetShiftState done [11:44:09]FM_GetShiftState done [11:44:09]req_shift_opened done [11:44:09]requested_item shift.open_date is exist - process it [11:44:09]req_shift_open_date [11:44:09]req_shift_open_date done [11:44:09]produce_requested_data done [11:44:09]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139938,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [11:44:09]process_action_free close_receipt [11:44:09]json_value_free [11:44:09]json_value_free done [11:44:09]process_json_proto returns [11:44:09]Send response to host [11:44:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139938,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [11:44:09]free response buf [11:44:09]execute_script done [11:44:09]execute_script returns [11:44:09]free content buf [11:44:09]Sock 9.Close socket [11:44:09]Sock 9.Thread stoped [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:23]accept exits with 7 [11:44:23]New connection [11:44:23]New thread 3066510692 created [11:44:23]Thread 3066654052 joined [11:44:23]Waiting for new connection... [11:44:23] Sock 7.Parse request [11:44:23]Sock 7.Check first char [11:44:23]Sock 7.First char is OK [11:44:23]request: POST /json_proto HTTP/1.0 [11:44:23]Method: POST [11:44:23]URL: /json_proto [11:44:23]Method is POST - this is cgi request [11:44:23]url: /json_proto [11:44:23]query_string will be loaded in cgi processing [11:44:23]execute_cgi json_proto POST (null) [11:44:23]execute_cgi path=json_proto method=POST [11:44:23]POST find Content-Length [11:44:23]Host: 172.17.50.196:8080 [11:44:23]Content-Length: 630 [11:44:23]Content-Type: application/json [11:44:23] [11:44:23]POST finish read [11:44:23]Found Content-Length = 630 [11:44:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335760", "tax_sys" : 0, "items" : [ { "code": "5449000026583", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:23]execute_script... [11:44: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)335760", "tax_sys" : 0, "items" : [ { "code": "5449000026583", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:23]POST & json_proto [11:44:23]process_json_proto [11:44:23]json parsed OK: [11:44:23]protocol is kg_v1.0 [11:44:23]action value=close_receipt [11:44:23]process_action close_receipt [11:44:23]cmd_close_receipt [11:44:23]MH_GetDate [11:44:23]Write to MH i2c: F0 00 00 8B 57 D1 [11:44:23]Write i2c OK [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: F0 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: F0 09 00 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: F0 09 00 8B 57 00 1D BF 24 67 72 0D 1C 67 43 [11:44:23]GetLastDocTimeStamp 1730461449 [11:44:23]current date 1730461469 [11:44:23]FM_GetShiftState [11:44:23]SAM_PROTO_GetShiftState [11:44:23]wFMCommunicate request_size=4 [11:44:23]MH_SAM_APDU [11:44:23]CAPDU: 80 13 01 00 [11:44:23]Write to MH i2c: E2 08 00 8C 57 80 13 01 00 00 00 00 00 60 [11:44:23]Write i2c OK [11:44:23]MH_I2C_Read... [11:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:23]Read from MH i2c: E2 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 0E 00 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 0E 00 8C 57 00 09 00 01 89 19 24 67 00 00 00 00 90 00 99 [11:44:23]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:44:23]wFMCommunicate OK [11:44:23]SAM_PROTO_GetShiftState done [11:44:23]FM_GetShiftState done [11:44:23]opened in 1730419081 [11:44:23]opened+sec_in_day 1730505481 [11:44:23]quantity*price = 5000 [11:44:23]sum+1 = 5001 [11:44:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 120 01.11.2024 11:44 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139939 ФПД: 260376936011508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T114429&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139939&fm=260376936011508&tin=02508201610067®Number=0000000000091631&sum=5000 0 [11:44:24]StoreToDocumentArchive [11:44:24]shift 558 fd 139939 [11:44:24]save to /storage/0558/doc_00139939 [11:44:24]save last doc name /storage/0558/doc_00139939 to /storage/kkm_last_doc_name [11:44:24]save OK [11:44:24]Clear old archive folders... [11:44:24]ProcessDocumentItem done err = 0, tmpTLVsize=269 [11:44:24]tlvbuf is 00A178F0 [11:44:24]SAM_PROTO_ClearQueue [11:44:24]wFMCommunicate request_size=4 [11:44:24]MH_SAM_APDU [11:44:24]CAPDU: 80 09 00 00 [11:44:24]Write to MH i2c: E2 08 00 99 57 80 09 00 00 00 00 00 00 62 [11:44:24]Write i2c OK [11:44:24]MH_I2C_Read... [11:44:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:24]Read from MH i2c: E2 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: E2 03 00 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: E2 03 00 99 57 00 90 00 64 [11:44:24]RAPDU: 90 00 [11:44:24]wFMCommunicate OK [11:44:24]SAM_PROTO_ClearQueue done [11:44:24]KKMCreateOFDPacket [11:44:24]OFDProtocolAddRootSTLVToBuf [11:44:24]FM_MakeSignedData [11:44:24]FM_MakeSignedData [11:44:24]SAM_PROTO_SignData [11:44:24]wFMCommunicate request_size=4 [11:44:24]MH_SAM_APDU [11:44:24]CAPDU: 80 0D 01 02 [11:44:24]Write to MH i2c: E2 08 00 9A 57 80 0D 01 02 00 00 00 00 6A [11:44:24]Write i2c OK [11:44:24]MH_I2C_Read... [11:44:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:24]Read from MH i2c: E2 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: E2 03 00 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: E2 03 00 9A 57 00 90 00 65 [11:44:24]RAPDU: 90 00 [11:44:24]wFMCommunicate OK [11:44:24]wFMCommunicate request_size=255 [11:44:24]MH_SAM_APDU [11:44:24]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 36 35 38 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 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 78 00 00 00 F4 03 04 00 1D BF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [11:44:24]Write to MH i2c: E2 02 01 9B 57 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 36 35 38 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 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 78 00 00 00 F4 03 04 00 1D BF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 96 [11:44:25]Write i2c OK [11:44:25]MH_I2C_Read... [11:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:25]Read from MH i2c: E2 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: E2 03 00 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: E2 03 00 9B 57 00 90 00 66 [11:44:25]RAPDU: 90 00 [11:44:25]wFMCommunicate OK [11:44:25]wFMCommunicate request_size=28 [11:44:25]MH_SAM_APDU [11:44:25]CAPDU: 80 0D 02 02 17 37 34 36 36 39 10 04 04 00 A3 22 02 00 35 04 06 00 EC CF BA C7 56 F4 [11:44:25]Write to MH i2c: E2 1F 00 9C 57 80 0D 02 02 17 00 37 34 36 36 39 10 04 04 00 A3 22 02 00 35 04 06 00 EC CF BA C7 56 F4 00 00 4F [11:44:25]Write i2c OK [11:44:25]MH_I2C_Read... [11:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:25]Read from MH i2c: E2 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: E2 03 00 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: E2 03 00 9C 57 00 90 00 67 [11:44:25]RAPDU: 90 00 [11:44:25]wFMCommunicate OK [11:44:25]wFMCommunicate request_size=4 [11:44:25]MH_SAM_APDU [11:44:25]CAPDU: 80 0D 03 02 [11:44:25]Write to MH i2c: E2 08 00 9D 57 80 0D 03 02 00 00 00 00 6F [11:44:25]Write i2c OK [11:44:25]MH_I2C_Read... [11:44:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:25]Read from MH i2c: E2 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: E2 0B 00 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: E2 0B 00 9D 57 00 1B F8 78 F9 A0 2A F1 23 90 00 D2 [11:44:25]RAPDU: 1B F8 78 F9 A0 2A F1 23 90 00 [11:44:25]wFMCommunicate OK [11:44:25]SAM_PROTO_SignData done [11:44:25]FM_MakeSignedData done [11:44:25]CreateOFDProtocolMessage [11:44:25]wFMCommunicate request_size=4 [11:44:25]MH_SAM_APDU [11:44:25]CAPDU: 80 11 00 00 [11:44:25]Write to MH i2c: E2 08 00 9E 57 80 11 00 00 00 00 00 00 6F [11:44:25]Write i2c OK [11:44:25]MH_I2C_Read... [11:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:25]Read from MH i2c: E2 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: E2 17 00 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: E2 17 00 9E 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CA [11:44:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:44:25]wFMCommunicate OK [11:44:25]CreateOFDProtocolMessage done [11:44:25]OFDSenderStorePacket 139939 [11:44:25]StoreOFDPacket docnum=139939 [11:44:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 21 01 00 00 99 5D 19 01 43 62 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 36 35 38 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 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 78 00 00 00 F4 03 04 00 1D BF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A3 22 02 00 35 04 06 00 EC CF BA C7 56 F4 1B F8 78 F9 A0 2A F1 23 [11:44:25]CheckFolder [11:44:25]dirname=/storage/ofd_packets [11:44:25]CheckFolder done [11:44:25]ProducePacketName [11:44:25]name=ofd_packets/00139939 [11:44:25]NVStorageSaveData ofd_packets/00139939 [11:44:25]File name is /storage/ofd_packets/00139939 [11:44:25]Write 319 bytes [11:44:25]NVStorageSaveData done [11:44:25]OFDSenderStorePacket done [11:44:25]KKMCreateOFDPacket done [11:44:25]NVStorageSaveData kkm_last_timestamp [11:44:25]File name is /storage/kkm_last_timestamp [11:44:25]Write 4 bytes [11:44:25]NVStorageSaveData done [11:44:25]ExternCall_PrintAddStr [11:44:25]wPrintStart [11:44:25]Write to MH i2c: 01 00 00 9F 57 F6 [11:44:25]Write i2c OK [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: 01 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: 01 07 00 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: 01 07 00 9F 57 00 00 00 00 00 FF 0F 0B [11:44:25]RasterBufferAndPrint [11:44:25]line Счет N : (3)335760 [11:44:25]line ИНН: 02508201610067 [11:44:25]line Контрольно-Кассовый Чек [11:44:25]line ПРОДАЖА [11:44:25]line Товар: 5449000026583 [11:44:25]line Вода Бонаква 1л [11:44:25]line 1.000 * 50.00 [11:44:25]line = 50.00 [11:44:25]line НДС 12% НСП 1% [11:44:25]line > о реализуемом товаре [11:44:25]line ИТОГО: 50.00 [11:44:25]line НСП 1% : 0.44 [11:44:25]line НДС 12% : 5.31 [11:44:25]line Наличными: 50.00 [11:44:25]line Безнал.: 0.00 [11:44:25]line Место: АЗС № 101 "Партнер Нефть" [11:44:25]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:44:25]line СНО: Общий режим [11:44:25]line Чек 120 01.11.2024 11:44 [11:44:25]line Смена: 558 ФФД: 1.0 [11:44:25]line ЗНМ: 0300000081 [11:44:25]line РНМ: 0000000000091631 [11:44:25]line Версия ККМ: 001 [11:44:25]line ФМ: 0000000000874669 [11:44:25]line ФД: 139939 [11:44:25]line ФПД: 260376936011508 [11:44:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T114429&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139939&fm=260376936011508&tin=02508201610067®Number=0000000000091631&sum=5000 [11:44:25]line 0 [11:44:25]written 0, free lines is 4095 [11:44:25]OFD Sender: Processing packet 139939 [packets to send 34, broken 33] [11:44:25]ProducePacketName [11:44:25]name=ofd_packets/00139939 [11:44:25]OFD Sender: To server: pG, [11:44:25]CommunicateWithHost lk.salyk.kg:30040 [11:44:25]ConnectInit lk.salyk.kg [11:44:25]Connected sock=10 [11:44:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 21 01 00 00 99 5D 19 01 43 62 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 36 35 38 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 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 78 00 00 00 F4 03 04 00 1D BF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A3 22 02 00 35 04 06 00 EC CF BA C7 56 F4 1B F8 78 F9 A0 2A F1 23 [11:44:25]Write to MH i2c: 01 00 00 C7 57 1E [11:44:25]Write i2c OK [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: 01 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: 01 07 00 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: 01 07 00 C7 57 00 00 00 00 00 15 0D 47 [11:44:25]RasterBufferAndPrint [11:44:25]line [11:44:25]line [11:44:25]line [11:44:25]line [11:44:25]line [11:44:25]written 0, free lines is 3359 [11:44:25]MH_Cut [11:44:25]Write to MH i2c: D1 01 00 CE 57 01 F7 [11:44:25]Write i2c OK [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: D1 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: D1 01 00 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: D1 01 00 CE 57 00 F6 [11:44:25]Write to MH i2c: 01 00 00 CF 57 26 [11:44:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 71 7C 47 00 2F 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 34 36 36 39 10 04 04 00 A3 22 02 00 F4 03 04 00 C8 6A 24 67 B6 04 01 00 00 FD 24 09 A8 E8 C5 6A F7 [11:44:25]CommunicateWithHost err = 0 [11:44:25]CheckOFDResponse [11:44:25]1017 (14) - 77093643461234 [11:44:25]1041 (16) - 0000000000874669 [11:44:25]1040 (4) - 139939 [11:44:25]Write i2c OK [11:44:25]MH_I2C_Read... [11:44:25]1012 (4) - 01.11.2024 05:44 [11:44:25]1206 (1) - 0 [11:44:25]OFD Sender: Remove packet 139939 [11:44:25]ProducePacketName [11:44:25]name=ofd_packets/00139939 [11:44:25]NVStorageDeleteData [11:44:26]OFD Sender: No OFD packet to send [11:44:26]*** Cut start [11:44:26]*** Partial cut [11:44:26]*** CUTSNS_PIN = 1 [11:44:26]*** CUTSNS_PIN = 0 [11:44:26]*** Brake cut motor [11:44:27]Read from MH i2c: 01 [11:44:27]MH_I2C_Read... [11:44:27]*** Stop cut motor [11:44:27]*** Cut end [11:44:27]Read from MH i2c: 01 07 00 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: 01 07 00 CF 57 00 00 00 00 00 FF 0F 3B [11:44:27]process_action close_receipt done [11:44:27]requested_data is exist [11:44:27]produce_requested_data [11:44:27]requested_item fm.sn is exist - process it [11:44:27]wFMCommunicate request_size=4 [11:44:27]MH_SAM_APDU [11:44:27]CAPDU: 80 11 00 00 [11:44:27]Write to MH i2c: E2 08 00 D0 57 80 11 00 00 00 00 00 00 A1 [11:44:27]Write i2c OK [11:44:27]MH_I2C_Read... [11:44:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:27]Read from MH i2c: E2 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 17 00 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 17 00 D0 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FC [11:44:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:44:27]wFMCommunicate OK [11:44:27]requested_item fd.num is exist - process it [11:44:27]SAM_PROTO_GetFieldsCounters [11:44:27]wFMCommunicate request_size=4 [11:44:27]MH_SAM_APDU [11:44:27]CAPDU: 80 13 00 00 [11:44:27]Write to MH i2c: E2 08 00 D1 57 80 13 00 00 00 00 00 00 A4 [11:44:27]Write i2c OK [11:44:27]MH_I2C_Read... [11:44:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:27]Read from MH i2c: E2 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 62 00 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 62 00 D1 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A3 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [11:44:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A3 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:27]wFMCommunicate OK [11:44:27]SAM_PROTO_GetFieldsCounters done [11:44:27]requested_item shift.num is exist - process it [11:44:27]requested_item shift.opened is exist - process it [11:44:27]req_shift_opened [11:44:27]FM_GetShiftState [11:44:27]SAM_PROTO_GetShiftState [11:44:27]wFMCommunicate request_size=4 [11:44:27]MH_SAM_APDU [11:44:27]CAPDU: 80 13 01 00 [11:44:27]Write to MH i2c: E2 08 00 D2 57 80 13 01 00 00 00 00 00 A6 [11:44:27]Write i2c OK [11:44:27]MH_I2C_Read... [11:44:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:27]Read from MH i2c: E2 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 0E 00 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 0E 00 D2 57 00 09 00 01 89 19 24 67 00 00 00 00 90 00 DF [11:44:27]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:44:27]wFMCommunicate OK [11:44:27]SAM_PROTO_GetShiftState done [11:44:27]FM_GetShiftState done [11:44:27]req_shift_opened done [11:44:27]requested_item shift.open_date is exist - process it [11:44:27]req_shift_open_date [11:44:27]req_shift_open_date done [11:44:27]produce_requested_data done [11:44:27]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139939,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [11:44:27]process_action_free close_receipt [11:44:27]json_value_free [11:44:27]json_value_free done [11:44:27]process_json_proto returns [11:44:27]Send response to host [11:44:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139939,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [11:44:27]free response buf [11:44:27]execute_script done [11:44:27]execute_script returns [11:44:27]free content buf [11:44:27]Sock 7.Close socket [11:44:27]Sock 7.Thread stoped [11:44:31]OFD Sender: No OFD packet to send [11:44:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:21]OFD Sender: No OFD packet to send [11:45:26]OFD Sender: No OFD packet to send [11:45:31]OFD Sender: No OFD packet to send [11:45:36]OFD Sender: No OFD packet to send [11:45:41]OFD Sender: No OFD packet to send [11:45:46]OFD Sender: No OFD packet to send [11:45:51]OFD Sender: No OFD packet to send [11:45:56]OFD Sender: No OFD packet to send [11:46:01]OFD Sender: No OFD packet to send [11:46:06]OFD Sender: No OFD packet to send [11:46:11]OFD Sender: No OFD packet to send [11:46:16]OFD Sender: No OFD packet to send [11:46:21]OFD Sender: No OFD packet to send [11:46:26]OFD Sender: No OFD packet to send [11:46:31]OFD Sender: No OFD packet to send [11:46:36]OFD Sender: No OFD packet to send [11:46:41]OFD Sender: No OFD packet to send [11:46:46]OFD Sender: No OFD packet to send [11:46:51]OFD Sender: No OFD packet to send [11:46:56]OFD Sender: No OFD packet to send [11:47:01]OFD Sender: No OFD packet to send [11:47:06]OFD Sender: No OFD packet to send [11:47:11]OFD Sender: No OFD packet to send [11:47:16]OFD Sender: No OFD packet to send [11:47:21]OFD Sender: No OFD packet to send [11:47:26]OFD Sender: No OFD packet to send [11:47:31]OFD Sender: No OFD packet to send [11:47:36]OFD Sender: No OFD packet to send [11:47:41]OFD Sender: No OFD packet to send [11:47:46]OFD Sender: No OFD packet to send [11:47:51]OFD Sender: No OFD packet to send [11:47:56]OFD Sender: No OFD packet to send [11:48:01]OFD Sender: No OFD packet to send [11:48:06]OFD Sender: No OFD packet to send [11:48:11]OFD Sender: No OFD packet to send [11:48:16]OFD Sender: No OFD packet to send [11:48:21]OFD Sender: No OFD packet to send [11:48:26]OFD Sender: No OFD packet to send [11:48:31]OFD Sender: No OFD packet to send [11:48:36]OFD Sender: No OFD packet to send [11:48:41]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:12]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:52]OFD Sender: No OFD packet to send [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:17]OFD Sender: No OFD packet to send [11:57:22]OFD Sender: No OFD packet to send [11:57:27]OFD Sender: No OFD packet to send [11:57:32]OFD Sender: No OFD packet to send [11:57:37]OFD Sender: No OFD packet to send [11:57:42]OFD Sender: No OFD packet to send [11:57:47]OFD Sender: No OFD packet to send [11:57:52]OFD Sender: No OFD packet to send [11:57:57]OFD Sender: No OFD packet to send [11:58:02]OFD Sender: No OFD packet to send [11:58:07]OFD Sender: No OFD packet to send [11:58:12]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:37]OFD Sender: No OFD packet to send [11:58:42]OFD Sender: No OFD packet to send [11:58:47]OFD Sender: No OFD packet to send [11:58:52]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:23]accept exits with 9 [11:59:23]New connection [11:59:23] Sock 9.Parse request [11:59:23]Sock 9.Check first char [11:59:23]Sock 9.First char is OK [11:59:23]New thread 3066654052 created [11:59:23]request: POST /json_proto HTTP/1.0 [11:59:23]Thread 3066510692 joined [11:59:23]Method: POST [11:59:23]Waiting for new connection... [11:59:23]URL: /json_proto [11:59:23]Method is POST - this is cgi request [11:59:23]url: /json_proto [11:59:23]query_string will be loaded in cgi processing [11:59:23]execute_cgi json_proto POST (null) [11:59:23]execute_cgi path=json_proto method=POST [11:59:23]POST find Content-Length [11:59:23]Host: 172.17.50.196:8080 [11:59:23]Content-Length: 1011 [11:59:23]Content-Type: application/json [11:59:23] [11:59:23]POST finish read [11:59:23]Found Content-Length = 1011 [11:59:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335761", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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" : 1.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:23]execute_script... [11:59: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)335761", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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" : 1.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:23]POST & json_proto [11:59:23]process_json_proto [11:59:23]json parsed OK: [11:59:23]protocol is kg_v1.0 [11:59:23]action value=close_receipt [11:59:23]process_action close_receipt [11:59:23]cmd_close_receipt [11:59:23]MH_GetDate [11:59:23]Write to MH i2c: F0 00 00 D3 57 19 [11:59:23]Write i2c OK [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: F0 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: F0 09 00 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: F0 09 00 D3 57 00 A1 C2 24 67 72 0D 1C 67 12 [11:59:23]GetLastDocTimeStamp 1730461469 [11:59:23]current date 1730462369 [11:59:23]FM_GetShiftState [11:59:23]SAM_PROTO_GetShiftState [11:59:23]wFMCommunicate request_size=4 [11:59:23]MH_SAM_APDU [11:59:23]CAPDU: 80 13 01 00 [11:59:23]Write to MH i2c: E2 08 00 D4 57 80 13 01 00 00 00 00 00 A8 [11:59:23]Write i2c OK [11:59:23]MH_I2C_Read... [11:59:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:23]Read from MH i2c: E2 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: E2 0E 00 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: E2 0E 00 D4 57 00 09 00 01 89 19 24 67 00 00 00 00 90 00 E1 [11:59:23]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:59:23]wFMCommunicate OK [11:59:23]SAM_PROTO_GetShiftState done [11:59:23]FM_GetShiftState done [11:59:23]opened in 1730419081 [11:59:23]opened+sec_in_day 1730505481 [11:59:23]quantity*price = 13000 [11:59:23]sum+1 = 13001 [11:59:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003730039 Снек Возд пшеница Бадырак сладкая 30гр 1.000 * 20.00 = 20.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.92 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 121 01.11.2024 11:59 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139940 ФПД: 206447255150646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T115929&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139940&fm=206447255150646&tin=02508201610067®Number=0000000000091631&sum=15000 0 [11:59:25]StoreToDocumentArchive [11:59:25]shift 558 fd 139940 [11:59:25]save to /storage/0558/doc_00139940 [11:59:25]save last doc name /storage/0558/doc_00139940 to /storage/kkm_last_doc_name [11:59:25]save OK [11:59:25]Clear old archive folders... [11:59:25]ProcessDocumentItem done err = 0, tmpTLVsize=423 [11:59:25]tlvbuf is B6F0C6C0 [11:59:25]SAM_PROTO_ClearQueue [11:59:25]wFMCommunicate request_size=4 [11:59:25]MH_SAM_APDU [11:59:25]CAPDU: 80 09 00 00 [11:59:25]Write to MH i2c: E2 08 00 E1 57 80 09 00 00 00 00 00 00 AA [11:59:25]Write i2c OK [11:59:25]MH_I2C_Read... [11:59:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:25]Read from MH i2c: E2 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: E2 03 00 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: E2 03 00 E1 57 00 90 00 AC [11:59:25]RAPDU: 90 00 [11:59:25]wFMCommunicate OK [11:59:25]SAM_PROTO_ClearQueue done [11:59:25]KKMCreateOFDPacket [11:59:25]OFDProtocolAddRootSTLVToBuf [11:59:25]FM_MakeSignedData [11:59:25]FM_MakeSignedData [11:59:25]SAM_PROTO_SignData [11:59:25]wFMCommunicate request_size=4 [11:59:25]MH_SAM_APDU [11:59:25]CAPDU: 80 0D 01 02 [11:59:25]Write to MH i2c: E2 08 00 E2 57 80 0D 01 02 00 00 00 00 B2 [11:59:25]Write i2c OK [11:59:25]MH_I2C_Read... [11:59:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:25]Read from MH i2c: E2 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: E2 03 00 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: E2 03 00 E2 57 00 90 00 AD [11:59:25]RAPDU: 90 00 [11:59:25]wFMCommunicate OK [11:59:25]wFMCommunicate request_size=255 [11:59:25]MH_SAM_APDU [11:59:25]CAPDU: 80 0D 02 02 FA 03 00 A7 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 [11:59:25]Write to MH i2c: E2 02 01 E3 57 80 0D 02 02 FA 00 03 00 A7 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 00 8A [11:59:25]Write i2c OK [11:59:25]MH_I2C_Read... [11:59:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:25]Read from MH i2c: E2 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: E2 03 00 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: E2 03 00 E3 57 00 90 00 AE [11:59:25]RAPDU: 90 00 [11:59:25]wFMCommunicate OK [11:59:25]wFMCommunicate request_size=182 [11:59:25]MH_SAM_APDU [11:59:25]CAPDU: 80 0D 02 02 B1 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 38 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 79 00 00 00 F4 03 04 00 A1 C2 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A4 22 02 00 35 04 06 00 BB C3 3F 4E E0 36 [11:59:25]Write to MH i2c: E2 B9 00 E4 57 80 0D 02 02 B1 00 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 38 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 79 00 00 00 F4 03 04 00 A1 C2 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A4 22 02 00 35 04 06 00 BB C3 3F 4E E0 36 00 00 01 [11:59:25]Write i2c OK [11:59:25]MH_I2C_Read... [11:59:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:25]Read from MH i2c: E2 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: E2 03 00 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: E2 03 00 E4 57 00 90 00 AF [11:59:25]RAPDU: 90 00 [11:59:25]wFMCommunicate OK [11:59:25]wFMCommunicate request_size=4 [11:59:25]MH_SAM_APDU [11:59:25]CAPDU: 80 0D 03 02 [11:59:25]Write to MH i2c: E2 08 00 E5 57 80 0D 03 02 00 00 00 00 B7 [11:59:25]Write i2c OK [11:59:25]MH_I2C_Read... [11:59:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:25]Read from MH i2c: E2 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: E2 0B 00 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: E2 0B 00 E5 57 00 3A 55 9A 0B 1D 8A 39 A7 90 00 73 [11:59:25]RAPDU: 3A 55 9A 0B 1D 8A 39 A7 90 00 [11:59:25]wFMCommunicate OK [11:59:25]SAM_PROTO_SignData done [11:59:25]FM_MakeSignedData done [11:59:25]CreateOFDProtocolMessage [11:59:25]wFMCommunicate request_size=4 [11:59:25]MH_SAM_APDU [11:59:25]CAPDU: 80 11 00 00 [11:59:25]Write to MH i2c: E2 08 00 E6 57 80 11 00 00 00 00 00 00 B7 [11:59:25]Write i2c OK [11:59:25]MH_I2C_Read... [11:59:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:25]Read from MH i2c: E2 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: E2 17 00 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: E2 17 00 E6 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 12 [11:59:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:59:25]wFMCommunicate OK [11:59:25]CreateOFDProtocolMessage done [11:59:25]OFDSenderStorePacket 139940 [11:59:25]StoreOFDPacket docnum=139940 [11:59:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 BB 01 00 00 8E 25 B3 01 D2 F7 5A 03 01 00 03 00 A7 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 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 38 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 79 00 00 00 F4 03 04 00 A1 C2 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A4 22 02 00 35 04 06 00 BB C3 3F 4E E0 36 3A 55 9A 0B 1D 8A 39 A7 [11:59:25]CheckFolder [11:59:25]dirname=/storage/ofd_packets [11:59:25]CheckFolder done [11:59:25]ProducePacketName [11:59:25]name=ofd_packets/00139940 [11:59:25]NVStorageSaveData ofd_packets/00139940 [11:59:25]File name is /storage/ofd_packets/00139940 [11:59:25]Write 473 bytes [11:59:25]NVStorageSaveData done [11:59:25]OFDSenderStorePacket done [11:59:25]KKMCreateOFDPacket done [11:59:25]NVStorageSaveData kkm_last_timestamp [11:59:25]File name is /storage/kkm_last_timestamp [11:59:25]Write 4 bytes [11:59:25]NVStorageSaveData done [11:59:25]ExternCall_PrintAddStr [11:59:25]wPrintStart [11:59:25]Write to MH i2c: 01 00 00 E7 57 3E [11:59:25]Write i2c OK [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: 01 [11:59:26]MH_I2C_Read... [11:59:26]OFD Sender: Processing packet 139940 [packets to send 34, broken 33] [11:59:26]ProducePacketName [11:59:26]name=ofd_packets/00139940 [11:59:26]OFD Sender: To server: pG, [11:59:26]CommunicateWithHost lk.salyk.kg:30040 [11:59:26]ConnectInit lk.salyk.kg [11:59:26]Read from MH i2c: 01 07 00 [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: 01 07 00 E7 57 00 00 00 00 00 FF 0F 53 [11:59:26]RasterBufferAndPrint [11:59:26]line Счет N : (3)335761 [11:59:26]line ИНН: 02508201610067 [11:59:26]line Контрольно-Кассовый Чек [11:59:26]line ПРОДАЖА [11:59:26]line Товар: 2000036220012 [11:59:26]line Кофе Капучино XL(GABB TRADE) [11:59:26]line 1.000 * 130.00 [11:59:26]line = 130.00 [11:59:26]line НДС 12% НСП 1% [11:59:26]line > о реализуемом товаре [11:59:26]line Товар: 4700003730039 [11:59:26]line Снек Возд пшеница Бадырак сладкая 30гр [11:59:26]line 1.000 * 20.00 [11:59:26]line = 20.00 [11:59:26]line НДС 12% НСП 1% [11:59:26]line > о реализуемом товаре [11:59:26]line ИТОГО: 150.00 [11:59:26]line НСП 1% : 1.33 [11:59:26]line НДС 12% : 15.92 [11:59:26]line Наличными: 150.00 [11:59:26]line Безнал.: 0.00 [11:59:26]line Место: АЗС № 101 "Партнер Нефть" [11:59:26]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:59:26]line СНО: Общий режим [11:59:26]line Чек 121 01.11.2024 11:59 [11:59:26]line Смена: 558 ФФД: 1.0 [11:59:26]line ЗНМ: 0300000081 [11:59:26]line РНМ: 0000000000091631 [11:59:26]line Версия ККМ: 001 [11:59:26]line ФМ: 0000000000874669 [11:59:26]line ФД: 139940 [11:59:26]line ФПД: 206447255150646 [11:59:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T115929&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139940&fm=206447255150646&tin=02508201610067®Number=0000000000091631&sum=15000 [11:59:26]line 0 [11:59:26]written 0, free lines is 4095 [11:59:26]Connected sock=10 [11:59:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 BB 01 00 00 8E 25 B3 01 D2 F7 5A 03 01 00 03 00 A7 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 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 38 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 79 00 00 00 F4 03 04 00 A1 C2 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A4 22 02 00 35 04 06 00 BB C3 3F 4E E0 36 3A 55 9A 0B 1D 8A 39 A7 [11:59:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 62 42 47 00 EA 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A4 22 02 00 F4 03 04 00 4C 6E 24 67 B6 04 01 00 00 56 FD 09 A7 FA 50 97 40 [11:59:26]CommunicateWithHost err = 0 [11:59:26]CheckOFDResponse [11:59:26]1017 (14) - 77093643461234 [11:59:26]1041 (16) - 0000000000874669 [11:59:26]1040 (4) - 139940 [11:59:26]1012 (4) - 01.11.2024 05:59 [11:59:26]1206 (1) - 0 [11:59:26]OFD Sender: Remove packet 139940 [11:59:26]ProducePacketName [11:59:26]name=ofd_packets/00139940 [11:59:26]NVStorageDeleteData [11:59:26]Write to MH i2c: 01 00 00 17 58 6F [11:59:26]Write i2c OK [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: 01 [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: 01 07 00 [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: 01 07 00 17 58 00 00 00 00 00 A6 0C 28 [11:59:26]RasterBufferAndPrint [11:59:26]line [11:59:26]line [11:59:26]line [11:59:26]line [11:59:26]line [11:59:26]written 0, free lines is 3247 [11:59:26]MH_Cut [11:59:26]Write to MH i2c: D1 01 00 1E 58 01 48 [11:59:26]Write i2c OK [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: D1 [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: D1 01 00 [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: D1 01 00 1E 58 00 47 [11:59:26]Write to MH i2c: 01 00 00 1F 58 77 [11:59:26]Write i2c OK [11:59:26]MH_I2C_Read... [11:59:26]OFD Sender: No OFD packet to send [11:59:27]*** Cut start [11:59:27]*** Partial cut [11:59:27]*** CUTSNS_PIN = 1 [11:59:27]*** CUTSNS_PIN = 0 [11:59:27]*** Brake cut motor [11:59:27]Read from MH i2c: 01 [11:59:27]MH_I2C_Read... [11:59:27]*** Stop cut motor [11:59:27]*** Cut end [11:59:27]Read from MH i2c: 01 07 00 [11:59:27]MH_I2C_Read... [11:59:27]Read from MH i2c: 01 07 00 1F 58 00 00 00 00 00 FF 0F 8C [11:59:27]process_action close_receipt done [11:59:27]requested_data is exist [11:59:27]produce_requested_data [11:59:27]requested_item fm.sn is exist - process it [11:59:27]wFMCommunicate request_size=4 [11:59:27]MH_SAM_APDU [11:59:27]CAPDU: 80 11 00 00 [11:59:27]Write to MH i2c: E2 08 00 20 58 80 11 00 00 00 00 00 00 F2 [11:59:27]Write i2c OK [11:59:27]MH_I2C_Read... [11:59:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:27]Read from MH i2c: E2 [11:59:27]MH_I2C_Read... [11:59:27]Read from MH i2c: E2 17 00 [11:59:27]MH_I2C_Read... [11:59:27]Read from MH i2c: E2 17 00 20 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4D [11:59:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:59:27]wFMCommunicate OK [11:59:27]requested_item fd.num is exist - process it [11:59:27]SAM_PROTO_GetFieldsCounters [11:59:27]wFMCommunicate request_size=4 [11:59:27]MH_SAM_APDU [11:59:27]CAPDU: 80 13 00 00 [11:59:27]Write to MH i2c: E2 08 00 21 58 80 13 00 00 00 00 00 00 F5 [11:59:27]Write i2c OK [11:59:27]MH_I2C_Read... [11:59:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:28]Read from MH i2c: E2 [11:59:28]MH_I2C_Read... [11:59:28]Read from MH i2c: E2 62 00 [11:59:28]MH_I2C_Read... [11:59:28]Read from MH i2c: E2 62 00 21 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A4 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [11:59:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A4 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:28]wFMCommunicate OK [11:59:28]SAM_PROTO_GetFieldsCounters done [11:59:28]requested_item shift.num is exist - process it [11:59:28]requested_item shift.opened is exist - process it [11:59:28]req_shift_opened [11:59:28]FM_GetShiftState [11:59:28]SAM_PROTO_GetShiftState [11:59:28]wFMCommunicate request_size=4 [11:59:28]MH_SAM_APDU [11:59:28]CAPDU: 80 13 01 00 [11:59:28]Write to MH i2c: E2 08 00 22 58 80 13 01 00 00 00 00 00 F7 [11:59:28]Write i2c OK [11:59:28]MH_I2C_Read... [11:59:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:28]Read from MH i2c: E2 [11:59:28]MH_I2C_Read... [11:59:28]Read from MH i2c: E2 0E 00 [11:59:28]MH_I2C_Read... [11:59:28]Read from MH i2c: E2 0E 00 22 58 00 09 00 01 89 19 24 67 00 00 00 00 90 00 30 [11:59:28]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [11:59:28]wFMCommunicate OK [11:59:28]SAM_PROTO_GetShiftState done [11:59:28]FM_GetShiftState done [11:59:28]req_shift_opened done [11:59:28]requested_item shift.open_date is exist - process it [11:59:28]req_shift_open_date [11:59:28]req_shift_open_date done [11:59:28]produce_requested_data done [11:59:28]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139940,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [11:59:28]process_action_free close_receipt [11:59:28]json_value_free [11:59:28]json_value_free done [11:59:28]process_json_proto returns [11:59:28]Send response to host [11:59:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139940,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [11:59:28]free response buf [11:59:28]execute_script done [11:59:28]execute_script returns [11:59:28]free content buf [11:59:28]Sock 9.Close socket [11:59:28]Sock 9.Thread stoped [11:59:31]OFD Sender: No OFD packet to send [11:59:36]OFD Sender: No OFD packet to send [11:59:41]OFD Sender: No OFD packet to send [11:59:46]OFD Sender: No OFD packet to send [11:59:51]OFD Sender: No OFD packet to send [11:59:56]OFD Sender: No OFD packet to send [12:00:01]OFD Sender: No OFD packet to send [12:00:06]OFD Sender: No OFD packet to send [12:00:11]OFD Sender: No OFD packet to send [12:00:16]OFD Sender: No OFD packet to send [12:00:21]OFD Sender: No OFD packet to send [12:00:26]OFD Sender: No OFD packet to send [12:00:31]OFD Sender: No OFD packet to send [12:00:36]OFD Sender: No OFD packet to send [12:00:41]OFD Sender: No OFD packet to send [12:00:46]OFD Sender: No OFD packet to send [12:00:51]OFD Sender: No OFD packet to send [12:00:56]OFD Sender: No OFD packet to send [12:01:01]OFD Sender: No OFD packet to send [12:01:06]OFD Sender: No OFD packet to send [12:01:11]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:21]OFD Sender: No OFD packet to send [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:27]OFD Sender: No OFD packet to send [12:02:32]OFD Sender: No OFD packet to send [12:02:37]OFD Sender: No OFD packet to send [12:02:42]OFD Sender: No OFD packet to send [12:02:47]OFD Sender: No OFD packet to send [12:02:52]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]OFD Sender: No OFD packet to send [12:05:27]OFD Sender: No OFD packet to send [12:05:32]OFD Sender: No OFD packet to send [12:05:37]OFD Sender: No OFD packet to send [12:05:42]OFD Sender: No OFD packet to send [12:05:47]OFD Sender: No OFD packet to send [12:05:52]OFD Sender: No OFD packet to send [12:05:57]OFD Sender: No OFD packet to send [12:06:02]OFD Sender: No OFD packet to send [12:06:07]OFD Sender: No OFD packet to send [12:06:12]OFD Sender: No OFD packet to send [12:06:17]OFD Sender: No OFD packet to send [12:06:22]OFD Sender: No OFD packet to send [12:06:27]OFD Sender: No OFD packet to send [12:06:32]OFD Sender: No OFD packet to send [12:06:37]OFD Sender: No OFD packet to send [12:06:42]OFD Sender: No OFD packet to send [12:06:47]OFD Sender: No OFD packet to send [12:06:52]OFD Sender: No OFD packet to send [12:06:57]OFD Sender: No OFD packet to send [12:07:02]OFD Sender: No OFD packet to send [12:07:07]OFD Sender: No OFD packet to send [12:07:12]OFD Sender: No OFD packet to send [12:07:17]OFD Sender: No OFD packet to send [12:07:22]OFD Sender: No OFD packet to send [12:07:27]OFD Sender: No OFD packet to send [12:07:32]OFD Sender: No OFD packet to send [12:07:37]OFD Sender: No OFD packet to send [12:07:42]OFD Sender: No OFD packet to send [12:07:47]OFD Sender: No OFD packet to send [12:07:52]OFD Sender: No OFD packet to send [12:07:57]OFD Sender: No OFD packet to send [12:08:02]OFD Sender: No OFD packet to send [12:08:07]OFD Sender: No OFD packet to send [12:08:12]OFD Sender: No OFD packet to send [12:08:17]OFD Sender: No OFD packet to send [12:08:22]OFD Sender: No OFD packet to send [12:08:27]OFD Sender: No OFD packet to send [12:08:32]OFD Sender: No OFD packet to send [12:08:37]OFD Sender: No OFD packet to send [12:08:42]OFD Sender: No OFD packet to send [12:08:47]OFD Sender: No OFD packet to send [12:08:52]OFD Sender: No OFD packet to send [12:08:57]OFD Sender: No OFD packet to send [12:09:02]OFD Sender: No OFD packet to send [12:09:07]OFD Sender: No OFD packet to send [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]OFD Sender: No OFD packet to send [12:11:02]OFD Sender: No OFD packet to send [12:11:07]OFD Sender: No OFD packet to send [12:11:12]OFD Sender: No OFD packet to send [12:11:17]OFD Sender: No OFD packet to send [12:11:22]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]OFD Sender: No OFD packet to send [12:11:42]OFD Sender: No OFD packet to send [12:11:47]OFD Sender: No OFD packet to send [12:11:52]OFD Sender: No OFD packet to send [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:57]OFD Sender: No OFD packet to send [12:13:02]OFD Sender: No OFD packet to send [12:13:07]OFD Sender: No OFD packet to send [12:13:12]OFD Sender: No OFD packet to send [12:13:17]OFD Sender: No OFD packet to send [12:13:22]OFD Sender: No OFD packet to send [12:13:27]OFD Sender: No OFD packet to send [12:13:32]OFD Sender: No OFD packet to send [12:13:37]OFD Sender: No OFD packet to send [12:13:42]OFD Sender: No OFD packet to send [12:13:47]OFD Sender: No OFD packet to send [12:13:52]OFD Sender: No OFD packet to send [12:13:54]accept exits with 7 [12:13:54]New connection [12:13:54]New thread 3066510692 created [12:13:54]Thread 3066654052 joined [12:13:54]Waiting for new connection... [12:13:54] Sock 7.Parse request [12:13:54]Sock 7.Check first char [12:13:54]Sock 7.First char is OK [12:13:54]request: POST /json_proto HTTP/1.0 [12:13:54]Method: POST [12:13:54]URL: /json_proto [12:13:54]Method is POST - this is cgi request [12:13:54]url: /json_proto [12:13:54]query_string will be loaded in cgi processing [12:13:54]execute_cgi json_proto POST (null) [12:13:54]execute_cgi path=json_proto method=POST [12:13:54]POST find Content-Length [12:13:54]Host: 172.17.50.196:8080 [12:13:54]Content-Length: 753 [12:13:54]Content-Type: application/json [12:13:54] [12:13:54]POST finish read [12:13:54]Found Content-Length = 753 [12:13:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335762", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:54]execute_script... [12:13: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)335762", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:54]POST & json_proto [12:13:54]process_json_proto [12:13:54]json parsed OK: [12:13:54]protocol is kg_v1.0 [12:13:54]action value=close_receipt [12:13:54]process_action close_receipt [12:13:54]cmd_close_receipt [12:13:54]MH_GetDate [12:13:54]Write to MH i2c: F0 00 00 23 58 6A [12:13:54]Write i2c OK [12:13:54]MH_I2C_Read... [12:13:54]Read from MH i2c: F0 [12:13:54]MH_I2C_Read... [12:13:54]Read from MH i2c: F0 09 00 [12:13:54]MH_I2C_Read... [12:13:54]Read from MH i2c: F0 09 00 23 58 00 07 C6 24 67 72 0D 1C 67 CD [12:13:54]GetLastDocTimeStamp 1730462369 [12:13:54]current date 1730463239 [12:13:54]FM_GetShiftState [12:13:54]SAM_PROTO_GetShiftState [12:13:54]wFMCommunicate request_size=4 [12:13:54]MH_SAM_APDU [12:13:54]CAPDU: 80 13 01 00 [12:13:54]Write to MH i2c: E2 08 00 24 58 80 13 01 00 00 00 00 00 F9 [12:13:54]Write i2c OK [12:13:54]MH_I2C_Read... [12:13:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:54]Read from MH i2c: E2 [12:13:54]MH_I2C_Read... [12:13:54]Read from MH i2c: E2 0E 00 [12:13:54]MH_I2C_Read... [12:13:54]Read from MH i2c: E2 0E 00 24 58 00 09 00 01 89 19 24 67 00 00 00 00 90 00 32 [12:13:54]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:13:54]wFMCommunicate OK [12:13:54]SAM_PROTO_GetShiftState done [12:13:54]FM_GetShiftState done [12:13:54]opened in 1730419081 [12:13:54]opened+sec_in_day 1730505481 [12:13:54]quantity*price = 13900 [12:13:54]sum+1 = 13901 [12:13:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 0.00 Безнал.: 139.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 122 01.11.2024 12:14 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139941 ФПД: 148862783368525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T121400&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139941&fm=148862783368525&tin=02508201610067®Number=0000000000091631&sum=13900 0 [12:13:55]StoreToDocumentArchive [12:13:55]shift 558 fd 139941 [12:13:55]save to /storage/0558/doc_00139941 [12:13:55]save last doc name /storage/0558/doc_00139941 to /storage/kkm_last_doc_name [12:13:55]save OK [12:13:55]Clear old archive folders... [12:13:55]ProcessDocumentItem done err = 0, tmpTLVsize=278 [12:13:55]tlvbuf is 00AC3600 [12:13:55]SAM_PROTO_ClearQueue [12:13:55]wFMCommunicate request_size=4 [12:13:55]MH_SAM_APDU [12:13:55]CAPDU: 80 09 00 00 [12:13:55]Write to MH i2c: E2 08 00 31 58 80 09 00 00 00 00 00 00 FB [12:13:55]Write i2c OK [12:13:55]MH_I2C_Read... [12:13:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:55]Read from MH i2c: E2 [12:13:55]MH_I2C_Read... [12:13:55]Read from MH i2c: E2 03 00 [12:13:55]MH_I2C_Read... [12:13:55]Read from MH i2c: E2 03 00 31 58 00 90 00 FD [12:13:55]RAPDU: 90 00 [12:13:55]wFMCommunicate OK [12:13:55]SAM_PROTO_ClearQueue done [12:13:55]KKMCreateOFDPacket [12:13:55]OFDProtocolAddRootSTLVToBuf [12:13:55]FM_MakeSignedData [12:13:55]FM_MakeSignedData [12:13:55]SAM_PROTO_SignData [12:13:55]wFMCommunicate request_size=4 [12:13:55]MH_SAM_APDU [12:13:55]CAPDU: 80 0D 01 02 [12:13:55]Write to MH i2c: E2 08 00 32 58 80 0D 01 02 00 00 00 00 03 [12:13:55]Write i2c OK [12:13:55]MH_I2C_Read... [12:13:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:55]Read from MH i2c: E2 [12:13:55]MH_I2C_Read... [12:13:55]Read from MH i2c: E2 03 00 [12:13:55]MH_I2C_Read... [12:13:55]Read from MH i2c: E2 03 00 32 58 00 90 00 FE [12:13:55]RAPDU: 90 00 [12:13:55]wFMCommunicate OK [12:13:55]wFMCommunicate request_size=255 [12:13:55]MH_SAM_APDU [12:13:55]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 08 C6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 [12:13:55]Write to MH i2c: E2 02 01 33 58 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 08 C6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 00 00 41 [12:13:55]Write i2c OK [12:13:55]MH_I2C_Read... [12:13:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:56]Read from MH i2c: E2 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: E2 03 00 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: E2 03 00 33 58 00 90 00 FF [12:13:56]RAPDU: 90 00 [12:13:56]wFMCommunicate OK [12:13:56]wFMCommunicate request_size=37 [12:13:56]MH_SAM_APDU [12:13:56]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A5 22 02 00 35 04 06 00 87 63 D1 52 AD 4D [12:13:56]Write to MH i2c: E2 28 00 34 58 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A5 22 02 00 35 04 06 00 87 63 D1 52 AD 4D 00 00 35 [12:13:56]Write i2c OK [12:13:56]MH_I2C_Read... [12:13:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:56]Read from MH i2c: E2 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: E2 03 00 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: E2 03 00 34 58 00 90 00 00 [12:13:56]RAPDU: 90 00 [12:13:56]wFMCommunicate OK [12:13:56]wFMCommunicate request_size=4 [12:13:56]MH_SAM_APDU [12:13:56]CAPDU: 80 0D 03 02 [12:13:56]Write to MH i2c: E2 08 00 35 58 80 0D 03 02 00 00 00 00 08 [12:13:56]Write i2c OK [12:13:56]MH_I2C_Read... [12:13:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:56]Read from MH i2c: E2 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: E2 0B 00 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: E2 0B 00 35 58 00 F1 93 29 87 21 97 BC 3F 90 00 F0 [12:13:56]RAPDU: F1 93 29 87 21 97 BC 3F 90 00 [12:13:56]wFMCommunicate OK [12:13:56]SAM_PROTO_SignData done [12:13:56]FM_MakeSignedData done [12:13:56]CreateOFDProtocolMessage [12:13:56]wFMCommunicate request_size=4 [12:13:56]MH_SAM_APDU [12:13:56]CAPDU: 80 11 00 00 [12:13:56]Write to MH i2c: E2 08 00 36 58 80 11 00 00 00 00 00 00 08 [12:13:56]Write i2c OK [12:13:56]MH_I2C_Read... [12:13:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:56]Read from MH i2c: E2 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: E2 17 00 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: E2 17 00 36 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 63 [12:13:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:13:56]wFMCommunicate OK [12:13:56]CreateOFDProtocolMessage done [12:13:56]OFDSenderStorePacket 139941 [12:13:56]StoreOFDPacket docnum=139941 [12:13:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 C9 EB 22 01 DE BB 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 08 C6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A5 22 02 00 35 04 06 00 87 63 D1 52 AD 4D F1 93 29 87 21 97 BC 3F [12:13:56]CheckFolder [12:13:56]dirname=/storage/ofd_packets [12:13:56]CheckFolder done [12:13:56]ProducePacketName [12:13:56]name=ofd_packets/00139941 [12:13:56]NVStorageSaveData ofd_packets/00139941 [12:13:56]File name is /storage/ofd_packets/00139941 [12:13:56]Write 328 bytes [12:13:56]NVStorageSaveData done [12:13:56]OFDSenderStorePacket done [12:13:56]KKMCreateOFDPacket done [12:13:56]NVStorageSaveData kkm_last_timestamp [12:13:56]File name is /storage/kkm_last_timestamp [12:13:56]Write 4 bytes [12:13:56]NVStorageSaveData done [12:13:56]ExternCall_PrintAddStr [12:13:56]wPrintStart [12:13:56]Write to MH i2c: 01 00 00 37 58 8F [12:13:56]Write i2c OK [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: 01 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: 01 07 00 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: 01 07 00 37 58 00 00 00 00 00 FF 0F A4 [12:13:56]RasterBufferAndPrint [12:13:56]line Счет N : (3)335762 [12:13:56]line ИНН: 02508201610067 [12:13:56]line Контрольно-Кассовый Чек [12:13:56]line ПРОДАЖА [12:13:56]line Товар: 48741224 [12:13:56]line Сигареты Winston Super Slims Blue [12:13:56]line 1.000 * 139.00 [12:13:56]line = 139.00 [12:13:56]line НДС 12% НСП 1% [12:13:56]line > о реализуемом товаре [12:13:56]line ИТОГО: 139.00 [12:13:56]line НСП 1% : 1.23 [12:13:56]line НДС 12% : 14.76 [12:13:56]line Наличными: 0.00 [12:13:56]line Безнал.: 139.00 [12:13:56]line Место: АЗС № 101 "Партнер Нефть" [12:13:56]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:13:56]line СНО: Общий режим [12:13:56]line Чек 122 01.11.2024 12:14 [12:13:56]line Смена: 558 ФФД: 1.0 [12:13:56]line ЗНМ: 0300000081 [12:13:56]line РНМ: 0000000000091631 [12:13:56]line Версия ККМ: 001 [12:13:56]line Платежная система: Mbank [12:13:56]line ФМ: 0000000000874669 [12:13:56]line ФД: 139941 [12:13:56]line ФПД: 148862783368525 [12:13:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T121400&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139941&fm=148862783368525&tin=02508201610067®Number=0000000000091631&sum=13900 [12:13:56]line 0 [12:13:56]OFD Sender: Processing packet 139941 [packets to send 34, broken 33] [12:13:56]ProducePacketName [12:13:56]name=ofd_packets/00139941 [12:13:56]OFD Sender: To server: pG, [12:13:56]CommunicateWithHost lk.salyk.kg:30040 [12:13:56]ConnectInit lk.salyk.kg [12:13:56]written 0, free lines is 4095 [12:13:56]Connected sock=10 [12:13:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 C9 EB 22 01 DE BB 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 08 C6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A5 22 02 00 35 04 06 00 87 63 D1 52 AD 4D F1 93 29 87 21 97 BC 3F [12:13:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 CB DE 47 00 08 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A5 22 02 00 F4 03 04 00 B3 71 24 67 B6 04 01 00 00 F1 B1 2C 29 EF 62 DD 9D [12:13:56]CommunicateWithHost err = 0 [12:13:56]CheckOFDResponse [12:13:56]1017 (14) - 77093643461234 [12:13:56]1041 (16) - 0000000000874669 [12:13:56]1040 (4) - 139941 [12:13:56]1012 (4) - 01.11.2024 06:14 [12:13:56]1206 (1) - 0 [12:13:56]OFD Sender: Remove packet 139941 [12:13:56]ProducePacketName [12:13:56]name=ofd_packets/00139941 [12:13:56]NVStorageDeleteData [12:13:56]Write to MH i2c: 01 00 00 61 58 B9 [12:13:56]Write i2c OK [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: 01 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: 01 07 00 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: 01 07 00 61 58 00 00 00 00 00 EA 0C B6 [12:13:56]RasterBufferAndPrint [12:13:56]line [12:13:56]line [12:13:56]line [12:13:56]line [12:13:56]line [12:13:56]written 0, free lines is 3315 [12:13:56]MH_Cut [12:13:56]Write to MH i2c: D1 01 00 68 58 01 92 [12:13:56]Write i2c OK [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: D1 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: D1 01 00 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: D1 01 00 68 58 00 91 [12:13:56]Write to MH i2c: 01 00 00 69 58 C1 [12:13:56]Write i2c OK [12:13:56]MH_I2C_Read... [12:13:57]OFD Sender: No OFD packet to send [12:13:57]*** Cut start [12:13:57]*** Partial cut [12:13:57]*** CUTSNS_PIN = 1 [12:13:57]*** CUTSNS_PIN = 0 [12:13:57]*** Brake cut motor [12:13:58]Read from MH i2c: 01 [12:13:58]MH_I2C_Read... [12:13:58]*** Stop cut motor [12:13:58]*** Cut end [12:13:58]Read from MH i2c: 01 07 00 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: 01 07 00 69 58 00 00 00 00 00 FF 0F D6 [12:13:58]process_action close_receipt done [12:13:58]requested_data is exist [12:13:58]produce_requested_data [12:13:58]requested_item fm.sn is exist - process it [12:13:58]wFMCommunicate request_size=4 [12:13:58]MH_SAM_APDU [12:13:58]CAPDU: 80 11 00 00 [12:13:58]Write to MH i2c: E2 08 00 6A 58 80 11 00 00 00 00 00 00 3C [12:13:58]Write i2c OK [12:13:58]MH_I2C_Read... [12:13:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:58]Read from MH i2c: E2 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: E2 17 00 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: E2 17 00 6A 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 97 [12:13:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:13:58]wFMCommunicate OK [12:13:58]requested_item fd.num is exist - process it [12:13:58]SAM_PROTO_GetFieldsCounters [12:13:58]wFMCommunicate request_size=4 [12:13:58]MH_SAM_APDU [12:13:58]CAPDU: 80 13 00 00 [12:13:58]Write to MH i2c: E2 08 00 6B 58 80 13 00 00 00 00 00 00 3F [12:13:58]Write i2c OK [12:13:58]MH_I2C_Read... [12:13:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:58]Read from MH i2c: E2 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: E2 62 00 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: E2 62 00 6B 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A5 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [12:13:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A5 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:58]wFMCommunicate OK [12:13:58]SAM_PROTO_GetFieldsCounters done [12:13:58]requested_item shift.num is exist - process it [12:13:58]requested_item shift.opened is exist - process it [12:13:58]req_shift_opened [12:13:58]FM_GetShiftState [12:13:58]SAM_PROTO_GetShiftState [12:13:58]wFMCommunicate request_size=4 [12:13:58]MH_SAM_APDU [12:13:58]CAPDU: 80 13 01 00 [12:13:58]Write to MH i2c: E2 08 00 6C 58 80 13 01 00 00 00 00 00 41 [12:13:58]Write i2c OK [12:13:58]MH_I2C_Read... [12:13:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:58]Read from MH i2c: E2 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: E2 0E 00 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: E2 0E 00 6C 58 00 09 00 01 89 19 24 67 00 00 00 00 90 00 7A [12:13:58]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:13:58]wFMCommunicate OK [12:13:58]SAM_PROTO_GetShiftState done [12:13:58]FM_GetShiftState done [12:13:58]req_shift_opened done [12:13:58]requested_item shift.open_date is exist - process it [12:13:58]req_shift_open_date [12:13:58]req_shift_open_date done [12:13:58]produce_requested_data done [12:13:58]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139941,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [12:13:58]process_action_free close_receipt [12:13:58]json_value_free [12:13:58]json_value_free done [12:13:58]process_json_proto returns [12:13:58]Send response to host [12:13:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139941,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [12:13:58]free response buf [12:13:58]execute_script done [12:13:58]execute_script returns [12:13:58]free content buf [12:13:58]Sock 7.Close socket [12:13:58]Sock 7.Thread stoped [12:14:02]OFD Sender: No OFD packet to send [12:14:07]OFD Sender: No OFD packet to send [12:14:12]OFD Sender: No OFD packet to send [12:14:17]OFD Sender: No OFD packet to send [12:14:22]OFD Sender: No OFD packet to send [12:14:27]OFD Sender: No OFD packet to send [12:14:32]OFD Sender: No OFD packet to send [12:14:37]OFD Sender: No OFD packet to send [12:14:42]OFD Sender: No OFD packet to send [12:14:47]OFD Sender: No OFD packet to send [12:14:52]OFD Sender: No OFD packet to send [12:14:57]OFD Sender: No OFD packet to send [12:15:02]OFD Sender: No OFD packet to send [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:45]accept exits with 9 [12:16:45]New connection [12:16:45]New thread 3066654052 created [12:16:45]Thread 3066510692 joined [12:16:45]Waiting for new connection... [12:16:45] Sock 9.Parse request [12:16:45]Sock 9.Check first char [12:16:45]Sock 9.First char is OK [12:16:45]request: POST /json_proto HTTP/1.0 [12:16:45]Method: POST [12:16:45]URL: /json_proto [12:16:45]Method is POST - this is cgi request [12:16:45]url: /json_proto [12:16:45]query_string will be loaded in cgi processing [12:16:45]execute_cgi json_proto POST (null) [12:16:45]execute_cgi path=json_proto method=POST [12:16:45]POST find Content-Length [12:16:45]Host: 172.17.50.196:8080 [12:16:45]Content-Length: 215 [12:16:45]Content-Type: application/json [12:16:45] [12:16:45]POST finish read [12:16:45]Found Content-Length = 215 [12:16:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:45]execute_script... [12:16:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:45]POST & json_proto [12:16:45]process_json_proto [12:16:45]json parsed OK: [12:16:45]protocol is kg_v1.0 [12:16:45]action value=get_value [12:16:45]process_action get_value [12:16:45]cmd_get_value [12:16:45]process_action get_value done [12:16:45]requested_data is exist [12:16:45]produce_requested_data [12:16:45]requested_item kkm.sn is exist - process it [12:16:45]requested_item kkm.ver is exist - process it [12:16:45]requested_item fm.sn is exist - process it [12:16:45]wFMCommunicate request_size=4 [12:16:45]MH_SAM_APDU [12:16:45]CAPDU: 80 11 00 00 [12:16:45]Write to MH i2c: E2 08 00 6D 58 80 11 00 00 00 00 00 00 3F [12:16:45]Write i2c OK [12:16:45]MH_I2C_Read... [12:16:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:45]Read from MH i2c: E2 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: E2 17 00 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: E2 17 00 6D 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9A [12:16:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:16:45]wFMCommunicate OK [12:16:45]requested_item fd.num is exist - process it [12:16:45]SAM_PROTO_GetFieldsCounters [12:16:45]wFMCommunicate request_size=4 [12:16:45]MH_SAM_APDU [12:16:45]CAPDU: 80 13 00 00 [12:16:45]Write to MH i2c: E2 08 00 6E 58 80 13 00 00 00 00 00 00 42 [12:16:45]Write i2c OK [12:16:45]MH_I2C_Read... [12:16:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:45]Read from MH i2c: E2 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: E2 62 00 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: E2 62 00 6E 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A5 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [12:16:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A5 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:46]wFMCommunicate OK [12:16:46]SAM_PROTO_GetFieldsCounters done [12:16:46]requested_item shift.num is exist - process it [12:16:46]requested_item shift.opened is exist - process it [12:16:46]req_shift_opened [12:16:46]FM_GetShiftState [12:16:46]SAM_PROTO_GetShiftState [12:16:46]wFMCommunicate request_size=4 [12:16:46]MH_SAM_APDU [12:16:46]CAPDU: 80 13 01 00 [12:16:46]Write to MH i2c: E2 08 00 6F 58 80 13 01 00 00 00 00 00 44 [12:16:46]Write i2c OK [12:16:46]MH_I2C_Read... [12:16:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:46]Read from MH i2c: E2 [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: E2 0E 00 [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: E2 0E 00 6F 58 00 09 00 01 89 19 24 67 00 00 00 00 90 00 7D [12:16:46]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:16:46]wFMCommunicate OK [12:16:46]SAM_PROTO_GetShiftState done [12:16:46]FM_GetShiftState done [12:16:46]req_shift_opened done [12:16:46]requested_item shift.open_date is exist - process it [12:16:46]req_shift_open_date [12:16:46]req_shift_open_date done [12:16:46]produce_requested_data done [12:16:46]produce_requested_data return {"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139941,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [12:16:46]process_action_free get_value [12:16:46]json_value_free [12:16:46]json_value_free done [12:16:46]process_json_proto returns [12:16:46]Send response to host [12:16:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139941,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [12:16:46]free response buf [12:16:46]execute_script done [12:16:46]execute_script returns [12:16:46]free content buf [12:16:46]Sock 9.Close socket [12:16:46]Sock 9.Thread stoped [12:16:46]accept exits with 7 [12:16:46]New connection [12:16:46]New thread 3066510692 created [12:16:46]Thread 3066654052 joined [12:16:46]Waiting for new connection... [12:16:46] Sock 7.Parse request [12:16:46]Sock 7.Check first char [12:16:46]Sock 7.First char is OK [12:16:46]request: POST /json_proto HTTP/1.0 [12:16:46]Method: POST [12:16:46]URL: /json_proto [12:16:46]Method is POST - this is cgi request [12:16:46]url: /json_proto [12:16:46]query_string will be loaded in cgi processing [12:16:46]execute_cgi json_proto POST (null) [12:16:46]execute_cgi path=json_proto method=POST [12:16:46]POST find Content-Length [12:16:46]Host: 172.17.50.196:8080 [12:16:46]Content-Length: 331 [12:16:46]Content-Type: application/json [12:16:46] [12:16:46]POST finish read [12:16:46]Found Content-Length = 331 [12:16:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:16:46]execute_script... [12:16:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:16:46]POST & json_proto [12:16:46]process_json_proto [12:16:46]json parsed OK: [12:16:46]protocol is kg_v1.0 [12:16:46]action value=get_value [12:16:46]process_action get_value [12:16:46]cmd_get_value [12:16:46]process_action get_value done [12:16:46]requested_data is exist [12:16:46]produce_requested_data [12:16:46]requested_item fm.sale.total is exist - process it [12:16:46]SAM_PROTO_GetFMData [12:16:46]wFMCommunicate request_size=4 [12:16:46]MH_SAM_APDU [12:16:46]CAPDU: 80 13 03 00 [12:16:46]Write to MH i2c: E2 08 00 70 58 80 13 03 00 00 00 00 00 47 [12:16:46]Write i2c OK [12:16:46]MH_I2C_Read... [12:16:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:16:46]Read from MH i2c: E2 [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: E2 FD 00 [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: E2 FD 00 70 58 00 C7 04 85 04 C3 04 6E 04 04 00 49 1E 02 00 69 04 A3 00 6F 04 04 00 F9 1B 02 00 B1 04 05 00 47 6E AE 53 01 70 04 05 00 44 50 07 04 01 72 04 04 00 03 1E A7 4F 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 13 40 13 24 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 D9 57 01 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 50 02 00 00 B1 04 04 00 68 65 0B 09 70 04 04 00 A4 39 E7 08 72 04 03 00 C4 2B 24 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 ED E5 F5 EF 90 00 E9 [12:16:46]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 49 1E 02 00 69 04 A3 00 6F 04 04 00 F9 1B 02 00 B1 04 05 00 47 6E AE 53 01 70 04 05 00 44 50 07 04 01 72 04 04 00 03 1E A7 4F 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 13 40 13 24 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 D9 57 01 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 50 02 00 00 B1 04 04 00 68 65 0B 09 70 04 04 00 A4 39 E7 08 72 04 03 00 C4 2B 24 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 ED E5 F5 EF 90 00 [12:16:46]wFMCommunicate OK [12:16:46]wFMCommunicate request_size=4 [12:16:46]MH_SAM_APDU [12:16:46]CAPDU: 80 17 00 00 [12:16:46]Write to MH i2c: E2 08 00 71 58 80 17 00 00 00 00 00 00 49 [12:16:46]Write i2c OK [12:16:46]MH_I2C_Read... [12:16:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:47]Read from MH i2c: E2 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: E2 FD 00 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: E2 FD 00 71 58 00 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 95 7D 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 7C [12:16:47]RAPDU: 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 95 7D 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 [12:16:47]wFMCommunicate OK [12:16:47]wFMCommunicate request_size=4 [12:16:47]MH_SAM_APDU [12:16:47]CAPDU: 80 17 00 00 [12:16:47]Write to MH i2c: E2 08 00 72 58 80 17 00 00 00 00 00 00 4A [12:16:47]Write i2c OK [12:16:47]MH_I2C_Read... [12:16:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:47]Read from MH i2c: E2 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: E2 FD 00 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: E2 FD 00 72 58 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 22 [12:16:47]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [12:16:47]wFMCommunicate OK [12:16:47]wFMCommunicate request_size=4 [12:16:47]MH_SAM_APDU [12:16:47]CAPDU: 80 17 00 00 [12:16:47]Write to MH i2c: E2 08 00 73 58 80 17 00 00 00 00 00 00 4B [12:16:47]Write i2c OK [12:16:47]MH_I2C_Read... [12:16:47]OFD Sender: No OFD packet to send [12:16:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:47]Read from MH i2c: E2 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: E2 FD 00 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: E2 FD 00 73 58 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C6 [12:16:47]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:16:47]wFMCommunicate OK [12:16:47]wFMCommunicate request_size=4 [12:16:47]MH_SAM_APDU [12:16:47]CAPDU: 80 17 00 00 [12:16:47]Write to MH i2c: E2 08 00 74 58 80 17 00 00 00 00 00 00 4C [12:16:47]Write i2c OK [12:16:47]MH_I2C_Read... [12:16:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [12:16:47]Read from MH i2c: E2 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: E2 E4 00 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: E2 E4 00 74 58 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 2C [12:16:47]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:16:47]wFMCommunicate OK [12:16:47]SAM_PROTO_GetFMData done [12:16:47]requested_item fm.sale_refund.total is exist - process it [12:16:47]requested_item fm.buy.total is exist - process it [12:16:47]requested_item shift.sale.total is exist - process it [12:16:47]SAM_PROTO_GetShiftData [12:16:47]wFMCommunicate request_size=4 [12:16:47]MH_SAM_APDU [12:16:47]CAPDU: 80 13 02 00 [12:16:47]Write to MH i2c: E2 08 00 75 58 80 13 02 00 00 00 00 00 4B [12:16:47]Write i2c OK [12:16:47]MH_I2C_Read... [12:16:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:16:48]Read from MH i2c: E2 [12:16:48]MH_I2C_Read... [12:16:48]Read from MH i2c: E2 FD 00 [12:16:48]MH_I2C_Read... [12:16:48]Read from MH i2c: E2 FD 00 75 58 00 B6 04 AA 04 B2 04 6E 04 04 00 7A 00 00 00 69 04 9C 00 6F 04 04 00 79 00 00 00 B1 04 03 00 06 3C 75 70 04 03 00 B0 CB 47 72 04 03 00 56 70 2D 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 43 73 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8D 09 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 4C 36 70 04 02 00 4C 36 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C4 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 C7 [12:16:48]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 7A 00 00 00 69 04 9C 00 6F 04 04 00 79 00 00 00 B1 04 03 00 06 3C 75 70 04 03 00 B0 CB 47 72 04 03 00 56 70 2D 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 43 73 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8D 09 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 4C 36 70 04 02 00 4C 36 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C4 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 [12:16:48]wFMCommunicate OK [12:16:48]wFMCommunicate request_size=4 [12:16:48]MH_SAM_APDU [12:16:48]CAPDU: 80 17 00 00 [12:16:48]Write to MH i2c: E2 08 00 76 58 80 17 00 00 00 00 00 00 4E [12:16:48]Write i2c OK [12:16:48]MH_I2C_Read... [12:16:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:48]Read from MH i2c: E2 [12:16:48]MH_I2C_Read... [12:16:48]Read from MH i2c: E2 FD 00 [12:16:48]MH_I2C_Read... [12:16:48]Read from MH i2c: E2 FD 00 76 58 00 00 F6 03 01 00 01 F7 03 01 00 7B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 [12:16:48]RAPDU: 00 F6 03 01 00 01 F7 03 01 00 7B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 [12:16:48]wFMCommunicate OK [12:16:48]wFMCommunicate request_size=4 [12:16:48]MH_SAM_APDU [12:16:48]CAPDU: 80 17 00 00 [12:16:48]Write to MH i2c: E2 08 00 77 58 80 17 00 00 00 00 00 00 4F [12:16:48]Write i2c OK [12:16:48]MH_I2C_Read... [12:16:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:48]Read from MH i2c: E2 [12:16:48]MH_I2C_Read... [12:16:48]Read from MH i2c: E2 FD 00 [12:16:48]MH_I2C_Read... [12:16:48]Read from MH i2c: E2 FD 00 77 58 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 0F [12:16:48]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 [12:16:48]wFMCommunicate OK [12:16:48]wFMCommunicate request_size=4 [12:16:48]MH_SAM_APDU [12:16:48]CAPDU: 80 17 00 00 [12:16:48]Write to MH i2c: E2 08 00 78 58 80 17 00 00 00 00 00 00 50 [12:16:48]Write i2c OK [12:16:48]MH_I2C_Read... [12:16:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:49]Read from MH i2c: E2 [12:16:49]MH_I2C_Read... [12:16:49]Read from MH i2c: E2 FD 00 [12:16:49]MH_I2C_Read... [12:16:49]Read from MH i2c: E2 FD 00 78 58 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 BF [12:16:49]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 [12:16:49]wFMCommunicate OK [12:16:49]wFMCommunicate request_size=4 [12:16:49]MH_SAM_APDU [12:16:49]CAPDU: 80 17 00 00 [12:16:49]Write to MH i2c: E2 08 00 79 58 80 17 00 00 00 00 00 00 51 [12:16:49]Write i2c OK [12:16:49]MH_I2C_Read... [12:16:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [12:16:49]Read from MH i2c: E2 [12:16:49]MH_I2C_Read... [12:16:49]Read from MH i2c: E2 D3 00 [12:16:49]MH_I2C_Read... [12:16:49]Read from MH i2c: E2 D3 00 79 58 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 3E [12:16:49]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 [12:16:49]wFMCommunicate OK [12:16:49]SAM_PROTO_GetShiftData done [12:16:49]requested_item shift.sale.total_cash is exist - process it [12:16:49]requested_item shift.sale_refund.total is exist - process it [12:16:49]requested_item shift.sale_refund.total_cash is exist - process it [12:16:49]requested_item shift.buy.total is exist - process it [12:16:49]requested_item shift.buy.total_cash is exist - process it [12:16:49]produce_requested_data done [12:16:49]produce_requested_data return {"fm.sale.total":56989077.19,"fm.sale_refund.total":1517418.00,"fm.buy.total":0.00,"shift.sale.total":76830.78,"shift.sale.total_cash":47052.00,"shift.sale_refund.total":139.00,"shift.sale_refund.total_cash":139.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:16:49]process_action_free get_value [12:16:49]json_value_free [12:16:49]json_value_free done [12:16:49]process_json_proto returns [12:16:49]Send response to host [12:16:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":56989077.19,"fm.sale_refund.total":1517418.00,"fm.buy.total":0.00,"shift.sale.total":76830.78,"shift.sale.total_cash":47052.00,"shift.sale_refund.total":139.00,"shift.sale_refund.total_cash":139.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:16:49]free response buf [12:16:49]execute_script done [12:16:49]execute_script returns [12:16:49]free content buf [12:16:49]Sock 7.Close socket [12:16:49]Sock 7.Thread stoped [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:22]accept exits with 9 [12:17:22]New connection [12:17:22]New thread 3066654052 created [12:17:22]Thread 3066510692 joined [12:17:22]Waiting for new connection... [12:17:22] Sock 9.Parse request [12:17:22]Sock 9.Check first char [12:17:22]Sock 9.First char is OK [12:17:22]request: POST /json_proto HTTP/1.0 [12:17:22]Method: POST [12:17:22]URL: /json_proto [12:17:22]Method is POST - this is cgi request [12:17:22]url: /json_proto [12:17:22]query_string will be loaded in cgi processing [12:17:22]execute_cgi json_proto POST (null) [12:17:22]execute_cgi path=json_proto method=POST [12:17:22]POST find Content-Length [12:17:22]Host: 172.17.50.196:8080 [12:17:22]Content-Length: 678 [12:17:22]Content-Type: application/json [12:17:22] [12:17:22]POST finish read [12:17:22]Found Content-Length = 678 [12:17:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:22]execute_script... [12:17:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:22]POST & json_proto [12:17:22]process_json_proto [12:17:22]json parsed OK: [12:17:22]protocol is kg_v1.0 [12:17:22]action value=close_receipt [12:17:22]process_action close_receipt [12:17:22]cmd_close_receipt [12:17:22]MH_GetDate [12:17:22]Write to MH i2c: F0 00 00 7A 58 C1 [12:17:22]Write i2c OK [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: F0 [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: F0 09 00 [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: F0 09 00 7A 58 00 D8 C6 24 67 72 0D 1C 67 F5 [12:17:22]GetLastDocTimeStamp 1730463240 [12:17:22]current date 1730463448 [12:17:22]FM_GetShiftState [12:17:22]SAM_PROTO_GetShiftState [12:17:22]wFMCommunicate request_size=4 [12:17:22]MH_SAM_APDU [12:17:22]CAPDU: 80 13 01 00 [12:17:22]Write to MH i2c: E2 08 00 7B 58 80 13 01 00 00 00 00 00 50 [12:17:22]Write i2c OK [12:17:22]MH_I2C_Read... [12:17:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:22]Read from MH i2c: E2 [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: E2 0E 00 [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: E2 0E 00 7B 58 00 09 00 01 89 19 24 67 00 00 00 00 90 00 89 [12:17:22]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:17:22]wFMCommunicate OK [12:17:22]SAM_PROTO_GetShiftState done [12:17:22]FM_GetShiftState done [12:17:22]opened in 1730419081 [12:17:22]opened+sec_in_day 1730505481 [12:17:22]quantity*price = 50010 [12:17:22]sum+1 = 50012 [12:17:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 123 01.11.2024 12:17 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139942 ФПД: 129284975423833 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T121728&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139942&fm=129284975423833&tin=02508201610067®Number=0000000000091631&sum=50000 [12:17:23]StoreToDocumentArchive [12:17:23]shift 558 fd 139942 [12:17:23]save to /storage/0558/doc_00139942 [12:17:23]save last doc name /storage/0558/doc_00139942 to /storage/kkm_last_doc_name [12:17:23]save OK [12:17:23]Clear old archive folders... [12:17:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:23]tlvbuf is 00BE3230 [12:17:23]SAM_PROTO_ClearQueue [12:17:23]wFMCommunicate request_size=4 [12:17:23]MH_SAM_APDU [12:17:23]CAPDU: 80 09 00 00 [12:17:23]Write to MH i2c: E2 08 00 88 58 80 09 00 00 00 00 00 00 52 [12:17:23]Write i2c OK [12:17:23]MH_I2C_Read... [12:17:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:23]Read from MH i2c: E2 [12:17:23]MH_I2C_Read... [12:17:23]Read from MH i2c: E2 03 00 [12:17:23]MH_I2C_Read... [12:17:23]Read from MH i2c: E2 03 00 88 58 00 90 00 54 [12:17:23]RAPDU: 90 00 [12:17:23]wFMCommunicate OK [12:17:23]SAM_PROTO_ClearQueue done [12:17:23]KKMCreateOFDPacket [12:17:23]OFDProtocolAddRootSTLVToBuf [12:17:23]FM_MakeSignedData [12:17:23]FM_MakeSignedData [12:17:23]SAM_PROTO_SignData [12:17:23]wFMCommunicate request_size=4 [12:17:23]MH_SAM_APDU [12:17:23]CAPDU: 80 0D 01 02 [12:17:23]Write to MH i2c: E2 08 00 89 58 80 0D 01 02 00 00 00 00 5A [12:17:23]Write i2c OK [12:17:23]MH_I2C_Read... [12:17:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:23]Read from MH i2c: E2 [12:17:23]MH_I2C_Read... [12:17:23]Read from MH i2c: E2 03 00 [12:17:23]MH_I2C_Read... [12:17:23]Read from MH i2c: E2 03 00 89 58 00 90 00 55 [12:17:23]RAPDU: 90 00 [12:17:23]wFMCommunicate OK [12:17:23]wFMCommunicate request_size=255 [12:17:23]MH_SAM_APDU [12:17:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D8 C6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A6 22 02 00 35 04 06 00 75 [12:17:23]Write to MH i2c: E2 02 01 8A 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D8 C6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A6 22 02 00 35 04 06 00 75 00 00 D5 [12:17:23]Write i2c OK [12:17:23]MH_I2C_Read... [12:17:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:24]Read from MH i2c: E2 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 03 00 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 03 00 8A 58 00 90 00 56 [12:17:24]RAPDU: 90 00 [12:17:24]wFMCommunicate OK [12:17:24]wFMCommunicate request_size=10 [12:17:24]MH_SAM_APDU [12:17:24]CAPDU: 80 0D 02 02 05 95 81 08 F1 59 [12:17:24]Write to MH i2c: E2 0D 00 8B 58 80 0D 02 02 05 00 95 81 08 F1 59 00 00 CF [12:17:24]Write i2c OK [12:17:24]MH_I2C_Read... [12:17:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:24]Read from MH i2c: E2 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 03 00 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 03 00 8B 58 00 90 00 57 [12:17:24]RAPDU: 90 00 [12:17:24]wFMCommunicate OK [12:17:24]wFMCommunicate request_size=4 [12:17:24]MH_SAM_APDU [12:17:24]CAPDU: 80 0D 03 02 [12:17:24]Write to MH i2c: E2 08 00 8C 58 80 0D 03 02 00 00 00 00 5F [12:17:24]Write i2c OK [12:17:24]MH_I2C_Read... [12:17:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:24]Read from MH i2c: E2 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 0B 00 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 0B 00 8C 58 00 6C 88 30 8B C1 47 9F 5E 90 00 14 [12:17:24]RAPDU: 6C 88 30 8B C1 47 9F 5E 90 00 [12:17:24]wFMCommunicate OK [12:17:24]SAM_PROTO_SignData done [12:17:24]FM_MakeSignedData done [12:17:24]CreateOFDProtocolMessage [12:17:24]wFMCommunicate request_size=4 [12:17:24]MH_SAM_APDU [12:17:24]CAPDU: 80 11 00 00 [12:17:24]Write to MH i2c: E2 08 00 8D 58 80 11 00 00 00 00 00 00 5F [12:17:24]Write i2c OK [12:17:24]MH_I2C_Read... [12:17:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:24]Read from MH i2c: E2 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 17 00 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 17 00 8D 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BA [12:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:17:24]wFMCommunicate OK [12:17:24]CreateOFDProtocolMessage done [12:17:24]OFDSenderStorePacket 139942 [12:17:24]StoreOFDPacket docnum=139942 [12:17:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 58 93 07 01 4C 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D8 C6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A6 22 02 00 35 04 06 00 75 95 81 08 F1 59 6C 88 30 8B C1 47 9F 5E [12:17:24]CheckFolder [12:17:24]dirname=/storage/ofd_packets [12:17:24]CheckFolder done [12:17:24]ProducePacketName [12:17:24]name=ofd_packets/00139942 [12:17:24]NVStorageSaveData ofd_packets/00139942 [12:17:24]File name is /storage/ofd_packets/00139942 [12:17:24]Write 301 bytes [12:17:24]NVStorageSaveData done [12:17:24]OFDSenderStorePacket done [12:17:24]KKMCreateOFDPacket done [12:17:24]NVStorageSaveData kkm_last_timestamp [12:17:24]File name is /storage/kkm_last_timestamp [12:17:24]Write 4 bytes [12:17:24]NVStorageSaveData done [12:17:24]ExternCall_PrintAddStr [12:17:24]wPrintStart [12:17:24]Write to MH i2c: 01 00 00 8E 58 E6 [12:17:24]Write i2c OK [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: 01 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: 01 07 00 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: 01 07 00 8E 58 00 00 00 00 00 FF 0F FB [12:17:24]RasterBufferAndPrint [12:17:24]line Счет N : (1)1095878 [12:17:24]line ИНН: 02508201610067 [12:17:24]line Контрольно-Кассовый Чек [12:17:24]line ПРОДАЖА [12:17:24]line ТРК (МРК, ГНК) : 44 [12:17:24]line Товар: 2710124500 [12:17:24]line Аи-95-К-3 [12:17:24]line 6.740 * 74.20 [12:17:24]line = 500.11 [12:17:24]line НДС 12% НСП 1% [12:17:24]line > о реализуемом товаре [12:17:24]line ОКРУГЛЕНИЕ: -0.11 [12:17:24]line ИТОГО: 500.00 [12:17:24]line Внесено: 500.00 [12:17:24]line СДАЧА: 0.00 [12:17:24]line НСП 1% : 4.43 [12:17:24]line НДС 12% : 53.11 [12:17:24]line Наличными: 500.00 [12:17:24]line Безнал.: 0.00 [12:17:24]line Место: АЗС № 101 "Партнер Нефть" [12:17:24]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:17:24]line СНО: Общий режим [12:17:24]line Чек 123 01.11.2024 12:17 [12:17:24]line Смена: 558 ФФД: 1.0 [12:17:24]line ЗНМ: 0300000081 [12:17:24]line РНМ: 0000000000091631 [12:17:24]line Версия ККМ: 001 [12:17:24]line ФМ: 0000000000874669 [12:17:24]line ФД: 139942 [12:17:24]line ФПД: 129284975423833 [12:17:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T121728&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139942&fm=129284975423833&tin=02508201610067®Number=0000000000091631&sum=50000 [12:17:24]OFD Sender: Processing packet 139942 [packets to send 34, broken 33] [12:17:24]ProducePacketName [12:17:24]name=ofd_packets/00139942 [12:17:24]OFD Sender: To server: pG, [12:17:24]CommunicateWithHost lk.salyk.kg:30040 [12:17:24]ConnectInit lk.salyk.kg [12:17:24]written 0, free lines is 4095 [12:17:24]Connected sock=10 [12:17:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 58 93 07 01 4C 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D8 C6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A6 22 02 00 35 04 06 00 75 95 81 08 F1 59 6C 88 30 8B C1 47 9F 5E [12:17:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 6F B0 47 00 25 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A6 22 02 00 F4 03 04 00 83 72 24 67 B6 04 01 00 00 28 33 1B C1 9D 90 14 13 [12:17:24]CommunicateWithHost err = 0 [12:17:24]CheckOFDResponse [12:17:24]1017 (14) - 77093643461234 [12:17:24]1041 (16) - 0000000000874669 [12:17:24]1040 (4) - 139942 [12:17:24]1012 (4) - 01.11.2024 06:17 [12:17:24]1206 (1) - 0 [12:17:24]OFD Sender: Remove packet 139942 [12:17:24]ProducePacketName [12:17:24]name=ofd_packets/00139942 [12:17:24]NVStorageDeleteData [12:17:25]Write to MH i2c: 01 00 00 B9 58 11 [12:17:25]Write i2c OK [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: 01 [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: 01 07 00 [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: 01 07 00 B9 58 00 00 00 00 00 D9 0C FD [12:17:25]RasterBufferAndPrint [12:17:25]line [12:17:25]line [12:17:25]line [12:17:25]line [12:17:25]line [12:17:25]written 0, free lines is 3296 [12:17:25]MH_Cut [12:17:25]Write to MH i2c: D1 01 00 C0 58 01 EA [12:17:25]Write i2c OK [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: D1 [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: D1 01 00 [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: D1 01 00 C0 58 00 E9 [12:17:25]Write to MH i2c: 01 00 00 C1 58 19 [12:17:25]Write i2c OK [12:17:25]MH_I2C_Read... [12:17:25]OFD Sender: No OFD packet to send [12:17:25]*** Cut start [12:17:25]*** Partial cut [12:17:25]*** CUTSNS_PIN = 1 [12:17:25]*** CUTSNS_PIN = 0 [12:17:26]*** Brake cut motor [12:17:26]Read from MH i2c: 01 [12:17:26]MH_I2C_Read... [12:17:26]*** Stop cut motor [12:17:26]*** Cut end [12:17:26]Read from MH i2c: 01 07 00 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: 01 07 00 C1 58 00 00 00 00 00 FF 0F 2E [12:17:26]process_action close_receipt done [12:17:26]requested_data is exist [12:17:26]produce_requested_data [12:17:26]requested_item fm.sn is exist - process it [12:17:26]wFMCommunicate request_size=4 [12:17:26]MH_SAM_APDU [12:17:26]CAPDU: 80 11 00 00 [12:17:26]Write to MH i2c: E2 08 00 C2 58 80 11 00 00 00 00 00 00 94 [12:17:26]Write i2c OK [12:17:26]MH_I2C_Read... [12:17:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:26]Read from MH i2c: E2 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 17 00 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 17 00 C2 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EF [12:17:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:17:26]wFMCommunicate OK [12:17:26]requested_item fd.num is exist - process it [12:17:26]SAM_PROTO_GetFieldsCounters [12:17:26]wFMCommunicate request_size=4 [12:17:26]MH_SAM_APDU [12:17:26]CAPDU: 80 13 00 00 [12:17:26]Write to MH i2c: E2 08 00 C3 58 80 13 00 00 00 00 00 00 97 [12:17:26]Write i2c OK [12:17:26]MH_I2C_Read... [12:17:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:26]Read from MH i2c: E2 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 62 00 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 62 00 C3 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A6 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [12:17:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A6 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:26]wFMCommunicate OK [12:17:26]SAM_PROTO_GetFieldsCounters done [12:17:26]requested_item shift.num is exist - process it [12:17:26]requested_item shift.opened is exist - process it [12:17:26]req_shift_opened [12:17:26]FM_GetShiftState [12:17:26]SAM_PROTO_GetShiftState [12:17:26]wFMCommunicate request_size=4 [12:17:26]MH_SAM_APDU [12:17:26]CAPDU: 80 13 01 00 [12:17:26]Write to MH i2c: E2 08 00 C4 58 80 13 01 00 00 00 00 00 99 [12:17:26]Write i2c OK [12:17:26]MH_I2C_Read... [12:17:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:26]Read from MH i2c: E2 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 0E 00 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 0E 00 C4 58 00 09 00 01 89 19 24 67 00 00 00 00 90 00 D2 [12:17:26]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:17:26]wFMCommunicate OK [12:17:26]SAM_PROTO_GetShiftState done [12:17:26]FM_GetShiftState done [12:17:26]req_shift_opened done [12:17:26]requested_item shift.open_date is exist - process it [12:17:26]req_shift_open_date [12:17:26]req_shift_open_date done [12:17:26]produce_requested_data done [12:17:26]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139942,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [12:17:26]process_action_free close_receipt [12:17:26]json_value_free [12:17:26]json_value_free done [12:17:26]process_json_proto returns [12:17:26]Send response to host [12:17:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139942,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [12:17:26]free response buf [12:17:26]execute_script done [12:17:26]execute_script returns [12:17:26]free content buf [12:17:26]Sock 9.Close socket [12:17:26]Sock 9.Thread stoped [12:17:30]OFD Sender: No OFD packet to send [12:17:35]OFD Sender: No OFD packet to send [12:17:40]OFD Sender: No OFD packet to send [12:17:45]OFD Sender: No OFD packet to send [12:17:49]accept exits with 7 [12:17:49]New connection [12:17:49]New thread 3066510692 created [12:17:49]Thread 3066654052 joined [12:17:49]Waiting for new connection... [12:17:49] Sock 7.Parse request [12:17:49]Sock 7.Check first char [12:17:49]Sock 7.First char is OK [12:17:49]request: POST /json_proto HTTP/1.0 [12:17:49]Method: POST [12:17:49]URL: /json_proto [12:17:49]Method is POST - this is cgi request [12:17:49]url: /json_proto [12:17:49]query_string will be loaded in cgi processing [12:17:49]execute_cgi json_proto POST (null) [12:17:49]execute_cgi path=json_proto method=POST [12:17:49]POST find Content-Length [12:17:49]Host: 172.17.50.196:8080 [12:17:49]Content-Length: 779 [12:17:49]Content-Type: application/json [12:17:49] [12:17:49]POST finish read [12:17:49]Found Content-Length = 779 [12:17:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335763", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 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: Mbank", "payments": [ { "type": 1, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:49]execute_script... [12:17: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)335763", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 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: Mbank", "payments": [ { "type": 1, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:49]POST & json_proto [12:17:49]process_json_proto [12:17:49]json parsed OK: [12:17:49]protocol is kg_v1.0 [12:17:49]action value=close_receipt [12:17:49]process_action close_receipt [12:17:49]cmd_close_receipt [12:17:49]MH_GetDate [12:17:49]Write to MH i2c: F0 00 00 C5 58 0C [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: F0 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: F0 09 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: F0 09 00 C5 58 00 F3 C6 24 67 72 0D 1C 67 5B [12:17:49]GetLastDocTimeStamp 1730463448 [12:17:49]current date 1730463475 [12:17:49]FM_GetShiftState [12:17:49]SAM_PROTO_GetShiftState [12:17:49]wFMCommunicate request_size=4 [12:17:49]MH_SAM_APDU [12:17:49]CAPDU: 80 13 01 00 [12:17:49]Write to MH i2c: E2 08 00 C6 58 80 13 01 00 00 00 00 00 9B [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:49]Read from MH i2c: E2 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 0E 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 0E 00 C6 58 00 09 00 01 89 19 24 67 00 00 00 00 90 00 D4 [12:17:49]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:17:49]wFMCommunicate OK [12:17:49]SAM_PROTO_GetShiftState done [12:17:49]FM_GetShiftState done [12:17:49]opened in 1730419081 [12:17:49]opened+sec_in_day 1730505481 [12:17:49]quantity*price = 7500 [12:17:49]sum+1 = 7501 [12:17:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 0.00 Безнал.: 75.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 124 01.11.2024 12:17 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139943 ФПД: 177104729689869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T121755&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139943&fm=177104729689869&tin=02508201610067®Number=0000000000091631&sum=7500 0 [12:17:50]StoreToDocumentArchive [12:17:50]shift 558 fd 139943 [12:17:50]save to /storage/0558/doc_00139943 [12:17:50]save last doc name /storage/0558/doc_00139943 to /storage/kkm_last_doc_name [12:17:50]save OK [12:17:50]Clear old archive folders... [12:17:50]ProcessDocumentItem done err = 0, tmpTLVsize=275 [12:17:50]tlvbuf is 00B5AF20 [12:17:50]SAM_PROTO_ClearQueue [12:17:50]wFMCommunicate request_size=4 [12:17:50]MH_SAM_APDU [12:17:50]CAPDU: 80 09 00 00 [12:17:50]Write to MH i2c: E2 08 00 D3 58 80 09 00 00 00 00 00 00 9D [12:17:50]Write i2c OK [12:17:50]MH_I2C_Read... [12:17:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:50]Read from MH i2c: E2 [12:17:50]MH_I2C_Read... [12:17:50]Read from MH i2c: E2 03 00 [12:17:50]MH_I2C_Read... [12:17:50]Read from MH i2c: E2 03 00 D3 58 00 90 00 9F [12:17:50]RAPDU: 90 00 [12:17:50]wFMCommunicate OK [12:17:50]SAM_PROTO_ClearQueue done [12:17:50]KKMCreateOFDPacket [12:17:50]OFDProtocolAddRootSTLVToBuf [12:17:50]FM_MakeSignedData [12:17:50]FM_MakeSignedData [12:17:50]SAM_PROTO_SignData [12:17:50]wFMCommunicate request_size=4 [12:17:50]MH_SAM_APDU [12:17:50]CAPDU: 80 0D 01 02 [12:17:50]Write to MH i2c: E2 08 00 D4 58 80 0D 01 02 00 00 00 00 A5 [12:17:50]Write i2c OK [12:17:50]MH_I2C_Read... [12:17:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:50]Read from MH i2c: E2 [12:17:50]MH_I2C_Read... [12:17:50]Read from MH i2c: E2 03 00 [12:17:50]MH_I2C_Read... [12:17:50]Read from MH i2c: E2 03 00 D4 58 00 90 00 A0 [12:17:50]RAPDU: 90 00 [12:17:50]wFMCommunicate OK [12:17:50]wFMCommunicate request_size=255 [12:17:50]MH_SAM_APDU [12:17:50]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 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 7C 00 00 00 F4 03 04 00 F3 C6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 [12:17:50]Write to MH i2c: E2 02 01 D5 58 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 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 7C 00 00 00 F4 03 04 00 F3 C6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 00 00 7F [12:17:50]Write i2c OK [12:17:50]MH_I2C_Read... [12:17:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:51]Read from MH i2c: E2 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 03 00 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 03 00 D5 58 00 90 00 A1 [12:17:51]RAPDU: 90 00 [12:17:51]wFMCommunicate OK [12:17:51]wFMCommunicate request_size=34 [12:17:51]MH_SAM_APDU [12:17:51]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A7 22 02 00 35 04 06 00 A1 13 68 80 4F 0D [12:17:51]Write to MH i2c: E2 25 00 D6 58 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A7 22 02 00 35 04 06 00 A1 13 68 80 4F 0D 00 00 34 [12:17:51]Write i2c OK [12:17:51]MH_I2C_Read... [12:17:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:51]Read from MH i2c: E2 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 03 00 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 03 00 D6 58 00 90 00 A2 [12:17:51]RAPDU: 90 00 [12:17:51]wFMCommunicate OK [12:17:51]wFMCommunicate request_size=4 [12:17:51]MH_SAM_APDU [12:17:51]CAPDU: 80 0D 03 02 [12:17:51]Write to MH i2c: E2 08 00 D7 58 80 0D 03 02 00 00 00 00 AA [12:17:51]Write i2c OK [12:17:51]MH_I2C_Read... [12:17:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:51]Read from MH i2c: E2 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 0B 00 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 0B 00 D7 58 00 7A DF 85 07 26 29 06 50 90 00 35 [12:17:51]RAPDU: 7A DF 85 07 26 29 06 50 90 00 [12:17:51]wFMCommunicate OK [12:17:51]SAM_PROTO_SignData done [12:17:51]FM_MakeSignedData done [12:17:51]CreateOFDProtocolMessage [12:17:51]wFMCommunicate request_size=4 [12:17:51]MH_SAM_APDU [12:17:51]CAPDU: 80 11 00 00 [12:17:51]Write to MH i2c: E2 08 00 D8 58 80 11 00 00 00 00 00 00 AA [12:17:51]Write i2c OK [12:17:51]MH_I2C_Read... [12:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:51]Read from MH i2c: E2 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 17 00 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 17 00 D8 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 05 [12:17:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:17:51]wFMCommunicate OK [12:17:51]CreateOFDProtocolMessage done [12:17:51]OFDSenderStorePacket 139943 [12:17:51]StoreOFDPacket docnum=139943 [12:17:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 27 01 00 00 B1 DC 1F 01 72 A0 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 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 7C 00 00 00 F4 03 04 00 F3 C6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A7 22 02 00 35 04 06 00 A1 13 68 80 4F 0D 7A DF 85 07 26 29 06 50 [12:17:51]CheckFolder [12:17:51]dirname=/storage/ofd_packets [12:17:51]CheckFolder done [12:17:51]ProducePacketName [12:17:51]name=ofd_packets/00139943 [12:17:51]NVStorageSaveData ofd_packets/00139943 [12:17:51]File name is /storage/ofd_packets/00139943 [12:17:51]Write 325 bytes [12:17:51]NVStorageSaveData done [12:17:51]OFDSenderStorePacket done [12:17:51]KKMCreateOFDPacket done [12:17:51]NVStorageSaveData kkm_last_timestamp [12:17:51]File name is /storage/kkm_last_timestamp [12:17:51]Write 4 bytes [12:17:51]NVStorageSaveData done [12:17:51]ExternCall_PrintAddStr [12:17:51]wPrintStart [12:17:51]Write to MH i2c: 01 00 00 D9 58 31 [12:17:51]Write i2c OK [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: 01 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: 01 07 00 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: 01 07 00 D9 58 00 00 00 00 00 FF 0F 46 [12:17:51]RasterBufferAndPrint [12:17:51]line Счет N : (3)335763 [12:17:51]line ИНН: 02508201610067 [12:17:51]line Контрольно-Кассовый Чек [12:17:51]line ПРОДАЖА [12:17:51]line Товар: 54491472 [12:17:51]line Напиток Кока-Кола 0,5л [12:17:51]line 1.000 * 75.00 [12:17:51]line = 75.00 [12:17:51]line НДС 12% НСП 1% [12:17:51]line > о реализуемом товаре [12:17:51]line ИТОГО: 75.00 [12:17:51]line НСП 1% : 0.66 [12:17:51]line НДС 12% : 7.96 [12:17:51]line Наличными: 0.00 [12:17:51]line Безнал.: 75.00 [12:17:51]line Место: АЗС № 101 "Партнер Нефть" [12:17:51]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:17:51]line СНО: Общий режим [12:17:51]line Чек 124 01.11.2024 12:17 [12:17:51]line Смена: 558 ФФД: 1.0 [12:17:51]line ЗНМ: 0300000081 [12:17:51]line РНМ: 0000000000091631 [12:17:51]line Версия ККМ: 001 [12:17:51]line Платежная система: Mbank [12:17:51]line ФМ: 0000000000874669 [12:17:51]line ФД: 139943 [12:17:51]line ФПД: 177104729689869 [12:17:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T121755&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139943&fm=177104729689869&tin=02508201610067®Number=0000000000091631&sum=7500 [12:17:51]OFD Sender: Processing packet 139943 [packets to send 34, broken 33] [12:17:51]ProducePacketName [12:17:51]name=ofd_packets/00139943 [12:17:51]OFD Sender: To server: pG, [12:17:51]CommunicateWithHost lk.salyk.kg:30040 [12:17:51]ConnectInit lk.salyk.kg [12:17:51]line 0 [12:17:51]written 0, free lines is 4095 [12:17:51]Connected sock=9 [12:17:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 27 01 00 00 B1 DC 1F 01 72 A0 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 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 7C 00 00 00 F4 03 04 00 F3 C6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A7 22 02 00 35 04 06 00 A1 13 68 80 4F 0D 7A DF 85 07 26 29 06 50 [12:17:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 08 5C 47 00 50 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A7 22 02 00 F4 03 04 00 9E 72 24 67 B6 04 01 00 00 DA FE D6 6A CA C9 7B 4D [12:17:51]CommunicateWithHost err = 0 [12:17:51]CheckOFDResponse [12:17:51]1017 (14) - 77093643461234 [12:17:51]1041 (16) - 0000000000874669 [12:17:51]1040 (4) - 139943 [12:17:51]1012 (4) - 01.11.2024 06:18 [12:17:51]1206 (1) - 0 [12:17:51]OFD Sender: Remove packet 139943 [12:17:51]ProducePacketName [12:17:51]name=ofd_packets/00139943 [12:17:51]NVStorageDeleteData [12:17:52]Write to MH i2c: 01 00 00 02 59 5B [12:17:52]Write i2c OK [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: 01 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: 01 07 00 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: 01 07 00 02 59 00 00 00 00 00 09 0D 78 [12:17:52]RasterBufferAndPrint [12:17:52]line [12:17:52]line [12:17:52]line [12:17:52]line [12:17:52]line [12:17:52]written 0, free lines is 3347 [12:17:52]MH_Cut [12:17:52]Write to MH i2c: D1 01 00 09 59 01 34 [12:17:52]Write i2c OK [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: D1 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: D1 01 00 [12:17:52]MH_I2C_Read... [12:17:52]Read from MH i2c: D1 01 00 09 59 00 33 [12:17:52]Write to MH i2c: 01 00 00 0A 59 63 [12:17:52]Write i2c OK [12:17:52]MH_I2C_Read... [12:17:52]OFD Sender: No OFD packet to send [12:17:52]*** Cut start [12:17:52]*** Partial cut [12:17:52]*** CUTSNS_PIN = 1 [12:17:52]*** CUTSNS_PIN = 0 [12:17:52]*** Brake cut motor [12:17:53]Read from MH i2c: 01 [12:17:53]MH_I2C_Read... [12:17:53]*** Stop cut motor [12:17:53]*** Cut end [12:17:53]Read from MH i2c: 01 07 00 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: 01 07 00 0A 59 00 00 00 00 00 FF 0F 78 [12:17:53]process_action close_receipt done [12:17:53]requested_data is exist [12:17:53]produce_requested_data [12:17:53]requested_item fm.sn is exist - process it [12:17:53]wFMCommunicate request_size=4 [12:17:53]MH_SAM_APDU [12:17:53]CAPDU: 80 11 00 00 [12:17:53]Write to MH i2c: E2 08 00 0B 59 80 11 00 00 00 00 00 00 DE [12:17:53]Write i2c OK [12:17:53]MH_I2C_Read... [12:17:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:53]Read from MH i2c: E2 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 17 00 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 17 00 0B 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 39 [12:17:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:17:53]wFMCommunicate OK [12:17:53]requested_item fd.num is exist - process it [12:17:53]SAM_PROTO_GetFieldsCounters [12:17:53]wFMCommunicate request_size=4 [12:17:53]MH_SAM_APDU [12:17:53]CAPDU: 80 13 00 00 [12:17:53]Write to MH i2c: E2 08 00 0C 59 80 13 00 00 00 00 00 00 E1 [12:17:53]Write i2c OK [12:17:53]MH_I2C_Read... [12:17:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:53]Read from MH i2c: E2 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 62 00 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 62 00 0C 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A7 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [12:17:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A7 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:53]wFMCommunicate OK [12:17:53]SAM_PROTO_GetFieldsCounters done [12:17:53]requested_item shift.num is exist - process it [12:17:53]requested_item shift.opened is exist - process it [12:17:53]req_shift_opened [12:17:53]FM_GetShiftState [12:17:53]SAM_PROTO_GetShiftState [12:17:53]wFMCommunicate request_size=4 [12:17:53]MH_SAM_APDU [12:17:53]CAPDU: 80 13 01 00 [12:17:53]Write to MH i2c: E2 08 00 0D 59 80 13 01 00 00 00 00 00 E3 [12:17:53]Write i2c OK [12:17:53]MH_I2C_Read... [12:17:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:53]Read from MH i2c: E2 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 0E 00 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 0E 00 0D 59 00 09 00 01 89 19 24 67 00 00 00 00 90 00 1C [12:17:53]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:17:53]wFMCommunicate OK [12:17:53]SAM_PROTO_GetShiftState done [12:17:53]FM_GetShiftState done [12:17:53]req_shift_opened done [12:17:53]requested_item shift.open_date is exist - process it [12:17:53]req_shift_open_date [12:17:53]req_shift_open_date done [12:17:53]produce_requested_data done [12:17:53]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139943,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [12:17:53]process_action_free close_receipt [12:17:53]json_value_free [12:17:53]json_value_free done [12:17:53]process_json_proto returns [12:17:53]Send response to host [12:17:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139943,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [12:17:53]free response buf [12:17:53]execute_script done [12:17:53]execute_script returns [12:17:53]free content buf [12:17:53]Sock 7.Close socket [12:17:53]Sock 7.Thread stoped [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:47]accept exits with 10 [12:18:47]New connection [12:18:47]New thread 3066654052 created [12:18:47]Thread 3066510692 joined [12:18:47]Waiting for new connection... [12:18:47] Sock 10.Parse request [12:18:47]Sock 10.Check first char [12:18:47]Sock 10.First char is OK [12:18:47]request: POST /json_proto HTTP/1.0 [12:18:47]Method: POST [12:18:47]URL: /json_proto [12:18:47]Method is POST - this is cgi request [12:18:47]url: /json_proto [12:18:47]query_string will be loaded in cgi processing [12:18:47]execute_cgi json_proto POST (null) [12:18:47]execute_cgi path=json_proto method=POST [12:18:47]POST find Content-Length [12:18:47]Host: 172.17.50.196:8080 [12:18:47]Content-Length: 684 [12:18:47]Content-Type: application/json [12:18:47] [12:18:47]POST finish read [12:18:47]Found Content-Length = 684 [12:18:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194800", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:47]execute_script... [12:18:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194800", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:47]POST & json_proto [12:18:47]process_json_proto [12:18:47]json parsed OK: [12:18:47]protocol is kg_v1.0 [12:18:47]action value=close_receipt [12:18:47]process_action close_receipt [12:18:47]cmd_close_receipt [12:18:47]MH_GetDate [12:18:47]Write to MH i2c: F0 00 00 0E 59 56 [12:18:47]Write i2c OK [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: F0 [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: F0 09 00 [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: F0 09 00 0E 59 00 2D C7 24 67 72 0D 1C 67 E0 [12:18:47]GetLastDocTimeStamp 1730463475 [12:18:47]current date 1730463533 [12:18:47]FM_GetShiftState [12:18:47]SAM_PROTO_GetShiftState [12:18:47]wFMCommunicate request_size=4 [12:18:47]MH_SAM_APDU [12:18:47]CAPDU: 80 13 01 00 [12:18:47]Write to MH i2c: E2 08 00 0F 59 80 13 01 00 00 00 00 00 E5 [12:18:47]Write i2c OK [12:18:47]MH_I2C_Read... [12:18:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:47]Read from MH i2c: E2 [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: E2 0E 00 [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: E2 0E 00 0F 59 00 09 00 01 89 19 24 67 00 00 00 00 90 00 1E [12:18:47]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:18:47]wFMCommunicate OK [12:18:47]SAM_PROTO_GetShiftState done [12:18:47]FM_GetShiftState done [12:18:47]opened in 1730419081 [12:18:47]opened+sec_in_day 1730505481 [12:18:47]quantity*price = 50025 [12:18:47]sum+1 = 50027 [12:18:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 125 01.11.2024 12:18 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139944 ФПД: 94050906194156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T121853&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139944&fm=94050906194156&tin=02508201610067®Number=0000000000091631&sum=50000 [12:18:48]StoreToDocumentArchive [12:18:48]shift 558 fd 139944 [12:18:48]save to /storage/0558/doc_00139944 [12:18:48]save last doc name /storage/0558/doc_00139944 to /storage/kkm_last_doc_name [12:18:48]save OK [12:18:48]Clear old archive folders... [12:18:48]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:18:48]tlvbuf is 00BE2B50 [12:18:48]SAM_PROTO_ClearQueue [12:18:48]wFMCommunicate request_size=4 [12:18:48]MH_SAM_APDU [12:18:48]CAPDU: 80 09 00 00 [12:18:48]Write to MH i2c: E2 08 00 1C 59 80 09 00 00 00 00 00 00 E7 [12:18:48]Write i2c OK [12:18:48]MH_I2C_Read... [12:18:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:48]Read from MH i2c: E2 [12:18:48]MH_I2C_Read... [12:18:48]Read from MH i2c: E2 03 00 [12:18:48]MH_I2C_Read... [12:18:48]Read from MH i2c: E2 03 00 1C 59 00 90 00 E9 [12:18:48]RAPDU: 90 00 [12:18:48]wFMCommunicate OK [12:18:48]SAM_PROTO_ClearQueue done [12:18:48]KKMCreateOFDPacket [12:18:48]OFDProtocolAddRootSTLVToBuf [12:18:48]FM_MakeSignedData [12:18:48]FM_MakeSignedData [12:18:48]SAM_PROTO_SignData [12:18:48]wFMCommunicate request_size=4 [12:18:48]MH_SAM_APDU [12:18:48]CAPDU: 80 0D 01 02 [12:18:48]Write to MH i2c: E2 08 00 1D 59 80 0D 01 02 00 00 00 00 EF [12:18:48]Write i2c OK [12:18:48]MH_I2C_Read... [12:18:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:48]Read from MH i2c: E2 [12:18:48]MH_I2C_Read... [12:18:48]Read from MH i2c: E2 03 00 [12:18:48]MH_I2C_Read... [12:18:48]Read from MH i2c: E2 03 00 1D 59 00 90 00 EA [12:18:48]RAPDU: 90 00 [12:18:48]wFMCommunicate OK [12:18:48]wFMCommunicate request_size=255 [12:18:48]MH_SAM_APDU [12:18:48]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 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 2D C7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A8 22 02 [12:18:48]Write to MH i2c: E2 02 01 1E 59 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 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 2D C7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A8 22 02 00 00 F4 [12:18:48]Write i2c OK [12:18:48]MH_I2C_Read... [12:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:49]Read from MH i2c: E2 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 03 00 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 03 00 1E 59 00 90 00 EB [12:18:49]RAPDU: 90 00 [12:18:49]wFMCommunicate OK [12:18:49]wFMCommunicate request_size=16 [12:18:49]MH_SAM_APDU [12:18:49]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 55 89 EE DA C0 EC [12:18:49]Write to MH i2c: E2 13 00 1F 59 80 0D 02 02 0B 00 00 35 04 06 00 55 89 EE DA C0 EC 00 00 99 [12:18:49]Write i2c OK [12:18:49]MH_I2C_Read... [12:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:49]Read from MH i2c: E2 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 03 00 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 03 00 1F 59 00 90 00 EC [12:18:49]RAPDU: 90 00 [12:18:49]wFMCommunicate OK [12:18:49]wFMCommunicate request_size=4 [12:18:49]MH_SAM_APDU [12:18:49]CAPDU: 80 0D 03 02 [12:18:49]Write to MH i2c: E2 08 00 20 59 80 0D 03 02 00 00 00 00 F4 [12:18:49]Write i2c OK [12:18:49]MH_I2C_Read... [12:18:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:49]Read from MH i2c: E2 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 0B 00 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 0B 00 20 59 00 5E E3 CE 8A D1 59 CA F7 90 00 79 [12:18:49]RAPDU: 5E E3 CE 8A D1 59 CA F7 90 00 [12:18:49]wFMCommunicate OK [12:18:49]SAM_PROTO_SignData done [12:18:49]FM_MakeSignedData done [12:18:49]CreateOFDProtocolMessage [12:18:49]wFMCommunicate request_size=4 [12:18:49]MH_SAM_APDU [12:18:49]CAPDU: 80 11 00 00 [12:18:49]Write to MH i2c: E2 08 00 21 59 80 11 00 00 00 00 00 00 F4 [12:18:49]Write i2c OK [12:18:49]MH_I2C_Read... [12:18:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:49]Read from MH i2c: E2 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 17 00 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 17 00 21 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4F [12:18:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:18:49]wFMCommunicate OK [12:18:49]CreateOFDProtocolMessage done [12:18:49]OFDSenderStorePacket 139944 [12:18:49]StoreOFDPacket docnum=139944 [12:18:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 15 01 00 00 67 5E 0D 01 BB CA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 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 2D C7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A8 22 02 00 35 04 06 00 55 89 EE DA C0 EC 5E E3 CE 8A D1 59 CA F7 [12:18:49]CheckFolder [12:18:49]dirname=/storage/ofd_packets [12:18:49]CheckFolder done [12:18:49]ProducePacketName [12:18:49]name=ofd_packets/00139944 [12:18:49]NVStorageSaveData ofd_packets/00139944 [12:18:49]File name is /storage/ofd_packets/00139944 [12:18:49]Write 307 bytes [12:18:49]NVStorageSaveData done [12:18:49]OFDSenderStorePacket done [12:18:49]KKMCreateOFDPacket done [12:18:49]NVStorageSaveData kkm_last_timestamp [12:18:49]File name is /storage/kkm_last_timestamp [12:18:49]Write 4 bytes [12:18:49]NVStorageSaveData done [12:18:49]ExternCall_PrintAddStr [12:18:49]wPrintStart [12:18:49]Write to MH i2c: 01 00 00 22 59 7B [12:18:49]Write i2c OK [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: 01 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: 01 07 00 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: 01 07 00 22 59 00 00 00 00 00 FF 0F 90 [12:18:49]RasterBufferAndPrint [12:18:49]line Счет N : (1)1095880 [12:18:49]line ИНН: 02508201610067 [12:18:49]line Контрольно-Кассовый Чек [12:18:49]line ПРОДАЖА [12:18:49]line ТРК (МРК, ГНК) : 22 [12:18:49]line Товар: 2710194800 [12:18:49]line D-ENERGY Дт-К-2 [12:18:49]line 6.480 * 77.20 [12:18:49]line = 500.26 [12:18:49]line НДС 12% НСП 1% [12:18:49]line > о реализуемом товаре [12:18:49]line ОКРУГЛЕНИЕ: -0.26 [12:18:49]line ИТОГО: 500.00 [12:18:49]line Внесено: 500.00 [12:18:49]line СДАЧА: 0.00 [12:18:49]line НСП 1% : 4.43 [12:18:49]line НДС 12% : 53.12 [12:18:49]line Наличными: 500.00 [12:18:49]line Безнал.: 0.00 [12:18:49]line Место: АЗС № 101 "Партнер Нефть" [12:18:49]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:18:49]line СНО: Общий режим [12:18:49]line Чек 125 01.11.2024 12:18 [12:18:49]line Смена: 558 ФФД: 1.0 [12:18:49]line ЗНМ: 0300000081 [12:18:49]line РНМ: 0000000000091631 [12:18:49]line Версия ККМ: 001 [12:18:49]line ФМ: 0000000000874669 [12:18:49]line ФД: 139944 [12:18:49]line ФПД: 94050906194156 [12:18:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T121853&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139944&fm=94050906194156&tin=02508201610067®Number=0000000000091631&sum=50000 [12:18:49]OFD Sender: Processing packet 139944 [packets to send 34, broken 33] [12:18:49]ProducePacketName [12:18:49]name=ofd_packets/00139944 [12:18:49]OFD Sender: To server: pG, [12:18:49]CommunicateWithHost lk.salyk.kg:30040 [12:18:49]ConnectInit lk.salyk.kg [12:18:49]written 0, free lines is 4095 [12:18:49]Connected sock=9 [12:18:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 15 01 00 00 67 5E 0D 01 BB CA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 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 2D C7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A8 22 02 00 35 04 06 00 55 89 EE DA C0 EC 5E E3 CE 8A D1 59 CA F7 [12:18:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 26 44 47 00 DF 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A8 22 02 00 F4 03 04 00 D8 72 24 67 B6 04 01 00 00 F4 86 2E 34 3B 76 2F 7B [12:18:49]CommunicateWithHost err = 0 [12:18:49]CheckOFDResponse [12:18:49]1017 (14) - 77093643461234 [12:18:49]1041 (16) - 0000000000874669 [12:18:49]1040 (4) - 139944 [12:18:49]1012 (4) - 01.11.2024 06:19 [12:18:49]1206 (1) - 0 [12:18:49]OFD Sender: Remove packet 139944 [12:18:49]ProducePacketName [12:18:49]name=ofd_packets/00139944 [12:18:49]NVStorageDeleteData [12:18:50]Write to MH i2c: 01 00 00 4D 59 A6 [12:18:50]Write i2c OK [12:18:50]MH_I2C_Read... [12:18:50]Read from MH i2c: 01 [12:18:50]MH_I2C_Read... [12:18:50]Read from MH i2c: 01 07 00 [12:18:50]MH_I2C_Read... [12:18:50]Read from MH i2c: 01 07 00 4D 59 00 00 00 00 00 E4 0C 9D [12:18:50]RasterBufferAndPrint [12:18:50]line [12:18:50]line [12:18:50]line [12:18:50]line [12:18:50]line [12:18:50]written 0, free lines is 3306 [12:18:50]MH_Cut [12:18:50]Write to MH i2c: D1 01 00 54 59 01 7F [12:18:50]Write i2c OK [12:18:50]MH_I2C_Read... [12:18:50]Read from MH i2c: D1 [12:18:50]MH_I2C_Read... [12:18:50]Read from MH i2c: D1 01 00 [12:18:50]MH_I2C_Read... [12:18:50]Read from MH i2c: D1 01 00 54 59 00 7E [12:18:50]Write to MH i2c: 01 00 00 55 59 AE [12:18:50]Write i2c OK [12:18:50]MH_I2C_Read... [12:18:50]OFD Sender: No OFD packet to send [12:18:50]*** Cut start [12:18:50]*** Partial cut [12:18:50]*** CUTSNS_PIN = 1 [12:18:50]*** CUTSNS_PIN = 0 [12:18:51]*** Brake cut motor [12:18:51]Read from MH i2c: 01 [12:18:51]MH_I2C_Read... [12:18:51]*** Stop cut motor [12:18:51]*** Cut end [12:18:51]Read from MH i2c: 01 07 00 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: 01 07 00 55 59 00 00 00 00 00 FF 0F C3 [12:18:51]process_action close_receipt done [12:18:51]requested_data is exist [12:18:51]produce_requested_data [12:18:51]requested_item fm.sn is exist - process it [12:18:51]wFMCommunicate request_size=4 [12:18:51]MH_SAM_APDU [12:18:51]CAPDU: 80 11 00 00 [12:18:51]Write to MH i2c: E2 08 00 56 59 80 11 00 00 00 00 00 00 29 [12:18:51]Write i2c OK [12:18:51]MH_I2C_Read... [12:18:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:51]Read from MH i2c: E2 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: E2 17 00 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: E2 17 00 56 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 84 [12:18:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:18:51]wFMCommunicate OK [12:18:51]requested_item fd.num is exist - process it [12:18:51]SAM_PROTO_GetFieldsCounters [12:18:51]wFMCommunicate request_size=4 [12:18:51]MH_SAM_APDU [12:18:51]CAPDU: 80 13 00 00 [12:18:51]Write to MH i2c: E2 08 00 57 59 80 13 00 00 00 00 00 00 2C [12:18:51]Write i2c OK [12:18:51]MH_I2C_Read... [12:18:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:51]Read from MH i2c: E2 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: E2 62 00 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: E2 62 00 57 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A8 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [12:18:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A8 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:51]wFMCommunicate OK [12:18:51]SAM_PROTO_GetFieldsCounters done [12:18:51]requested_item shift.num is exist - process it [12:18:51]requested_item shift.opened is exist - process it [12:18:51]req_shift_opened [12:18:51]FM_GetShiftState [12:18:51]SAM_PROTO_GetShiftState [12:18:51]wFMCommunicate request_size=4 [12:18:51]MH_SAM_APDU [12:18:51]CAPDU: 80 13 01 00 [12:18:51]Write to MH i2c: E2 08 00 58 59 80 13 01 00 00 00 00 00 2E [12:18:51]Write i2c OK [12:18:51]MH_I2C_Read... [12:18:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:51]Read from MH i2c: E2 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: E2 0E 00 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: E2 0E 00 58 59 00 09 00 01 89 19 24 67 00 00 00 00 90 00 67 [12:18:51]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:18:51]wFMCommunicate OK [12:18:51]SAM_PROTO_GetShiftState done [12:18:51]FM_GetShiftState done [12:18:51]req_shift_opened done [12:18:51]requested_item shift.open_date is exist - process it [12:18:51]req_shift_open_date [12:18:51]req_shift_open_date done [12:18:51]produce_requested_data done [12:18:51]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139944,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [12:18:51]process_action_free close_receipt [12:18:51]json_value_free [12:18:51]json_value_free done [12:18:51]process_json_proto returns [12:18:51]Send response to host [12:18:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139944,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [12:18:51]free response buf [12:18:51]execute_script done [12:18:51]execute_script returns [12:18:51]free content buf [12:18:51]Sock 10.Close socket [12:18:51]Sock 10.Thread stoped [12:18:55]OFD Sender: No OFD packet to send [12:19:00]OFD Sender: No OFD packet to send [12:19:05]OFD Sender: No OFD packet to send [12:19:10]OFD Sender: No OFD packet to send [12:19:12]accept exits with 7 [12:19:12]New connection [12:19:12]New thread 3066510692 created [12:19:12]Thread 3066654052 joined [12:19:12]Waiting for new connection... [12:19:12] Sock 7.Parse request [12:19:12]Sock 7.Check first char [12:19:12]Sock 7.First char is OK [12:19:12]request: POST /json_proto HTTP/1.0 [12:19:12]Method: POST [12:19:12]URL: /json_proto [12:19:12]Method is POST - this is cgi request [12:19:12]url: /json_proto [12:19:12]query_string will be loaded in cgi processing [12:19:12]execute_cgi json_proto POST (null) [12:19:12]execute_cgi path=json_proto method=POST [12:19:12]POST find Content-Length [12:19:12]Host: 172.17.50.196:8080 [12:19:12]Content-Length: 648 [12:19:12]Content-Type: application/json [12:19:12] [12:19:12]POST finish read [12:19:12]Found Content-Length = 648 [12:19:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335765", "tax_sys" : 0, "items" : [ { "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:12]execute_script... [12:19:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335765", "tax_sys" : 0, "items" : [ { "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:12]POST & json_proto [12:19:12]process_json_proto [12:19:12]json parsed OK: [12:19:12]protocol is kg_v1.0 [12:19:12]action value=close_receipt [12:19:12]process_action close_receipt [12:19:12]cmd_close_receipt [12:19:12]MH_GetDate [12:19:12]Write to MH i2c: F0 00 00 59 59 A1 [12:19:12]Write i2c OK [12:19:12]MH_I2C_Read... [12:19:12]Read from MH i2c: F0 [12:19:12]MH_I2C_Read... [12:19:12]Read from MH i2c: F0 09 00 [12:19:12]MH_I2C_Read... [12:19:12]Read from MH i2c: F0 09 00 59 59 00 46 C7 24 67 72 0D 1C 67 44 [12:19:12]GetLastDocTimeStamp 1730463533 [12:19:12]current date 1730463558 [12:19:12]FM_GetShiftState [12:19:12]SAM_PROTO_GetShiftState [12:19:12]wFMCommunicate request_size=4 [12:19:12]MH_SAM_APDU [12:19:12]CAPDU: 80 13 01 00 [12:19:12]Write to MH i2c: E2 08 00 5A 59 80 13 01 00 00 00 00 00 30 [12:19:12]Write i2c OK [12:19:12]MH_I2C_Read... [12:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:12]Read from MH i2c: E2 [12:19:12]MH_I2C_Read... [12:19:12]Read from MH i2c: E2 0E 00 [12:19:12]MH_I2C_Read... [12:19:12]Read from MH i2c: E2 0E 00 5A 59 00 09 00 01 89 19 24 67 00 00 00 00 90 00 69 [12:19:12]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:19:12]wFMCommunicate OK [12:19:12]SAM_PROTO_GetShiftState done [12:19:12]FM_GetShiftState done [12:19:12]opened in 1730419081 [12:19:12]opened+sec_in_day 1730505481 [12:19:12]quantity*price = 13400 [12:19:12]sum+1 = 13401 [12:19:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.19 НДС 12% : 14.23 Наличными: 134.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 126 01.11.2024 12:19 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139945 ФПД: 61961891916207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T121918&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139945&fm=61961891916207&tin=02508201610067®Number=0000000000091631&sum=13400 0 [12:19:13]StoreToDocumentArchive [12:19:13]shift 558 fd 139945 [12:19:13]save to /storage/0558/doc_00139945 [12:19:13]save last doc name /storage/0558/doc_00139945 to /storage/kkm_last_doc_name [12:19:13]save OK [12:19:13]Clear old archive folders... [12:19:13]ProcessDocumentItem done err = 0, tmpTLVsize=276 [12:19:13]tlvbuf is 00A3B1B0 [12:19:13]SAM_PROTO_ClearQueue [12:19:13]wFMCommunicate request_size=4 [12:19:13]MH_SAM_APDU [12:19:13]CAPDU: 80 09 00 00 [12:19:13]Write to MH i2c: E2 08 00 67 59 80 09 00 00 00 00 00 00 32 [12:19:13]Write i2c OK [12:19:13]MH_I2C_Read... [12:19:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:13]Read from MH i2c: E2 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 03 00 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 03 00 67 59 00 90 00 34 [12:19:13]RAPDU: 90 00 [12:19:13]wFMCommunicate OK [12:19:13]SAM_PROTO_ClearQueue done [12:19:13]KKMCreateOFDPacket [12:19:13]OFDProtocolAddRootSTLVToBuf [12:19:13]FM_MakeSignedData [12:19:13]FM_MakeSignedData [12:19:13]SAM_PROTO_SignData [12:19:13]wFMCommunicate request_size=4 [12:19:13]MH_SAM_APDU [12:19:13]CAPDU: 80 0D 01 02 [12:19:13]Write to MH i2c: E2 08 00 68 59 80 0D 01 02 00 00 00 00 3A [12:19:13]Write i2c OK [12:19:13]MH_I2C_Read... [12:19:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:13]Read from MH i2c: E2 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 03 00 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 03 00 68 59 00 90 00 35 [12:19:13]RAPDU: 90 00 [12:19:13]wFMCommunicate OK [12:19:13]wFMCommunicate request_size=255 [12:19:13]MH_SAM_APDU [12:19:13]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 46 C7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 [12:19:13]Write to MH i2c: E2 02 01 69 59 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 46 C7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 00 00 E9 [12:19:13]Write i2c OK [12:19:13]MH_I2C_Read... [12:19:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:14]Read from MH i2c: E2 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: E2 03 00 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: E2 03 00 69 59 00 90 00 36 [12:19:14]RAPDU: 90 00 [12:19:14]wFMCommunicate OK [12:19:14]wFMCommunicate request_size=35 [12:19:14]MH_SAM_APDU [12:19:14]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A9 22 02 00 35 04 06 00 38 5A A0 8E A9 AF [12:19:14]Write to MH i2c: E2 26 00 6A 59 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A9 22 02 00 35 04 06 00 38 5A A0 8E A9 AF 00 00 1D [12:19:14]Write i2c OK [12:19:14]MH_I2C_Read... [12:19:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:14]Read from MH i2c: E2 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: E2 03 00 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: E2 03 00 6A 59 00 90 00 37 [12:19:14]RAPDU: 90 00 [12:19:14]wFMCommunicate OK [12:19:14]wFMCommunicate request_size=4 [12:19:14]MH_SAM_APDU [12:19:14]CAPDU: 80 0D 03 02 [12:19:14]Write to MH i2c: E2 08 00 6B 59 80 0D 03 02 00 00 00 00 3F [12:19:14]Write i2c OK [12:19:14]MH_I2C_Read... [12:19:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:14]Read from MH i2c: E2 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: E2 0B 00 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: E2 0B 00 6B 59 00 85 79 38 BC 23 F3 0D CD 90 00 22 [12:19:14]RAPDU: 85 79 38 BC 23 F3 0D CD 90 00 [12:19:14]wFMCommunicate OK [12:19:14]SAM_PROTO_SignData done [12:19:14]FM_MakeSignedData done [12:19:14]CreateOFDProtocolMessage [12:19:14]wFMCommunicate request_size=4 [12:19:14]MH_SAM_APDU [12:19:14]CAPDU: 80 11 00 00 [12:19:14]Write to MH i2c: E2 08 00 6C 59 80 11 00 00 00 00 00 00 3F [12:19:14]Write i2c OK [12:19:14]MH_I2C_Read... [12:19:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:14]Read from MH i2c: E2 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: E2 17 00 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: E2 17 00 6C 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9A [12:19:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:19:14]wFMCommunicate OK [12:19:14]CreateOFDProtocolMessage done [12:19:14]OFDSenderStorePacket 139945 [12:19:14]StoreOFDPacket docnum=139945 [12:19:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 28 01 00 00 60 DA 20 01 07 14 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 46 C7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A9 22 02 00 35 04 06 00 38 5A A0 8E A9 AF 85 79 38 BC 23 F3 0D CD [12:19:14]CheckFolder [12:19:14]dirname=/storage/ofd_packets [12:19:14]CheckFolder done [12:19:14]ProducePacketName [12:19:14]name=ofd_packets/00139945 [12:19:14]NVStorageSaveData ofd_packets/00139945 [12:19:14]File name is /storage/ofd_packets/00139945 [12:19:14]Write 326 bytes [12:19:14]NVStorageSaveData done [12:19:14]OFDSenderStorePacket done [12:19:14]KKMCreateOFDPacket done [12:19:14]NVStorageSaveData kkm_last_timestamp [12:19:14]File name is /storage/kkm_last_timestamp [12:19:14]Write 4 bytes [12:19:14]NVStorageSaveData done [12:19:14]ExternCall_PrintAddStr [12:19:14]wPrintStart [12:19:14]Write to MH i2c: 01 00 00 6D 59 C6 [12:19:14]Write i2c OK [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: 01 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: 01 07 00 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: 01 07 00 6D 59 00 00 00 00 00 FF 0F DB [12:19:14]RasterBufferAndPrint [12:19:14]line Счет N : (3)335765 [12:19:14]line ИНН: 02508201610067 [12:19:14]line Контрольно-Кассовый Чек [12:19:14]line ПРОДАЖА [12:19:14]line Товар: 4860019001346 [12:19:14]line Вода Боржоми 0,5л ст [12:19:14]line 1.000 * 134.00 [12:19:14]line = 134.00 [12:19:14]line НДС 12% НСП 1% [12:19:14]line > о реализуемом товаре [12:19:14]line ИТОГО: 134.00 [12:19:14]line НСП 1% : 1.19 [12:19:14]line НДС 12% : 14.23 [12:19:14]line Наличными: 134.00 [12:19:14]line Безнал.: 0.00 [12:19:14]line Место: АЗС № 101 "Партнер Нефть" [12:19:14]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:19:14]line СНО: Общий режим [12:19:14]line Чек 126 01.11.2024 12:19 [12:19:14]line Смена: 558 ФФД: 1.0 [12:19:14]line ЗНМ: 0300000081 [12:19:14]line РНМ: 0000000000091631 [12:19:14]line Версия ККМ: 001 [12:19:14]line ФМ: 0000000000874669 [12:19:14]line ФД: 139945 [12:19:14]line ФПД: 61961891916207 [12:19:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T121918&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139945&fm=61961891916207&tin=02508201610067®Number=0000000000091631&sum=13400 [12:19:14]line 0 [12:19:14]OFD Sender: Processing packet 139945 [packets to send 34, broken 33] [12:19:14]ProducePacketName [12:19:14]name=ofd_packets/00139945 [12:19:14]OFD Sender: To server: pG, [12:19:14]CommunicateWithHost lk.salyk.kg:30040 [12:19:14]ConnectInit lk.salyk.kg [12:19:14]written 0, free lines is 4095 [12:19:14]Connected sock=10 [12:19:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 28 01 00 00 60 DA 20 01 07 14 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 46 C7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A9 22 02 00 35 04 06 00 38 5A A0 8E A9 AF 85 79 38 BC 23 F3 0D CD [12:19:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 23 84 47 00 C5 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A9 22 02 00 F4 03 04 00 F1 72 24 67 B6 04 01 00 00 31 81 76 1E 2C 17 8E 38 [12:19:14]CommunicateWithHost err = 0 [12:19:14]CheckOFDResponse [12:19:14]1017 (14) - 77093643461234 [12:19:14]1041 (16) - 0000000000874669 [12:19:14]1040 (4) - 139945 [12:19:14]1012 (4) - 01.11.2024 06:19 [12:19:14]1206 (1) - 0 [12:19:14]OFD Sender: Remove packet 139945 [12:19:14]ProducePacketName [12:19:14]name=ofd_packets/00139945 [12:19:14]NVStorageDeleteData [12:19:15]Write to MH i2c: 01 00 00 95 59 EE [12:19:15]Write i2c OK [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: 01 [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: 01 07 00 [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: 01 07 00 95 59 00 00 00 00 00 14 0D 16 [12:19:15]RasterBufferAndPrint [12:19:15]line [12:19:15]line [12:19:15]line [12:19:15]line [12:19:15]line [12:19:15]written 0, free lines is 3354 [12:19:15]MH_Cut [12:19:15]Write to MH i2c: D1 01 00 9C 59 01 C7 [12:19:15]Write i2c OK [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: D1 [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: D1 01 00 [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: D1 01 00 9C 59 00 C6 [12:19:15]Write to MH i2c: 01 00 00 9D 59 F6 [12:19:15]Write i2c OK [12:19:15]MH_I2C_Read... [12:19:15]OFD Sender: No OFD packet to send [12:19:15]*** Cut start [12:19:15]*** Partial cut [12:19:15]*** CUTSNS_PIN = 1 [12:19:15]*** CUTSNS_PIN = 0 [12:19:15]*** Brake cut motor [12:19:16]Read from MH i2c: 01 [12:19:16]MH_I2C_Read... [12:19:16]*** Stop cut motor [12:19:16]*** Cut end [12:19:16]Read from MH i2c: 01 07 00 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: 01 07 00 9D 59 00 00 00 00 00 FF 0F 0B [12:19:16]process_action close_receipt done [12:19:16]requested_data is exist [12:19:16]produce_requested_data [12:19:16]requested_item fm.sn is exist - process it [12:19:16]wFMCommunicate request_size=4 [12:19:16]MH_SAM_APDU [12:19:16]CAPDU: 80 11 00 00 [12:19:16]Write to MH i2c: E2 08 00 9E 59 80 11 00 00 00 00 00 00 71 [12:19:16]Write i2c OK [12:19:16]MH_I2C_Read... [12:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:16]Read from MH i2c: E2 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 17 00 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 17 00 9E 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CC [12:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:19:16]wFMCommunicate OK [12:19:16]requested_item fd.num is exist - process it [12:19:16]SAM_PROTO_GetFieldsCounters [12:19:16]wFMCommunicate request_size=4 [12:19:16]MH_SAM_APDU [12:19:16]CAPDU: 80 13 00 00 [12:19:16]Write to MH i2c: E2 08 00 9F 59 80 13 00 00 00 00 00 00 74 [12:19:16]Write i2c OK [12:19:16]MH_I2C_Read... [12:19:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:16]Read from MH i2c: E2 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 62 00 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 62 00 9F 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A9 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [12:19:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A9 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:16]wFMCommunicate OK [12:19:16]SAM_PROTO_GetFieldsCounters done [12:19:16]requested_item shift.num is exist - process it [12:19:16]requested_item shift.opened is exist - process it [12:19:16]req_shift_opened [12:19:16]FM_GetShiftState [12:19:16]SAM_PROTO_GetShiftState [12:19:16]wFMCommunicate request_size=4 [12:19:16]MH_SAM_APDU [12:19:16]CAPDU: 80 13 01 00 [12:19:16]Write to MH i2c: E2 08 00 A0 59 80 13 01 00 00 00 00 00 76 [12:19:16]Write i2c OK [12:19:16]MH_I2C_Read... [12:19:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:16]Read from MH i2c: E2 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 0E 00 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 0E 00 A0 59 00 09 00 01 89 19 24 67 00 00 00 00 90 00 AF [12:19:16]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:19:16]wFMCommunicate OK [12:19:16]SAM_PROTO_GetShiftState done [12:19:16]FM_GetShiftState done [12:19:16]req_shift_opened done [12:19:16]requested_item shift.open_date is exist - process it [12:19:16]req_shift_open_date [12:19:16]req_shift_open_date done [12:19:16]produce_requested_data done [12:19:16]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139945,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [12:19:16]process_action_free close_receipt [12:19:16]json_value_free [12:19:16]json_value_free done [12:19:16]process_json_proto returns [12:19:16]Send response to host [12:19:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139945,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [12:19:16]free response buf [12:19:16]execute_script done [12:19:16]execute_script returns [12:19:16]free content buf [12:19:16]Sock 7.Close socket [12:19:16]Sock 7.Thread stoped [12:19:20]OFD Sender: No OFD packet to send [12:19:25]OFD Sender: No OFD packet to send [12:19:29]accept exits with 9 [12:19:29]New connection [12:19:29]New thread 3066654052 created [12:19:29]Thread 3066510692 joined [12:19:29]Waiting for new connection... [12:19:29] Sock 9.Parse request [12:19:29]Sock 9.Check first char [12:19:29]Sock 9.First char is OK [12:19:29]request: POST /json_proto HTTP/1.0 [12:19:29]Method: POST [12:19:29]URL: /json_proto [12:19:29]Method is POST - this is cgi request [12:19:29]url: /json_proto [12:19:29]query_string will be loaded in cgi processing [12:19:29]execute_cgi json_proto POST (null) [12:19:29]execute_cgi path=json_proto method=POST [12:19:29]POST find Content-Length [12:19:29]Host: 172.17.50.196:8080 [12:19:29]Content-Length: 801 [12:19:29]Content-Type: application/json [12:19:29] [12:19:29]POST finish read [12:19:29]Found Content-Length = 801 [12:19:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3957286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:29]execute_script... [12:19:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3957286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:29]POST & json_proto [12:19:29]process_json_proto [12:19:29]json parsed OK: [12:19:29]protocol is kg_v1.0 [12:19:29]action value=close_receipt [12:19:29]process_action close_receipt [12:19:29]cmd_close_receipt [12:19:29]MH_GetDate [12:19:29]Write to MH i2c: F0 00 00 A1 59 E9 [12:19:29]Write i2c OK [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: F0 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: F0 09 00 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: F0 09 00 A1 59 00 56 C7 24 67 72 0D 1C 67 9C [12:19:29]GetLastDocTimeStamp 1730463558 [12:19:29]current date 1730463574 [12:19:29]FM_GetShiftState [12:19:29]SAM_PROTO_GetShiftState [12:19:29]wFMCommunicate request_size=4 [12:19:29]MH_SAM_APDU [12:19:29]CAPDU: 80 13 01 00 [12:19:29]Write to MH i2c: E2 08 00 A2 59 80 13 01 00 00 00 00 00 78 [12:19:29]Write i2c OK [12:19:29]MH_I2C_Read... [12:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:29]Read from MH i2c: E2 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: E2 0E 00 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: E2 0E 00 A2 59 00 09 00 01 89 19 24 67 00 00 00 00 90 00 B1 [12:19:29]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:19:29]wFMCommunicate OK [12:19:29]SAM_PROTO_GetShiftState done [12:19:29]FM_GetShiftState done [12:19:29]opened in 1730419081 [12:19:29]opened+sec_in_day 1730505481 [12:19:29]quantity*price = 0 [12:19:29]sum+1 = 1 [12:19:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 127 01.11.2024 12:19 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Талоны: Топливные Талоны 3957286 ФМ: 0000000000874669 ФД: 139946 ФПД: 5546895550822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T121934&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139946&fm=5546895550822&tin=02508201610067®Number=0000000000091631&sum=0 [12:19:30]StoreToDocumentArchive [12:19:30]shift 558 fd 139946 [12:19:30]save to /storage/0558/doc_00139946 [12:19:30]save last doc name /storage/0558/doc_00139946 to /storage/kkm_last_doc_name [12:19:30]save OK [12:19:30]Clear old archive folders... [12:19:30]OFD Sender: No OFD packet to send [12:19:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:30]tlvbuf is 00A8EA20 [12:19:30]SAM_PROTO_ClearQueue [12:19:30]wFMCommunicate request_size=4 [12:19:30]MH_SAM_APDU [12:19:30]CAPDU: 80 09 00 00 [12:19:30]Write to MH i2c: E2 08 00 AF 59 80 09 00 00 00 00 00 00 7A [12:19:30]Write i2c OK [12:19:30]MH_I2C_Read... [12:19:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:30]Read from MH i2c: E2 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 03 00 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 03 00 AF 59 00 90 00 7C [12:19:30]RAPDU: 90 00 [12:19:30]wFMCommunicate OK [12:19:30]SAM_PROTO_ClearQueue done [12:19:30]KKMCreateOFDPacket [12:19:30]OFDProtocolAddRootSTLVToBuf [12:19:30]FM_MakeSignedData [12:19:30]FM_MakeSignedData [12:19:30]SAM_PROTO_SignData [12:19:30]wFMCommunicate request_size=4 [12:19:30]MH_SAM_APDU [12:19:30]CAPDU: 80 0D 01 02 [12:19:30]Write to MH i2c: E2 08 00 B0 59 80 0D 01 02 00 00 00 00 82 [12:19:30]Write i2c OK [12:19:30]MH_I2C_Read... [12:19:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:30]Read from MH i2c: E2 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 03 00 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 03 00 B0 59 00 90 00 7D [12:19:30]RAPDU: 90 00 [12:19:30]wFMCommunicate OK [12:19:30]wFMCommunicate request_size=255 [12:19:30]MH_SAM_APDU [12:19:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 56 C7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AA 22 02 00 35 04 06 00 05 [12:19:30]Write to MH i2c: E2 02 01 B1 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 56 C7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AA 22 02 00 35 04 06 00 05 00 00 24 [12:19:30]Write i2c OK [12:19:30]MH_I2C_Read... [12:19:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:30]Read from MH i2c: E2 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 03 00 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 03 00 B1 59 00 90 00 7E [12:19:30]RAPDU: 90 00 [12:19:30]wFMCommunicate OK [12:19:30]wFMCommunicate request_size=10 [12:19:30]MH_SAM_APDU [12:19:30]CAPDU: 80 0D 02 02 05 0B 7C BD 29 66 [12:19:30]Write to MH i2c: E2 0D 00 B2 59 80 0D 02 02 05 00 0B 7C BD 29 66 00 00 62 [12:19:30]Write i2c OK [12:19:30]MH_I2C_Read... [12:19:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:30]Read from MH i2c: E2 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 03 00 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 03 00 B2 59 00 90 00 7F [12:19:30]RAPDU: 90 00 [12:19:30]wFMCommunicate OK [12:19:30]wFMCommunicate request_size=4 [12:19:30]MH_SAM_APDU [12:19:30]CAPDU: 80 0D 03 02 [12:19:30]Write to MH i2c: E2 08 00 B3 59 80 0D 03 02 00 00 00 00 87 [12:19:30]Write i2c OK [12:19:30]MH_I2C_Read... [12:19:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:30]Read from MH i2c: E2 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 0B 00 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 0B 00 B3 59 00 B5 3F EA 3C 56 0F E4 9C 90 00 87 [12:19:30]RAPDU: B5 3F EA 3C 56 0F E4 9C 90 00 [12:19:30]wFMCommunicate OK [12:19:30]SAM_PROTO_SignData done [12:19:30]FM_MakeSignedData done [12:19:30]CreateOFDProtocolMessage [12:19:30]wFMCommunicate request_size=4 [12:19:30]MH_SAM_APDU [12:19:30]CAPDU: 80 11 00 00 [12:19:30]Write to MH i2c: E2 08 00 B4 59 80 11 00 00 00 00 00 00 87 [12:19:30]Write i2c OK [12:19:30]MH_I2C_Read... [12:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:30]Read from MH i2c: E2 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 17 00 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 17 00 B4 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E2 [12:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:19:30]wFMCommunicate OK [12:19:30]CreateOFDProtocolMessage done [12:19:30]OFDSenderStorePacket 139946 [12:19:30]StoreOFDPacket docnum=139946 [12:19:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 45 30 07 01 D9 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 56 C7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AA 22 02 00 35 04 06 00 05 0B 7C BD 29 66 B5 3F EA 3C 56 0F E4 9C [12:19:30]CheckFolder [12:19:30]dirname=/storage/ofd_packets [12:19:30]CheckFolder done [12:19:30]ProducePacketName [12:19:30]name=ofd_packets/00139946 [12:19:30]NVStorageSaveData ofd_packets/00139946 [12:19:30]File name is /storage/ofd_packets/00139946 [12:19:30]Write 301 bytes [12:19:30]NVStorageSaveData done [12:19:30]OFDSenderStorePacket done [12:19:30]KKMCreateOFDPacket done [12:19:30]NVStorageSaveData kkm_last_timestamp [12:19:30]File name is /storage/kkm_last_timestamp [12:19:30]Write 4 bytes [12:19:30]NVStorageSaveData done [12:19:30]ExternCall_PrintAddStr [12:19:30]wPrintStart [12:19:30]Write to MH i2c: 01 00 00 B5 59 0E [12:19:30]Write i2c OK [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: 01 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: 01 07 00 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: 01 07 00 B5 59 00 00 00 00 00 FF 0F 23 [12:19:30]RasterBufferAndPrint [12:19:30]line Счет N : (1)1095882 [12:19:30]line ИНН: 02508201610067 [12:19:30]line Контрольно-Кассовый Чек [12:19:30]line ПРОДАЖА [12:19:30]line ТРК (МРК, ГНК) : 63 [12:19:30]line Товар: 2710124130 [12:19:30]line Аи-92-К-2 [12:19:30]line 20.000 * 0.00 [12:19:30]line = 0.00 [12:19:30]line НДС 12% НСП 1% [12:19:30]line > о реализуемом товаре [12:19:30]line ИТОГО: 0.00 [12:19:30]line НСП 1% : 0.00 [12:19:30]line НДС 12% : 0.00 [12:19:30]line Наличными: 0.00 [12:19:30]line Безнал.: 0.00 [12:19:30]line Место: АЗС № 101 "Партнер Нефть" [12:19:30]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:19:30]line СНО: Общий режим [12:19:30]line Чек 127 01.11.2024 12:19 [12:19:30]line Смена: 558 ФФД: 1.0 [12:19:30]line ЗНМ: 0300000081 [12:19:30]line РНМ: 0000000000091631 [12:19:30]line Версия ККМ: 001 [12:19:30]line Талоны: Топливные Талоны [12:19:30]line 3957286 [12:19:30]line ФМ: 0000000000874669 [12:19:30]line ФД: 139946 [12:19:30]line ФПД: 5546895550822 [12:19:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T121934&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139946&fm=5546895550822&tin=02508201610067®Number=0000000000091631&sum=0 [12:19:31]written 0, free lines is 4095 [12:19:31]OFD Sender: Processing packet 139946 [packets to send 34, broken 33] [12:19:31]ProducePacketName [12:19:31]name=ofd_packets/00139946 [12:19:31]OFD Sender: To server: pG, [12:19:31]CommunicateWithHost lk.salyk.kg:30040 [12:19:31]ConnectInit lk.salyk.kg [12:19:31]Connected sock=10 [12:19:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 45 30 07 01 D9 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 56 C7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AA 22 02 00 35 04 06 00 05 0B 7C BD 29 66 B5 3F EA 3C 56 0F E4 9C [12:19:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 6A AE 47 00 72 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 34 36 36 39 10 04 04 00 AA 22 02 00 F4 03 04 00 01 73 24 67 B6 04 01 00 00 32 75 3E 6F 5C 58 3A 36 [12:19:31]CommunicateWithHost err = 0 [12:19:31]CheckOFDResponse [12:19:31]1017 (14) - 77093643461234 [12:19:31]1041 (16) - 0000000000874669 [12:19:31]1040 (4) - 139946 [12:19:31]1012 (4) - 01.11.2024 06:19 [12:19:31]1206 (1) - 0 [12:19:31]OFD Sender: Remove packet 139946 [12:19:31]ProducePacketName [12:19:31]name=ofd_packets/00139946 [12:19:31]NVStorageDeleteData [12:19:31]Write to MH i2c: 01 00 00 DF 59 38 [12:19:31]Write i2c OK [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: 01 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: 01 07 00 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: 01 07 00 DF 59 00 00 00 00 00 F2 0C 3D [12:19:31]RasterBufferAndPrint [12:19:31]line [12:19:31]line [12:19:31]line [12:19:31]line [12:19:31]line [12:19:31]written 0, free lines is 3320 [12:19:31]MH_Cut [12:19:31]Write to MH i2c: D1 01 00 E6 59 01 11 [12:19:31]Write i2c OK [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: D1 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: D1 01 00 [12:19:31]MH_I2C_Read... [12:19:31]Read from MH i2c: D1 01 00 E6 59 00 10 [12:19:31]Write to MH i2c: 01 00 00 E7 59 40 [12:19:31]Write i2c OK [12:19:31]MH_I2C_Read... [12:19:32]OFD Sender: No OFD packet to send [12:19:32]*** Cut start [12:19:32]*** Partial cut [12:19:32]*** CUTSNS_PIN = 1 [12:19:32]*** CUTSNS_PIN = 0 [12:19:32]*** Brake cut motor [12:19:33]Read from MH i2c: 01 [12:19:33]MH_I2C_Read... [12:19:33]*** Stop cut motor [12:19:33]*** Cut end [12:19:33]Read from MH i2c: 01 07 00 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: 01 07 00 E7 59 00 00 00 00 00 FF 0F 55 [12:19:33]process_action close_receipt done [12:19:33]requested_data is exist [12:19:33]produce_requested_data [12:19:33]requested_item fm.sn is exist - process it [12:19:33]wFMCommunicate request_size=4 [12:19:33]MH_SAM_APDU [12:19:33]CAPDU: 80 11 00 00 [12:19:33]Write to MH i2c: E2 08 00 E8 59 80 11 00 00 00 00 00 00 BB [12:19:33]Write i2c OK [12:19:33]MH_I2C_Read... [12:19:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:33]Read from MH i2c: E2 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 17 00 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 17 00 E8 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 16 [12:19:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:19:33]wFMCommunicate OK [12:19:33]requested_item fd.num is exist - process it [12:19:33]SAM_PROTO_GetFieldsCounters [12:19:33]wFMCommunicate request_size=4 [12:19:33]MH_SAM_APDU [12:19:33]CAPDU: 80 13 00 00 [12:19:33]Write to MH i2c: E2 08 00 E9 59 80 13 00 00 00 00 00 00 BE [12:19:33]Write i2c OK [12:19:33]MH_I2C_Read... [12:19:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:33]Read from MH i2c: E2 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 62 00 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 62 00 E9 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 AA 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [12:19:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 AA 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:33]wFMCommunicate OK [12:19:33]SAM_PROTO_GetFieldsCounters done [12:19:33]requested_item shift.num is exist - process it [12:19:33]requested_item shift.opened is exist - process it [12:19:33]req_shift_opened [12:19:33]FM_GetShiftState [12:19:33]SAM_PROTO_GetShiftState [12:19:33]wFMCommunicate request_size=4 [12:19:33]MH_SAM_APDU [12:19:33]CAPDU: 80 13 01 00 [12:19:33]Write to MH i2c: E2 08 00 EA 59 80 13 01 00 00 00 00 00 C0 [12:19:33]Write i2c OK [12:19:33]MH_I2C_Read... [12:19:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:33]Read from MH i2c: E2 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 0E 00 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 0E 00 EA 59 00 09 00 01 89 19 24 67 00 00 00 00 90 00 F9 [12:19:33]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:19:33]wFMCommunicate OK [12:19:33]SAM_PROTO_GetShiftState done [12:19:33]FM_GetShiftState done [12:19:33]req_shift_opened done [12:19:33]requested_item shift.open_date is exist - process it [12:19:33]req_shift_open_date [12:19:33]req_shift_open_date done [12:19:33]produce_requested_data done [12:19:33]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139946,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [12:19:33]process_action_free close_receipt [12:19:33]json_value_free [12:19:33]json_value_free done [12:19:33]process_json_proto returns [12:19:33]Send response to host [12:19:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139946,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [12:19:33]free response buf [12:19:33]execute_script done [12:19:33]execute_script returns [12:19:33]free content buf [12:19:33]Sock 9.Close socket [12:19:33]Sock 9.Thread stoped [12:19:37]OFD Sender: No OFD packet to send [12:19:38]accept exits with 7 [12:19:38]New connection [12:19:38]New thread 3066510692 created [12:19:38]Thread 3066654052 joined [12:19:38]Waiting for new connection... [12:19:38] Sock 7.Parse request [12:19:38]Sock 7.Check first char [12:19:38]Sock 7.First char is OK [12:19:38]request: POST /json_proto HTTP/1.0 [12:19:38]Method: POST [12:19:38]URL: /json_proto [12:19:38]Method is POST - this is cgi request [12:19:38]url: /json_proto [12:19:38]query_string will be loaded in cgi processing [12:19:38]execute_cgi json_proto POST (null) [12:19:38]execute_cgi path=json_proto method=POST [12:19:38]POST find Content-Length [12:19:38]Host: 172.17.50.196:8080 [12:19:38]Content-Length: 924 [12:19:38]Content-Type: application/json [12:19:38] [12:19:38]POST finish read [12:19:38]Found Content-Length = 924 [12:19:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335766", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 81.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:38]execute_script... [12:19: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)335766", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 81.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:38]POST & json_proto [12:19:38]process_json_proto [12:19:38]json parsed OK: [12:19:38]protocol is kg_v1.0 [12:19:38]action value=close_receipt [12:19:38]process_action close_receipt [12:19:38]cmd_close_receipt [12:19:38]MH_GetDate [12:19:38]Write to MH i2c: F0 00 00 EB 59 33 [12:19:38]Write i2c OK [12:19:38]MH_I2C_Read... [12:19:38]Read from MH i2c: F0 [12:19:38]MH_I2C_Read... [12:19:38]Read from MH i2c: F0 09 00 [12:19:38]MH_I2C_Read... [12:19:38]Read from MH i2c: F0 09 00 EB 59 00 60 C7 24 67 72 0D 1C 67 F0 [12:19:38]GetLastDocTimeStamp 1730463574 [12:19:38]current date 1730463584 [12:19:38]FM_GetShiftState [12:19:38]SAM_PROTO_GetShiftState [12:19:38]wFMCommunicate request_size=4 [12:19:38]MH_SAM_APDU [12:19:38]CAPDU: 80 13 01 00 [12:19:38]Write to MH i2c: E2 08 00 EC 59 80 13 01 00 00 00 00 00 C2 [12:19:38]Write i2c OK [12:19:38]MH_I2C_Read... [12:19:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:38]Read from MH i2c: E2 [12:19:38]MH_I2C_Read... [12:19:38]Read from MH i2c: E2 0E 00 [12:19:38]MH_I2C_Read... [12:19:38]Read from MH i2c: E2 0E 00 EC 59 00 09 00 01 89 19 24 67 00 00 00 00 90 00 FB [12:19:38]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:19:38]wFMCommunicate OK [12:19:38]SAM_PROTO_GetShiftState done [12:19:38]FM_GetShiftState done [12:19:38]opened in 1730419081 [12:19:38]opened+sec_in_day 1730505481 [12:19:38]quantity*price = 6000 [12:19:38]sum+1 = 6001 [12:19:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 3.000 * 7.00 = 21.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 81.00 НСП 1% : 0.72 НДС 12% : 8.60 Наличными: 81.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 128 01.11.2024 12:19 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139947 ФПД: 122132167659111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T121944&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139947&fm=122132167659111&tin=02508201610067®Number=0000000000091631&sum=8100 0 [12:19:39]StoreToDocumentArchive [12:19:39]shift 558 fd 139947 [12:19:39]save to /storage/0558/doc_00139947 [12:19:39]save last doc name /storage/0558/doc_00139947 to /storage/kkm_last_doc_name [12:19:39]save OK [12:19:39]Clear old archive folders... [12:19:39]ProcessDocumentItem done err = 0, tmpTLVsize=388 [12:19:39]tlvbuf is 00A752E0 [12:19:39]SAM_PROTO_ClearQueue [12:19:39]wFMCommunicate request_size=4 [12:19:39]MH_SAM_APDU [12:19:39]CAPDU: 80 09 00 00 [12:19:39]Write to MH i2c: E2 08 00 F9 59 80 09 00 00 00 00 00 00 C4 [12:19:39]Write i2c OK [12:19:39]MH_I2C_Read... [12:19:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:39]Read from MH i2c: E2 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 03 00 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 03 00 F9 59 00 90 00 C6 [12:19:39]RAPDU: 90 00 [12:19:39]wFMCommunicate OK [12:19:39]SAM_PROTO_ClearQueue done [12:19:39]KKMCreateOFDPacket [12:19:39]OFDProtocolAddRootSTLVToBuf [12:19:39]FM_MakeSignedData [12:19:39]FM_MakeSignedData [12:19:39]SAM_PROTO_SignData [12:19:39]wFMCommunicate request_size=4 [12:19:39]MH_SAM_APDU [12:19:39]CAPDU: 80 0D 01 02 [12:19:39]Write to MH i2c: E2 08 00 FA 59 80 0D 01 02 00 00 00 00 CC [12:19:39]Write i2c OK [12:19:39]MH_I2C_Read... [12:19:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:40]Read from MH i2c: E2 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: E2 03 00 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: E2 03 00 FA 59 00 90 00 C7 [12:19:40]RAPDU: 90 00 [12:19:40]wFMCommunicate OK [12:19:40]wFMCommunicate request_size=255 [12:19:40]MH_SAM_APDU [12:19:40]CAPDU: 80 0D 02 02 FA 03 00 84 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [12:19:40]Write to MH i2c: E2 02 01 FB 59 80 0D 02 02 FA 00 03 00 84 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 8B [12:19:40]Write i2c OK [12:19:40]MH_I2C_Read... [12:19:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:40]Read from MH i2c: E2 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: E2 03 00 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: E2 03 00 FB 59 00 90 00 C8 [12:19:40]RAPDU: 90 00 [12:19:40]wFMCommunicate OK [12:19:40]wFMCommunicate request_size=147 [12:19:40]MH_SAM_APDU [12:19:40]CAPDU: 80 0D 02 02 8E F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 60 C7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AB 22 02 00 35 04 06 00 6F 14 1C 78 0E 67 [12:19:40]Write to MH i2c: E2 96 00 FC 59 80 0D 02 02 8E 00 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 60 C7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AB 22 02 00 35 04 06 00 6F 14 1C 78 0E 67 00 00 42 [12:19:40]Write i2c OK [12:19:40]MH_I2C_Read... [12:19:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:40]Read from MH i2c: E2 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: E2 03 00 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: E2 03 00 FC 59 00 90 00 C9 [12:19:40]RAPDU: 90 00 [12:19:40]wFMCommunicate OK [12:19:40]wFMCommunicate request_size=4 [12:19:40]MH_SAM_APDU [12:19:40]CAPDU: 80 0D 03 02 [12:19:40]Write to MH i2c: E2 08 00 FD 59 80 0D 03 02 00 00 00 00 D1 [12:19:40]Write i2c OK [12:19:40]MH_I2C_Read... [12:19:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:40]Read from MH i2c: E2 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: E2 0B 00 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: E2 0B 00 FD 59 00 02 74 7A 16 32 F4 02 89 90 00 89 [12:19:40]RAPDU: 02 74 7A 16 32 F4 02 89 90 00 [12:19:40]wFMCommunicate OK [12:19:40]SAM_PROTO_SignData done [12:19:40]FM_MakeSignedData done [12:19:40]CreateOFDProtocolMessage [12:19:40]wFMCommunicate request_size=4 [12:19:40]MH_SAM_APDU [12:19:40]CAPDU: 80 11 00 00 [12:19:40]Write to MH i2c: E2 08 00 FE 59 80 11 00 00 00 00 00 00 D1 [12:19:40]Write i2c OK [12:19:40]MH_I2C_Read... [12:19:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:40]Read from MH i2c: E2 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: E2 17 00 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: E2 17 00 FE 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2C [12:19:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:19:40]wFMCommunicate OK [12:19:40]CreateOFDProtocolMessage done [12:19:40]OFDSenderStorePacket 139947 [12:19:40]StoreOFDPacket docnum=139947 [12:19:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 98 01 00 00 5E 6D 90 01 37 1F 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 60 C7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AB 22 02 00 35 04 06 00 6F 14 1C 78 0E 67 02 74 7A 16 32 F4 02 89 [12:19:40]CheckFolder [12:19:40]dirname=/storage/ofd_packets [12:19:40]CheckFolder done [12:19:40]ProducePacketName [12:19:40]name=ofd_packets/00139947 [12:19:40]NVStorageSaveData ofd_packets/00139947 [12:19:40]File name is /storage/ofd_packets/00139947 [12:19:40]Write 438 bytes [12:19:40]NVStorageSaveData done [12:19:40]OFDSenderStorePacket done [12:19:40]KKMCreateOFDPacket done [12:19:40]NVStorageSaveData kkm_last_timestamp [12:19:40]File name is /storage/kkm_last_timestamp [12:19:40]Write 4 bytes [12:19:40]NVStorageSaveData done [12:19:40]ExternCall_PrintAddStr [12:19:40]wPrintStart [12:19:40]Write to MH i2c: 01 00 00 FF 59 58 [12:19:40]Write i2c OK [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: 01 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: 01 07 00 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: 01 07 00 FF 59 00 00 00 00 00 FF 0F 6D [12:19:40]RasterBufferAndPrint [12:19:40]line Счет N : (3)335766 [12:19:40]line ИНН: 02508201610067 [12:19:40]line Контрольно-Кассовый Чек [12:19:40]line ПРОДАЖА [12:19:40]line Товар: 4700000160204 [12:19:40]line Вода Легенда 1,5л [12:19:40]line 1.000 * 60.00 [12:19:40]line = 60.00 [12:19:40]line НДС 12% НСП 1% [12:19:40]line > о реализуемом товаре [12:19:40]line Товар: 2000053020015 [12:19:40]line Бумажные стаканы 250мл 1шт [12:19:40]line 3.000 * 7.00 [12:19:40]line = 21.00 [12:19:40]line НДС 12% НСП 1% [12:19:40]line > о реализуемом товаре [12:19:40]line ИТОГО: 81.00 [12:19:40]line НСП 1% : 0.72 [12:19:40]line НДС 12% : 8.60 [12:19:40]line Наличными: 81.00 [12:19:40]line Безнал.: 0.00 [12:19:40]line Место: АЗС № 101 "Партнер Нефть" [12:19:40]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:19:40]line СНО: Общий режим [12:19:40]line Чек 128 01.11.2024 12:19 [12:19:40]line Смена: 558 ФФД: 1.0 [12:19:40]line ЗНМ: 0300000081 [12:19:40]line РНМ: 0000000000091631 [12:19:40]line Версия ККМ: 001 [12:19:40]line ФМ: 0000000000874669 [12:19:40]line ФД: 139947 [12:19:40]line ФПД: 122132167659111 [12:19:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T121944&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139947&fm=122132167659111&tin=02508201610067®Number=0000000000091631&sum=8100 [12:19:40]OFD Sender: Processing packet 139947 [packets to send 34, broken 33] [12:19:40]ProducePacketName [12:19:40]name=ofd_packets/00139947 [12:19:40]OFD Sender: To server: pG, [12:19:40]CommunicateWithHost lk.salyk.kg:30040 [12:19:40]ConnectInit lk.salyk.kg [12:19:40]line 0 [12:19:40]written 0, free lines is 4095 [12:19:41]Connected sock=10 [12:19:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 98 01 00 00 5E 6D 90 01 37 1F 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 60 C7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AB 22 02 00 35 04 06 00 6F 14 1C 78 0E 67 02 74 7A 16 32 F4 02 89 [12:19:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 61 35 47 00 2A 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AB 22 02 00 F4 03 04 00 0B 73 24 67 B6 04 01 00 00 05 18 3D 0B BA A1 98 0F [12:19:41]CommunicateWithHost err = 0 [12:19:41]CheckOFDResponse [12:19:41]1017 (14) - 77093643461234 [12:19:41]1041 (16) - 0000000000874669 [12:19:41]1040 (4) - 139947 [12:19:41]1012 (4) - 01.11.2024 06:19 [12:19:41]1206 (1) - 0 [12:19:41]OFD Sender: Remove packet 139947 [12:19:41]ProducePacketName [12:19:41]name=ofd_packets/00139947 [12:19:41]NVStorageDeleteData [12:19:41]Write to MH i2c: 01 00 00 2E 5A 88 [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: 01 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: 01 07 00 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: 01 07 00 2E 5A 00 00 00 00 00 A4 0C 3F [12:19:41]RasterBufferAndPrint [12:19:41]line [12:19:41]line [12:19:41]line [12:19:41]line [12:19:41]line [12:19:41]written 0, free lines is 3245 [12:19:41]MH_Cut [12:19:41]Write to MH i2c: D1 01 00 35 5A 01 61 [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: D1 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: D1 01 00 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: D1 01 00 35 5A 00 60 [12:19:41]Write to MH i2c: 01 00 00 36 5A 90 [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:41]OFD Sender: No OFD packet to send [12:19:42]*** Cut start [12:19:42]*** Partial cut [12:19:42]*** CUTSNS_PIN = 1 [12:19:42]*** CUTSNS_PIN = 0 [12:19:42]*** Brake cut motor [12:19:42]Read from MH i2c: 01 [12:19:42]MH_I2C_Read... [12:19:42]*** Stop cut motor [12:19:42]*** Cut end [12:19:42]Read from MH i2c: 01 07 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: 01 07 00 36 5A 00 00 00 00 00 FF 0F A5 [12:19:42]process_action close_receipt done [12:19:42]requested_data is exist [12:19:42]produce_requested_data [12:19:42]requested_item fm.sn is exist - process it [12:19:42]wFMCommunicate request_size=4 [12:19:42]MH_SAM_APDU [12:19:42]CAPDU: 80 11 00 00 [12:19:42]Write to MH i2c: E2 08 00 37 5A 80 11 00 00 00 00 00 00 0B [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:42]Read from MH i2c: E2 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 17 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 17 00 37 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 66 [12:19:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:19:42]wFMCommunicate OK [12:19:42]requested_item fd.num is exist - process it [12:19:42]SAM_PROTO_GetFieldsCounters [12:19:42]wFMCommunicate request_size=4 [12:19:42]MH_SAM_APDU [12:19:42]CAPDU: 80 13 00 00 [12:19:42]Write to MH i2c: E2 08 00 38 5A 80 13 00 00 00 00 00 00 0E [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:42]Read from MH i2c: E2 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 62 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 62 00 38 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 AB 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [12:19: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 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 AB 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:42]wFMCommunicate OK [12:19:42]SAM_PROTO_GetFieldsCounters done [12:19:42]requested_item shift.num is exist - process it [12:19:42]requested_item shift.opened is exist - process it [12:19:42]req_shift_opened [12:19:42]FM_GetShiftState [12:19:42]SAM_PROTO_GetShiftState [12:19:42]wFMCommunicate request_size=4 [12:19:42]MH_SAM_APDU [12:19:42]CAPDU: 80 13 01 00 [12:19:42]Write to MH i2c: E2 08 00 39 5A 80 13 01 00 00 00 00 00 10 [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:43]Read from MH i2c: E2 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 0E 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 0E 00 39 5A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 49 [12:19:43]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:19:43]wFMCommunicate OK [12:19:43]SAM_PROTO_GetShiftState done [12:19:43]FM_GetShiftState done [12:19:43]req_shift_opened done [12:19:43]requested_item shift.open_date is exist - process it [12:19:43]req_shift_open_date [12:19:43]req_shift_open_date done [12:19:43]produce_requested_data done [12:19:43]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139947,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [12:19:43]process_action_free close_receipt [12:19:43]json_value_free [12:19:43]json_value_free done [12:19:43]process_json_proto returns [12:19:43]Send response to host [12:19:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139947,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [12:19:43]free response buf [12:19:43]execute_script done [12:19:43]execute_script returns [12:19:43]free content buf [12:19:43]Sock 7.Close socket [12:19:43]Sock 7.Thread stoped [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:09]accept exits with 9 [12:21:09]New connection [12:21:09]New thread 3066654052 created [12:21:09]Thread 3066510692 joined [12:21:09]Waiting for new connection... [12:21:09] Sock 9.Parse request [12:21:09]Sock 9.Check first char [12:21:09]Sock 9.First char is OK [12:21:09]request: POST /json_proto HTTP/1.0 [12:21:09]Method: POST [12:21:09]URL: /json_proto [12:21:09]Method is POST - this is cgi request [12:21:09]url: /json_proto [12:21:09]query_string will be loaded in cgi processing [12:21:09]execute_cgi json_proto POST (null) [12:21:09]execute_cgi path=json_proto method=POST [12:21:09]POST find Content-Length [12:21:09]Host: 172.17.50.196:8080 [12:21:09]Content-Length: 955 [12:21:09]Content-Type: application/json [12:21:09] [12:21:09]POST finish read [12:21:09]Found Content-Length = 955 [12:21:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335767", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 184.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:09]execute_script... [12:21: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)335767", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 184.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:09]POST & json_proto [12:21:09]process_json_proto [12:21:09]json parsed OK: [12:21:09]protocol is kg_v1.0 [12:21:09]action value=close_receipt [12:21:09]process_action close_receipt [12:21:09]cmd_close_receipt [12:21:09]MH_GetDate [12:21:09]Write to MH i2c: F0 00 00 3A 5A 83 [12:21:09]Write i2c OK [12:21:09]MH_I2C_Read... [12:21:09]Read from MH i2c: F0 [12:21:09]MH_I2C_Read... [12:21:09]Read from MH i2c: F0 09 00 [12:21:09]MH_I2C_Read... [12:21:09]Read from MH i2c: F0 09 00 3A 5A 00 BB C7 24 67 72 0D 1C 67 9B [12:21:09]GetLastDocTimeStamp 1730463584 [12:21:09]current date 1730463675 [12:21:09]FM_GetShiftState [12:21:09]SAM_PROTO_GetShiftState [12:21:09]wFMCommunicate request_size=4 [12:21:09]MH_SAM_APDU [12:21:09]CAPDU: 80 13 01 00 [12:21:09]Write to MH i2c: E2 08 00 3B 5A 80 13 01 00 00 00 00 00 12 [12:21:09]Write i2c OK [12:21:09]MH_I2C_Read... [12:21:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:09]Read from MH i2c: E2 [12:21:09]MH_I2C_Read... [12:21:09]Read from MH i2c: E2 0E 00 [12:21:09]MH_I2C_Read... [12:21:09]Read from MH i2c: E2 0E 00 3B 5A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 4B [12:21:09]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:21:09]wFMCommunicate OK [12:21:09]SAM_PROTO_GetShiftState done [12:21:09]FM_GetShiftState done [12:21:09]opened in 1730419081 [12:21:09]opened+sec_in_day 1730505481 [12:21:09]quantity*price = 17000 [12:21:09]sum+1 = 17001 [12:21:09]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 2.000 * 7.00 = 14.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 184.00 НСП 1% : 1.62 НДС 12% : 19.54 Наличными: 184.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 129 01.11.2024 12:21 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139948 ФПД: 153263255728336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T122115&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139948&fm=153263255728336&tin=02508201610067®Number=0000000000091631&sum=18400 0 [12:21:10]StoreToDocumentArchive [12:21:10]shift 558 fd 139948 [12:21:10]save to /storage/0558/doc_00139948 [12:21:10]save last doc name /storage/0558/doc_00139948 to /storage/kkm_last_doc_name [12:21:10]save OK [12:21:10]Clear old archive folders... [12:21:10]ProcessDocumentItem done err = 0, tmpTLVsize=404 [12:21:10]tlvbuf is 00AE61B0 [12:21:10]SAM_PROTO_ClearQueue [12:21:10]wFMCommunicate request_size=4 [12:21:10]MH_SAM_APDU [12:21:10]CAPDU: 80 09 00 00 [12:21:10]Write to MH i2c: E2 08 00 48 5A 80 09 00 00 00 00 00 00 14 [12:21:10]Write i2c OK [12:21:10]MH_I2C_Read... [12:21:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:10]Read from MH i2c: E2 [12:21:10]MH_I2C_Read... [12:21:10]Read from MH i2c: E2 03 00 [12:21:10]MH_I2C_Read... [12:21:10]Read from MH i2c: E2 03 00 48 5A 00 90 00 16 [12:21:10]RAPDU: 90 00 [12:21:10]wFMCommunicate OK [12:21:10]SAM_PROTO_ClearQueue done [12:21:10]KKMCreateOFDPacket [12:21:10]OFDProtocolAddRootSTLVToBuf [12:21:10]FM_MakeSignedData [12:21:10]FM_MakeSignedData [12:21:10]SAM_PROTO_SignData [12:21:10]wFMCommunicate request_size=4 [12:21:10]MH_SAM_APDU [12:21:10]CAPDU: 80 0D 01 02 [12:21:10]Write to MH i2c: E2 08 00 49 5A 80 0D 01 02 00 00 00 00 1C [12:21:10]Write i2c OK [12:21:10]MH_I2C_Read... [12:21:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:10]Read from MH i2c: E2 [12:21:10]MH_I2C_Read... [12:21:10]Read from MH i2c: E2 03 00 [12:21:10]MH_I2C_Read... [12:21:10]Read from MH i2c: E2 03 00 49 5A 00 90 00 17 [12:21:10]RAPDU: 90 00 [12:21:10]wFMCommunicate OK [12:21:10]wFMCommunicate request_size=255 [12:21:10]MH_SAM_APDU [12:21:10]CAPDU: 80 0D 02 02 FA 03 00 94 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 [12:21:10]Write to MH i2c: E2 02 01 4A 5A 80 0D 02 02 FA 00 03 00 94 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 0F [12:21:10]Write i2c OK [12:21:10]MH_I2C_Read... [12:21:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:11]Read from MH i2c: E2 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 03 00 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 03 00 4A 5A 00 90 00 18 [12:21:11]RAPDU: 90 00 [12:21:11]wFMCommunicate OK [12:21:11]wFMCommunicate request_size=163 [12:21:11]MH_SAM_APDU [12:21:11]CAPDU: 80 0D 02 02 9E 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 A2 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 BB C7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AC 22 02 00 35 04 06 00 8B 64 61 EA 30 D0 [12:21:11]Write to MH i2c: E2 A6 00 4B 5A 80 0D 02 02 9E 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 A2 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 BB C7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AC 22 02 00 35 04 06 00 8B 64 61 EA 30 D0 00 00 D5 [12:21:11]Write i2c OK [12:21:11]MH_I2C_Read... [12:21:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:11]Read from MH i2c: E2 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 03 00 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 03 00 4B 5A 00 90 00 19 [12:21:11]RAPDU: 90 00 [12:21:11]wFMCommunicate OK [12:21:11]wFMCommunicate request_size=4 [12:21:11]MH_SAM_APDU [12:21:11]CAPDU: 80 0D 03 02 [12:21:11]Write to MH i2c: E2 08 00 4C 5A 80 0D 03 02 00 00 00 00 21 [12:21:11]Write i2c OK [12:21:11]MH_I2C_Read... [12:21:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:11]Read from MH i2c: E2 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 0B 00 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 0B 00 4C 5A 00 F0 8D 00 53 04 6F 07 9A 90 00 06 [12:21:11]RAPDU: F0 8D 00 53 04 6F 07 9A 90 00 [12:21:11]wFMCommunicate OK [12:21:11]SAM_PROTO_SignData done [12:21:11]FM_MakeSignedData done [12:21:11]CreateOFDProtocolMessage [12:21:11]wFMCommunicate request_size=4 [12:21:11]MH_SAM_APDU [12:21:11]CAPDU: 80 11 00 00 [12:21:11]Write to MH i2c: E2 08 00 4D 5A 80 11 00 00 00 00 00 00 21 [12:21:11]Write i2c OK [12:21:11]MH_I2C_Read... [12:21:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:11]Read from MH i2c: E2 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 17 00 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 17 00 4D 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 7C [12:21:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:21:11]wFMCommunicate OK [12:21:11]CreateOFDProtocolMessage done [12:21:11]OFDSenderStorePacket 139948 [12:21:11]StoreOFDPacket docnum=139948 [12:21:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 A8 01 00 00 6D 58 A0 01 8D BE 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 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 A2 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 BB C7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AC 22 02 00 35 04 06 00 8B 64 61 EA 30 D0 F0 8D 00 53 04 6F 07 9A [12:21:11]CheckFolder [12:21:11]dirname=/storage/ofd_packets [12:21:11]CheckFolder done [12:21:11]ProducePacketName [12:21:11]name=ofd_packets/00139948 [12:21:11]NVStorageSaveData ofd_packets/00139948 [12:21:11]File name is /storage/ofd_packets/00139948 [12:21:11]Write 454 bytes [12:21:11]NVStorageSaveData done [12:21:11]OFDSenderStorePacket done [12:21:11]KKMCreateOFDPacket done [12:21:11]NVStorageSaveData kkm_last_timestamp [12:21:11]File name is /storage/kkm_last_timestamp [12:21:11]Write 4 bytes [12:21:11]NVStorageSaveData done [12:21:11]ExternCall_PrintAddStr [12:21:11]wPrintStart [12:21:11]Write to MH i2c: 01 00 00 4E 5A A8 [12:21:11]Write i2c OK [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: 01 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: 01 07 00 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: 01 07 00 4E 5A 00 00 00 00 00 FF 0F BD [12:21:11]RasterBufferAndPrint [12:21:11]line Счет N : (3)335767 [12:21:11]line ИНН: 02508201610067 [12:21:11]line Контрольно-Кассовый Чек [12:21:11]line ПРОДАЖА [12:21:11]line Товар: 5449000176448 [12:21:11]line Сок Piko Pulpy апельсин ПЭТ 1л [12:21:11]line 1.000 * 170.00 [12:21:11]line = 170.00 [12:21:11]line НДС 12% НСП 1% [12:21:11]line > о реализуемом товаре [12:21:11]line Товар: 2000053020015 [12:21:11]line Бумажные стаканы 250мл 1шт [12:21:11]line 2.000 * 7.00 [12:21:11]line = 14.00 [12:21:11]line НДС 12% НСП 1% [12:21:11]line > о реализуемом товаре [12:21:11]line ИТОГО: 184.00 [12:21:11]line НСП 1% : 1.62 [12:21:11]line НДС 12% : 19.54 [12:21:11]line Наличными: 184.00 [12:21:11]line Безнал.: 0.00 [12:21:11]line Место: АЗС № 101 "Партнер Нефть" [12:21:11]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:21:11]line СНО: Общий режим [12:21:11]line Чек 129 01.11.2024 12:21 [12:21:11]line Смена: 558 ФФД: 1.0 [12:21:11]line ЗНМ: 0300000081 [12:21:11]line РНМ: 0000000000091631 [12:21:11]line Версия ККМ: 001 [12:21:11]line ФМ: 0000000000874669 [12:21:11]line ФД: 139948 [12:21:11]line ФПД: 153263255728336 [12:21:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T122115&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139948&fm=153263255728336&tin=02508201610067®Number=0000000000091631&sum=18400 [12:21:11]line 0 [12:21:11]OFD Sender: Processing packet 139948 [packets to send 34, broken 33] [12:21:11]ProducePacketName [12:21:11]name=ofd_packets/00139948 [12:21:11]OFD Sender: To server: pG, [12:21:11]CommunicateWithHost lk.salyk.kg:30040 [12:21:11]ConnectInit lk.salyk.kg [12:21:11]written 0, free lines is 4095 [12:21:11]Connected sock=10 [12:21:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 A8 01 00 00 6D 58 A0 01 8D BE 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 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 A2 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 BB C7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AC 22 02 00 35 04 06 00 8B 64 61 EA 30 D0 F0 8D 00 53 04 6F 07 9A [12:21:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 19 8E 47 00 D4 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 34 36 36 39 10 04 04 00 AC 22 02 00 F4 03 04 00 66 73 24 67 B6 04 01 00 00 BC BC EB 0B 72 0B 9E 9D [12:21:12]CommunicateWithHost err = 0 [12:21:12]CheckOFDResponse [12:21:12]1017 (14) - 77093643461234 [12:21:12]1041 (16) - 0000000000874669 [12:21:12]1040 (4) - 139948 [12:21:12]1012 (4) - 01.11.2024 06:21 [12:21:12]1206 (1) - 0 [12:21:12]OFD Sender: Remove packet 139948 [12:21:12]ProducePacketName [12:21:12]name=ofd_packets/00139948 [12:21:12]NVStorageDeleteData [12:21:12]Write to MH i2c: 01 00 00 7E 5A D8 [12:21:12]Write i2c OK [12:21:12]MH_I2C_Read... [12:21:12]Read from MH i2c: 01 [12:21:12]MH_I2C_Read... [12:21:12]Read from MH i2c: 01 07 00 [12:21:12]MH_I2C_Read... [12:21:12]Read from MH i2c: 01 07 00 7E 5A 00 00 00 00 00 A7 0C 92 [12:21:12]RasterBufferAndPrint [12:21:12]line [12:21:12]line [12:21:12]line [12:21:12]line [12:21:12]line [12:21:12]written 0, free lines is 3248 [12:21:12]MH_Cut [12:21:12]Write to MH i2c: D1 01 00 85 5A 01 B1 [12:21:12]Write i2c OK [12:21:12]MH_I2C_Read... [12:21:12]Read from MH i2c: D1 [12:21:12]MH_I2C_Read... [12:21:12]Read from MH i2c: D1 01 00 [12:21:12]MH_I2C_Read... [12:21:12]Read from MH i2c: D1 01 00 85 5A 00 B0 [12:21:12]Write to MH i2c: 01 00 00 86 5A E0 [12:21:12]Write i2c OK [12:21:12]MH_I2C_Read... [12:21:12]OFD Sender: No OFD packet to send [12:21:13]*** Cut start [12:21:13]*** Partial cut [12:21:13]*** CUTSNS_PIN = 1 [12:21:13]*** CUTSNS_PIN = 0 [12:21:13]*** Brake cut motor [12:21:13]Read from MH i2c: 01 [12:21:13]MH_I2C_Read... [12:21:13]*** Stop cut motor [12:21:13]*** Cut end [12:21:13]Read from MH i2c: 01 07 00 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: 01 07 00 86 5A 00 00 00 00 00 FF 0F F5 [12:21:13]process_action close_receipt done [12:21:13]requested_data is exist [12:21:13]produce_requested_data [12:21:13]requested_item fm.sn is exist - process it [12:21:13]wFMCommunicate request_size=4 [12:21:13]MH_SAM_APDU [12:21:13]CAPDU: 80 11 00 00 [12:21:13]Write to MH i2c: E2 08 00 87 5A 80 11 00 00 00 00 00 00 5B [12:21:13]Write i2c OK [12:21:13]MH_I2C_Read... [12:21:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:13]Read from MH i2c: E2 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 17 00 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 17 00 87 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B6 [12:21:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:21:13]wFMCommunicate OK [12:21:13]requested_item fd.num is exist - process it [12:21:13]SAM_PROTO_GetFieldsCounters [12:21:13]wFMCommunicate request_size=4 [12:21:13]MH_SAM_APDU [12:21:13]CAPDU: 80 13 00 00 [12:21:13]Write to MH i2c: E2 08 00 88 5A 80 13 00 00 00 00 00 00 5E [12:21:13]Write i2c OK [12:21:13]MH_I2C_Read... [12:21:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:13]Read from MH i2c: E2 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 62 00 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 62 00 88 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 AC 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [12:21:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 AC 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:13]wFMCommunicate OK [12:21:13]SAM_PROTO_GetFieldsCounters done [12:21:13]requested_item shift.num is exist - process it [12:21:13]requested_item shift.opened is exist - process it [12:21:13]req_shift_opened [12:21:13]FM_GetShiftState [12:21:13]SAM_PROTO_GetShiftState [12:21:13]wFMCommunicate request_size=4 [12:21:13]MH_SAM_APDU [12:21:13]CAPDU: 80 13 01 00 [12:21:13]Write to MH i2c: E2 08 00 89 5A 80 13 01 00 00 00 00 00 60 [12:21:13]Write i2c OK [12:21:13]MH_I2C_Read... [12:21:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:13]Read from MH i2c: E2 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 0E 00 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 0E 00 89 5A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 99 [12:21:13]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:21:13]wFMCommunicate OK [12:21:13]SAM_PROTO_GetShiftState done [12:21:13]FM_GetShiftState done [12:21:13]req_shift_opened done [12:21:13]requested_item shift.open_date is exist - process it [12:21:13]req_shift_open_date [12:21:13]req_shift_open_date done [12:21:13]produce_requested_data done [12:21:13]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139948,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [12:21:13]process_action_free close_receipt [12:21:13]json_value_free [12:21:13]json_value_free done [12:21:13]process_json_proto returns [12:21:13]Send response to host [12:21:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139948,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [12:21:13]free response buf [12:21:13]execute_script done [12:21:13]execute_script returns [12:21:13]free content buf [12:21:13]Sock 9.Close socket [12:21:13]Sock 9.Thread stoped [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:29]accept exits with 7 [12:24:29]New connection [12:24:29]New thread 3066510692 created [12:24:29]Thread 3066654052 joined [12:24:29]Waiting for new connection... [12:24:29] Sock 7.Parse request [12:24:29]Sock 7.Check first char [12:24:29]Sock 7.First char is OK [12:24:29]request: POST /json_proto HTTP/1.0 [12:24:29]Method: POST [12:24:29]URL: /json_proto [12:24:29]Method is POST - this is cgi request [12:24:29]url: /json_proto [12:24:29]query_string will be loaded in cgi processing [12:24:29]execute_cgi json_proto POST (null) [12:24:29]execute_cgi path=json_proto method=POST [12:24:29]POST find Content-Length [12:24:29]Host: 172.17.50.196:8080 [12:24:29]Content-Length: 773 [12:24:29]Content-Type: application/json [12:24:29] [12:24:29]POST finish read [12:24:29]Found Content-Length = 773 [12:24:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.30, "quantity" : 52.220, "sum" : 2000.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:29]execute_script... [12:24:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.30, "quantity" : 52.220, "sum" : 2000.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:29]POST & json_proto [12:24:29]process_json_proto [12:24:29]json parsed OK: [12:24:29]protocol is kg_v1.0 [12:24:29]action value=close_receipt [12:24:29]process_action close_receipt [12:24:29]cmd_close_receipt [12:24:29]MH_GetDate [12:24:29]Write to MH i2c: F0 00 00 8A 5A D3 [12:24:29]Write i2c OK [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: F0 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: F0 09 00 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: F0 09 00 8A 5A 00 82 C8 24 67 72 0D 1C 67 B3 [12:24:29]GetLastDocTimeStamp 1730463675 [12:24:29]current date 1730463874 [12:24:29]FM_GetShiftState [12:24:29]SAM_PROTO_GetShiftState [12:24:29]wFMCommunicate request_size=4 [12:24:29]MH_SAM_APDU [12:24:29]CAPDU: 80 13 01 00 [12:24:29]Write to MH i2c: E2 08 00 8B 5A 80 13 01 00 00 00 00 00 62 [12:24:29]Write i2c OK [12:24:29]MH_I2C_Read... [12:24:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:29]Read from MH i2c: E2 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: E2 0E 00 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: E2 0E 00 8B 5A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 9B [12:24:29]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:24:29]wFMCommunicate OK [12:24:29]SAM_PROTO_GetShiftState done [12:24:29]FM_GetShiftState done [12:24:29]opened in 1730419081 [12:24:29]opened+sec_in_day 1730505481 [12:24:29]quantity*price = 200002 [12:24:29]sum+1 = 200004 [12:24:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.03 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 0.00 Безнал.: 2000.03 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 130 01.11.2024 12:24 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139949 ФПД: 28235236339379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T122434&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139949&fm=28235236339379&tin=02508201610067®Number=0000000000091631&sum=200003 [12:24:30]StoreToDocumentArchive [12:24:30]shift 558 fd 139949 [12:24:30]save to /storage/0558/doc_00139949 [12:24:30]save last doc name /storage/0558/doc_00139949 to /storage/kkm_last_doc_name [12:24:30]save OK [12:24:30]Clear old archive folders... [12:24:30]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:24:30]tlvbuf is 00A9ECD0 [12:24:30]SAM_PROTO_ClearQueue [12:24:30]wFMCommunicate request_size=4 [12:24:30]MH_SAM_APDU [12:24:30]CAPDU: 80 09 00 00 [12:24:30]Write to MH i2c: E2 08 00 98 5A 80 09 00 00 00 00 00 00 64 [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:30]Read from MH i2c: E2 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 98 5A 00 90 00 66 [12:24:30]RAPDU: 90 00 [12:24:30]wFMCommunicate OK [12:24:30]SAM_PROTO_ClearQueue done [12:24:30]KKMCreateOFDPacket [12:24:30]OFDProtocolAddRootSTLVToBuf [12:24:30]FM_MakeSignedData [12:24:30]FM_MakeSignedData [12:24:30]SAM_PROTO_SignData [12:24:30]wFMCommunicate request_size=4 [12:24:30]MH_SAM_APDU [12:24:30]CAPDU: 80 0D 01 02 [12:24:30]Write to MH i2c: E2 08 00 99 5A 80 0D 01 02 00 00 00 00 6C [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:30]Read from MH i2c: E2 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 99 5A 00 90 00 67 [12:24:30]RAPDU: 90 00 [12:24:30]wFMCommunicate OK [12:24:30]wFMCommunicate request_size=255 [12:24:30]MH_SAM_APDU [12:24:30]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 FC CB 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 43 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 43 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 43 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 82 C8 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AD 22 02 00 35 04 06 00 19 AE [12:24:30]Write to MH i2c: E2 02 01 9A 5A 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 FC CB 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 43 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 43 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 43 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 82 C8 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AD 22 02 00 35 04 06 00 19 AE 00 00 3C [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:30]Read from MH i2c: E2 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 9A 5A 00 90 00 68 [12:24:30]RAPDU: 90 00 [12:24:30]wFMCommunicate OK [12:24:30]wFMCommunicate request_size=9 [12:24:30]MH_SAM_APDU [12:24:30]CAPDU: 80 0D 02 02 04 07 3B 6E B3 [12:24:30]Write to MH i2c: E2 0C 00 9B 5A 80 0D 02 02 04 00 07 3B 6E B3 00 00 DA [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:30]Read from MH i2c: E2 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 9B 5A 00 90 00 69 [12:24:30]RAPDU: 90 00 [12:24:30]wFMCommunicate OK [12:24:30]wFMCommunicate request_size=4 [12:24:30]MH_SAM_APDU [12:24:30]CAPDU: 80 0D 03 02 [12:24:30]Write to MH i2c: E2 08 00 9C 5A 80 0D 03 02 00 00 00 00 71 [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:30]Read from MH i2c: E2 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 0B 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 0B 00 9C 5A 00 98 72 D5 52 A3 08 DD 30 90 00 5B [12:24:30]RAPDU: 98 72 D5 52 A3 08 DD 30 90 00 [12:24:30]wFMCommunicate OK [12:24:30]SAM_PROTO_SignData done [12:24:30]FM_MakeSignedData done [12:24:30]CreateOFDProtocolMessage [12:24:30]wFMCommunicate request_size=4 [12:24:30]MH_SAM_APDU [12:24:30]CAPDU: 80 11 00 00 [12:24:30]Write to MH i2c: E2 08 00 9D 5A 80 11 00 00 00 00 00 00 71 [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:30]Read from MH i2c: E2 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 17 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 17 00 9D 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CC [12:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:24:30]wFMCommunicate OK [12:24:30]CreateOFDProtocolMessage done [12:24:30]OFDSenderStorePacket 139949 [12:24:30]StoreOFDPacket docnum=139949 [12:24:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0E 01 00 00 5B 40 06 01 80 E5 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 FC CB 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 43 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 43 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 43 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 82 C8 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AD 22 02 00 35 04 06 00 19 AE 07 3B 6E B3 98 72 D5 52 A3 08 DD 30 [12:24:30]CheckFolder [12:24:30]dirname=/storage/ofd_packets [12:24:30]CheckFolder done [12:24:30]ProducePacketName [12:24:30]name=ofd_packets/00139949 [12:24:30]NVStorageSaveData ofd_packets/00139949 [12:24:30]File name is /storage/ofd_packets/00139949 [12:24:30]Write 300 bytes [12:24:30]NVStorageSaveData done [12:24:30]OFDSenderStorePacket done [12:24:30]KKMCreateOFDPacket done [12:24:30]NVStorageSaveData kkm_last_timestamp [12:24:30]File name is /storage/kkm_last_timestamp [12:24:30]Write 4 bytes [12:24:30]NVStorageSaveData done [12:24:30]ExternCall_PrintAddStr [12:24:30]wPrintStart [12:24:30]Write to MH i2c: 01 00 00 9E 5A F8 [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: 01 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: 01 07 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: 01 07 00 9E 5A 00 00 00 00 00 FF 0F 0D [12:24:30]RasterBufferAndPrint [12:24:30]line Счет N : (1)1095885 [12:24:30]line ИНН: 02508201610067 [12:24:30]line Контрольно-Кассовый Чек [12:24:30]line ПРОДАЖА [12:24:30]line ТРК (МРК, ГНК) : 81 [12:24:30]line Товар: 2711190000 [12:24:30]line ГАЗ-К-5 [12:24:30]line 52.220 * 38.30 [12:24:30]line = 2000.03 [12:24:30]line НДС 12% НСП 1% [12:24:30]line > о реализуемом товаре [12:24:30]line ИТОГО: 2000.03 [12:24:30]line НСП 1% : 17.70 [12:24:30]line НДС 12% : 212.39 [12:24:30]line Наличными: 0.00 [12:24:30]line Безнал.: 2000.03 [12:24:30]line Место: АЗС № 101 "Партнер Нефть" [12:24:30]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:24:30]line СНО: Общий режим [12:24:30]line Чек 130 01.11.2024 12:24 [12:24:30]line Смена: 558 ФФД: 1.0 [12:24:30]line ЗНМ: 0300000081 [12:24:30]line РНМ: 0000000000091631 [12:24:30]line Версия ККМ: 001 [12:24:30]line Платежная система: Mbank [12:24:30]line ФМ: 0000000000874669 [12:24:30]line ФД: 139949 [12:24:30]line ФПД: 28235236339379 [12:24:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T122434&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139949&fm=28235236339379&tin=02508201610067®Number=0000000000091631&sum=200003 [12:24:31]OFD Sender: Processing packet 139949 [packets to send 34, broken 33] [12:24:31]ProducePacketName [12:24:31]name=ofd_packets/00139949 [12:24:31]OFD Sender: To server: pG, [12:24:31]CommunicateWithHost lk.salyk.kg:30040 [12:24:31]ConnectInit lk.salyk.kg [12:24:31]written 0, free lines is 4095 [12:24:31]Connected sock=10 [12:24:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0E 01 00 00 5B 40 06 01 80 E5 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 FC CB 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 43 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 43 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 43 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 82 C8 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AD 22 02 00 35 04 06 00 19 AE 07 3B 6E B3 98 72 D5 52 A3 08 DD 30 [12:24:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 97 05 47 00 2B 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 34 36 36 39 10 04 04 00 AD 22 02 00 F4 03 04 00 2D 74 24 67 B6 04 01 00 00 BD F1 CB 03 FF F5 1B 20 [12:24:31]CommunicateWithHost err = 0 [12:24:31]CheckOFDResponse [12:24:31]1017 (14) - 77093643461234 [12:24:31]1041 (16) - 0000000000874669 [12:24:31]1040 (4) - 139949 [12:24:31]1012 (4) - 01.11.2024 06:24 [12:24:31]1206 (1) - 0 [12:24:31]OFD Sender: Remove packet 139949 [12:24:31]ProducePacketName [12:24:31]name=ofd_packets/00139949 [12:24:31]NVStorageDeleteData [12:24:31]Write to MH i2c: 01 00 00 C7 5A 21 [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: 01 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: 01 07 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: 01 07 00 C7 5A 00 00 00 00 00 17 0D 4C [12:24:31]RasterBufferAndPrint [12:24:31]line [12:24:31]line [12:24:31]line [12:24:31]line [12:24:31]line [12:24:31]written 0, free lines is 3358 [12:24:31]MH_Cut [12:24:31]Write to MH i2c: D1 01 00 CE 5A 01 FA [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: D1 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: D1 01 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: D1 01 00 CE 5A 00 F9 [12:24:31]Write to MH i2c: 01 00 00 CF 5A 29 [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]OFD Sender: No OFD packet to send [12:24:32]*** Cut start [12:24:32]*** Partial cut [12:24:32]*** CUTSNS_PIN = 1 [12:24:32]*** CUTSNS_PIN = 0 [12:24:32]*** Brake cut motor [12:24:32]Read from MH i2c: 01 [12:24:32]MH_I2C_Read... [12:24:32]*** Stop cut motor [12:24:32]*** Cut end [12:24:32]Read from MH i2c: 01 07 00 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: 01 07 00 CF 5A 00 00 00 00 00 FF 0F 3E [12:24:32]process_action close_receipt done [12:24:32]requested_data is exist [12:24:32]produce_requested_data [12:24:32]requested_item fm.sn is exist - process it [12:24:32]wFMCommunicate request_size=4 [12:24:32]MH_SAM_APDU [12:24:32]CAPDU: 80 11 00 00 [12:24:32]Write to MH i2c: E2 08 00 D0 5A 80 11 00 00 00 00 00 00 A4 [12:24:32]Write i2c OK [12:24:32]MH_I2C_Read... [12:24:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:32]Read from MH i2c: E2 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: E2 17 00 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: E2 17 00 D0 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FF [12:24:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:24:32]wFMCommunicate OK [12:24:32]requested_item fd.num is exist - process it [12:24:32]SAM_PROTO_GetFieldsCounters [12:24:32]wFMCommunicate request_size=4 [12:24:32]MH_SAM_APDU [12:24:32]CAPDU: 80 13 00 00 [12:24:32]Write to MH i2c: E2 08 00 D1 5A 80 13 00 00 00 00 00 00 A7 [12:24:32]Write i2c OK [12:24:32]MH_I2C_Read... [12:24:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:33]Read from MH i2c: E2 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: E2 62 00 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: E2 62 00 D1 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 AD 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [12:24:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 AD 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:33]wFMCommunicate OK [12:24:33]SAM_PROTO_GetFieldsCounters done [12:24:33]requested_item shift.num is exist - process it [12:24:33]requested_item shift.opened is exist - process it [12:24:33]req_shift_opened [12:24:33]FM_GetShiftState [12:24:33]SAM_PROTO_GetShiftState [12:24:33]wFMCommunicate request_size=4 [12:24:33]MH_SAM_APDU [12:24:33]CAPDU: 80 13 01 00 [12:24:33]Write to MH i2c: E2 08 00 D2 5A 80 13 01 00 00 00 00 00 A9 [12:24:33]Write i2c OK [12:24:33]MH_I2C_Read... [12:24:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:33]Read from MH i2c: E2 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: E2 0E 00 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: E2 0E 00 D2 5A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 E2 [12:24:33]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:24:33]wFMCommunicate OK [12:24:33]SAM_PROTO_GetShiftState done [12:24:33]FM_GetShiftState done [12:24:33]req_shift_opened done [12:24:33]requested_item shift.open_date is exist - process it [12:24:33]req_shift_open_date [12:24:33]req_shift_open_date done [12:24:33]produce_requested_data done [12:24:33]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139949,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [12:24:33]process_action_free close_receipt [12:24:33]json_value_free [12:24:33]json_value_free done [12:24:33]process_json_proto returns [12:24:33]Send response to host [12:24:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139949,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [12:24:33]free response buf [12:24:33]execute_script done [12:24:33]execute_script returns [12:24:33]free content buf [12:24:33]Sock 7.Close socket [12:24:33]Sock 7.Thread stoped [12:24:36]OFD Sender: No OFD packet to send [12:24:41]OFD Sender: No OFD packet to send [12:24:46]OFD Sender: No OFD packet to send [12:24:51]OFD Sender: No OFD packet to send [12:24:56]OFD Sender: No OFD packet to send [12:25:01]OFD Sender: No OFD packet to send [12:25:06]OFD Sender: No OFD packet to send [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:02]OFD Sender: No OFD packet to send [12:27:07]OFD Sender: No OFD packet to send [12:27:12]OFD Sender: No OFD packet to send [12:27:17]OFD Sender: No OFD packet to send [12:27:22]OFD Sender: No OFD packet to send [12:27:27]OFD Sender: No OFD packet to send [12:27:32]OFD Sender: No OFD packet to send [12:27:37]OFD Sender: No OFD packet to send [12:27:42]OFD Sender: No OFD packet to send [12:27:47]OFD Sender: No OFD packet to send [12:27:47]accept exits with 9 [12:27:47]New connection [12:27:47]New thread 3066654052 created [12:27:47]Thread 3066510692 joined [12:27:47]Waiting for new connection... [12:27:47] Sock 9.Parse request [12:27:47]Sock 9.Check first char [12:27:47]Sock 9.First char is OK [12:27:47]request: POST /json_proto HTTP/1.0 [12:27:47]Method: POST [12:27:47]URL: /json_proto [12:27:47]Method is POST - this is cgi request [12:27:47]url: /json_proto [12:27:47]query_string will be loaded in cgi processing [12:27:47]execute_cgi json_proto POST (null) [12:27:47]execute_cgi path=json_proto method=POST [12:27:47]POST find Content-Length [12:27:47]Host: 172.17.50.196:8080 [12:27:47]Content-Length: 1272 [12:27:47]Content-Type: application/json [12:27:47] [12:27:47]POST finish read [12:27:47]Found Content-Length = 1272 [12:27:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335768", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 4.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.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" : 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: Mbank", "payments": [ { "type": 1, "sum" : 610.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:47]execute_script... [12:27:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335768", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 4.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.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" : 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: Mbank", "payments": [ { "type": 1, "sum" : 610.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:47]POST & json_proto [12:27:47]process_json_proto [12:27:47]json parsed OK: [12:27:47]protocol is kg_v1.0 [12:27:47]action value=close_receipt [12:27:47]process_action close_receipt [12:27:47]cmd_close_receipt [12:27:47]MH_GetDate [12:27:47]Write to MH i2c: F0 00 00 D3 5A 1C [12:27:47]Write i2c OK [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: F0 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: F0 09 00 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: F0 09 00 D3 5A 00 49 C9 24 67 72 0D 1C 67 C4 [12:27:47]GetLastDocTimeStamp 1730463874 [12:27:47]current date 1730464073 [12:27:47]FM_GetShiftState [12:27:47]SAM_PROTO_GetShiftState [12:27:47]wFMCommunicate request_size=4 [12:27:47]MH_SAM_APDU [12:27:47]CAPDU: 80 13 01 00 [12:27:47]Write to MH i2c: E2 08 00 D4 5A 80 13 01 00 00 00 00 00 AB [12:27:47]Write i2c OK [12:27:47]MH_I2C_Read... [12:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:48]Read from MH i2c: E2 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: E2 0E 00 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: E2 0E 00 D4 5A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 E4 [12:27:48]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:27:48]wFMCommunicate OK [12:27:48]SAM_PROTO_GetShiftState done [12:27:48]FM_GetShiftState done [12:27:48]opened in 1730419081 [12:27:48]opened+sec_in_day 1730505481 [12:27:48]quantity*price = 20000 [12:27:48]sum+1 = 20001 [12:27:48]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 2.000 * 130.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 40822938 Напиток Фанта 0,5л 2.000 * 75.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 610.00 НСП 1% : 5.40 НДС 12% : 64.78 Наличными: 0.00 Безнал.: 610.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 131 01.11.2024 12:27 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139950 ФПД: 278457623289206 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T122753&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139950&fm=278457623289206&tin=02508201610067®Number=0000000000091631&sum=61000 0 [12:27:49]StoreToDocumentArchive [12:27:49]shift 558 fd 139950 [12:27:49]save to /storage/0558/doc_00139950 [12:27:49]save last doc name /storage/0558/doc_00139950 to /storage/kkm_last_doc_name [12:27:49]save OK [12:27:49]Clear old archive folders... [12:27:49]ProcessDocumentItem done err = 0, tmpTLVsize=479 [12:27:49]tlvbuf is 00A59680 [12:27:49]SAM_PROTO_ClearQueue [12:27:49]wFMCommunicate request_size=4 [12:27:49]MH_SAM_APDU [12:27:49]CAPDU: 80 09 00 00 [12:27:49]Write to MH i2c: E2 08 00 E1 5A 80 09 00 00 00 00 00 00 AD [12:27:49]Write i2c OK [12:27:49]MH_I2C_Read... [12:27:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:49]Read from MH i2c: E2 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: E2 03 00 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: E2 03 00 E1 5A 00 90 00 AF [12:27:49]RAPDU: 90 00 [12:27:49]wFMCommunicate OK [12:27:49]SAM_PROTO_ClearQueue done [12:27:49]KKMCreateOFDPacket [12:27:49]OFDProtocolAddRootSTLVToBuf [12:27:49]FM_MakeSignedData [12:27:49]FM_MakeSignedData [12:27:49]SAM_PROTO_SignData [12:27:49]wFMCommunicate request_size=4 [12:27:49]MH_SAM_APDU [12:27:49]CAPDU: 80 0D 01 02 [12:27:49]Write to MH i2c: E2 08 00 E2 5A 80 0D 01 02 00 00 00 00 B5 [12:27:49]Write i2c OK [12:27:49]MH_I2C_Read... [12:27:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:49]Read from MH i2c: E2 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: E2 03 00 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: E2 03 00 E2 5A 00 90 00 B0 [12:27:49]RAPDU: 90 00 [12:27:49]wFMCommunicate OK [12:27:49]wFMCommunicate request_size=255 [12:27:49]MH_SAM_APDU [12:27:49]CAPDU: 80 0D 02 02 FA 03 00 DF 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 A0 0F 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 [12:27:49]Write to MH i2c: E2 02 01 E3 5A 80 0D 02 02 FA 00 03 00 DF 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 A0 0F 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 4C [12:27:49]Write i2c OK [12:27:49]MH_I2C_Read... [12:27:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:49]Read from MH i2c: E2 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: E2 03 00 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: E2 03 00 E3 5A 00 90 00 B1 [12:27:49]RAPDU: 90 00 [12:27:49]wFMCommunicate OK [12:27:49]wFMCommunicate request_size=238 [12:27:49]MH_SAM_APDU [12:27:49]CAPDU: 80 0D 02 02 E9 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 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 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 EE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 49 C9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AE 22 02 00 35 04 06 00 FD 41 77 B8 9D 76 [12:27:49]Write to MH i2c: E2 F1 00 E4 5A 80 0D 02 02 E9 00 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 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 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 EE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 49 C9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AE 22 02 00 35 04 06 00 FD 41 77 B8 9D 76 00 00 5B [12:27:49]Write i2c OK [12:27:49]MH_I2C_Read... [12:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:50]Read from MH i2c: E2 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: E2 03 00 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: E2 03 00 E4 5A 00 90 00 B2 [12:27:50]RAPDU: 90 00 [12:27:50]wFMCommunicate OK [12:27:50]wFMCommunicate request_size=4 [12:27:50]MH_SAM_APDU [12:27:50]CAPDU: 80 0D 03 02 [12:27:50]Write to MH i2c: E2 08 00 E5 5A 80 0D 03 02 00 00 00 00 BA [12:27:50]Write i2c OK [12:27:50]MH_I2C_Read... [12:27:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:50]Read from MH i2c: E2 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: E2 0B 00 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: E2 0B 00 E5 5A 00 1E 25 6D 51 56 9E EE D2 90 00 70 [12:27:50]RAPDU: 1E 25 6D 51 56 9E EE D2 90 00 [12:27:50]wFMCommunicate OK [12:27:50]SAM_PROTO_SignData done [12:27:50]FM_MakeSignedData done [12:27:50]CreateOFDProtocolMessage [12:27:50]wFMCommunicate request_size=4 [12:27:50]MH_SAM_APDU [12:27:50]CAPDU: 80 11 00 00 [12:27:50]Write to MH i2c: E2 08 00 E6 5A 80 11 00 00 00 00 00 00 BA [12:27:50]Write i2c OK [12:27:50]MH_I2C_Read... [12:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:50]Read from MH i2c: E2 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: E2 17 00 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: E2 17 00 E6 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 15 [12:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:27:50]wFMCommunicate OK [12:27:50]CreateOFDProtocolMessage done [12:27:50]OFDSenderStorePacket 139950 [12:27:50]StoreOFDPacket docnum=139950 [12:27:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 F3 01 00 00 9B 88 EB 01 78 11 5A 03 01 00 03 00 DF 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 A0 0F 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 EE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 49 C9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AE 22 02 00 35 04 06 00 FD 41 77 B8 9D 76 1E 25 6D 51 56 9E EE D2 [12:27:50]CheckFolder [12:27:50]dirname=/storage/ofd_packets [12:27:50]CheckFolder done [12:27:50]ProducePacketName [12:27:50]name=ofd_packets/00139950 [12:27:50]NVStorageSaveData ofd_packets/00139950 [12:27:50]File name is /storage/ofd_packets/00139950 [12:27:50]Write 529 bytes [12:27:50]NVStorageSaveData done [12:27:50]OFDSenderStorePacket done [12:27:50]KKMCreateOFDPacket done [12:27:50]NVStorageSaveData kkm_last_timestamp [12:27:50]File name is /storage/kkm_last_timestamp [12:27:50]Write 4 bytes [12:27:50]NVStorageSaveData done [12:27:50]ExternCall_PrintAddStr [12:27:50]wPrintStart [12:27:50]Write to MH i2c: 01 00 00 E7 5A 41 [12:27:50]Write i2c OK [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: 01 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: 01 07 00 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: 01 07 00 E7 5A 00 00 00 00 00 FF 0F 56 [12:27:50]RasterBufferAndPrint [12:27:50]line Счет N : (3)335768 [12:27:50]line ИНН: 02508201610067 [12:27:50]line Контрольно-Кассовый Чек [12:27:50]line ПРОДАЖА [12:27:50]line Товар: 4700000160358 [12:27:50]line Вода Легенда 1л [12:27:50]line 4.000 * 50.00 [12:27:50]line = 200.00 [12:27:50]line НДС 12% НСП 1% [12:27:50]line > о реализуемом товаре [12:27:50]line Товар: 2000036220012 [12:27:50]line Кофе Капучино XL(GABB TRADE) [12:27:50]line 2.000 * 130.00 [12:27:50]line = 260.00 [12:27:50]line НДС 12% НСП 1% [12:27:50]line > о реализуемом товаре [12:27:50]line Товар: 40822938 [12:27:50]line Напиток Фанта 0,5л [12:27:50]line 2.000 * 75.00 [12:27:50]line = 150.00 [12:27:50]line НДС 12% НСП 1% [12:27:50]line > о реализуемом товаре [12:27:50]line ИТОГО: 610.00 [12:27:50]line НСП 1% : 5.40 [12:27:50]line НДС 12% : 64.78 [12:27:50]line Наличными: 0.00 [12:27:50]line Безнал.: 610.00 [12:27:50]line Место: АЗС № 101 "Партнер Нефть" [12:27:50]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:27:50]line СНО: Общий режим [12:27:50]line Чек 131 01.11.2024 12:27 [12:27:50]line Смена: 558 ФФД: 1.0 [12:27:50]line ЗНМ: 0300000081 [12:27:50]line РНМ: 0000000000091631 [12:27:50]line Версия ККМ: 001 [12:27:50]line Платежная система: Mbank [12:27:50]line ФМ: 0000000000874669 [12:27:50]line ФД: 139950 [12:27:50]line ФПД: 278457623289206 [12:27:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T122753&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139950&fm=278457623289206&tin=02508201610067®Number=0000000000091631&sum=61000 [12:27:50]line 0 [12:27:50]written 0, free lines is 4095 [12:27:50]OFD Sender: Processing packet 139950 [packets to send 34, broken 33] [12:27:50]ProducePacketName [12:27:50]name=ofd_packets/00139950 [12:27:50]OFD Sender: To server: pG, [12:27:50]CommunicateWithHost lk.salyk.kg:30040 [12:27:50]ConnectInit lk.salyk.kg [12:27:50]Connected sock=10 [12:27:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 F3 01 00 00 9B 88 EB 01 78 11 5A 03 01 00 03 00 DF 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 A0 0F 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 EE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 49 C9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AE 22 02 00 35 04 06 00 FD 41 77 B8 9D 76 1E 25 6D 51 56 9E EE D2 [12:27:50]Write to MH i2c: 01 00 00 1D 5B 78 [12:27:50]Write i2c OK [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: 01 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: 01 07 00 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: 01 07 00 1D 5B 00 00 00 00 00 6B 0C F6 [12:27:50]RasterBufferAndPrint [12:27:50]line [12:27:50]line [12:27:50]line [12:27:50]line [12:27:50]line [12:27:50]written 0, free lines is 3188 [12:27:50]MH_Cut [12:27:50]Write to MH i2c: D1 01 00 24 5B 01 51 [12:27:50]Write i2c OK [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: D1 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: D1 01 00 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: D1 01 00 24 5B 00 50 [12:27:50]Write to MH i2c: 01 00 00 25 5B 80 [12:27:50]Write i2c OK [12:27:50]MH_I2C_Read... [12:27:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 E0 BB 47 00 BA 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 34 36 36 39 10 04 04 00 AE 22 02 00 F4 03 04 00 F5 74 24 67 B6 04 01 00 00 BD AA A4 9A 3B 79 52 F2 [12:27:50]CommunicateWithHost err = 0 [12:27:50]CheckOFDResponse [12:27:50]1017 (14) - 77093643461234 [12:27:50]1041 (16) - 0000000000874669 [12:27:50]1040 (4) - 139950 [12:27:50]1012 (4) - 01.11.2024 06:28 [12:27:50]1206 (1) - 0 [12:27:50]OFD Sender: Remove packet 139950 [12:27:50]ProducePacketName [12:27:50]name=ofd_packets/00139950 [12:27:50]NVStorageDeleteData [12:27:51]OFD Sender: No OFD packet to send [12:27:51]*** Cut start [12:27:51]*** Partial cut [12:27:51]*** CUTSNS_PIN = 1 [12:27:51]*** CUTSNS_PIN = 0 [12:27:51]*** Brake cut motor [12:27:52]Read from MH i2c: 01 [12:27:52]MH_I2C_Read... [12:27:52]*** Stop cut motor [12:27:52]*** Cut end [12:27:52]Read from MH i2c: 01 07 00 [12:27:52]MH_I2C_Read... [12:27:52]Read from MH i2c: 01 07 00 25 5B 00 00 00 00 00 FF 0F 95 [12:27:52]process_action close_receipt done [12:27:52]requested_data is exist [12:27:52]produce_requested_data [12:27:52]requested_item fm.sn is exist - process it [12:27:52]wFMCommunicate request_size=4 [12:27:52]MH_SAM_APDU [12:27:52]CAPDU: 80 11 00 00 [12:27:52]Write to MH i2c: E2 08 00 26 5B 80 11 00 00 00 00 00 00 FB [12:27:52]Write i2c OK [12:27:52]MH_I2C_Read... [12:27:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:52]Read from MH i2c: E2 [12:27:52]MH_I2C_Read... [12:27:52]Read from MH i2c: E2 17 00 [12:27:52]MH_I2C_Read... [12:27:52]Read from MH i2c: E2 17 00 26 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 56 [12:27:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:27:52]wFMCommunicate OK [12:27:52]requested_item fd.num is exist - process it [12:27:52]SAM_PROTO_GetFieldsCounters [12:27:52]wFMCommunicate request_size=4 [12:27:52]MH_SAM_APDU [12:27:52]CAPDU: 80 13 00 00 [12:27:52]Write to MH i2c: E2 08 00 27 5B 80 13 00 00 00 00 00 00 FE [12:27:52]Write i2c OK [12:27:52]MH_I2C_Read... [12:27:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:52]Read from MH i2c: E2 [12:27:52]MH_I2C_Read... [12:27:52]Read from MH i2c: E2 62 00 [12:27:52]MH_I2C_Read... [12:27:52]Read from MH i2c: E2 62 00 27 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 AE 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [12:27:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 AE 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:52]wFMCommunicate OK [12:27:52]SAM_PROTO_GetFieldsCounters done [12:27:52]requested_item shift.num is exist - process it [12:27:52]requested_item shift.opened is exist - process it [12:27:52]req_shift_opened [12:27:52]FM_GetShiftState [12:27:52]SAM_PROTO_GetShiftState [12:27:52]wFMCommunicate request_size=4 [12:27:52]MH_SAM_APDU [12:27:52]CAPDU: 80 13 01 00 [12:27:52]Write to MH i2c: E2 08 00 28 5B 80 13 01 00 00 00 00 00 00 [12:27:52]Write i2c OK [12:27:52]MH_I2C_Read... [12:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:52]Read from MH i2c: E2 [12:27:52]MH_I2C_Read... [12:27:52]Read from MH i2c: E2 0E 00 [12:27:52]MH_I2C_Read... [12:27:52]Read from MH i2c: E2 0E 00 28 5B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 39 [12:27:52]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:27:52]wFMCommunicate OK [12:27:52]SAM_PROTO_GetShiftState done [12:27:52]FM_GetShiftState done [12:27:52]req_shift_opened done [12:27:52]requested_item shift.open_date is exist - process it [12:27:52]req_shift_open_date [12:27:52]req_shift_open_date done [12:27:52]produce_requested_data done [12:27:52]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139950,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [12:27:52]process_action_free close_receipt [12:27:52]json_value_free [12:27:52]json_value_free done [12:27:52]process_json_proto returns [12:27:52]Send response to host [12:27:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139950,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [12:27:52]free response buf [12:27:52]execute_script done [12:27:52]execute_script returns [12:27:52]free content buf [12:27:52]Sock 9.Close socket [12:27:52]Sock 9.Thread stoped [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:06]OFD Sender: No OFD packet to send [12:28:06]accept exits with 7 [12:28:06]New connection [12:28:06]New thread 3066510692 created [12:28:06]Thread 3066654052 joined [12:28:06]Waiting for new connection... [12:28:06] Sock 7.Parse request [12:28:06]Sock 7.Check first char [12:28:06]Sock 7.First char is OK [12:28:06]request: POST /json_proto HTTP/1.0 [12:28:06]Method: POST [12:28:06]URL: /json_proto [12:28:06]Method is POST - this is cgi request [12:28:06]url: /json_proto [12:28:06]query_string will be loaded in cgi processing [12:28:06]execute_cgi json_proto POST (null) [12:28:06]execute_cgi path=json_proto method=POST [12:28:06]POST find Content-Length [12:28:06]Host: 172.17.50.196:8080 [12:28:06]Content-Length: 745 [12:28:06]Content-Type: application/json [12:28:06] [12:28:06]POST finish read [12:28:06]Found Content-Length = 745 [12:28:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335769", "tax_sys" : 0, "items" : [ { "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:06]execute_script... [12:28:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335769", "tax_sys" : 0, "items" : [ { "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:06]POST & json_proto [12:28:06]process_json_proto [12:28:06]json parsed OK: [12:28:06]protocol is kg_v1.0 [12:28:06]action value=close_receipt [12:28:06]process_action close_receipt [12:28:06]cmd_close_receipt [12:28:06]MH_GetDate [12:28:06]Write to MH i2c: F0 00 00 29 5B 73 [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: F0 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: F0 09 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: F0 09 00 29 5B 00 5C C9 24 67 72 0D 1C 67 2E [12:28:06]GetLastDocTimeStamp 1730464073 [12:28:06]current date 1730464092 [12:28:06]FM_GetShiftState [12:28:06]SAM_PROTO_GetShiftState [12:28:06]wFMCommunicate request_size=4 [12:28:06]MH_SAM_APDU [12:28:06]CAPDU: 80 13 01 00 [12:28:06]Write to MH i2c: E2 08 00 2A 5B 80 13 01 00 00 00 00 00 02 [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:06]Read from MH i2c: E2 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 0E 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 0E 00 2A 5B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 3B [12:28:06]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:28:06]wFMCommunicate OK [12:28:06]SAM_PROTO_GetShiftState done [12:28:06]FM_GetShiftState done [12:28:06]opened in 1730419081 [12:28:06]opened+sec_in_day 1730505481 [12:28:06]quantity*price = 7000 [12:28:06]sum+1 = 7001 [12:28:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 132 01.11.2024 12:28 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139951 ФПД: 168261525059447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T122812&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139951&fm=168261525059447&tin=02508201610067®Number=0000000000091631&sum=7000 0 [12:28:07]StoreToDocumentArchive [12:28:07]shift 558 fd 139951 [12:28:07]save to /storage/0558/doc_00139951 [12:28:07]save last doc name /storage/0558/doc_00139951 to /storage/kkm_last_doc_name [12:28:07]save OK [12:28:07]Clear old archive folders... [12:28:07]ProcessDocumentItem done err = 0, tmpTLVsize=312 [12:28:07]tlvbuf is 00AB3490 [12:28:07]SAM_PROTO_ClearQueue [12:28:07]wFMCommunicate request_size=4 [12:28:07]MH_SAM_APDU [12:28:07]CAPDU: 80 09 00 00 [12:28:07]Write to MH i2c: E2 08 00 37 5B 80 09 00 00 00 00 00 00 04 [12:28:07]Write i2c OK [12:28:07]MH_I2C_Read... [12:28:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:07]Read from MH i2c: E2 [12:28:07]MH_I2C_Read... [12:28:07]Read from MH i2c: E2 03 00 [12:28:07]MH_I2C_Read... [12:28:07]Read from MH i2c: E2 03 00 37 5B 00 90 00 06 [12:28:07]RAPDU: 90 00 [12:28:07]wFMCommunicate OK [12:28:07]SAM_PROTO_ClearQueue done [12:28:07]KKMCreateOFDPacket [12:28:07]OFDProtocolAddRootSTLVToBuf [12:28:07]FM_MakeSignedData [12:28:07]FM_MakeSignedData [12:28:07]SAM_PROTO_SignData [12:28:07]wFMCommunicate request_size=4 [12:28:07]MH_SAM_APDU [12:28:07]CAPDU: 80 0D 01 02 [12:28:07]Write to MH i2c: E2 08 00 38 5B 80 0D 01 02 00 00 00 00 0C [12:28:07]Write i2c OK [12:28:07]MH_I2C_Read... [12:28:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:07]Read from MH i2c: E2 [12:28:07]MH_I2C_Read... [12:28:07]Read from MH i2c: E2 03 00 [12:28:07]MH_I2C_Read... [12:28:07]Read from MH i2c: E2 03 00 38 5B 00 90 00 07 [12:28:07]RAPDU: 90 00 [12:28:07]wFMCommunicate OK [12:28:07]wFMCommunicate request_size=255 [12:28:07]MH_SAM_APDU [12:28:07]CAPDU: 80 0D 02 02 FA 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 5C C9 24 67 0E 04 04 00 2E [12:28:07]Write to MH i2c: E2 02 01 39 5B 80 0D 02 02 FA 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 5C C9 24 67 0E 04 04 00 2E 00 00 CE [12:28:07]Write i2c OK [12:28:07]MH_I2C_Read... [12:28:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:07]Read from MH i2c: E2 [12:28:07]MH_I2C_Read... [12:28:07]Read from MH i2c: E2 03 00 [12:28:07]MH_I2C_Read... [12:28:07]Read from MH i2c: E2 03 00 39 5B 00 90 00 08 [12:28:07]RAPDU: 90 00 [12:28:07]wFMCommunicate OK [12:28:07]wFMCommunicate request_size=71 [12:28:07]MH_SAM_APDU [12:28:07]CAPDU: 80 0D 02 02 42 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AF 22 02 00 35 04 06 00 99 08 70 6E 37 77 [12:28:08]Write to MH i2c: E2 4A 00 3A 5B 80 0D 02 02 42 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AF 22 02 00 35 04 06 00 99 08 70 6E 37 77 00 00 2D [12:28:08]Write i2c OK [12:28:08]MH_I2C_Read... [12:28:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:08]Read from MH i2c: E2 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: E2 03 00 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: E2 03 00 3A 5B 00 90 00 09 [12:28:08]RAPDU: 90 00 [12:28:08]wFMCommunicate OK [12:28:08]wFMCommunicate request_size=4 [12:28:08]MH_SAM_APDU [12:28:08]CAPDU: 80 0D 03 02 [12:28:08]Write to MH i2c: E2 08 00 3B 5B 80 0D 03 02 00 00 00 00 11 [12:28:08]Write i2c OK [12:28:08]MH_I2C_Read... [12:28:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:08]Read from MH i2c: E2 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: E2 0B 00 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: E2 0B 00 3B 5B 00 A1 F1 CA 53 60 16 2C 12 90 00 75 [12:28:08]RAPDU: A1 F1 CA 53 60 16 2C 12 90 00 [12:28:08]wFMCommunicate OK [12:28:08]SAM_PROTO_SignData done [12:28:08]FM_MakeSignedData done [12:28:08]CreateOFDProtocolMessage [12:28:08]wFMCommunicate request_size=4 [12:28:08]MH_SAM_APDU [12:28:08]CAPDU: 80 11 00 00 [12:28:08]Write to MH i2c: E2 08 00 3C 5B 80 11 00 00 00 00 00 00 11 [12:28:08]Write i2c OK [12:28:08]MH_I2C_Read... [12:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:08]Read from MH i2c: E2 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: E2 17 00 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: E2 17 00 3C 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6C [12:28:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:28:08]wFMCommunicate OK [12:28:08]CreateOFDProtocolMessage done [12:28:08]OFDSenderStorePacket 139951 [12:28:08]StoreOFDPacket docnum=139951 [12:28:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4C 01 00 00 DF 4A 44 01 21 0B 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 5C C9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AF 22 02 00 35 04 06 00 99 08 70 6E 37 77 A1 F1 CA 53 60 16 2C 12 [12:28:08]CheckFolder [12:28:08]dirname=/storage/ofd_packets [12:28:08]CheckFolder done [12:28:08]ProducePacketName [12:28:08]name=ofd_packets/00139951 [12:28:08]NVStorageSaveData ofd_packets/00139951 [12:28:08]File name is /storage/ofd_packets/00139951 [12:28:08]Write 362 bytes [12:28:08]NVStorageSaveData done [12:28:08]OFDSenderStorePacket done [12:28:08]KKMCreateOFDPacket done [12:28:08]NVStorageSaveData kkm_last_timestamp [12:28:08]File name is /storage/kkm_last_timestamp [12:28:08]Write 4 bytes [12:28:08]NVStorageSaveData done [12:28:08]ExternCall_PrintAddStr [12:28:08]wPrintStart [12:28:08]Write to MH i2c: 01 00 00 3D 5B 98 [12:28:08]Write i2c OK [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: 01 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: 01 07 00 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: 01 07 00 3D 5B 00 00 00 00 00 FF 0F AD [12:28:08]RasterBufferAndPrint [12:28:08]line Счет N : (3)335769 [12:28:08]line ИНН: 02508201610067 [12:28:08]line Контрольно-Кассовый Чек [12:28:08]line ПРОДАЖА [12:28:08]line Товар: 4870202521186 [12:28:08]line Чай холодный MAXI черный со вкусом клубн [12:28:08]line 1.000 * 70.00 [12:28:08]line = 70.00 [12:28:08]line НДС 12% НСП 1% [12:28:08]line > о реализуемом товаре [12:28:08]line ИТОГО: 70.00 [12:28:08]line НСП 1% : 0.62 [12:28:08]line НДС 12% : 7.43 [12:28:08]line Наличными: 70.00 [12:28:08]line Безнал.: 0.00 [12:28:08]line Место: АЗС № 101 "Партнер Нефть" [12:28:08]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:28:08]line СНО: Общий режим [12:28:08]line Чек 132 01.11.2024 12:28 [12:28:08]line Смена: 558 ФФД: 1.0 [12:28:08]line ЗНМ: 0300000081 [12:28:08]line РНМ: 0000000000091631 [12:28:08]line Версия ККМ: 001 [12:28:08]line ФМ: 0000000000874669 [12:28:08]line ФД: 139951 [12:28:08]line ФПД: 168261525059447 [12:28:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T122812&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139951&fm=168261525059447&tin=02508201610067®Number=0000000000091631&sum=7000 [12:28:08]line 0 [12:28:08]OFD Sender: Processing packet 139951 [packets to send 34, broken 33] [12:28:08]ProducePacketName [12:28:08]name=ofd_packets/00139951 [12:28:08]OFD Sender: To server: pG, [12:28:08]CommunicateWithHost lk.salyk.kg:30040 [12:28:08]ConnectInit lk.salyk.kg [12:28:08]written 0, free lines is 4095 [12:28:08]Connected sock=10 [12:28:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4C 01 00 00 DF 4A 44 01 21 0B 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 5C C9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AF 22 02 00 35 04 06 00 99 08 70 6E 37 77 A1 F1 CA 53 60 16 2C 12 [12:28:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 B8 54 47 00 16 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 34 36 36 39 10 04 04 00 AF 22 02 00 F4 03 04 00 07 75 24 67 B6 04 01 00 00 CC 40 E3 90 CE F6 60 DE [12:28:08]CommunicateWithHost err = 0 [12:28:08]CheckOFDResponse [12:28:08]1017 (14) - 77093643461234 [12:28:08]1041 (16) - 0000000000874669 [12:28:08]1040 (4) - 139951 [12:28:08]1012 (4) - 01.11.2024 06:28 [12:28:08]1206 (1) - 0 [12:28:08]OFD Sender: Remove packet 139951 [12:28:08]ProducePacketName [12:28:08]name=ofd_packets/00139951 [12:28:08]NVStorageDeleteData [12:28:08]Write to MH i2c: 01 00 00 66 5B C1 [12:28:08]Write i2c OK [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: 01 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: 01 07 00 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: 01 07 00 66 5B 00 00 00 00 00 0F 0D E4 [12:28:08]RasterBufferAndPrint [12:28:08]line [12:28:08]line [12:28:08]line [12:28:08]line [12:28:08]line [12:28:09]written 0, free lines is 3352 [12:28:09]MH_Cut [12:28:09]Write to MH i2c: D1 01 00 6D 5B 01 9A [12:28:09]Write i2c OK [12:28:09]MH_I2C_Read... [12:28:09]Read from MH i2c: D1 [12:28:09]MH_I2C_Read... [12:28:09]Read from MH i2c: D1 01 00 [12:28:09]MH_I2C_Read... [12:28:09]Read from MH i2c: D1 01 00 6D 5B 00 99 [12:28:09]Write to MH i2c: 01 00 00 6E 5B C9 [12:28:09]Write i2c OK [12:28:09]MH_I2C_Read... [12:28:09]OFD Sender: No OFD packet to send [12:28:09]*** Cut start [12:28:09]*** Partial cut [12:28:09]*** CUTSNS_PIN = 1 [12:28:09]*** CUTSNS_PIN = 0 [12:28:09]*** Brake cut motor [12:28:10]Read from MH i2c: 01 [12:28:10]MH_I2C_Read... [12:28:10]*** Stop cut motor [12:28:10]*** Cut end [12:28:10]Read from MH i2c: 01 07 00 [12:28:10]MH_I2C_Read... [12:28:10]Read from MH i2c: 01 07 00 6E 5B 00 00 00 00 00 FF 0F DE [12:28:10]process_action close_receipt done [12:28:10]requested_data is exist [12:28:10]produce_requested_data [12:28:10]requested_item fm.sn is exist - process it [12:28:10]wFMCommunicate request_size=4 [12:28:10]MH_SAM_APDU [12:28:10]CAPDU: 80 11 00 00 [12:28:10]Write to MH i2c: E2 08 00 6F 5B 80 11 00 00 00 00 00 00 44 [12:28:10]Write i2c OK [12:28:10]MH_I2C_Read... [12:28:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:10]Read from MH i2c: E2 [12:28:10]MH_I2C_Read... [12:28:10]Read from MH i2c: E2 17 00 [12:28:10]MH_I2C_Read... [12:28:10]Read from MH i2c: E2 17 00 6F 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9F [12:28:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:28:10]wFMCommunicate OK [12:28:10]requested_item fd.num is exist - process it [12:28:10]SAM_PROTO_GetFieldsCounters [12:28:10]wFMCommunicate request_size=4 [12:28:10]MH_SAM_APDU [12:28:10]CAPDU: 80 13 00 00 [12:28:10]Write to MH i2c: E2 08 00 70 5B 80 13 00 00 00 00 00 00 47 [12:28:10]Write i2c OK [12:28:10]MH_I2C_Read... [12:28:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:10]Read from MH i2c: E2 [12:28:10]MH_I2C_Read... [12:28:10]Read from MH i2c: E2 62 00 [12:28:10]MH_I2C_Read... [12:28:10]Read from MH i2c: E2 62 00 70 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 AF 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [12:28:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 AF 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:10]wFMCommunicate OK [12:28:10]SAM_PROTO_GetFieldsCounters done [12:28:10]requested_item shift.num is exist - process it [12:28:10]requested_item shift.opened is exist - process it [12:28:10]req_shift_opened [12:28:10]FM_GetShiftState [12:28:10]SAM_PROTO_GetShiftState [12:28:10]wFMCommunicate request_size=4 [12:28:10]MH_SAM_APDU [12:28:10]CAPDU: 80 13 01 00 [12:28:10]Write to MH i2c: E2 08 00 71 5B 80 13 01 00 00 00 00 00 49 [12:28:10]Write i2c OK [12:28:10]MH_I2C_Read... [12:28:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:10]Read from MH i2c: E2 [12:28:10]MH_I2C_Read... [12:28:10]Read from MH i2c: E2 0E 00 [12:28:10]MH_I2C_Read... [12:28:10]Read from MH i2c: E2 0E 00 71 5B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 82 [12:28:10]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:28:10]wFMCommunicate OK [12:28:10]SAM_PROTO_GetShiftState done [12:28:10]FM_GetShiftState done [12:28:10]req_shift_opened done [12:28:10]requested_item shift.open_date is exist - process it [12:28:10]req_shift_open_date [12:28:10]req_shift_open_date done [12:28:10]produce_requested_data done [12:28:10]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139951,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [12:28:10]process_action_free close_receipt [12:28:10]json_value_free [12:28:10]json_value_free done [12:28:10]process_json_proto returns [12:28:10]Send response to host [12:28:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139951,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [12:28:10]free response buf [12:28:10]execute_script done [12:28:10]execute_script returns [12:28:10]free content buf [12:28:10]Sock 7.Close socket [12:28:10]Sock 7.Thread stoped [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:50]accept exits with 9 [12:30:50]New connection [12:30:50]New thread 3066654052 created [12:30:50]Thread 3066510692 joined [12:30:50]Waiting for new connection... [12:30:50] Sock 9.Parse request [12:30:50]Sock 9.Check first char [12:30:50]Sock 9.First char is OK [12:30:50]request: POST /json_proto HTTP/1.0 [12:30:50]Method: POST [12:30:50]URL: /json_proto [12:30:50]Method is POST - this is cgi request [12:30:50]url: /json_proto [12:30:50]query_string will be loaded in cgi processing [12:30:50]execute_cgi json_proto POST (null) [12:30:50]execute_cgi path=json_proto method=POST [12:30:50]POST find Content-Length [12:30:50]Host: 172.17.50.196:8080 [12:30:50]Content-Length: 1128 [12:30:50]Content-Type: application/json [12:30:50] [12:30:50]POST finish read [12:30:50]Found Content-Length = 1128 [12:30:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335770", "tax_sys" : 0, "items" : [ { "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 129.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:50]execute_script... [12:30: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)335770", "tax_sys" : 0, "items" : [ { "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 129.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:50]POST & json_proto [12:30:50]process_json_proto [12:30:50]json parsed OK: [12:30:50]protocol is kg_v1.0 [12:30:50]action value=close_receipt [12:30:50]process_action close_receipt [12:30:50]cmd_close_receipt [12:30:50]MH_GetDate [12:30:50]Write to MH i2c: F0 00 00 72 5B BC [12:30:50]Write i2c OK [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: F0 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: F0 09 00 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: F0 09 00 72 5B 00 00 CA 24 67 72 0D 1C 67 1C [12:30:50]GetLastDocTimeStamp 1730464092 [12:30:50]current date 1730464256 [12:30:50]FM_GetShiftState [12:30:50]SAM_PROTO_GetShiftState [12:30:50]wFMCommunicate request_size=4 [12:30:50]MH_SAM_APDU [12:30:50]CAPDU: 80 13 01 00 [12:30:50]Write to MH i2c: E2 08 00 73 5B 80 13 01 00 00 00 00 00 4B [12:30:50]Write i2c OK [12:30:50]MH_I2C_Read... [12:30:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:50]Read from MH i2c: E2 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: E2 0E 00 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: E2 0E 00 73 5B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 84 [12:30:50]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:30:50]wFMCommunicate OK [12:30:50]SAM_PROTO_GetShiftState done [12:30:50]FM_GetShiftState done [12:30:50]opened in 1730419081 [12:30:50]opened+sec_in_day 1730505481 [12:30:50]quantity*price = 6000 [12:30:50]sum+1 = 6001 [12:30:50]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600682557456 Напиток FLash up energy эн ж/б 0,5/0,45л 1.000 * 69.00 = 69.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 129.00 НСП 1% : 1.14 НДС 12% : 13.70 Наличными: 0.00 Безнал.: 129.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 133 01.11.2024 12:30 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139952 ФПД: 133480317494917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T123056&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139952&fm=133480317494917&tin=02508201610067®Number=0000000000091631&sum=12900 0 [12:30:51]StoreToDocumentArchive [12:30:51]shift 558 fd 139952 [12:30:51]save to /storage/0558/doc_00139952 [12:30:51]save last doc name /storage/0558/doc_00139952 to /storage/kkm_last_doc_name [12:30:51]save OK [12:30:51]Clear old archive folders... [12:30:51]ProcessDocumentItem done err = 0, tmpTLVsize=427 [12:30:51]tlvbuf is 00AFCB10 [12:30:51]SAM_PROTO_ClearQueue [12:30:51]wFMCommunicate request_size=4 [12:30:51]MH_SAM_APDU [12:30:51]CAPDU: 80 09 00 00 [12:30:51]Write to MH i2c: E2 08 00 80 5B 80 09 00 00 00 00 00 00 4D [12:30:51]Write i2c OK [12:30:51]MH_I2C_Read... [12:30:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:51]Read from MH i2c: E2 [12:30:51]MH_I2C_Read... [12:30:51]Read from MH i2c: E2 03 00 [12:30:51]MH_I2C_Read... [12:30:51]Read from MH i2c: E2 03 00 80 5B 00 90 00 4F [12:30:51]RAPDU: 90 00 [12:30:51]wFMCommunicate OK [12:30:51]SAM_PROTO_ClearQueue done [12:30:51]KKMCreateOFDPacket [12:30:51]OFDProtocolAddRootSTLVToBuf [12:30:51]FM_MakeSignedData [12:30:51]FM_MakeSignedData [12:30:51]SAM_PROTO_SignData [12:30:51]wFMCommunicate request_size=4 [12:30:51]MH_SAM_APDU [12:30:51]CAPDU: 80 0D 01 02 [12:30:51]Write to MH i2c: E2 08 00 81 5B 80 0D 01 02 00 00 00 00 55 [12:30:51]Write i2c OK [12:30:51]MH_I2C_Read... [12:30:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:51]Read from MH i2c: E2 [12:30:51]MH_I2C_Read... [12:30:51]Read from MH i2c: E2 03 00 [12:30:51]MH_I2C_Read... [12:30:51]Read from MH i2c: E2 03 00 81 5B 00 90 00 50 [12:30:51]RAPDU: 90 00 [12:30:51]wFMCommunicate OK [12:30:51]wFMCommunicate request_size=255 [12:30:51]MH_SAM_APDU [12:30:51]CAPDU: 80 0D 02 02 FA 03 00 AB 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 [12:30:51]Write to MH i2c: E2 02 01 82 5B 80 0D 02 02 FA 00 03 00 AB 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 00 A7 [12:30:51]Write i2c OK [12:30:51]MH_I2C_Read... [12:30:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:52]Read from MH i2c: E2 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 03 00 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 03 00 82 5B 00 90 00 51 [12:30:52]RAPDU: 90 00 [12:30:52]wFMCommunicate OK [12:30:52]wFMCommunicate request_size=186 [12:30:52]MH_SAM_APDU [12:30:52]CAPDU: 80 0D 02 02 B5 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 00 CA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B0 22 02 00 35 04 06 00 79 66 4E E8 A6 85 [12:30:52]Write to MH i2c: E2 BD 00 83 5B 80 0D 02 02 B5 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 00 CA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B0 22 02 00 35 04 06 00 79 66 4E E8 A6 85 00 00 D6 [12:30:52]Write i2c OK [12:30:52]MH_I2C_Read... [12:30:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:52]Read from MH i2c: E2 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 03 00 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 03 00 83 5B 00 90 00 52 [12:30:52]RAPDU: 90 00 [12:30:52]wFMCommunicate OK [12:30:52]wFMCommunicate request_size=4 [12:30:52]MH_SAM_APDU [12:30:52]CAPDU: 80 0D 03 02 [12:30:52]Write to MH i2c: E2 08 00 84 5B 80 0D 03 02 00 00 00 00 5A [12:30:52]Write i2c OK [12:30:52]MH_I2C_Read... [12:30:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:52]Read from MH i2c: E2 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 0B 00 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 0B 00 84 5B 00 3C B2 9C DA 0A 55 4D 8A 90 00 F5 [12:30:52]RAPDU: 3C B2 9C DA 0A 55 4D 8A 90 00 [12:30:52]wFMCommunicate OK [12:30:52]SAM_PROTO_SignData done [12:30:52]FM_MakeSignedData done [12:30:52]CreateOFDProtocolMessage [12:30:52]wFMCommunicate request_size=4 [12:30:52]MH_SAM_APDU [12:30:52]CAPDU: 80 11 00 00 [12:30:52]Write to MH i2c: E2 08 00 85 5B 80 11 00 00 00 00 00 00 5A [12:30:52]Write i2c OK [12:30:52]MH_I2C_Read... [12:30:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:52]Read from MH i2c: E2 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 17 00 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 17 00 85 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B5 [12:30:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:30:52]wFMCommunicate OK [12:30:52]CreateOFDProtocolMessage done [12:30:52]OFDSenderStorePacket 139952 [12:30:52]StoreOFDPacket docnum=139952 [12:30:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 BF 01 00 00 61 5D B7 01 39 2C 5A 03 01 00 03 00 AB 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 00 CA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B0 22 02 00 35 04 06 00 79 66 4E E8 A6 85 3C B2 9C DA 0A 55 4D 8A [12:30:52]CheckFolder [12:30:52]dirname=/storage/ofd_packets [12:30:52]CheckFolder done [12:30:52]ProducePacketName [12:30:52]name=ofd_packets/00139952 [12:30:52]NVStorageSaveData ofd_packets/00139952 [12:30:52]File name is /storage/ofd_packets/00139952 [12:30:52]Write 477 bytes [12:30:52]NVStorageSaveData done [12:30:52]OFDSenderStorePacket done [12:30:52]KKMCreateOFDPacket done [12:30:52]NVStorageSaveData kkm_last_timestamp [12:30:52]File name is /storage/kkm_last_timestamp [12:30:52]Write 4 bytes [12:30:52]NVStorageSaveData done [12:30:52]ExternCall_PrintAddStr [12:30:52]wPrintStart [12:30:52]Write to MH i2c: 01 00 00 86 5B E1 [12:30:52]OFD Sender: Processing packet 139952 [packets to send 34, broken 33] [12:30:52]ProducePacketName [12:30:52]name=ofd_packets/00139952 [12:30:52]OFD Sender: To server: pG, [12:30:52]CommunicateWithHost lk.salyk.kg:30040 [12:30:52]ConnectInit lk.salyk.kg [12:30:52]Write i2c OK [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: 01 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: 01 07 00 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: 01 07 00 86 5B 00 00 00 00 00 FF 0F F6 [12:30:52]RasterBufferAndPrint [12:30:52]line Счет N : (3)335770 [12:30:52]line ИНН: 02508201610067 [12:30:52]line Контрольно-Кассовый Чек [12:30:52]line ПРОДАЖА [12:30:52]line Товар: 4700000160792 [12:30:52]line Снек Курут классический (круглый) [12:30:52]line 1.000 * 60.00 [12:30:52]line = 60.00 [12:30:52]line НДС 12% НСП 1% [12:30:52]line > о реализуемом товаре [12:30:52]line Товар: 4600682557456 [12:30:52]line Напиток FLash up energy эн ж/б 0,5/0,45л [12:30:52]line 1.000 * 69.00 [12:30:52]line = 69.00 [12:30:52]line НДС 12% НСП 1% [12:30:52]line > о реализуемом товаре [12:30:52]line ИТОГО: 129.00 [12:30:52]line НСП 1% : 1.14 [12:30:52]line НДС 12% : 13.70 [12:30:52]line Наличными: 0.00 [12:30:52]line Безнал.: 129.00 [12:30:52]line Место: АЗС № 101 "Партнер Нефть" [12:30:52]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:30:52]line СНО: Общий режим [12:30:52]line Чек 133 01.11.2024 12:30 [12:30:52]line Смена: 558 ФФД: 1.0 [12:30:52]line ЗНМ: 0300000081 [12:30:52]line РНМ: 0000000000091631 [12:30:52]line Версия ККМ: 001 [12:30:52]line Платежная система: Mbank [12:30:52]line ФМ: 0000000000874669 [12:30:52]line ФД: 139952 [12:30:52]line ФПД: 133480317494917 [12:30:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T123056&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139952&fm=133480317494917&tin=02508201610067®Number=0000000000091631&sum=12900 [12:30:52]line 0 [12:30:52]written 0, free lines is 4095 [12:30:52]Connected sock=10 [12:30:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 BF 01 00 00 61 5D B7 01 39 2C 5A 03 01 00 03 00 AB 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 00 CA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B0 22 02 00 35 04 06 00 79 66 4E E8 A6 85 3C B2 9C DA 0A 55 4D 8A [12:30:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 43 1B 47 00 D5 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B0 22 02 00 F4 03 04 00 AB 75 24 67 B6 04 01 00 00 5B 50 9A 54 65 A8 E9 F6 [12:30:53]CommunicateWithHost err = 0 [12:30:53]CheckOFDResponse [12:30:53]1017 (14) - 77093643461234 [12:30:53]1041 (16) - 0000000000874669 [12:30:53]1040 (4) - 139952 [12:30:53]1012 (4) - 01.11.2024 06:31 [12:30:53]1206 (1) - 0 [12:30:53]OFD Sender: Remove packet 139952 [12:30:53]ProducePacketName [12:30:53]name=ofd_packets/00139952 [12:30:53]NVStorageDeleteData [12:30:53]Write to MH i2c: 01 00 00 B7 5B 12 [12:30:53]Write i2c OK [12:30:53]MH_I2C_Read... [12:30:53]Read from MH i2c: 01 [12:30:53]MH_I2C_Read... [12:30:53]Read from MH i2c: 01 07 00 [12:30:53]MH_I2C_Read... [12:30:53]Read from MH i2c: 01 07 00 B7 5B 00 00 00 00 00 AA 0C CF [12:30:53]RasterBufferAndPrint [12:30:53]line [12:30:53]line [12:30:53]line [12:30:53]line [12:30:53]line [12:30:53]written 0, free lines is 3251 [12:30:53]MH_Cut [12:30:53]Write to MH i2c: D1 01 00 BE 5B 01 EB [12:30:53]Write i2c OK [12:30:53]MH_I2C_Read... [12:30:53]Read from MH i2c: D1 [12:30:53]MH_I2C_Read... [12:30:53]Read from MH i2c: D1 01 00 [12:30:53]MH_I2C_Read... [12:30:53]Read from MH i2c: D1 01 00 BE 5B 00 EA [12:30:53]Write to MH i2c: 01 00 00 BF 5B 1A [12:30:53]Write i2c OK [12:30:53]MH_I2C_Read... [12:30:53]OFD Sender: No OFD packet to send [12:30:54]*** Cut start [12:30:54]*** Partial cut [12:30:54]*** CUTSNS_PIN = 1 [12:30:54]*** CUTSNS_PIN = 0 [12:30:54]*** Brake cut motor [12:30:54]Read from MH i2c: 01 [12:30:54]MH_I2C_Read... [12:30:54]*** Stop cut motor [12:30:54]*** Cut end [12:30:54]Read from MH i2c: 01 07 00 [12:30:54]MH_I2C_Read... [12:30:54]Read from MH i2c: 01 07 00 BF 5B 00 00 00 00 00 FF 0F 2F [12:30:54]process_action close_receipt done [12:30:54]requested_data is exist [12:30:54]produce_requested_data [12:30:54]requested_item fm.sn is exist - process it [12:30:54]wFMCommunicate request_size=4 [12:30:54]MH_SAM_APDU [12:30:54]CAPDU: 80 11 00 00 [12:30:54]Write to MH i2c: E2 08 00 C0 5B 80 11 00 00 00 00 00 00 95 [12:30:54]Write i2c OK [12:30:54]MH_I2C_Read... [12:30:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:54]Read from MH i2c: E2 [12:30:54]MH_I2C_Read... [12:30:54]Read from MH i2c: E2 17 00 [12:30:54]MH_I2C_Read... [12:30:54]Read from MH i2c: E2 17 00 C0 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F0 [12:30:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:30:54]wFMCommunicate OK [12:30:54]requested_item fd.num is exist - process it [12:30:54]SAM_PROTO_GetFieldsCounters [12:30:54]wFMCommunicate request_size=4 [12:30:54]MH_SAM_APDU [12:30:54]CAPDU: 80 13 00 00 [12:30:54]Write to MH i2c: E2 08 00 C1 5B 80 13 00 00 00 00 00 00 98 [12:30:54]Write i2c OK [12:30:54]MH_I2C_Read... [12:30:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:54]Read from MH i2c: E2 [12:30:54]MH_I2C_Read... [12:30:54]Read from MH i2c: E2 62 00 [12:30:54]MH_I2C_Read... [12:30:54]Read from MH i2c: E2 62 00 C1 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B0 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [12:30:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B0 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:54]wFMCommunicate OK [12:30:54]SAM_PROTO_GetFieldsCounters done [12:30:54]requested_item shift.num is exist - process it [12:30:54]requested_item shift.opened is exist - process it [12:30:54]req_shift_opened [12:30:54]FM_GetShiftState [12:30:54]SAM_PROTO_GetShiftState [12:30:54]wFMCommunicate request_size=4 [12:30:54]MH_SAM_APDU [12:30:54]CAPDU: 80 13 01 00 [12:30:54]Write to MH i2c: E2 08 00 C2 5B 80 13 01 00 00 00 00 00 9A [12:30:54]Write i2c OK [12:30:54]MH_I2C_Read... [12:30:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:54]Read from MH i2c: E2 [12:30:54]MH_I2C_Read... [12:30:54]Read from MH i2c: E2 0E 00 [12:30:54]MH_I2C_Read... [12:30:54]Read from MH i2c: E2 0E 00 C2 5B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 D3 [12:30:54]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:30:54]wFMCommunicate OK [12:30:54]SAM_PROTO_GetShiftState done [12:30:54]FM_GetShiftState done [12:30:54]req_shift_opened done [12:30:54]requested_item shift.open_date is exist - process it [12:30:54]req_shift_open_date [12:30:54]req_shift_open_date done [12:30:54]produce_requested_data done [12:30:54]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139952,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [12:30:54]process_action_free close_receipt [12:30:54]json_value_free [12:30:54]json_value_free done [12:30:54]process_json_proto returns [12:30:54]Send response to host [12:30:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139952,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [12:30:54]free response buf [12:30:55]execute_script done [12:30:55]execute_script returns [12:30:55]free content buf [12:30:55]Sock 9.Close socket [12:30:55]Sock 9.Thread stoped [12:30:58]OFD Sender: No OFD packet to send [12:31:03]OFD Sender: No OFD packet to send [12:31:08]OFD Sender: No OFD packet to send [12:31:13]OFD Sender: No OFD packet to send [12:31:18]OFD Sender: No OFD packet to send [12:31:23]OFD Sender: No OFD packet to send [12:31:28]OFD Sender: No OFD packet to send [12:31:33]OFD Sender: No OFD packet to send [12:31:38]OFD Sender: No OFD packet to send [12:31:43]OFD Sender: No OFD packet to send [12:31:48]OFD Sender: No OFD packet to send [12:31:53]OFD Sender: No OFD packet to send [12:31:58]OFD Sender: No OFD packet to send [12:32:03]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:13]OFD Sender: No OFD packet to send [12:32:18]OFD Sender: No OFD packet to send [12:32:23]OFD Sender: No OFD packet to send [12:32:28]OFD Sender: No OFD packet to send [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:08]OFD Sender: No OFD packet to send [12:33:13]OFD Sender: No OFD packet to send [12:33:18]OFD Sender: No OFD packet to send [12:33:23]OFD Sender: No OFD packet to send [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:08]OFD Sender: No OFD packet to send [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37: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:06]accept exits with 7 [12:38:06]New connection [12:38:06]New thread 3066510692 created [12:38:06]Thread 3066654052 joined [12:38:06]Waiting for new connection... [12:38:06] Sock 7.Parse request [12:38:06]Sock 7.Check first char [12:38:06]Sock 7.First char is OK [12:38:06]request: POST /json_proto HTTP/1.0 [12:38:06]Method: POST [12:38:06]URL: /json_proto [12:38:06]Method is POST - this is cgi request [12:38:06]url: /json_proto [12:38:06]query_string will be loaded in cgi processing [12:38:06]execute_cgi json_proto POST (null) [12:38:06]execute_cgi path=json_proto method=POST [12:38:06]POST find Content-Length [12:38:06]Host: 172.17.50.196:8080 [12:38:06]Content-Length: 775 [12:38:06]Content-Type: application/json [12:38:06] [12:38:06]POST finish read [12:38:06]Found Content-Length = 775 [12:38:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:06]execute_script... [12:38: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)1095894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:06]POST & json_proto [12:38:06]process_json_proto [12:38:06]json parsed OK: [12:38:06]protocol is kg_v1.0 [12:38:06]action value=close_receipt [12:38:06]process_action close_receipt [12:38:06]cmd_close_receipt [12:38:06]MH_GetDate [12:38:06]Write to MH i2c: F0 00 00 C3 5B 0D [12:38:06]Write i2c OK [12:38:06]MH_I2C_Read... [12:38:06]Read from MH i2c: F0 [12:38:06]MH_I2C_Read... [12:38:06]Read from MH i2c: F0 09 00 [12:38:06]MH_I2C_Read... [12:38:06]Read from MH i2c: F0 09 00 C3 5B 00 B3 CB 24 67 72 0D 1C 67 21 [12:38:06]GetLastDocTimeStamp 1730464256 [12:38:06]current date 1730464691 [12:38:06]FM_GetShiftState [12:38:06]SAM_PROTO_GetShiftState [12:38:06]wFMCommunicate request_size=4 [12:38:06]MH_SAM_APDU [12:38:06]CAPDU: 80 13 01 00 [12:38:06]Write to MH i2c: E2 08 00 C4 5B 80 13 01 00 00 00 00 00 9C [12:38:06]Write i2c OK [12:38:06]MH_I2C_Read... [12:38:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:06]Read from MH i2c: E2 [12:38:06]MH_I2C_Read... [12:38:06]Read from MH i2c: E2 0E 00 [12:38:06]MH_I2C_Read... [12:38:06]Read from MH i2c: E2 0E 00 C4 5B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 D5 [12:38:06]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:38:06]wFMCommunicate OK [12:38:06]SAM_PROTO_GetShiftState done [12:38:06]FM_GetShiftState done [12:38:06]opened in 1730419081 [12:38:06]opened+sec_in_day 1730505481 [12:38:06]quantity*price = 150037 [12:38:06]sum+1 = 150039 [12:38:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.38 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.38 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 134 01.11.2024 12:38 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139953 ФПД: 207610523298468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T123811&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139953&fm=207610523298468&tin=02508201610067®Number=0000000000091631&sum=150038 [12:38:07]StoreToDocumentArchive [12:38:07]shift 558 fd 139953 [12:38:07]save to /storage/0558/doc_00139953 [12:38:07]save last doc name /storage/0558/doc_00139953 to /storage/kkm_last_doc_name [12:38:07]save OK [12:38:07]Clear old archive folders... [12:38:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:38:07]tlvbuf is 00C29F20 [12:38:07]SAM_PROTO_ClearQueue [12:38:07]wFMCommunicate request_size=4 [12:38:07]MH_SAM_APDU [12:38:07]CAPDU: 80 09 00 00 [12:38:07]Write to MH i2c: E2 08 00 D1 5B 80 09 00 00 00 00 00 00 9E [12:38:07]Write i2c OK [12:38:07]MH_I2C_Read... [12:38:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:07]Read from MH i2c: E2 [12:38:07]MH_I2C_Read... [12:38:07]Read from MH i2c: E2 03 00 [12:38:07]MH_I2C_Read... [12:38:07]Read from MH i2c: E2 03 00 D1 5B 00 90 00 A0 [12:38:07]RAPDU: 90 00 [12:38:07]wFMCommunicate OK [12:38:07]SAM_PROTO_ClearQueue done [12:38:07]KKMCreateOFDPacket [12:38:07]OFDProtocolAddRootSTLVToBuf [12:38:07]FM_MakeSignedData [12:38:07]FM_MakeSignedData [12:38:07]SAM_PROTO_SignData [12:38:07]wFMCommunicate request_size=4 [12:38:07]MH_SAM_APDU [12:38:07]CAPDU: 80 0D 01 02 [12:38:07]Write to MH i2c: E2 08 00 D2 5B 80 0D 01 02 00 00 00 00 A6 [12:38:07]Write i2c OK [12:38:07]MH_I2C_Read... [12:38:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:07]Read from MH i2c: E2 [12:38:07]MH_I2C_Read... [12:38:07]Read from MH i2c: E2 03 00 [12:38:07]MH_I2C_Read... [12:38:07]Read from MH i2c: E2 03 00 D2 5B 00 90 00 A1 [12:38:07]RAPDU: 90 00 [12:38:07]wFMCommunicate OK [12:38:07]wFMCommunicate request_size=255 [12:38:07]MH_SAM_APDU [12:38:07]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 B3 CB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B1 22 02 00 35 04 06 00 [12:38:07]Write to MH i2c: E2 02 01 D3 5B 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 B3 CB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B1 22 02 00 35 04 06 00 00 00 6C [12:38:07]Write i2c OK [12:38:07]MH_I2C_Read... [12:38:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:07]Read from MH i2c: E2 [12:38:07]MH_I2C_Read... [12:38:07]Read from MH i2c: E2 03 00 [12:38:07]MH_I2C_Read... [12:38:07]Read from MH i2c: E2 03 00 D3 5B 00 90 00 A2 [12:38:07]RAPDU: 90 00 [12:38:07]wFMCommunicate OK [12:38:07]wFMCommunicate request_size=11 [12:38:07]MH_SAM_APDU [12:38:07]CAPDU: 80 0D 02 02 06 BC D2 17 7E 2A A4 [12:38:07]Write to MH i2c: E2 0E 00 D4 5B 80 0D 02 02 06 00 BC D2 17 7E 2A A4 00 00 A6 [12:38:07]Write i2c OK [12:38:07]MH_I2C_Read... [12:38:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:07]Read from MH i2c: E2 [12:38:07]MH_I2C_Read... [12:38:07]Read from MH i2c: E2 03 00 [12:38:07]MH_I2C_Read... [12:38:07]Read from MH i2c: E2 03 00 D4 5B 00 90 00 A3 [12:38:07]RAPDU: 90 00 [12:38:07]wFMCommunicate OK [12:38:07]wFMCommunicate request_size=4 [12:38:07]MH_SAM_APDU [12:38:07]CAPDU: 80 0D 03 02 [12:38:07]Write to MH i2c: E2 08 00 D5 5B 80 0D 03 02 00 00 00 00 AB [12:38:07]Write i2c OK [12:38:07]MH_I2C_Read... [12:38:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:07]Read from MH i2c: E2 [12:38:07]MH_I2C_Read... [12:38:07]Read from MH i2c: E2 0B 00 [12:38:07]MH_I2C_Read... [12:38:07]Read from MH i2c: E2 0B 00 D5 5B 00 BC CB C1 DB 5E 2B C9 45 90 00 66 [12:38:07]RAPDU: BC CB C1 DB 5E 2B C9 45 90 00 [12:38:07]wFMCommunicate OK [12:38:07]SAM_PROTO_SignData done [12:38:07]FM_MakeSignedData done [12:38:07]CreateOFDProtocolMessage [12:38:07]wFMCommunicate request_size=4 [12:38:07]MH_SAM_APDU [12:38:07]CAPDU: 80 11 00 00 [12:38:07]Write to MH i2c: E2 08 00 D6 5B 80 11 00 00 00 00 00 00 AB [12:38:07]Write i2c OK [12:38:07]MH_I2C_Read... [12:38:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:07]Read from MH i2c: E2 [12:38:07]MH_I2C_Read... [12:38:07]Read from MH i2c: E2 17 00 [12:38:07]MH_I2C_Read... [12:38:07]Read from MH i2c: E2 17 00 D6 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 06 [12:38:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:38:07]wFMCommunicate OK [12:38:07]CreateOFDProtocolMessage done [12:38:07]OFDSenderStorePacket 139953 [12:38:07]StoreOFDPacket docnum=139953 [12:38:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 DA 4A 08 01 2D B5 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 B3 CB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B1 22 02 00 35 04 06 00 BC D2 17 7E 2A A4 BC CB C1 DB 5E 2B C9 45 [12:38:07]CheckFolder [12:38:07]dirname=/storage/ofd_packets [12:38:07]CheckFolder done [12:38:07]ProducePacketName [12:38:07]name=ofd_packets/00139953 [12:38:07]NVStorageSaveData ofd_packets/00139953 [12:38:07]File name is /storage/ofd_packets/00139953 [12:38:07]Write 302 bytes [12:38:07]NVStorageSaveData done [12:38:07]OFDSenderStorePacket done [12:38:07]KKMCreateOFDPacket done [12:38:07]NVStorageSaveData kkm_last_timestamp [12:38:07]File name is /storage/kkm_last_timestamp [12:38:07]Write 4 bytes [12:38:07]NVStorageSaveData done [12:38:07]ExternCall_PrintAddStr [12:38:07]wPrintStart [12:38:07]Write to MH i2c: 01 00 00 D7 5B 32 [12:38:07]Write i2c OK [12:38:07]MH_I2C_Read... [12:38:07]Read from MH i2c: 01 [12:38:07]MH_I2C_Read... [12:38:07]Read from MH i2c: 01 07 00 [12:38:07]MH_I2C_Read... [12:38:07]Read from MH i2c: 01 07 00 D7 5B 00 00 00 00 00 FF 0F 47 [12:38:07]RasterBufferAndPrint [12:38:07]line Счет N : (1)1095894 [12:38:07]line ИНН: 02508201610067 [12:38:07]line Контрольно-Кассовый Чек [12:38:07]line ПРОДАЖА [12:38:07]line ТРК (МРК, ГНК) : 41 [12:38:07]line Товар: 2710194210 [12:38:07]line ДТ(л)-К-2 [12:38:07]line 19.690 * 76.20 [12:38:07]line = 1500.38 [12:38:07]line НДС 12% НСП 1% [12:38:07]line > о реализуемом товаре [12:38:07]line ИТОГО: 1500.38 [12:38:07]line НСП 1% : 13.28 [12:38:07]line НДС 12% : 159.33 [12:38:07]line Наличными: 0.00 [12:38:07]line Безнал.: 1500.38 [12:38:07]line Место: АЗС № 101 "Партнер Нефть" [12:38:07]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:38:07]line СНО: Общий режим [12:38:07]line Чек 134 01.11.2024 12:38 [12:38:07]line Смена: 558 ФФД: 1.0 [12:38:07]line ЗНМ: 0300000081 [12:38:07]line РНМ: 0000000000091631 [12:38:07]line Версия ККМ: 001 [12:38:07]line Платежная система: Mbank [12:38:07]line ФМ: 0000000000874669 [12:38:07]line ФД: 139953 [12:38:07]line ФПД: 207610523298468 [12:38:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T123811&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139953&fm=207610523298468&tin=02508201610067®Number=0000000000091631&sum=150038 [12:38:08]OFD Sender: Processing packet 139953 [packets to send 34, broken 33] [12:38:08]ProducePacketName [12:38:08]name=ofd_packets/00139953 [12:38:08]OFD Sender: To server: pG, [12:38:08]CommunicateWithHost lk.salyk.kg:30040 [12:38:08]ConnectInit lk.salyk.kg [12:38:08]written 0, free lines is 4095 [12:38:08]Connected sock=9 [12:38:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 DA 4A 08 01 2D B5 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 B3 CB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B1 22 02 00 35 04 06 00 BC D2 17 7E 2A A4 BC CB C1 DB 5E 2B C9 45 [12:38:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 DA 96 47 00 3D F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B1 22 02 00 F4 03 04 00 5E 77 24 67 B6 04 01 00 00 83 1C 7E D0 48 DC EC E5 [12:38:08]CommunicateWithHost err = 0 [12:38:08]CheckOFDResponse [12:38:08]1017 (14) - 77093643461234 [12:38:08]1041 (16) - 0000000000874669 [12:38:08]1040 (4) - 139953 [12:38:08]1012 (4) - 01.11.2024 06:38 [12:38:08]1206 (1) - 0 [12:38:08]OFD Sender: Remove packet 139953 [12:38:08]ProducePacketName [12:38:08]name=ofd_packets/00139953 [12:38:08]NVStorageDeleteData [12:38:08]Write to MH i2c: 01 00 00 00 5C 5C [12:38:08]Write i2c OK [12:38:08]MH_I2C_Read... [12:38:08]Read from MH i2c: 01 [12:38:08]MH_I2C_Read... [12:38:08]Read from MH i2c: 01 07 00 [12:38:08]MH_I2C_Read... [12:38:08]Read from MH i2c: 01 07 00 00 5C 00 00 00 00 00 20 0D 90 [12:38:08]RasterBufferAndPrint [12:38:08]line [12:38:08]line [12:38:08]line [12:38:08]line [12:38:08]line [12:38:08]written 0, free lines is 3366 [12:38:08]MH_Cut [12:38:08]Write to MH i2c: D1 01 00 07 5C 01 35 [12:38:08]Write i2c OK [12:38:08]MH_I2C_Read... [12:38:08]Read from MH i2c: D1 [12:38:08]MH_I2C_Read... [12:38:08]Read from MH i2c: D1 01 00 [12:38:08]MH_I2C_Read... [12:38:08]Read from MH i2c: D1 01 00 07 5C 00 34 [12:38:08]Write to MH i2c: 01 00 00 08 5C 64 [12:38:08]Write i2c OK [12:38:08]MH_I2C_Read... [12:38:08]OFD Sender: No OFD packet to send [12:38:09]*** Cut start [12:38:09]*** Partial cut [12:38:09]*** CUTSNS_PIN = 1 [12:38:09]*** CUTSNS_PIN = 0 [12:38:09]*** Brake cut motor [12:38:09]Read from MH i2c: 01 [12:38:09]MH_I2C_Read... [12:38:09]*** Stop cut motor [12:38:09]*** Cut end [12:38:09]Read from MH i2c: 01 07 00 [12:38:09]MH_I2C_Read... [12:38:09]Read from MH i2c: 01 07 00 08 5C 00 00 00 00 00 FF 0F 79 [12:38:09]process_action close_receipt done [12:38:09]requested_data is exist [12:38:09]produce_requested_data [12:38:09]requested_item fm.sn is exist - process it [12:38:09]wFMCommunicate request_size=4 [12:38:09]MH_SAM_APDU [12:38:09]CAPDU: 80 11 00 00 [12:38:09]Write to MH i2c: E2 08 00 09 5C 80 11 00 00 00 00 00 00 DF [12:38:09]Write i2c OK [12:38:09]MH_I2C_Read... [12:38:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:09]Read from MH i2c: E2 [12:38:09]MH_I2C_Read... [12:38:09]Read from MH i2c: E2 17 00 [12:38:09]MH_I2C_Read... [12:38:09]Read from MH i2c: E2 17 00 09 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3A [12:38:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:38:09]wFMCommunicate OK [12:38:09]requested_item fd.num is exist - process it [12:38:09]SAM_PROTO_GetFieldsCounters [12:38:09]wFMCommunicate request_size=4 [12:38:09]MH_SAM_APDU [12:38:09]CAPDU: 80 13 00 00 [12:38:09]Write to MH i2c: E2 08 00 0A 5C 80 13 00 00 00 00 00 00 E2 [12:38:09]Write i2c OK [12:38:09]MH_I2C_Read... [12:38:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:10]Read from MH i2c: E2 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 62 00 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 62 00 0A 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B1 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [12:38:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B1 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:10]wFMCommunicate OK [12:38:10]SAM_PROTO_GetFieldsCounters done [12:38:10]requested_item shift.num is exist - process it [12:38:10]requested_item shift.opened is exist - process it [12:38:10]req_shift_opened [12:38:10]FM_GetShiftState [12:38:10]SAM_PROTO_GetShiftState [12:38:10]wFMCommunicate request_size=4 [12:38:10]MH_SAM_APDU [12:38:10]CAPDU: 80 13 01 00 [12:38:10]Write to MH i2c: E2 08 00 0B 5C 80 13 01 00 00 00 00 00 E4 [12:38:10]Write i2c OK [12:38:10]MH_I2C_Read... [12:38:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:10]Read from MH i2c: E2 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 0E 00 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 0E 00 0B 5C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 1D [12:38:10]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:38:10]wFMCommunicate OK [12:38:10]SAM_PROTO_GetShiftState done [12:38:10]FM_GetShiftState done [12:38:10]req_shift_opened done [12:38:10]requested_item shift.open_date is exist - process it [12:38:10]req_shift_open_date [12:38:10]req_shift_open_date done [12:38:10]produce_requested_data done [12:38:10]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139953,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [12:38:10]process_action_free close_receipt [12:38:10]json_value_free [12:38:10]json_value_free done [12:38:10]process_json_proto returns [12:38:10]Send response to host [12:38:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139953,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [12:38:10]free response buf [12:38:10]execute_script done [12:38:10]execute_script returns [12:38:10]free content buf [12:38:10]Sock 7.Close socket [12:38:10]Sock 7.Thread stoped [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38: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:13]accept exits with 10 [12:39:13]New connection [12:39:13]New thread 3066654052 created [12:39:13]Thread 3066510692 joined [12:39:13]Waiting for new connection... [12:39:13] Sock 10.Parse request [12:39:13]Sock 10.Check first char [12:39:13]Sock 10.First char is OK [12:39:13]request: POST /json_proto HTTP/1.0 [12:39:13]Method: POST [12:39:13]URL: /json_proto [12:39:13]Method is POST - this is cgi request [12:39:13]url: /json_proto [12:39:13]query_string will be loaded in cgi processing [12:39:13]execute_cgi json_proto POST (null) [12:39:13]execute_cgi path=json_proto method=POST [12:39:13]POST find Content-Length [12:39:13]Host: 172.17.50.196:8080 [12:39:13]Content-Length: 668 [12:39:13]Content-Type: application/json [12:39:13] [12:39:13]POST finish read [12:39:13]Found Content-Length = 668 [12:39:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335771", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:13]execute_script... [12:39: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)335771", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:13]POST & json_proto [12:39:13]process_json_proto [12:39:13]json parsed OK: [12:39:13]protocol is kg_v1.0 [12:39:13]action value=close_receipt [12:39:13]process_action close_receipt [12:39:13]cmd_close_receipt [12:39:13]MH_GetDate [12:39:13]Write to MH i2c: F0 00 00 0C 5C 57 [12:39:13]Write i2c OK [12:39:13]MH_I2C_Read... [12:39:13]Read from MH i2c: F0 [12:39:13]MH_I2C_Read... [12:39:13]Read from MH i2c: F0 09 00 [12:39:13]MH_I2C_Read... [12:39:13]Read from MH i2c: F0 09 00 0C 5C 00 F7 CB 24 67 72 0D 1C 67 AF [12:39:13]GetLastDocTimeStamp 1730464691 [12:39:13]current date 1730464759 [12:39:13]FM_GetShiftState [12:39:13]SAM_PROTO_GetShiftState [12:39:13]wFMCommunicate request_size=4 [12:39:13]MH_SAM_APDU [12:39:13]CAPDU: 80 13 01 00 [12:39:13]Write to MH i2c: E2 08 00 0D 5C 80 13 01 00 00 00 00 00 E6 [12:39:13]Write i2c OK [12:39:13]MH_I2C_Read... [12:39:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:13]Read from MH i2c: E2 [12:39:13]MH_I2C_Read... [12:39:13]Read from MH i2c: E2 0E 00 [12:39:13]MH_I2C_Read... [12:39:13]Read from MH i2c: E2 0E 00 0D 5C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 1F [12:39:13]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:39:13]wFMCommunicate OK [12:39:13]SAM_PROTO_GetShiftState done [12:39:13]FM_GetShiftState done [12:39:13]opened in 1730419081 [12:39:13]opened+sec_in_day 1730505481 [12:39:13]quantity*price = 7500 [12:39:13]sum+1 = 7501 [12:39:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 135 01.11.2024 12:39 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139954 ФПД: 136933544040312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T123919&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139954&fm=136933544040312&tin=02508201610067®Number=0000000000091631&sum=7500 0 [12:39:14]StoreToDocumentArchive [12:39:14]shift 558 fd 139954 [12:39:14]save to /storage/0558/doc_00139954 [12:39:14]save last doc name /storage/0558/doc_00139954 to /storage/kkm_last_doc_name [12:39:14]save OK [12:39:14]Clear old archive folders... [12:39:14]ProcessDocumentItem done err = 0, tmpTLVsize=287 [12:39:14]tlvbuf is 00B783B0 [12:39:14]SAM_PROTO_ClearQueue [12:39:14]wFMCommunicate request_size=4 [12:39:14]MH_SAM_APDU [12:39:14]CAPDU: 80 09 00 00 [12:39:14]Write to MH i2c: E2 08 00 1A 5C 80 09 00 00 00 00 00 00 E8 [12:39:14]Write i2c OK [12:39:14]MH_I2C_Read... [12:39:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:14]Read from MH i2c: E2 [12:39:14]MH_I2C_Read... [12:39:14]Read from MH i2c: E2 03 00 [12:39:14]MH_I2C_Read... [12:39:14]Read from MH i2c: E2 03 00 1A 5C 00 90 00 EA [12:39:14]RAPDU: 90 00 [12:39:14]wFMCommunicate OK [12:39:14]SAM_PROTO_ClearQueue done [12:39:14]KKMCreateOFDPacket [12:39:14]OFDProtocolAddRootSTLVToBuf [12:39:14]FM_MakeSignedData [12:39:14]FM_MakeSignedData [12:39:14]SAM_PROTO_SignData [12:39:14]wFMCommunicate request_size=4 [12:39:14]MH_SAM_APDU [12:39:14]CAPDU: 80 0D 01 02 [12:39:14]Write to MH i2c: E2 08 00 1B 5C 80 0D 01 02 00 00 00 00 F0 [12:39:14]Write i2c OK [12:39:14]MH_I2C_Read... [12:39:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:14]Read from MH i2c: E2 [12:39:14]MH_I2C_Read... [12:39:14]Read from MH i2c: E2 03 00 [12:39:14]MH_I2C_Read... [12:39:14]Read from MH i2c: E2 03 00 1B 5C 00 90 00 EB [12:39:14]RAPDU: 90 00 [12:39:14]wFMCommunicate OK [12:39:14]wFMCommunicate request_size=255 [12:39:14]MH_SAM_APDU [12:39:14]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 F7 CB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 [12:39:14]Write to MH i2c: E2 02 01 1C 5C 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 F7 CB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 00 00 71 [12:39:14]Write i2c OK [12:39:14]MH_I2C_Read... [12:39:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:15]Read from MH i2c: E2 [12:39:15]MH_I2C_Read... [12:39:15]Read from MH i2c: E2 03 00 [12:39:15]MH_I2C_Read... [12:39:15]Read from MH i2c: E2 03 00 1C 5C 00 90 00 EC [12:39:15]RAPDU: 90 00 [12:39:15]wFMCommunicate OK [12:39:15]wFMCommunicate request_size=46 [12:39:15]MH_SAM_APDU [12:39:15]CAPDU: 80 0D 02 02 29 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B2 22 02 00 35 04 06 00 7C 8A 53 40 17 78 [12:39:15]Write to MH i2c: E2 31 00 1D 5C 80 0D 02 02 29 00 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B2 22 02 00 35 04 06 00 7C 8A 53 40 17 78 00 00 81 [12:39:15]Write i2c OK [12:39:15]MH_I2C_Read... [12:39:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:15]Read from MH i2c: E2 [12:39:15]MH_I2C_Read... [12:39:15]Read from MH i2c: E2 03 00 [12:39:15]MH_I2C_Read... [12:39:15]Read from MH i2c: E2 03 00 1D 5C 00 90 00 ED [12:39:15]RAPDU: 90 00 [12:39:15]wFMCommunicate OK [12:39:15]wFMCommunicate request_size=4 [12:39:15]MH_SAM_APDU [12:39:15]CAPDU: 80 0D 03 02 [12:39:15]Write to MH i2c: E2 08 00 1E 5C 80 0D 03 02 00 00 00 00 F5 [12:39:15]Write i2c OK [12:39:15]MH_I2C_Read... [12:39:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:15]Read from MH i2c: E2 [12:39:15]MH_I2C_Read... [12:39:15]Read from MH i2c: E2 0B 00 [12:39:15]MH_I2C_Read... [12:39:15]Read from MH i2c: E2 0B 00 1E 5C 00 DE B7 9D 10 4A EB 1A 6B 90 00 F2 [12:39:15]RAPDU: DE B7 9D 10 4A EB 1A 6B 90 00 [12:39:15]wFMCommunicate OK [12:39:15]SAM_PROTO_SignData done [12:39:15]FM_MakeSignedData done [12:39:15]CreateOFDProtocolMessage [12:39:15]wFMCommunicate request_size=4 [12:39:15]MH_SAM_APDU [12:39:15]CAPDU: 80 11 00 00 [12:39:15]Write to MH i2c: E2 08 00 1F 5C 80 11 00 00 00 00 00 00 F5 [12:39:15]Write i2c OK [12:39:15]MH_I2C_Read... [12:39:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:15]Read from MH i2c: E2 [12:39:15]MH_I2C_Read... [12:39:15]Read from MH i2c: E2 17 00 [12:39:15]MH_I2C_Read... [12:39:15]Read from MH i2c: E2 17 00 1F 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 50 [12:39:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:39:15]wFMCommunicate OK [12:39:15]CreateOFDProtocolMessage done [12:39:15]OFDSenderStorePacket 139954 [12:39:15]StoreOFDPacket docnum=139954 [12:39:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 33 01 00 00 80 2B 2B 01 8A 7F 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 F7 CB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B2 22 02 00 35 04 06 00 7C 8A 53 40 17 78 DE B7 9D 10 4A EB 1A 6B [12:39:15]CheckFolder [12:39:15]dirname=/storage/ofd_packets [12:39:15]CheckFolder done [12:39:15]ProducePacketName [12:39:15]name=ofd_packets/00139954 [12:39:15]NVStorageSaveData ofd_packets/00139954 [12:39:15]File name is /storage/ofd_packets/00139954 [12:39:15]Write 337 bytes [12:39:15]NVStorageSaveData done [12:39:15]OFDSenderStorePacket done [12:39:15]KKMCreateOFDPacket done [12:39:15]NVStorageSaveData kkm_last_timestamp [12:39:15]File name is /storage/kkm_last_timestamp [12:39:15]Write 4 bytes [12:39:15]NVStorageSaveData done [12:39:15]ExternCall_PrintAddStr [12:39:15]wPrintStart [12:39:15]Write to MH i2c: 01 00 00 20 5C 7C [12:39:15]Write i2c OK [12:39:15]MH_I2C_Read... [12:39:15]Read from MH i2c: 01 [12:39:15]MH_I2C_Read... [12:39:15]Read from MH i2c: 01 07 00 [12:39:15]MH_I2C_Read... [12:39:15]Read from MH i2c: 01 07 00 20 5C 00 00 00 00 00 FF 0F 91 [12:39:15]RasterBufferAndPrint [12:39:15]line Счет N : (3)335771 [12:39:15]line ИНН: 02508201610067 [12:39:15]line Контрольно-Кассовый Чек [12:39:15]line ПРОДАЖА [12:39:15]line Товар: 5449000189394 [12:39:15]line Холодный чай Fuse ягода 0,5л [12:39:15]line 1.000 * 75.00 [12:39:15]line = 75.00 [12:39:15]line НДС 12% НСП 1% [12:39:15]line > о реализуемом товаре [12:39:15]line ИТОГО: 75.00 [12:39:15]line НСП 1% : 0.66 [12:39:15]line НДС 12% : 7.96 [12:39:15]line Наличными: 75.00 [12:39:15]line Безнал.: 0.00 [12:39:15]line Место: АЗС № 101 "Партнер Нефть" [12:39:15]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:39:15]line СНО: Общий режим [12:39:15]line Чек 135 01.11.2024 12:39 [12:39:15]line Смена: 558 ФФД: 1.0 [12:39:15]line ЗНМ: 0300000081 [12:39:15]line РНМ: 0000000000091631 [12:39:15]line Версия ККМ: 001 [12:39:15]line ФМ: 0000000000874669 [12:39:15]line ФД: 139954 [12:39:15]line ФПД: 136933544040312 [12:39:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T123919&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139954&fm=136933544040312&tin=02508201610067®Number=0000000000091631&sum=7500 [12:39:15]line 0 [12:39:15]OFD Sender: Processing packet 139954 [packets to send 34, broken 33] [12:39:15]ProducePacketName [12:39:15]name=ofd_packets/00139954 [12:39:15]OFD Sender: To server: pG, [12:39:15]CommunicateWithHost lk.salyk.kg:30040 [12:39:15]ConnectInit lk.salyk.kg [12:39:15]written 0, free lines is 4095 [12:39:15]Connected sock=11 [12:39:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 33 01 00 00 80 2B 2B 01 8A 7F 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 F7 CB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B2 22 02 00 35 04 06 00 7C 8A 53 40 17 78 DE B7 9D 10 4A EB 1A 6B [12:39:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 55 FD 47 00 1F 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B2 22 02 00 F4 03 04 00 A2 77 24 67 B6 04 01 00 00 20 00 68 56 1F 7A 7D 68 [12:39:15]CommunicateWithHost err = 0 [12:39:15]CheckOFDResponse [12:39:15]1017 (14) - 77093643461234 [12:39:15]1041 (16) - 0000000000874669 [12:39:15]1040 (4) - 139954 [12:39:15]1012 (4) - 01.11.2024 06:39 [12:39:15]1206 (1) - 0 [12:39:15]OFD Sender: Remove packet 139954 [12:39:15]ProducePacketName [12:39:15]name=ofd_packets/00139954 [12:39:15]NVStorageDeleteData [12:39:16]Write to MH i2c: 01 00 00 48 5C A4 [12:39:16]Write i2c OK [12:39:16]MH_I2C_Read... [12:39:16]Read from MH i2c: 01 [12:39:16]MH_I2C_Read... [12:39:16]Read from MH i2c: 01 07 00 [12:39:16]MH_I2C_Read... [12:39:16]Read from MH i2c: 01 07 00 48 5C 00 00 00 00 00 1F 0D D7 [12:39:16]RasterBufferAndPrint [12:39:16]line [12:39:16]line [12:39:16]line [12:39:16]line [12:39:16]line [12:39:16]written 0, free lines is 3368 [12:39:16]MH_Cut [12:39:16]Write to MH i2c: D1 01 00 4F 5C 01 7D [12:39:16]Write i2c OK [12:39:16]MH_I2C_Read... [12:39:16]Read from MH i2c: D1 [12:39:16]MH_I2C_Read... [12:39:16]Read from MH i2c: D1 01 00 [12:39:16]MH_I2C_Read... [12:39:16]Read from MH i2c: D1 01 00 4F 5C 00 7C [12:39:16]Write to MH i2c: 01 00 00 50 5C AC [12:39:16]Write i2c OK [12:39:16]MH_I2C_Read... [12:39:16]OFD Sender: No OFD packet to send [12:39:16]*** Cut start [12:39:16]*** Partial cut [12:39:16]*** CUTSNS_PIN = 1 [12:39:16]*** CUTSNS_PIN = 0 [12:39:16]*** Brake cut motor [12:39:17]Read from MH i2c: 01 [12:39:17]MH_I2C_Read... [12:39:17]*** Stop cut motor [12:39:17]*** Cut end [12:39:17]Read from MH i2c: 01 07 00 [12:39:17]MH_I2C_Read... [12:39:17]Read from MH i2c: 01 07 00 50 5C 00 00 00 00 00 FF 0F C1 [12:39:17]process_action close_receipt done [12:39:17]requested_data is exist [12:39:17]produce_requested_data [12:39:17]requested_item fm.sn is exist - process it [12:39:17]wFMCommunicate request_size=4 [12:39:17]MH_SAM_APDU [12:39:17]CAPDU: 80 11 00 00 [12:39:17]Write to MH i2c: E2 08 00 51 5C 80 11 00 00 00 00 00 00 27 [12:39:17]Write i2c OK [12:39:17]MH_I2C_Read... [12:39:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:17]Read from MH i2c: E2 [12:39:17]MH_I2C_Read... [12:39:17]Read from MH i2c: E2 17 00 [12:39:17]MH_I2C_Read... [12:39:17]Read from MH i2c: E2 17 00 51 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 82 [12:39:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:39:17]wFMCommunicate OK [12:39:17]requested_item fd.num is exist - process it [12:39:17]SAM_PROTO_GetFieldsCounters [12:39:17]wFMCommunicate request_size=4 [12:39:17]MH_SAM_APDU [12:39:17]CAPDU: 80 13 00 00 [12:39:17]Write to MH i2c: E2 08 00 52 5C 80 13 00 00 00 00 00 00 2A [12:39:17]Write i2c OK [12:39:17]MH_I2C_Read... [12:39:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:17]Read from MH i2c: E2 [12:39:17]MH_I2C_Read... [12:39:17]Read from MH i2c: E2 62 00 [12:39:17]MH_I2C_Read... [12:39:17]Read from MH i2c: E2 62 00 52 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B2 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [12:39:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B2 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:17]wFMCommunicate OK [12:39:17]SAM_PROTO_GetFieldsCounters done [12:39:17]requested_item shift.num is exist - process it [12:39:17]requested_item shift.opened is exist - process it [12:39:17]req_shift_opened [12:39:17]FM_GetShiftState [12:39:17]SAM_PROTO_GetShiftState [12:39:17]wFMCommunicate request_size=4 [12:39:17]MH_SAM_APDU [12:39:17]CAPDU: 80 13 01 00 [12:39:17]Write to MH i2c: E2 08 00 53 5C 80 13 01 00 00 00 00 00 2C [12:39:17]Write i2c OK [12:39:17]MH_I2C_Read... [12:39:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:17]Read from MH i2c: E2 [12:39:17]MH_I2C_Read... [12:39:17]Read from MH i2c: E2 0E 00 [12:39:17]MH_I2C_Read... [12:39:17]Read from MH i2c: E2 0E 00 53 5C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 65 [12:39:17]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:39:17]wFMCommunicate OK [12:39:17]SAM_PROTO_GetShiftState done [12:39:17]FM_GetShiftState done [12:39:17]req_shift_opened done [12:39:17]requested_item shift.open_date is exist - process it [12:39:17]req_shift_open_date [12:39:17]req_shift_open_date done [12:39:17]produce_requested_data done [12:39:17]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139954,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [12:39:17]process_action_free close_receipt [12:39:17]json_value_free [12:39:17]json_value_free done [12:39:17]process_json_proto returns [12:39:17]Send response to host [12:39:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139954,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [12:39:17]free response buf [12:39:17]execute_script done [12:39:17]execute_script returns [12:39:17]free content buf [12:39:17]Sock 10.Close socket [12:39:17]Sock 10.Thread stoped [12:39:21]OFD Sender: No OFD packet to send [12:39:26]OFD Sender: No OFD packet to send [12:39:31]OFD Sender: No OFD packet to send [12:39:36]OFD Sender: No OFD packet to send [12:39:38]accept exits with 9 [12:39:38]New connection [12:39:38]New thread 3066510692 created [12:39:38]Thread 3066654052 joined [12:39:38]Waiting for new connection... [12:39:38] Sock 9.Parse request [12:39:38]Sock 9.Check first char [12:39:38]Sock 9.First char is OK [12:39:38]request: POST /json_proto HTTP/1.0 [12:39:38]Method: POST [12:39:38]URL: /json_proto [12:39:38]Method is POST - this is cgi request [12:39:38]url: /json_proto [12:39:38]query_string will be loaded in cgi processing [12:39:38]execute_cgi json_proto POST (null) [12:39:38]execute_cgi path=json_proto method=POST [12:39:38]POST find Content-Length [12:39:38]Host: 172.17.50.196:8080 [12:39:38]Content-Length: 668 [12:39:38]Content-Type: application/json [12:39:38] [12:39:38]POST finish read [12:39:38]Found Content-Length = 668 [12:39:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335772", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:38]execute_script... [12:39: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)335772", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:38]POST & json_proto [12:39:38]process_json_proto [12:39:38]json parsed OK: [12:39:38]protocol is kg_v1.0 [12:39:38]action value=close_receipt [12:39:38]process_action close_receipt [12:39:38]cmd_close_receipt [12:39:38]MH_GetDate [12:39:38]Write to MH i2c: F0 00 00 54 5C 9F [12:39:38]Write i2c OK [12:39:38]MH_I2C_Read... [12:39:38]Read from MH i2c: F0 [12:39:38]MH_I2C_Read... [12:39:38]Read from MH i2c: F0 09 00 [12:39:38]MH_I2C_Read... [12:39:38]Read from MH i2c: F0 09 00 54 5C 00 10 CC 24 67 72 0D 1C 67 11 [12:39:38]GetLastDocTimeStamp 1730464759 [12:39:38]current date 1730464784 [12:39:38]FM_GetShiftState [12:39:38]SAM_PROTO_GetShiftState [12:39:38]wFMCommunicate request_size=4 [12:39:38]MH_SAM_APDU [12:39:38]CAPDU: 80 13 01 00 [12:39:38]Write to MH i2c: E2 08 00 55 5C 80 13 01 00 00 00 00 00 2E [12:39:38]Write i2c OK [12:39:38]MH_I2C_Read... [12:39:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:38]Read from MH i2c: E2 [12:39:38]MH_I2C_Read... [12:39:38]Read from MH i2c: E2 0E 00 [12:39:38]MH_I2C_Read... [12:39:38]Read from MH i2c: E2 0E 00 55 5C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 67 [12:39:38]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:39:38]wFMCommunicate OK [12:39:38]SAM_PROTO_GetShiftState done [12:39:38]FM_GetShiftState done [12:39:38]opened in 1730419081 [12:39:38]opened+sec_in_day 1730505481 [12:39:38]quantity*price = 22500 [12:39:38]sum+1 = 22501 [12:39:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 136 01.11.2024 12:39 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139955 ФПД: 92988645550334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T123944&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139955&fm=92988645550334&tin=02508201610067®Number=0000000000091631&sum=22500 0 [12:39:39]StoreToDocumentArchive [12:39:39]shift 558 fd 139955 [12:39:39]save to /storage/0558/doc_00139955 [12:39:39]save last doc name /storage/0558/doc_00139955 to /storage/kkm_last_doc_name [12:39:39]save OK [12:39:39]Clear old archive folders... [12:39:39]ProcessDocumentItem done err = 0, tmpTLVsize=296 [12:39:39]tlvbuf is 00A8B840 [12:39:39]SAM_PROTO_ClearQueue [12:39:39]wFMCommunicate request_size=4 [12:39:39]MH_SAM_APDU [12:39:39]CAPDU: 80 09 00 00 [12:39:39]Write to MH i2c: E2 08 00 62 5C 80 09 00 00 00 00 00 00 30 [12:39:39]Write i2c OK [12:39:39]MH_I2C_Read... [12:39:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:39]Read from MH i2c: E2 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: E2 03 00 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: E2 03 00 62 5C 00 90 00 32 [12:39:39]RAPDU: 90 00 [12:39:39]wFMCommunicate OK [12:39:39]SAM_PROTO_ClearQueue done [12:39:39]KKMCreateOFDPacket [12:39:39]OFDProtocolAddRootSTLVToBuf [12:39:39]FM_MakeSignedData [12:39:39]FM_MakeSignedData [12:39:39]SAM_PROTO_SignData [12:39:39]wFMCommunicate request_size=4 [12:39:39]MH_SAM_APDU [12:39:39]CAPDU: 80 0D 01 02 [12:39:39]Write to MH i2c: E2 08 00 63 5C 80 0D 01 02 00 00 00 00 38 [12:39:39]Write i2c OK [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: E2 [12:39:39]MH_I2C_Read... [12:39:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:39]Read from MH i2c: E2 03 00 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: E2 03 00 63 5C 00 90 00 33 [12:39:39]RAPDU: 90 00 [12:39:39]wFMCommunicate OK [12:39:39]wFMCommunicate request_size=255 [12:39:39]MH_SAM_APDU [12:39:39]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 10 CC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [12:39:39]Write to MH i2c: E2 02 01 64 5C 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 10 CC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 D8 [12:39:39]Write i2c OK [12:39:39]MH_I2C_Read... [12:39:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:39]Read from MH i2c: E2 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: E2 03 00 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: E2 03 00 64 5C 00 90 00 34 [12:39:39]RAPDU: 90 00 [12:39:39]wFMCommunicate OK [12:39:39]wFMCommunicate request_size=55 [12:39:39]MH_SAM_APDU [12:39:39]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B3 22 02 00 35 04 06 00 54 92 9B 2F A8 FE [12:39:39]Write to MH i2c: E2 3A 00 65 5C 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B3 22 02 00 35 04 06 00 54 92 9B 2F A8 FE 00 00 C4 [12:39:39]Write i2c OK [12:39:39]MH_I2C_Read... [12:39:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:40]Read from MH i2c: E2 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: E2 03 00 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: E2 03 00 65 5C 00 90 00 35 [12:39:40]RAPDU: 90 00 [12:39:40]wFMCommunicate OK [12:39:40]wFMCommunicate request_size=4 [12:39:40]MH_SAM_APDU [12:39:40]CAPDU: 80 0D 03 02 [12:39:40]Write to MH i2c: E2 08 00 66 5C 80 0D 03 02 00 00 00 00 3D [12:39:40]Write i2c OK [12:39:40]MH_I2C_Read... [12:39:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:40]Read from MH i2c: E2 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: E2 0B 00 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: E2 0B 00 66 5C 00 79 D8 5A E5 CF 6D F3 0E 90 00 0B [12:39:40]RAPDU: 79 D8 5A E5 CF 6D F3 0E 90 00 [12:39:40]wFMCommunicate OK [12:39:40]SAM_PROTO_SignData done [12:39:40]FM_MakeSignedData done [12:39:40]CreateOFDProtocolMessage [12:39:40]wFMCommunicate request_size=4 [12:39:40]MH_SAM_APDU [12:39:40]CAPDU: 80 11 00 00 [12:39:40]Write to MH i2c: E2 08 00 67 5C 80 11 00 00 00 00 00 00 3D [12:39:40]Write i2c OK [12:39:40]MH_I2C_Read... [12:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:40]Read from MH i2c: E2 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: E2 17 00 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: E2 17 00 67 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 98 [12:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:39:40]wFMCommunicate OK [12:39:40]CreateOFDProtocolMessage done [12:39:40]OFDSenderStorePacket 139955 [12:39:40]StoreOFDPacket docnum=139955 [12:39:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3C 01 00 00 C4 F9 34 01 B7 A7 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 10 CC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B3 22 02 00 35 04 06 00 54 92 9B 2F A8 FE 79 D8 5A E5 CF 6D F3 0E [12:39:40]CheckFolder [12:39:40]dirname=/storage/ofd_packets [12:39:40]CheckFolder done [12:39:40]ProducePacketName [12:39:40]name=ofd_packets/00139955 [12:39:40]NVStorageSaveData ofd_packets/00139955 [12:39:40]File name is /storage/ofd_packets/00139955 [12:39:40]Write 346 bytes [12:39:40]NVStorageSaveData done [12:39:40]OFDSenderStorePacket done [12:39:40]KKMCreateOFDPacket done [12:39:40]NVStorageSaveData kkm_last_timestamp [12:39:40]File name is /storage/kkm_last_timestamp [12:39:40]Write 4 bytes [12:39:40]NVStorageSaveData done [12:39:40]ExternCall_PrintAddStr [12:39:40]wPrintStart [12:39:40]Write to MH i2c: 01 00 00 68 5C C4 [12:39:40]Write i2c OK [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: 01 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: 01 07 00 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: 01 07 00 68 5C 00 00 00 00 00 FF 0F D9 [12:39:40]RasterBufferAndPrint [12:39:40]line Счет N : (3)335772 [12:39:40]line ИНН: 02508201610067 [12:39:40]line Контрольно-Кассовый Чек [12:39:40]line ПРОДАЖА [12:39:40]line Товар: 4670003190013 [12:39:40]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л [12:39:40]line 1.000 * 225.00 [12:39:40]line = 225.00 [12:39:40]line НДС 12% НСП 1% [12:39:40]line > о реализуемом товаре [12:39:40]line ИТОГО: 225.00 [12:39:40]line НСП 1% : 1.99 [12:39:40]line НДС 12% : 23.89 [12:39:40]line Наличными: 225.00 [12:39:40]line Безнал.: 0.00 [12:39:40]line Место: АЗС № 101 "Партнер Нефть" [12:39:40]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:39:40]line СНО: Общий режим [12:39:40]line Чек 136 01.11.2024 12:39 [12:39:40]line Смена: 558 ФФД: 1.0 [12:39:40]line ЗНМ: 0300000081 [12:39:40]line РНМ: 0000000000091631 [12:39:40]line Версия ККМ: 001 [12:39:40]line ФМ: 0000000000874669 [12:39:40]line ФД: 139955 [12:39:40]line ФПД: 92988645550334 [12:39:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T123944&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139955&fm=92988645550334&tin=02508201610067®Number=0000000000091631&sum=22500 [12:39:40]OFD Sender: Processing packet 139955 [packets to send 34, broken 33] [12:39:40]ProducePacketName [12:39:40]name=ofd_packets/00139955 [12:39:40]OFD Sender: To server: pG, [12:39:40]CommunicateWithHost lk.salyk.kg:30040 [12:39:40]ConnectInit lk.salyk.kg [12:39:40]line 0 [12:39:40]written 0, free lines is 4095 [12:39:40]Connected sock=11 [12:39:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3C 01 00 00 C4 F9 34 01 B7 A7 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 10 CC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B3 22 02 00 35 04 06 00 54 92 9B 2F A8 FE 79 D8 5A E5 CF 6D F3 0E [12:39:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 34 28 47 00 49 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B3 22 02 00 F4 03 04 00 BA 77 24 67 B6 04 01 00 00 54 0A 5F 8F C3 93 36 42 [12:39:40]CommunicateWithHost err = 0 [12:39:40]CheckOFDResponse [12:39:40]1017 (14) - 77093643461234 [12:39:40]1041 (16) - 0000000000874669 [12:39:40]1040 (4) - 139955 [12:39:40]1012 (4) - 01.11.2024 06:39 [12:39:40]1206 (1) - 0 [12:39:40]OFD Sender: Remove packet 139955 [12:39:40]ProducePacketName [12:39:40]name=ofd_packets/00139955 [12:39:40]NVStorageDeleteData [12:39:40]Write to MH i2c: 01 00 00 91 5C ED [12:39:40]Write i2c OK [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: 01 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: 01 07 00 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: 01 07 00 91 5C 00 00 00 00 00 20 0D 21 [12:39:40]RasterBufferAndPrint [12:39:40]line [12:39:40]line [12:39:40]line [12:39:40]line [12:39:40]line [12:39:40]written 0, free lines is 3382 [12:39:40]MH_Cut [12:39:40]Write to MH i2c: D1 01 00 98 5C 01 C6 [12:39:40]Write i2c OK [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: D1 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: D1 01 00 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: D1 01 00 98 5C 00 C5 [12:39:40]Write to MH i2c: 01 00 00 99 5C F5 [12:39:40]Write i2c OK [12:39:40]MH_I2C_Read... [12:39:41]OFD Sender: No OFD packet to send [12:39:41]*** Cut start [12:39:41]*** Partial cut [12:39:41]*** CUTSNS_PIN = 1 [12:39:41]*** CUTSNS_PIN = 0 [12:39:41]*** Brake cut motor [12:39:41]Read from MH i2c: 01 [12:39:41]MH_I2C_Read... [12:39:41]*** Stop cut motor [12:39:41]*** Cut end [12:39:41]Read from MH i2c: 01 07 00 [12:39:41]MH_I2C_Read... [12:39:41]Read from MH i2c: 01 07 00 99 5C 00 00 00 00 00 FF 0F 0A [12:39:41]process_action close_receipt done [12:39:41]requested_data is exist [12:39:41]produce_requested_data [12:39:41]requested_item fm.sn is exist - process it [12:39:41]wFMCommunicate request_size=4 [12:39:41]MH_SAM_APDU [12:39:41]CAPDU: 80 11 00 00 [12:39:41]Write to MH i2c: E2 08 00 9A 5C 80 11 00 00 00 00 00 00 70 [12:39:41]Write i2c OK [12:39:41]MH_I2C_Read... [12:39:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:42]Read from MH i2c: E2 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: E2 17 00 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: E2 17 00 9A 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CB [12:39:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:39:42]wFMCommunicate OK [12:39:42]requested_item fd.num is exist - process it [12:39:42]SAM_PROTO_GetFieldsCounters [12:39:42]wFMCommunicate request_size=4 [12:39:42]MH_SAM_APDU [12:39:42]CAPDU: 80 13 00 00 [12:39:42]Write to MH i2c: E2 08 00 9B 5C 80 13 00 00 00 00 00 00 73 [12:39:42]Write i2c OK [12:39:42]MH_I2C_Read... [12:39:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:42]Read from MH i2c: E2 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: E2 62 00 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: E2 62 00 9B 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B3 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [12:39: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 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B3 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:42]wFMCommunicate OK [12:39:42]SAM_PROTO_GetFieldsCounters done [12:39:42]requested_item shift.num is exist - process it [12:39:42]requested_item shift.opened is exist - process it [12:39:42]req_shift_opened [12:39:42]FM_GetShiftState [12:39:42]SAM_PROTO_GetShiftState [12:39:42]wFMCommunicate request_size=4 [12:39:42]MH_SAM_APDU [12:39:42]CAPDU: 80 13 01 00 [12:39:42]Write to MH i2c: E2 08 00 9C 5C 80 13 01 00 00 00 00 00 75 [12:39:42]Write i2c OK [12:39:42]MH_I2C_Read... [12:39:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:42]Read from MH i2c: E2 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: E2 0E 00 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: E2 0E 00 9C 5C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 AE [12:39:42]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:39:42]wFMCommunicate OK [12:39:42]SAM_PROTO_GetShiftState done [12:39:42]FM_GetShiftState done [12:39:42]req_shift_opened done [12:39:42]requested_item shift.open_date is exist - process it [12:39:42]req_shift_open_date [12:39:42]req_shift_open_date done [12:39:42]produce_requested_data done [12:39:42]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139955,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [12:39:42]process_action_free close_receipt [12:39:42]json_value_free [12:39:42]json_value_free done [12:39:42]process_json_proto returns [12:39:42]Send response to host [12:39:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139955,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [12:39:42]free response buf [12:39:42]execute_script done [12:39:42]execute_script returns [12:39:42]free content buf [12:39:42]Sock 9.Close socket [12:39:42]Sock 9.Thread stoped [12:39:46]OFD Sender: No OFD packet to send [12:39:48]accept exits with 10 [12:39:48]New connection [12:39:48]New thread 3066654052 created [12:39:48]Thread 3066510692 joined [12:39:48]Waiting for new connection... [12:39:48] Sock 10.Parse request [12:39:48]Sock 10.Check first char [12:39:48]Sock 10.First char is OK [12:39:48]request: POST /json_proto HTTP/1.0 [12:39:48]Method: POST [12:39:48]URL: /json_proto [12:39:48]Method is POST - this is cgi request [12:39:48]url: /json_proto [12:39:48]query_string will be loaded in cgi processing [12:39:48]execute_cgi json_proto POST (null) [12:39:48]execute_cgi path=json_proto method=POST [12:39:48]POST find Content-Length [12:39:48]Host: 172.17.50.196:8080 [12:39:48]Content-Length: 686 [12:39:48]Content-Type: application/json [12:39:48] [12:39:48]POST finish read [12:39:48]Found Content-Length = 686 [12:39:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095893", "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" : 38.30, "quantity" : 47.680, "sum" : 1826.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 1826.00, "payments": [ { "type": 0, "sum" : 1826.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:48]execute_script... [12:39:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095893", "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" : 38.30, "quantity" : 47.680, "sum" : 1826.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 1826.00, "payments": [ { "type": 0, "sum" : 1826.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:48]POST & json_proto [12:39:48]process_json_proto [12:39:48]json parsed OK: [12:39:48]protocol is kg_v1.0 [12:39:48]action value=close_receipt [12:39:48]process_action close_receipt [12:39:48]cmd_close_receipt [12:39:48]MH_GetDate [12:39:48]Write to MH i2c: F0 00 00 9D 5C E8 [12:39:48]Write i2c OK [12:39:48]MH_I2C_Read... [12:39:48]Read from MH i2c: F0 [12:39:48]MH_I2C_Read... [12:39:48]Read from MH i2c: F0 09 00 [12:39:48]MH_I2C_Read... [12:39:48]Read from MH i2c: F0 09 00 9D 5C 00 1A CC 24 67 72 0D 1C 67 64 [12:39:48]GetLastDocTimeStamp 1730464784 [12:39:48]current date 1730464794 [12:39:48]FM_GetShiftState [12:39:48]SAM_PROTO_GetShiftState [12:39:48]wFMCommunicate request_size=4 [12:39:48]MH_SAM_APDU [12:39:48]CAPDU: 80 13 01 00 [12:39:48]Write to MH i2c: E2 08 00 9E 5C 80 13 01 00 00 00 00 00 77 [12:39:48]Write i2c OK [12:39:48]MH_I2C_Read... [12:39:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:48]Read from MH i2c: E2 [12:39:48]MH_I2C_Read... [12:39:48]Read from MH i2c: E2 0E 00 [12:39:48]MH_I2C_Read... [12:39:48]Read from MH i2c: E2 0E 00 9E 5C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 B0 [12:39:48]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:39:48]wFMCommunicate OK [12:39:48]SAM_PROTO_GetShiftState done [12:39:48]FM_GetShiftState done [12:39:48]opened in 1730419081 [12:39:48]opened+sec_in_day 1730505481 [12:39:48]quantity*price = 182614 [12:39:48]sum+1 = 182615 [12:39:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1826.00 Внесено: 2200.00 СДАЧА: 374.00 НСП 1% : 16.16 НДС 12% : 193.93 Наличными: 1826.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 137 01.11.2024 12:39 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139956 ФПД: 80492472699486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T123954&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139956&fm=80492472699486&tin=02508201610067®Number=0000000000091631&sum=182600 [12:39:49]StoreToDocumentArchive [12:39:49]shift 558 fd 139956 [12:39:49]save to /storage/0558/doc_00139956 [12:39:49]save last doc name /storage/0558/doc_00139956 to /storage/kkm_last_doc_name [12:39:49]save OK [12:39:49]Clear old archive folders... [12:39:49]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:39:49]tlvbuf is 00A8CAB0 [12:39:49]SAM_PROTO_ClearQueue [12:39:49]wFMCommunicate request_size=4 [12:39:49]MH_SAM_APDU [12:39:49]CAPDU: 80 09 00 00 [12:39:49]Write to MH i2c: E2 08 00 AB 5C 80 09 00 00 00 00 00 00 79 [12:39:49]Write i2c OK [12:39:49]MH_I2C_Read... [12:39:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:49]Read from MH i2c: E2 [12:39:49]MH_I2C_Read... [12:39:49]Read from MH i2c: E2 03 00 [12:39:49]MH_I2C_Read... [12:39:49]Read from MH i2c: E2 03 00 AB 5C 00 90 00 7B [12:39:49]RAPDU: 90 00 [12:39:49]wFMCommunicate OK [12:39:49]SAM_PROTO_ClearQueue done [12:39:49]KKMCreateOFDPacket [12:39:49]OFDProtocolAddRootSTLVToBuf [12:39:49]FM_MakeSignedData [12:39:49]FM_MakeSignedData [12:39:49]SAM_PROTO_SignData [12:39:49]wFMCommunicate request_size=4 [12:39:49]MH_SAM_APDU [12:39:49]CAPDU: 80 0D 01 02 [12:39:49]Write to MH i2c: E2 08 00 AC 5C 80 0D 01 02 00 00 00 00 81 [12:39:49]Write i2c OK [12:39:49]MH_I2C_Read... [12:39:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:49]Read from MH i2c: E2 [12:39:49]MH_I2C_Read... [12:39:49]Read from MH i2c: E2 03 00 [12:39:49]MH_I2C_Read... [12:39:49]Read from MH i2c: E2 03 00 AC 5C 00 90 00 7C [12:39:49]RAPDU: 90 00 [12:39:49]wFMCommunicate OK [12:39:49]wFMCommunicate request_size=255 [12:39:49]MH_SAM_APDU [12:39:49]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 40 BA 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 56 C9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 C9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 4B 00 00 00 00 07 04 06 00 48 C9 02 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 1A CC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B4 22 02 00 35 04 06 00 49 35 [12:39:49]Write to MH i2c: E2 02 01 AD 5C 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 40 BA 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 56 C9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 C9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 4B 00 00 00 00 07 04 06 00 48 C9 02 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 1A CC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B4 22 02 00 35 04 06 00 49 35 00 00 5C [12:39:50]Write i2c OK [12:39:50]MH_I2C_Read... [12:39:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:50]Read from MH i2c: E2 [12:39:50]MH_I2C_Read... [12:39:50]Read from MH i2c: E2 03 00 [12:39:50]MH_I2C_Read... [12:39:50]Read from MH i2c: E2 03 00 AD 5C 00 90 00 7D [12:39:50]RAPDU: 90 00 [12:39:50]wFMCommunicate OK [12:39:50]wFMCommunicate request_size=9 [12:39:50]MH_SAM_APDU [12:39:50]CAPDU: 80 0D 02 02 04 1D 3E 0A 5E [12:39:50]Write to MH i2c: E2 0C 00 AE 5C 80 0D 02 02 04 00 1D 3E 0A 5E 00 00 4F [12:39:50]Write i2c OK [12:39:50]MH_I2C_Read... [12:39:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:50]Read from MH i2c: E2 [12:39:50]MH_I2C_Read... [12:39:50]Read from MH i2c: E2 03 00 [12:39:50]MH_I2C_Read... [12:39:50]Read from MH i2c: E2 03 00 AE 5C 00 90 00 7E [12:39:50]RAPDU: 90 00 [12:39:50]wFMCommunicate OK [12:39:50]wFMCommunicate request_size=4 [12:39:50]MH_SAM_APDU [12:39:50]CAPDU: 80 0D 03 02 [12:39:50]Write to MH i2c: E2 08 00 AF 5C 80 0D 03 02 00 00 00 00 86 [12:39:50]Write i2c OK [12:39:50]MH_I2C_Read... [12:39:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:50]Read from MH i2c: E2 [12:39:50]MH_I2C_Read... [12:39:50]Read from MH i2c: E2 0B 00 [12:39:50]MH_I2C_Read... [12:39:50]Read from MH i2c: E2 0B 00 AF 5C 00 B1 12 72 CB 71 EE 69 A2 90 00 F1 [12:39:50]RAPDU: B1 12 72 CB 71 EE 69 A2 90 00 [12:39:50]wFMCommunicate OK [12:39:50]SAM_PROTO_SignData done [12:39:50]FM_MakeSignedData done [12:39:50]CreateOFDProtocolMessage [12:39:50]wFMCommunicate request_size=4 [12:39:50]MH_SAM_APDU [12:39:50]CAPDU: 80 11 00 00 [12:39:50]Write to MH i2c: E2 08 00 B0 5C 80 11 00 00 00 00 00 00 86 [12:39:50]Write i2c OK [12:39:50]MH_I2C_Read... [12:39:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:50]Read from MH i2c: E2 [12:39:50]MH_I2C_Read... [12:39:50]Read from MH i2c: E2 17 00 [12:39:50]MH_I2C_Read... [12:39:50]Read from MH i2c: E2 17 00 B0 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E1 [12:39:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:39:50]wFMCommunicate OK [12:39:50]CreateOFDProtocolMessage done [12:39:50]OFDSenderStorePacket 139956 [12:39:50]StoreOFDPacket docnum=139956 [12:39:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0E 01 00 00 C3 6C 06 01 0E 39 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 40 BA 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 56 C9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 C9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 4B 00 00 00 00 07 04 06 00 48 C9 02 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 1A CC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B4 22 02 00 35 04 06 00 49 35 1D 3E 0A 5E B1 12 72 CB 71 EE 69 A2 [12:39:50]CheckFolder [12:39:50]dirname=/storage/ofd_packets [12:39:50]CheckFolder done [12:39:50]ProducePacketName [12:39:50]name=ofd_packets/00139956 [12:39:50]NVStorageSaveData ofd_packets/00139956 [12:39:50]File name is /storage/ofd_packets/00139956 [12:39:50]Write 300 bytes [12:39:50]NVStorageSaveData done [12:39:50]OFDSenderStorePacket done [12:39:50]KKMCreateOFDPacket done [12:39:50]NVStorageSaveData kkm_last_timestamp [12:39:50]File name is /storage/kkm_last_timestamp [12:39:50]Write 4 bytes [12:39:50]NVStorageSaveData done [12:39:50]ExternCall_PrintAddStr [12:39:50]wPrintStart [12:39:50]Write to MH i2c: 01 00 00 B1 5C 0D [12:39:50]Write i2c OK [12:39:50]MH_I2C_Read... [12:39:50]Read from MH i2c: 01 [12:39:50]MH_I2C_Read... [12:39:50]Read from MH i2c: 01 07 00 [12:39:50]MH_I2C_Read... [12:39:50]Read from MH i2c: 01 07 00 B1 5C 00 00 00 00 00 FF 0F 22 [12:39:50]RasterBufferAndPrint [12:39:50]line Счет N : (1)1095893 [12:39:50]line ИНН: 02508201610067 [12:39:50]line Контрольно-Кассовый Чек [12:39:50]line ПРОДАЖА [12:39:50]line ТРК (МРК, ГНК) : 71 [12:39:50]line Товар: 2711190000 [12:39:50]line ГАЗ-К-5 [12:39:50]line 47.680 * 38.30 [12:39:50]line = 1826.14 [12:39:50]line НДС 12% НСП 1% [12:39:50]line > о реализуемом товаре [12:39:50]line ОКРУГЛЕНИЕ: -0.14 [12:39:50]line ИТОГО: 1826.00 [12:39:50]line Внесено: 2200.00 [12:39:50]line СДАЧА: 374.00 [12:39:50]line НСП 1% : 16.16 [12:39:50]line НДС 12% : 193.93 [12:39:50]line Наличными: 1826.00 [12:39:50]line Безнал.: 0.00 [12:39:50]line Место: АЗС № 101 "Партнер Нефть" [12:39:50]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:39:50]line СНО: Общий режим [12:39:50]line Чек 137 01.11.2024 12:39 [12:39:50]line Смена: 558 ФФД: 1.0 [12:39:50]line ЗНМ: 0300000081 [12:39:50]line РНМ: 0000000000091631 [12:39:50]line Версия ККМ: 001 [12:39:50]line ФМ: 0000000000874669 [12:39:50]line ФД: 139956 [12:39:50]line ФПД: 80492472699486 [12:39:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T123954&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139956&fm=80492472699486&tin=02508201610067®Number=0000000000091631&sum=182600 [12:39:50]written 0, free lines is 4095 [12:39:50]OFD Sender: Processing packet 139956 [packets to send 34, broken 33] [12:39:50]ProducePacketName [12:39:50]name=ofd_packets/00139956 [12:39:50]OFD Sender: To server: pG, [12:39:50]CommunicateWithHost lk.salyk.kg:30040 [12:39:50]ConnectInit lk.salyk.kg [12:39:50]Connected sock=11 [12:39:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0E 01 00 00 C3 6C 06 01 0E 39 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 40 BA 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 56 C9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 C9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 4B 00 00 00 00 07 04 06 00 48 C9 02 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 1A CC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B4 22 02 00 35 04 06 00 49 35 1D 3E 0A 5E B1 12 72 CB 71 EE 69 A2 [12:39:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 6F 79 47 00 F7 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B4 22 02 00 F4 03 04 00 C5 77 24 67 B6 04 01 00 00 F9 45 95 79 CB 27 15 0C [12:39:51]CommunicateWithHost err = 0 [12:39:51]CheckOFDResponse [12:39:51]1017 (14) - 77093643461234 [12:39:51]1041 (16) - 0000000000874669 [12:39:51]1040 (4) - 139956 [12:39:51]1012 (4) - 01.11.2024 06:40 [12:39:51]1206 (1) - 0 [12:39:51]OFD Sender: Remove packet 139956 [12:39:51]ProducePacketName [12:39:51]name=ofd_packets/00139956 [12:39:51]NVStorageDeleteData [12:39:51]Write to MH i2c: 01 00 00 DC 5C 38 [12:39:51]Write i2c OK [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: 01 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: 01 07 00 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: 01 07 00 DC 5C 00 00 00 00 00 83 0D CF [12:39:51]RasterBufferAndPrint [12:39:51]line [12:39:51]line [12:39:51]line [12:39:51]line [12:39:51]line [12:39:51]written 0, free lines is 3487 [12:39:51]MH_Cut [12:39:51]Write to MH i2c: D1 01 00 E3 5C 01 11 [12:39:51]Write i2c OK [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: D1 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: D1 01 00 [12:39:51]MH_I2C_Read... [12:39:51]Read from MH i2c: D1 01 00 E3 5C 00 10 [12:39:51]Write to MH i2c: 01 00 00 E4 5C 40 [12:39:51]Write i2c OK [12:39:51]MH_I2C_Read... [12:39:51]OFD Sender: No OFD packet to send [12:39:51]*** Cut start [12:39:51]*** Partial cut [12:39:51]*** CUTSNS_PIN = 1 [12:39:51]*** CUTSNS_PIN = 0 [12:39:52]*** Brake cut motor [12:39:52]Read from MH i2c: 01 [12:39:52]MH_I2C_Read... [12:39:52]*** Stop cut motor [12:39:52]*** Cut end [12:39:52]Read from MH i2c: 01 07 00 [12:39:52]MH_I2C_Read... [12:39:52]Read from MH i2c: 01 07 00 E4 5C 00 00 00 00 00 FF 0F 55 [12:39:52]process_action close_receipt done [12:39:52]requested_data is exist [12:39:52]produce_requested_data [12:39:52]requested_item fm.sn is exist - process it [12:39:52]wFMCommunicate request_size=4 [12:39:52]MH_SAM_APDU [12:39:52]CAPDU: 80 11 00 00 [12:39:52]Write to MH i2c: E2 08 00 E5 5C 80 11 00 00 00 00 00 00 BB [12:39:52]Write i2c OK [12:39:52]MH_I2C_Read... [12:39:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:52]Read from MH i2c: E2 [12:39:52]MH_I2C_Read... [12:39:52]Read from MH i2c: E2 17 00 [12:39:52]MH_I2C_Read... [12:39:52]Read from MH i2c: E2 17 00 E5 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 16 [12:39:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:39:52]wFMCommunicate OK [12:39:52]requested_item fd.num is exist - process it [12:39:52]SAM_PROTO_GetFieldsCounters [12:39:52]wFMCommunicate request_size=4 [12:39:52]MH_SAM_APDU [12:39:52]CAPDU: 80 13 00 00 [12:39:52]Write to MH i2c: E2 08 00 E6 5C 80 13 00 00 00 00 00 00 BE [12:39:52]Write i2c OK [12:39:52]MH_I2C_Read... [12:39:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:52]Read from MH i2c: E2 [12:39:52]MH_I2C_Read... [12:39:52]Read from MH i2c: E2 62 00 [12:39:52]MH_I2C_Read... [12:39:52]Read from MH i2c: E2 62 00 E6 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B4 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [12:39:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B4 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:52]wFMCommunicate OK [12:39:52]SAM_PROTO_GetFieldsCounters done [12:39:52]requested_item shift.num is exist - process it [12:39:52]requested_item shift.opened is exist - process it [12:39:52]req_shift_opened [12:39:52]FM_GetShiftState [12:39:52]SAM_PROTO_GetShiftState [12:39:52]wFMCommunicate request_size=4 [12:39:52]MH_SAM_APDU [12:39:52]CAPDU: 80 13 01 00 [12:39:52]Write to MH i2c: E2 08 00 E7 5C 80 13 01 00 00 00 00 00 C0 [12:39:52]Write i2c OK [12:39:52]MH_I2C_Read... [12:39:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:52]Read from MH i2c: E2 [12:39:52]MH_I2C_Read... [12:39:52]Read from MH i2c: E2 0E 00 [12:39:52]MH_I2C_Read... [12:39:52]Read from MH i2c: E2 0E 00 E7 5C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 F9 [12:39:52]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [12:39:52]wFMCommunicate OK [12:39:52]SAM_PROTO_GetShiftState done [12:39:52]FM_GetShiftState done [12:39:52]req_shift_opened done [12:39:52]requested_item shift.open_date is exist - process it [12:39:52]req_shift_open_date [12:39:52]req_shift_open_date done [12:39:52]produce_requested_data done [12:39:52]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139956,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [12:39:52]process_action_free close_receipt [12:39:52]json_value_free [12:39:52]json_value_free done [12:39:52]process_json_proto returns [12:39:52]Send response to host [12:39:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139956,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [12:39:52]free response buf [12:39:52]execute_script done [12:39:52]execute_script returns [12:39:52]free content buf [12:39:52]Sock 10.Close socket [12:39:52]Sock 10.Thread stoped [12:39:56]OFD Sender: No OFD packet to send [12:40:01]OFD Sender: No OFD packet to send [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:26]OFD Sender: No OFD packet to send [12:40:31]OFD Sender: No OFD packet to send [12:40:36]OFD Sender: No OFD packet to send [12:40:41]OFD Sender: No OFD packet to send [12:40:46]OFD Sender: No OFD packet to send [12:40:51]OFD Sender: No OFD packet to send [12:40:56]OFD Sender: No OFD packet to send [12:41:01]OFD Sender: No OFD packet to send [12:41:06]OFD Sender: No OFD packet to send [12:41:11]OFD Sender: No OFD packet to send [12:41:16]OFD Sender: No OFD packet to send [12:41:21]OFD Sender: No OFD packet to send [12:41:26]OFD Sender: No OFD packet to send [12:41:31]OFD Sender: No OFD packet to send [12:41:36]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:46]OFD Sender: No OFD packet to send [12:44:51]OFD Sender: No OFD packet to send [12:44:56]OFD Sender: No OFD packet to send [12:45:01]OFD Sender: No OFD packet to send [12:45:06]OFD Sender: No OFD packet to send [12:45:11]OFD Sender: No OFD packet to send [12:45:16]OFD Sender: No OFD packet to send [12:45:21]OFD Sender: No OFD packet to send [12:45:26]OFD Sender: No OFD packet to send [12:45:31]OFD Sender: No OFD packet to send [12:45:36]OFD Sender: No OFD packet to send [12:45:41]OFD Sender: No OFD packet to send [12:45:46]OFD Sender: No OFD packet to send [12:45:51]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:46:01]OFD Sender: No OFD packet to send [12:46:06]OFD Sender: No OFD packet to send [12:46:12]OFD Sender: No OFD packet to send [12:46:17]OFD Sender: No OFD packet to send [12:46:22]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:32]OFD Sender: No OFD packet to send [12:46:37]OFD Sender: No OFD packet to send [12:46:42]OFD Sender: No OFD packet to send [12:46:47]OFD Sender: No OFD packet to send [12:46:52]OFD Sender: No OFD packet to send [12:46:57]OFD Sender: No OFD packet to send [12:47:02]OFD Sender: No OFD packet to send [12:47:07]OFD Sender: No OFD packet to send [12:47:12]OFD Sender: No OFD packet to send [12:47:17]OFD Sender: No OFD packet to send [12:47:22]OFD Sender: No OFD packet to send [12:47:27]OFD Sender: No OFD packet to send [12:47:32]OFD Sender: No OFD packet to send [12:47:37]OFD Sender: No OFD packet to send [12:47:42]OFD Sender: No OFD packet to send [12:47:47]OFD Sender: No OFD packet to send [12:47:52]OFD Sender: No OFD packet to send [12:47:57]OFD Sender: No OFD packet to send [12:48:02]OFD Sender: No OFD packet to send [12:48:07]OFD Sender: No OFD packet to send [12:48:12]OFD Sender: No OFD packet to send [12:48:17]OFD Sender: No OFD packet to send [12:48:22]OFD Sender: No OFD packet to send [12:48:27]OFD Sender: No OFD packet to send [12:48:32]OFD Sender: No OFD packet to send [12:48:37]OFD Sender: No OFD packet to send [12:48:42]OFD Sender: No OFD packet to send [12:48:47]OFD Sender: No OFD packet to send [12:48:52]OFD Sender: No OFD packet to send [12:48:57]OFD Sender: No OFD packet to send [12:49:02]OFD Sender: No OFD packet to send [12:49:07]OFD Sender: No OFD packet to send [12:49:12]OFD Sender: No OFD packet to send [12:49:17]OFD Sender: No OFD packet to send [12:49:22]OFD Sender: No OFD packet to send [12:49:27]OFD Sender: No OFD packet to send [12:49:32]OFD Sender: No OFD packet to send [12:49:37]OFD Sender: No OFD packet to send [12:49:42]OFD Sender: No OFD packet to send [12:49:47]OFD Sender: No OFD packet to send [12:49:52]OFD Sender: No OFD packet to send [12:49:57]OFD Sender: No OFD packet to send [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:22]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:22]OFD Sender: No OFD packet to send [12:52:27]OFD Sender: No OFD packet to send [12:52:32]OFD Sender: No OFD packet to send [12:52:37]OFD Sender: No OFD packet to send [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:02]OFD Sender: No OFD packet to send [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:42]OFD Sender: No OFD packet to send [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:17]OFD Sender: No OFD packet to send [13:02:22]OFD Sender: No OFD packet to send [13:02:27]OFD Sender: No OFD packet to send [13:02:32]OFD Sender: No OFD packet to send [13:02:37]OFD Sender: No OFD packet to send [13:02:42]OFD Sender: No OFD packet to send [13:02:47]OFD Sender: No OFD packet to send [13:02:52]OFD Sender: No OFD packet to send [13:02:57]OFD Sender: No OFD packet to send [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03:17]OFD Sender: No OFD packet to send [13:03:22]OFD Sender: No OFD packet to send [13:03:27]OFD Sender: No OFD packet to send [13:03:32]OFD Sender: No OFD packet to send [13:03:37]OFD Sender: No OFD packet to send [13:03:42]OFD Sender: No OFD packet to send [13:03:47]OFD Sender: No OFD packet to send [13:03:52]OFD Sender: No OFD packet to send [13:03:57]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:11]ConnectInit Can't connect to host [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:22]OFD Sender: No OFD packet to send [13:04:27]OFD Sender: No OFD packet to send [13:04:32]OFD Sender: No OFD packet to send [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:22]OFD Sender: No OFD packet to send [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:33]OFD Sender: No OFD packet to send [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:53]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:43]OFD Sender: No OFD packet to send [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:43]OFD Sender: No OFD packet to send [13:15:48]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:58]OFD Sender: No OFD packet to send [13:16:03]OFD Sender: No OFD packet to send [13:16:08]OFD Sender: No OFD packet to send [13:16:13]OFD Sender: No OFD packet to send [13:16:18]OFD Sender: No OFD packet to send [13:16:23]OFD Sender: No OFD packet to send [13:16:28]OFD Sender: No OFD packet to send [13:16:33]OFD Sender: No OFD packet to send [13:16:38]OFD Sender: No OFD packet to send [13:16:43]OFD Sender: No OFD packet to send [13:16:48]OFD Sender: No OFD packet to send [13:16:53]OFD Sender: No OFD packet to send [13:16:58]OFD Sender: No OFD packet to send [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:18:03]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:13]OFD Sender: No OFD packet to send [13:20:18]OFD Sender: No OFD packet to send [13:20:23]OFD Sender: No OFD packet to send [13:20:24]ConnectInit Can't connect to host [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:38]OFD Sender: No OFD packet to send [13:21:43]OFD Sender: No OFD packet to send [13:21:48]OFD Sender: No OFD packet to send [13:21:53]OFD Sender: No OFD packet to send [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]OFD Sender: No OFD packet to send [13:22:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]OFD Sender: No OFD packet to send [13:22:43]OFD Sender: No OFD packet to send [13:22:48]OFD Sender: No OFD packet to send [13:22:53]OFD Sender: No OFD packet to send [13:22:58]OFD Sender: No OFD packet to send [13:23:03]OFD Sender: No OFD packet to send [13:23:08]OFD Sender: No OFD packet to send [13:23:13]OFD Sender: No OFD packet to send [13:23:18]OFD Sender: No OFD packet to send [13:23:23]OFD Sender: No OFD packet to send [13:23:28]OFD Sender: No OFD packet to send [13:23:33]OFD Sender: No OFD packet to send [13:23:38]OFD Sender: No OFD packet to send [13:23:43]OFD Sender: No OFD packet to send [13:23:48]OFD Sender: No OFD packet to send [13:23:53]OFD Sender: No OFD packet to send [13:23:58]OFD Sender: No OFD packet to send [13:24:03]OFD Sender: No OFD packet to send [13:24:08]OFD Sender: No OFD packet to send [13:24:13]OFD Sender: No OFD packet to send [13:24:18]OFD Sender: No OFD packet to send [13:24:23]OFD Sender: No OFD packet to send [13:24:28]OFD Sender: No OFD packet to send [13:24:33]OFD Sender: No OFD packet to send [13:24:35]accept exits with 9 [13:24:35]New connection [13:24:35]New thread 3066510692 created [13:24:35]Thread 3066654052 joined [13:24:35]Waiting for new connection... [13:24:35] Sock 9.Parse request [13:24:35]Sock 9.Check first char [13:24:35]Sock 9.First char is OK [13:24:35]request: POST /json_proto HTTP/1.0 [13:24:35]Method: POST [13:24:35]URL: /json_proto [13:24:35]Method is POST - this is cgi request [13:24:35]url: /json_proto [13:24:35]query_string will be loaded in cgi processing [13:24:35]execute_cgi json_proto POST (null) [13:24:35]execute_cgi path=json_proto method=POST [13:24:35]POST find Content-Length [13:24:35]Host: 172.17.50.196:8080 [13:24:35]Content-Length: 654 [13:24:35]Content-Type: application/json [13:24:35] [13:24:35]POST finish read [13:24:35]Found Content-Length = 654 [13:24:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335773", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:35]execute_script... [13:24: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)335773", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:35]POST & json_proto [13:24:35]process_json_proto [13:24:35]json parsed OK: [13:24:35]protocol is kg_v1.0 [13:24:35]action value=close_receipt [13:24:35]process_action close_receipt [13:24:35]cmd_close_receipt [13:24:35]MH_GetDate [13:24:35]Write to MH i2c: F0 00 00 E8 5C 33 [13:24:35]Write i2c OK [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: F0 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: F0 09 00 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: F0 09 00 E8 5C 00 98 D6 24 67 72 0D 1C 67 37 [13:24:35]GetLastDocTimeStamp 1730464794 [13:24:35]current date 1730467480 [13:24:35]FM_GetShiftState [13:24:35]SAM_PROTO_GetShiftState [13:24:35]wFMCommunicate request_size=4 [13:24:35]MH_SAM_APDU [13:24:35]CAPDU: 80 13 01 00 [13:24:35]Write to MH i2c: E2 08 00 E9 5C 80 13 01 00 00 00 00 00 C2 [13:24:35]Write i2c OK [13:24:35]MH_I2C_Read... [13:24:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:35]Read from MH i2c: E2 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: E2 0E 00 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: E2 0E 00 E9 5C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 FB [13:24:35]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [13:24:35]wFMCommunicate OK [13:24:35]SAM_PROTO_GetShiftState done [13:24:35]FM_GetShiftState done [13:24:35]opened in 1730419081 [13:24:35]opened+sec_in_day 1730505481 [13:24:35]quantity*price = 15000 [13:24:35]sum+1 = 15001 [13:24:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 138 01.11.2024 13:24 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139957 ФПД: 267036566949566 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T132441&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139957&fm=267036566949566&tin=02508201610067®Number=0000000000091631&sum=15000 0 [13:24:36]StoreToDocumentArchive [13:24:36]shift 558 fd 139957 [13:24:36]save to /storage/0558/doc_00139957 [13:24:36]save last doc name /storage/0558/doc_00139957 to /storage/kkm_last_doc_name [13:24:36]save OK [13:24:36]Clear old archive folders... [13:24:36]ProcessDocumentItem done err = 0, tmpTLVsize=275 [13:24:36]tlvbuf is 00AB2FB0 [13:24:36]SAM_PROTO_ClearQueue [13:24:36]wFMCommunicate request_size=4 [13:24:36]MH_SAM_APDU [13:24:36]CAPDU: 80 09 00 00 [13:24:36]Write to MH i2c: E2 08 00 F6 5C 80 09 00 00 00 00 00 00 C4 [13:24:36]Write i2c OK [13:24:36]MH_I2C_Read... [13:24:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:36]Read from MH i2c: E2 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: E2 03 00 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: E2 03 00 F6 5C 00 90 00 C6 [13:24:36]RAPDU: 90 00 [13:24:36]wFMCommunicate OK [13:24:36]SAM_PROTO_ClearQueue done [13:24:36]KKMCreateOFDPacket [13:24:36]OFDProtocolAddRootSTLVToBuf [13:24:36]FM_MakeSignedData [13:24:36]FM_MakeSignedData [13:24:36]SAM_PROTO_SignData [13:24:36]wFMCommunicate request_size=4 [13:24:36]MH_SAM_APDU [13:24:36]CAPDU: 80 0D 01 02 [13:24:36]Write to MH i2c: E2 08 00 F7 5C 80 0D 01 02 00 00 00 00 CC [13:24:36]Write i2c OK [13:24:36]MH_I2C_Read... [13:24:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:36]Read from MH i2c: E2 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: E2 03 00 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: E2 03 00 F7 5C 00 90 00 C7 [13:24:36]RAPDU: 90 00 [13:24:36]wFMCommunicate OK [13:24:36]wFMCommunicate request_size=255 [13:24:36]MH_SAM_APDU [13:24:36]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 99 D6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 [13:24:36]Write to MH i2c: E2 02 01 F8 5C 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 99 D6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 00 00 F4 [13:24:36]Write i2c OK [13:24:36]MH_I2C_Read... [13:24:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:36]Read from MH i2c: E2 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: E2 03 00 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: E2 03 00 F8 5C 00 90 00 C8 [13:24:36]RAPDU: 90 00 [13:24:36]wFMCommunicate OK [13:24:36]wFMCommunicate request_size=34 [13:24:36]MH_SAM_APDU [13:24:36]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B5 22 02 00 35 04 06 00 F2 DE 4B B7 0E BE [13:24:36]Write to MH i2c: E2 25 00 F9 5C 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B5 22 02 00 35 04 06 00 F2 DE 4B B7 0E BE 00 00 0F [13:24:36]Write i2c OK [13:24:36]MH_I2C_Read... [13:24:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:36]Read from MH i2c: E2 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: E2 03 00 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: E2 03 00 F9 5C 00 90 00 C9 [13:24:36]RAPDU: 90 00 [13:24:36]wFMCommunicate OK [13:24:36]wFMCommunicate request_size=4 [13:24:36]MH_SAM_APDU [13:24:36]CAPDU: 80 0D 03 02 [13:24:36]Write to MH i2c: E2 08 00 FA 5C 80 0D 03 02 00 00 00 00 D1 [13:24:36]Write i2c OK [13:24:36]MH_I2C_Read... [13:24:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:36]Read from MH i2c: E2 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: E2 0B 00 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: E2 0B 00 FA 5C 00 E2 0F 78 68 1A C7 DF D4 90 00 37 [13:24:36]RAPDU: E2 0F 78 68 1A C7 DF D4 90 00 [13:24:36]wFMCommunicate OK [13:24:36]SAM_PROTO_SignData done [13:24:36]FM_MakeSignedData done [13:24:36]CreateOFDProtocolMessage [13:24:36]wFMCommunicate request_size=4 [13:24:36]MH_SAM_APDU [13:24:36]CAPDU: 80 11 00 00 [13:24:36]Write to MH i2c: E2 08 00 FB 5C 80 11 00 00 00 00 00 00 D1 [13:24:36]Write i2c OK [13:24:36]MH_I2C_Read... [13:24:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:36]Read from MH i2c: E2 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: E2 17 00 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: E2 17 00 FB 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2C [13:24:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:24:36]wFMCommunicate OK [13:24:36]CreateOFDProtocolMessage done [13:24:36]OFDSenderStorePacket 139957 [13:24:36]StoreOFDPacket docnum=139957 [13:24:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 27 01 00 00 78 97 1F 01 E4 D5 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 99 D6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B5 22 02 00 35 04 06 00 F2 DE 4B B7 0E BE E2 0F 78 68 1A C7 DF D4 [13:24:36]CheckFolder [13:24:36]dirname=/storage/ofd_packets [13:24:36]CheckFolder done [13:24:36]ProducePacketName [13:24:36]name=ofd_packets/00139957 [13:24:36]NVStorageSaveData ofd_packets/00139957 [13:24:36]File name is /storage/ofd_packets/00139957 [13:24:36]Write 325 bytes [13:24:36]NVStorageSaveData done [13:24:36]OFDSenderStorePacket done [13:24:36]KKMCreateOFDPacket done [13:24:36]NVStorageSaveData kkm_last_timestamp [13:24:36]File name is /storage/kkm_last_timestamp [13:24:36]Write 4 bytes [13:24:36]NVStorageSaveData done [13:24:36]ExternCall_PrintAddStr [13:24:36]wPrintStart [13:24:36]Write to MH i2c: 01 00 00 FC 5C 58 [13:24:36]Write i2c OK [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 07 00 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 07 00 FC 5C 00 00 00 00 00 FF 0F 6D [13:24:36]RasterBufferAndPrint [13:24:36]line Счет N : (3)335773 [13:24:36]line ИНН: 02508201610067 [13:24:36]line Контрольно-Кассовый Чек [13:24:36]line ПРОДАЖА [13:24:36]line Товар: 54491472 [13:24:36]line Напиток Кока-Кола 0,5л [13:24:36]line 2.000 * 75.00 [13:24:36]line = 150.00 [13:24:36]line НДС 12% НСП 1% [13:24:36]line > о реализуемом товаре [13:24:36]line ИТОГО: 150.00 [13:24:36]line НСП 1% : 1.33 [13:24:36]line НДС 12% : 15.93 [13:24:36]line Наличными: 150.00 [13:24:36]line Безнал.: 0.00 [13:24:36]line Место: АЗС № 101 "Партнер Нефть" [13:24:36]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:24:36]line СНО: Общий режим [13:24:36]line Чек 138 01.11.2024 13:24 [13:24:36]line Смена: 558 ФФД: 1.0 [13:24:36]line ЗНМ: 0300000081 [13:24:36]line РНМ: 0000000000091631 [13:24:36]line Версия ККМ: 001 [13:24:36]line ФМ: 0000000000874669 [13:24:36]line ФД: 139957 [13:24:36]line ФПД: 267036566949566 [13:24:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T132441&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139957&fm=267036566949566&tin=02508201610067®Number=0000000000091631&sum=15000 [13:24:37]OFD Sender: Processing packet 139957 [packets to send 34, broken 33] [13:24:37]ProducePacketName [13:24:37]name=ofd_packets/00139957 [13:24:37]OFD Sender: To server: pG, [13:24:37]CommunicateWithHost lk.salyk.kg:30040 [13:24:37]ConnectInit lk.salyk.kg [13:24:37]line 0 [13:24:37]written 0, free lines is 4095 [13:24:37]Connected sock=10 [13:24:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 27 01 00 00 78 97 1F 01 E4 D5 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 99 D6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B5 22 02 00 35 04 06 00 F2 DE 4B B7 0E BE E2 0F 78 68 1A C7 DF D4 [13:24:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 01 9A 47 00 10 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B5 22 02 00 F4 03 04 00 43 82 24 67 B6 04 01 00 00 48 13 71 32 B9 89 F5 6C [13:24:37]CommunicateWithHost err = 0 [13:24:37]CheckOFDResponse [13:24:37]1017 (14) - 77093643461234 [13:24:37]1041 (16) - 0000000000874669 [13:24:37]1040 (4) - 139957 [13:24:37]1012 (4) - 01.11.2024 07:24 [13:24:37]1206 (1) - 0 [13:24:37]OFD Sender: Remove packet 139957 [13:24:37]ProducePacketName [13:24:37]name=ofd_packets/00139957 [13:24:37]NVStorageDeleteData [13:24:37]Write to MH i2c: 01 00 00 24 5D 81 [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 24 5D 00 00 00 00 00 20 0D B5 [13:24:37]RasterBufferAndPrint [13:24:37]line [13:24:37]line [13:24:37]line [13:24:37]line [13:24:37]line [13:24:37]written 0, free lines is 3369 [13:24:37]MH_Cut [13:24:37]Write to MH i2c: D1 01 00 2B 5D 01 5A [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: D1 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: D1 01 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: D1 01 00 2B 5D 00 59 [13:24:37]Write to MH i2c: 01 00 00 2C 5D 89 [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:38]OFD Sender: No OFD packet to send [13:24:38]*** Cut start [13:24:38]*** Partial cut [13:24:38]*** CUTSNS_PIN = 1 [13:24:38]*** CUTSNS_PIN = 0 [13:24:38]*** Brake cut motor [13:24:38]Read from MH i2c: 01 [13:24:38]MH_I2C_Read... [13:24:38]*** Stop cut motor [13:24:38]*** Cut end [13:24:38]Read from MH i2c: 01 07 00 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: 01 07 00 2C 5D 00 00 00 00 00 FF 0F 9E [13:24:38]process_action close_receipt done [13:24:38]requested_data is exist [13:24:38]produce_requested_data [13:24:38]requested_item fm.sn is exist - process it [13:24:38]wFMCommunicate request_size=4 [13:24:38]MH_SAM_APDU [13:24:38]CAPDU: 80 11 00 00 [13:24:38]Write to MH i2c: E2 08 00 2D 5D 80 11 00 00 00 00 00 00 04 [13:24:38]Write i2c OK [13:24:38]MH_I2C_Read... [13:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:39]Read from MH i2c: E2 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: E2 17 00 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: E2 17 00 2D 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5F [13:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:24:39]wFMCommunicate OK [13:24:39]requested_item fd.num is exist - process it [13:24:39]SAM_PROTO_GetFieldsCounters [13:24:39]wFMCommunicate request_size=4 [13:24:39]MH_SAM_APDU [13:24:39]CAPDU: 80 13 00 00 [13:24:39]Write to MH i2c: E2 08 00 2E 5D 80 13 00 00 00 00 00 00 07 [13:24:39]Write i2c OK [13:24:39]MH_I2C_Read... [13:24:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:39]Read from MH i2c: E2 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: E2 62 00 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: E2 62 00 2E 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B5 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [13:24: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 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B5 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:39]wFMCommunicate OK [13:24:39]SAM_PROTO_GetFieldsCounters done [13:24:39]requested_item shift.num is exist - process it [13:24:39]requested_item shift.opened is exist - process it [13:24:39]req_shift_opened [13:24:39]FM_GetShiftState [13:24:39]SAM_PROTO_GetShiftState [13:24:39]wFMCommunicate request_size=4 [13:24:39]MH_SAM_APDU [13:24:39]CAPDU: 80 13 01 00 [13:24:39]Write to MH i2c: E2 08 00 2F 5D 80 13 01 00 00 00 00 00 09 [13:24:39]Write i2c OK [13:24:39]MH_I2C_Read... [13:24:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:39]Read from MH i2c: E2 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: E2 0E 00 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: E2 0E 00 2F 5D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 42 [13:24:39]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [13:24:39]wFMCommunicate OK [13:24:39]SAM_PROTO_GetShiftState done [13:24:39]FM_GetShiftState done [13:24:39]req_shift_opened done [13:24:39]requested_item shift.open_date is exist - process it [13:24:39]req_shift_open_date [13:24:39]req_shift_open_date done [13:24:39]produce_requested_data done [13:24:39]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139957,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [13:24:39]process_action_free close_receipt [13:24:39]json_value_free [13:24:39]json_value_free done [13:24:39]process_json_proto returns [13:24:39]Send response to host [13:24:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139957,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [13:24:39]free response buf [13:24:39]execute_script done [13:24:39]execute_script returns [13:24:39]free content buf [13:24:39]Sock 9.Close socket [13:24:39]Sock 9.Thread stoped [13:24:43]OFD Sender: No OFD packet to send [13:24:48]OFD Sender: No OFD packet to send [13:24:53]OFD Sender: No OFD packet to send [13:24:58]OFD Sender: No OFD packet to send [13:25:03]OFD Sender: No OFD packet to send [13:25:08]OFD Sender: No OFD packet to send [13:25:13]OFD Sender: No OFD packet to send [13:25:18]OFD Sender: No OFD packet to send [13:25:23]OFD Sender: No OFD packet to send [13:25:28]OFD Sender: No OFD packet to send [13:25:33]OFD Sender: No OFD packet to send [13:25:37]accept exits with 7 [13:25:37]New connection [13:25:37]New thread 3066654052 created [13:25:37]Thread 3066510692 joined [13:25:37]Waiting for new connection... [13:25:37] Sock 7.Parse request [13:25:37]Sock 7.Check first char [13:25:37]Sock 7.First char is OK [13:25:37]request: POST /json_proto HTTP/1.0 [13:25:37]Method: POST [13:25:37]URL: /json_proto [13:25:37]Method is POST - this is cgi request [13:25:37]url: /json_proto [13:25:37]query_string will be loaded in cgi processing [13:25:37]execute_cgi json_proto POST (null) [13:25:37]execute_cgi path=json_proto method=POST [13:25:37]POST find Content-Length [13:25:37]Host: 172.17.50.196:8080 [13:25:37]Content-Length: 770 [13:25:37]Content-Type: application/json [13:25:37] [13:25:37]POST finish read [13:25:37]Found Content-Length = 770 [13:25:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:37]execute_script... [13:25: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)1095929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:37]POST & json_proto [13:25:37]process_json_proto [13:25:37]json parsed OK: [13:25:37]protocol is kg_v1.0 [13:25:37]action value=close_receipt [13:25:37]process_action close_receipt [13:25:37]cmd_close_receipt [13:25:37]MH_GetDate [13:25:37]Write to MH i2c: F0 00 00 30 5D 7C [13:25:37]Write i2c OK [13:25:37]MH_I2C_Read... [13:25:37]Read from MH i2c: F0 [13:25:37]MH_I2C_Read... [13:25:37]Read from MH i2c: F0 09 00 [13:25:37]MH_I2C_Read... [13:25:37]Read from MH i2c: F0 09 00 30 5D 00 D7 D6 24 67 72 0D 1C 67 BF [13:25:37]GetLastDocTimeStamp 1730467481 [13:25:37]current date 1730467543 [13:25:37]FM_GetShiftState [13:25:37]SAM_PROTO_GetShiftState [13:25:37]wFMCommunicate request_size=4 [13:25:37]MH_SAM_APDU [13:25:37]CAPDU: 80 13 01 00 [13:25:37]Write to MH i2c: E2 08 00 31 5D 80 13 01 00 00 00 00 00 0B [13:25:37]Write i2c OK [13:25:37]MH_I2C_Read... [13:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:37]Read from MH i2c: E2 [13:25:37]MH_I2C_Read... [13:25:37]Read from MH i2c: E2 0E 00 [13:25:37]MH_I2C_Read... [13:25:37]Read from MH i2c: E2 0E 00 31 5D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 44 [13:25:37]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [13:25:37]wFMCommunicate OK [13:25:37]SAM_PROTO_GetShiftState done [13:25:37]FM_GetShiftState done [13:25:37]opened in 1730419081 [13:25:37]opened+sec_in_day 1730505481 [13:25:37]quantity*price = 150032 [13:25:37]sum+1 = 150033 [13:25:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.32 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 139 01.11.2024 13:25 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139958 ФПД: 151100194465309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T132543&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139958&fm=151100194465309&tin=02508201610067®Number=0000000000091631&sum=150032 [13:25:38]StoreToDocumentArchive [13:25:38]shift 558 fd 139958 [13:25:38]save to /storage/0558/doc_00139958 [13:25:38]save last doc name /storage/0558/doc_00139958 to /storage/kkm_last_doc_name [13:25:38]save OK [13:25:38]Clear old archive folders... [13:25:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:25:38]tlvbuf is 00BE2DB0 [13:25:38]SAM_PROTO_ClearQueue [13:25:38]wFMCommunicate request_size=4 [13:25:38]MH_SAM_APDU [13:25:38]CAPDU: 80 09 00 00 [13:25:38]Write to MH i2c: E2 08 00 3E 5D 80 09 00 00 00 00 00 00 0D [13:25:38]Write i2c OK [13:25:38]MH_I2C_Read... [13:25:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:38]Read from MH i2c: E2 [13:25:38]MH_I2C_Read... [13:25:38]Read from MH i2c: E2 03 00 [13:25:38]MH_I2C_Read... [13:25:38]Read from MH i2c: E2 03 00 3E 5D 00 90 00 0F [13:25:38]RAPDU: 90 00 [13:25:38]wFMCommunicate OK [13:25:38]SAM_PROTO_ClearQueue done [13:25:38]KKMCreateOFDPacket [13:25:38]OFDProtocolAddRootSTLVToBuf [13:25:38]FM_MakeSignedData [13:25:38]FM_MakeSignedData [13:25:38]SAM_PROTO_SignData [13:25:38]wFMCommunicate request_size=4 [13:25:38]MH_SAM_APDU [13:25:38]CAPDU: 80 0D 01 02 [13:25:38]Write to MH i2c: E2 08 00 3F 5D 80 0D 01 02 00 00 00 00 15 [13:25:38]Write i2c OK [13:25:38]MH_I2C_Read... [13:25:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:38]Read from MH i2c: E2 [13:25:38]MH_I2C_Read... [13:25:38]Read from MH i2c: E2 03 00 [13:25:38]MH_I2C_Read... [13:25:38]Read from MH i2c: E2 03 00 3F 5D 00 90 00 10 [13:25:38]RAPDU: 90 00 [13:25:38]wFMCommunicate OK [13:25:38]wFMCommunicate request_size=255 [13:25:38]MH_SAM_APDU [13:25:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 D7 D6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B6 22 02 00 35 04 06 00 89 [13:25:38]Write to MH i2c: E2 02 01 40 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 D7 D6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B6 22 02 00 35 04 06 00 89 00 00 A0 [13:25:38]Write i2c OK [13:25:38]MH_I2C_Read... [13:25:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:39]Read from MH i2c: E2 [13:25:39]MH_I2C_Read... [13:25:39]Read from MH i2c: E2 03 00 [13:25:39]MH_I2C_Read... [13:25:39]Read from MH i2c: E2 03 00 40 5D 00 90 00 11 [13:25:39]RAPDU: 90 00 [13:25:39]wFMCommunicate OK [13:25:39]wFMCommunicate request_size=10 [13:25:39]MH_SAM_APDU [13:25:39]CAPDU: 80 0D 02 02 05 6C C1 6A A6 1D [13:25:39]Write to MH i2c: E2 0D 00 41 5D 80 0D 02 02 05 00 6C C1 6A A6 1D 00 00 7C [13:25:39]Write i2c OK [13:25:39]MH_I2C_Read... [13:25:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:39]Read from MH i2c: E2 [13:25:39]MH_I2C_Read... [13:25:39]Read from MH i2c: E2 03 00 [13:25:39]MH_I2C_Read... [13:25:39]Read from MH i2c: E2 03 00 41 5D 00 90 00 12 [13:25:39]RAPDU: 90 00 [13:25:39]wFMCommunicate OK [13:25:39]wFMCommunicate request_size=4 [13:25:39]MH_SAM_APDU [13:25:39]CAPDU: 80 0D 03 02 [13:25:39]Write to MH i2c: E2 08 00 42 5D 80 0D 03 02 00 00 00 00 1A [13:25:39]Write i2c OK [13:25:39]MH_I2C_Read... [13:25:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:39]Read from MH i2c: E2 [13:25:39]MH_I2C_Read... [13:25:39]Read from MH i2c: E2 0B 00 [13:25:39]MH_I2C_Read... [13:25:39]Read from MH i2c: E2 0B 00 42 5D 00 D0 4B 34 90 25 01 F8 CB 90 00 E3 [13:25:39]RAPDU: D0 4B 34 90 25 01 F8 CB 90 00 [13:25:39]wFMCommunicate OK [13:25:39]SAM_PROTO_SignData done [13:25:39]FM_MakeSignedData done [13:25:39]CreateOFDProtocolMessage [13:25:39]wFMCommunicate request_size=4 [13:25:39]MH_SAM_APDU [13:25:39]CAPDU: 80 11 00 00 [13:25:39]Write to MH i2c: E2 08 00 43 5D 80 11 00 00 00 00 00 00 1A [13:25:39]Write i2c OK [13:25:39]MH_I2C_Read... [13:25:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:39]Read from MH i2c: E2 [13:25:39]MH_I2C_Read... [13:25:39]Read from MH i2c: E2 17 00 [13:25:39]MH_I2C_Read... [13:25:39]Read from MH i2c: E2 17 00 43 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 75 [13:25:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:25:39]wFMCommunicate OK [13:25:39]CreateOFDProtocolMessage done [13:25:39]OFDSenderStorePacket 139958 [13:25:39]StoreOFDPacket docnum=139958 [13:25:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 17 92 07 01 14 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 D7 D6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B6 22 02 00 35 04 06 00 89 6C C1 6A A6 1D D0 4B 34 90 25 01 F8 CB [13:25:39]CheckFolder [13:25:39]dirname=/storage/ofd_packets [13:25:39]CheckFolder done [13:25:39]ProducePacketName [13:25:39]name=ofd_packets/00139958 [13:25:39]NVStorageSaveData ofd_packets/00139958 [13:25:39]File name is /storage/ofd_packets/00139958 [13:25:39]Write 301 bytes [13:25:39]NVStorageSaveData done [13:25:39]OFDSenderStorePacket done [13:25:39]KKMCreateOFDPacket done [13:25:39]NVStorageSaveData kkm_last_timestamp [13:25:39]File name is /storage/kkm_last_timestamp [13:25:39]Write 4 bytes [13:25:39]NVStorageSaveData done [13:25:39]ExternCall_PrintAddStr [13:25:39]wPrintStart [13:25:39]Write to MH i2c: 01 00 00 44 5D A1 [13:25:39]Write i2c OK [13:25:39]MH_I2C_Read... [13:25:39]Read from MH i2c: 01 [13:25:39]MH_I2C_Read... [13:25:39]Read from MH i2c: 01 07 00 [13:25:39]MH_I2C_Read... [13:25:39]Read from MH i2c: 01 07 00 44 5D 00 00 00 00 00 FF 0F B6 [13:25:39]RasterBufferAndPrint [13:25:39]line Счет N : (1)1095929 [13:25:39]line ИНН: 02508201610067 [13:25:39]line Контрольно-Кассовый Чек [13:25:39]line ПРОДАЖА [13:25:39]line ТРК (МРК, ГНК) : 44 [13:25:39]line Товар: 2710124500 [13:25:39]line Аи-95-К-3 [13:25:39]line 20.220 * 74.20 [13:25:39]line = 1500.32 [13:25:39]line НДС 12% НСП 1% [13:25:39]line > о реализуемом товаре [13:25:39]line ИТОГО: 1500.32 [13:25:39]line НСП 1% : 13.28 [13:25:39]line НДС 12% : 159.33 [13:25:39]line Наличными: 0.00 [13:25:39]line Безнал.: 1500.32 [13:25:39]line Место: АЗС № 101 "Партнер Нефть" [13:25:39]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:25:39]line СНО: Общий режим [13:25:39]line Чек 139 01.11.2024 13:25 [13:25:39]line Смена: 558 ФФД: 1.0 [13:25:39]line ЗНМ: 0300000081 [13:25:39]line РНМ: 0000000000091631 [13:25:39]line Версия ККМ: 001 [13:25:39]line Платежная система: Mbank [13:25:39]line ФМ: 0000000000874669 [13:25:39]line ФД: 139958 [13:25:39]line ФПД: 151100194465309 [13:25:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T132543&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139958&fm=151100194465309&tin=02508201610067®Number=0000000000091631&sum=150032 [13:25:39]OFD Sender: Processing packet 139958 [packets to send 34, broken 33] [13:25:39]ProducePacketName [13:25:39]name=ofd_packets/00139958 [13:25:39]OFD Sender: To server: pG, [13:25:39]CommunicateWithHost lk.salyk.kg:30040 [13:25:39]ConnectInit lk.salyk.kg [13:25:39]written 0, free lines is 4095 [13:25:39]Connected sock=10 [13:25:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 17 92 07 01 14 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 D7 D6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B6 22 02 00 35 04 06 00 89 6C C1 6A A6 1D D0 4B 34 90 25 01 F8 CB [13:25:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 12 3E 47 00 64 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B6 22 02 00 F4 03 04 00 82 82 24 67 B6 04 01 00 00 80 C7 94 19 CB 0F FB 72 [13:25:39]CommunicateWithHost err = 0 [13:25:39]CheckOFDResponse [13:25:39]1017 (14) - 77093643461234 [13:25:39]1041 (16) - 0000000000874669 [13:25:39]1040 (4) - 139958 [13:25:39]1012 (4) - 01.11.2024 07:25 [13:25:39]1206 (1) - 0 [13:25:39]OFD Sender: Remove packet 139958 [13:25:39]ProducePacketName [13:25:39]name=ofd_packets/00139958 [13:25:39]NVStorageDeleteData [13:25:40]Write to MH i2c: 01 00 00 6D 5D CA [13:25:40]Write i2c OK [13:25:40]MH_I2C_Read... [13:25:40]Read from MH i2c: 01 [13:25:40]MH_I2C_Read... [13:25:40]Read from MH i2c: 01 07 00 [13:25:40]MH_I2C_Read... [13:25:40]Read from MH i2c: 01 07 00 6D 5D 00 00 00 00 00 27 0D 05 [13:25:40]RasterBufferAndPrint [13:25:40]line [13:25:40]line [13:25:40]line [13:25:40]line [13:25:40]line [13:25:40]written 0, free lines is 3373 [13:25:40]MH_Cut [13:25:40]Write to MH i2c: D1 01 00 74 5D 01 A3 [13:25:40]Write i2c OK [13:25:40]MH_I2C_Read... [13:25:40]Read from MH i2c: D1 [13:25:40]MH_I2C_Read... [13:25:40]Read from MH i2c: D1 01 00 [13:25:40]MH_I2C_Read... [13:25:40]Read from MH i2c: D1 01 00 74 5D 00 A2 [13:25:40]Write to MH i2c: 01 00 00 75 5D D2 [13:25:40]Write i2c OK [13:25:40]MH_I2C_Read... [13:25:40]OFD Sender: No OFD packet to send [13:25:40]*** Cut start [13:25:40]*** Partial cut [13:25:40]*** CUTSNS_PIN = 1 [13:25:40]*** CUTSNS_PIN = 0 [13:25:41]*** Brake cut motor [13:25:41]Read from MH i2c: 01 [13:25:41]MH_I2C_Read... [13:25:41]*** Stop cut motor [13:25:41]*** Cut end [13:25:41]Read from MH i2c: 01 07 00 [13:25:41]MH_I2C_Read... [13:25:41]Read from MH i2c: 01 07 00 75 5D 00 00 00 00 00 FF 0F E7 [13:25:41]process_action close_receipt done [13:25:41]requested_data is exist [13:25:41]produce_requested_data [13:25:41]requested_item fm.sn is exist - process it [13:25:41]wFMCommunicate request_size=4 [13:25:41]MH_SAM_APDU [13:25:41]CAPDU: 80 11 00 00 [13:25:41]Write to MH i2c: E2 08 00 76 5D 80 11 00 00 00 00 00 00 4D [13:25:41]Write i2c OK [13:25:41]MH_I2C_Read... [13:25:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:41]Read from MH i2c: E2 [13:25:41]MH_I2C_Read... [13:25:41]Read from MH i2c: E2 17 00 [13:25:41]MH_I2C_Read... [13:25:41]Read from MH i2c: E2 17 00 76 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A8 [13:25:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:25:41]wFMCommunicate OK [13:25:41]requested_item fd.num is exist - process it [13:25:41]SAM_PROTO_GetFieldsCounters [13:25:41]wFMCommunicate request_size=4 [13:25:41]MH_SAM_APDU [13:25:41]CAPDU: 80 13 00 00 [13:25:41]Write to MH i2c: E2 08 00 77 5D 80 13 00 00 00 00 00 00 50 [13:25:41]Write i2c OK [13:25:41]MH_I2C_Read... [13:25:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:41]Read from MH i2c: E2 [13:25:41]MH_I2C_Read... [13:25:41]Read from MH i2c: E2 62 00 [13:25:41]MH_I2C_Read... [13:25:41]Read from MH i2c: E2 62 00 77 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B6 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [13:25:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B6 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:41]wFMCommunicate OK [13:25:41]SAM_PROTO_GetFieldsCounters done [13:25:41]requested_item shift.num is exist - process it [13:25:41]requested_item shift.opened is exist - process it [13:25:41]req_shift_opened [13:25:41]FM_GetShiftState [13:25:41]SAM_PROTO_GetShiftState [13:25:41]wFMCommunicate request_size=4 [13:25:41]MH_SAM_APDU [13:25:41]CAPDU: 80 13 01 00 [13:25:41]Write to MH i2c: E2 08 00 78 5D 80 13 01 00 00 00 00 00 52 [13:25:41]Write i2c OK [13:25:41]MH_I2C_Read... [13:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:41]Read from MH i2c: E2 [13:25:41]MH_I2C_Read... [13:25:41]Read from MH i2c: E2 0E 00 [13:25:41]MH_I2C_Read... [13:25:41]Read from MH i2c: E2 0E 00 78 5D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 8B [13:25:41]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [13:25:41]wFMCommunicate OK [13:25:41]SAM_PROTO_GetShiftState done [13:25:41]FM_GetShiftState done [13:25:41]req_shift_opened done [13:25:41]requested_item shift.open_date is exist - process it [13:25:41]req_shift_open_date [13:25:41]req_shift_open_date done [13:25:41]produce_requested_data done [13:25:41]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139958,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [13:25:41]process_action_free close_receipt [13:25:41]json_value_free [13:25:41]json_value_free done [13:25:41]process_json_proto returns [13:25:41]Send response to host [13:25:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139958,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [13:25:41]free response buf [13:25:41]execute_script done [13:25:41]execute_script returns [13:25:41]free content buf [13:25:41]Sock 7.Close socket [13:25:41]Sock 7.Thread stoped [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:13]accept exits with 9 [13:27:13]New connection [13:27:13]New thread 3066510692 created [13:27:13]Thread 3066654052 joined [13:27:13]Waiting for new connection... [13:27:13] Sock 9.Parse request [13:27:13]Sock 9.Check first char [13:27:13]Sock 9.First char is OK [13:27:13]request: POST /json_proto HTTP/1.0 [13:27:13]Method: POST [13:27:13]URL: /json_proto [13:27:13]Method is POST - this is cgi request [13:27:13]url: /json_proto [13:27:13]query_string will be loaded in cgi processing [13:27:13]execute_cgi json_proto POST (null) [13:27:13]execute_cgi path=json_proto method=POST [13:27:13]POST find Content-Length [13:27:13]Host: 172.17.50.196:8080 [13:27:13]Content-Length: 755 [13:27:13]Content-Type: application/json [13:27:13] [13:27:13]POST finish read [13:27:13]Found Content-Length = 755 [13:27:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335774", "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: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:13]execute_script... [13:27: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)335774", "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: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:13]POST & json_proto [13:27:13]process_json_proto [13:27:13]json parsed OK: [13:27:13]protocol is kg_v1.0 [13:27:13]action value=close_receipt [13:27:13]process_action close_receipt [13:27:13]cmd_close_receipt [13:27:13]MH_GetDate [13:27:13]Write to MH i2c: F0 00 00 79 5D C5 [13:27:13]Write i2c OK [13:27:13]MH_I2C_Read... [13:27:13]Read from MH i2c: F0 [13:27:13]MH_I2C_Read... [13:27:13]Read from MH i2c: F0 09 00 [13:27:13]MH_I2C_Read... [13:27:13]Read from MH i2c: F0 09 00 79 5D 00 37 D7 24 67 72 0D 1C 67 69 [13:27:13]GetLastDocTimeStamp 1730467543 [13:27:13]current date 1730467639 [13:27:13]FM_GetShiftState [13:27:13]SAM_PROTO_GetShiftState [13:27:13]wFMCommunicate request_size=4 [13:27:13]MH_SAM_APDU [13:27:13]CAPDU: 80 13 01 00 [13:27:13]Write to MH i2c: E2 08 00 7A 5D 80 13 01 00 00 00 00 00 54 [13:27:13]Write i2c OK [13:27:13]MH_I2C_Read... [13:27:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:13]Read from MH i2c: E2 [13:27:13]MH_I2C_Read... [13:27:13]Read from MH i2c: E2 0E 00 [13:27:13]MH_I2C_Read... [13:27:13]Read from MH i2c: E2 0E 00 7A 5D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 8D [13:27:13]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [13:27:13]wFMCommunicate OK [13:27:13]SAM_PROTO_GetShiftState done [13:27:13]FM_GetShiftState done [13:27:13]opened in 1730419081 [13:27:13]opened+sec_in_day 1730505481 [13:27:13]quantity*price = 13000 [13:27:13]sum+1 = 13001 [13:27:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 140 01.11.2024 13:27 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139959 ФПД: 105957732267662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T132719&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139959&fm=105957732267662&tin=02508201610067®Number=0000000000091631&sum=13000 0 [13:27:14]StoreToDocumentArchive [13:27:14]shift 558 fd 139959 [13:27:14]save to /storage/0558/doc_00139959 [13:27:14]save last doc name /storage/0558/doc_00139959 to /storage/kkm_last_doc_name [13:27:14]save OK [13:27:14]Clear old archive folders... [13:27:14]ProcessDocumentItem done err = 0, tmpTLVsize=276 [13:27:14]tlvbuf is 00B0DC20 [13:27:14]SAM_PROTO_ClearQueue [13:27:14]wFMCommunicate request_size=4 [13:27:14]MH_SAM_APDU [13:27:14]CAPDU: 80 09 00 00 [13:27:14]Write to MH i2c: E2 08 00 87 5D 80 09 00 00 00 00 00 00 56 [13:27:14]Write i2c OK [13:27:14]MH_I2C_Read... [13:27:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:14]Read from MH i2c: E2 [13:27:14]MH_I2C_Read... [13:27:14]Read from MH i2c: E2 03 00 [13:27:14]MH_I2C_Read... [13:27:14]Read from MH i2c: E2 03 00 87 5D 00 90 00 58 [13:27:14]RAPDU: 90 00 [13:27:14]wFMCommunicate OK [13:27:14]SAM_PROTO_ClearQueue done [13:27:14]KKMCreateOFDPacket [13:27:14]OFDProtocolAddRootSTLVToBuf [13:27:14]FM_MakeSignedData [13:27:14]FM_MakeSignedData [13:27:14]SAM_PROTO_SignData [13:27:14]wFMCommunicate request_size=4 [13:27:14]MH_SAM_APDU [13:27:14]CAPDU: 80 0D 01 02 [13:27:14]Write to MH i2c: E2 08 00 88 5D 80 0D 01 02 00 00 00 00 5E [13:27:14]Write i2c OK [13:27:14]MH_I2C_Read... [13:27:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:14]Read from MH i2c: E2 [13:27:14]MH_I2C_Read... [13:27:14]Read from MH i2c: E2 03 00 [13:27:14]MH_I2C_Read... [13:27:14]Read from MH i2c: E2 03 00 88 5D 00 90 00 59 [13:27:14]RAPDU: 90 00 [13:27:14]wFMCommunicate OK [13:27:14]wFMCommunicate request_size=255 [13:27:14]MH_SAM_APDU [13:27:14]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 8C 00 00 00 F4 03 04 00 37 D7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 [13:27:14]Write to MH i2c: E2 02 01 89 5D 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 8C 00 00 00 F4 03 04 00 37 D7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 00 00 C9 [13:27:14]Write i2c OK [13:27:14]MH_I2C_Read... [13:27:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:14]Read from MH i2c: E2 [13:27:14]MH_I2C_Read... [13:27:14]Read from MH i2c: E2 03 00 [13:27:14]MH_I2C_Read... [13:27:14]Read from MH i2c: E2 03 00 89 5D 00 90 00 5A [13:27:14]RAPDU: 90 00 [13:27:14]wFMCommunicate OK [13:27:14]wFMCommunicate request_size=35 [13:27:14]MH_SAM_APDU [13:27:14]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B7 22 02 00 35 04 06 00 60 5E 34 FE 36 8E [13:27:14]Write to MH i2c: E2 26 00 8A 5D 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B7 22 02 00 35 04 06 00 60 5E 34 FE 36 8E 00 00 EB [13:27:14]Write i2c OK [13:27:14]MH_I2C_Read... [13:27:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:14]Read from MH i2c: E2 [13:27:14]MH_I2C_Read... [13:27:14]Read from MH i2c: E2 03 00 [13:27:14]MH_I2C_Read... [13:27:14]Read from MH i2c: E2 03 00 8A 5D 00 90 00 5B [13:27:14]RAPDU: 90 00 [13:27:14]wFMCommunicate OK [13:27:14]wFMCommunicate request_size=4 [13:27:14]MH_SAM_APDU [13:27:14]CAPDU: 80 0D 03 02 [13:27:14]Write to MH i2c: E2 08 00 8B 5D 80 0D 03 02 00 00 00 00 63 [13:27:14]Write i2c OK [13:27:14]MH_I2C_Read... [13:27:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:14]Read from MH i2c: E2 [13:27:14]MH_I2C_Read... [13:27:14]Read from MH i2c: E2 0B 00 [13:27:14]MH_I2C_Read... [13:27:14]Read from MH i2c: E2 0B 00 8B 5D 00 C6 36 DC E8 42 B4 33 7F 90 00 CC [13:27:14]RAPDU: C6 36 DC E8 42 B4 33 7F 90 00 [13:27:14]wFMCommunicate OK [13:27:14]SAM_PROTO_SignData done [13:27:14]FM_MakeSignedData done [13:27:14]CreateOFDProtocolMessage [13:27:14]wFMCommunicate request_size=4 [13:27:14]MH_SAM_APDU [13:27:14]CAPDU: 80 11 00 00 [13:27:14]Write to MH i2c: E2 08 00 8C 5D 80 11 00 00 00 00 00 00 63 [13:27:14]Write i2c OK [13:27:14]MH_I2C_Read... [13:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:15]Read from MH i2c: E2 [13:27:15]MH_I2C_Read... [13:27:15]Read from MH i2c: E2 17 00 [13:27:15]MH_I2C_Read... [13:27:15]Read from MH i2c: E2 17 00 8C 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BE [13:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:27:15]wFMCommunicate OK [13:27:15]CreateOFDProtocolMessage done [13:27:15]OFDSenderStorePacket 139959 [13:27:15]StoreOFDPacket docnum=139959 [13:27:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 28 01 00 00 27 31 20 01 01 EA 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 8C 00 00 00 F4 03 04 00 37 D7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B7 22 02 00 35 04 06 00 60 5E 34 FE 36 8E C6 36 DC E8 42 B4 33 7F [13:27:15]CheckFolder [13:27:15]dirname=/storage/ofd_packets [13:27:15]CheckFolder done [13:27:15]ProducePacketName [13:27:15]name=ofd_packets/00139959 [13:27:15]NVStorageSaveData ofd_packets/00139959 [13:27:15]File name is /storage/ofd_packets/00139959 [13:27:15]Write 326 bytes [13:27:15]NVStorageSaveData done [13:27:15]OFDSenderStorePacket done [13:27:15]KKMCreateOFDPacket done [13:27:15]NVStorageSaveData kkm_last_timestamp [13:27:15]File name is /storage/kkm_last_timestamp [13:27:15]Write 4 bytes [13:27:15]NVStorageSaveData done [13:27:15]ExternCall_PrintAddStr [13:27:15]wPrintStart [13:27:15]Write to MH i2c: 01 00 00 8D 5D EA [13:27:15]Write i2c OK [13:27:15]MH_I2C_Read... [13:27:15]Read from MH i2c: 01 [13:27:15]MH_I2C_Read... [13:27:15]Read from MH i2c: 01 07 00 [13:27:15]MH_I2C_Read... [13:27:15]Read from MH i2c: 01 07 00 8D 5D 00 00 00 00 00 FF 0F FF [13:27:15]RasterBufferAndPrint [13:27:15]line Счет N : (3)335774 [13:27:15]line ИНН: 02508201610067 [13:27:15]line Контрольно-Кассовый Чек [13:27:15]line ПРОДАЖА [13:27:15]line Товар: 2000036230011 [13:27:15]line Кофе Латте XL(GABB TRADE) [13:27:15]line 1.000 * 130.00 [13:27:15]line = 130.00 [13:27:15]line НДС 12% НСП 1% [13:27:15]line > о реализуемом товаре [13:27:15]line ИТОГО: 130.00 [13:27:15]line НСП 1% : 1.15 [13:27:15]line НДС 12% : 13.80 [13:27:15]line Наличными: 0.00 [13:27:15]line Безнал.: 130.00 [13:27:15]line Место: АЗС № 101 "Партнер Нефть" [13:27:15]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:27:15]line СНО: Общий режим [13:27:15]line Чек 140 01.11.2024 13:27 [13:27:15]line Смена: 558 ФФД: 1.0 [13:27:15]line ЗНМ: 0300000081 [13:27:15]line РНМ: 0000000000091631 [13:27:15]line Версия ККМ: 001 [13:27:15]line Платежная система: Mbank [13:27:15]line ФМ: 0000000000874669 [13:27:15]line ФД: 139959 [13:27:15]line ФПД: 105957732267662 [13:27:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T132719&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139959&fm=105957732267662&tin=02508201610067®Number=0000000000091631&sum=13000 [13:27:15]line 0 [13:27:15]OFD Sender: Processing packet 139959 [packets to send 34, broken 33] [13:27:15]ProducePacketName [13:27:15]name=ofd_packets/00139959 [13:27:15]OFD Sender: To server: pG, [13:27:15]CommunicateWithHost lk.salyk.kg:30040 [13:27:15]ConnectInit lk.salyk.kg [13:27:15]written 0, free lines is 4095 [13:27:15]Connected sock=10 [13:27:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 28 01 00 00 27 31 20 01 01 EA 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 8C 00 00 00 F4 03 04 00 37 D7 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B7 22 02 00 35 04 06 00 60 5E 34 FE 36 8E C6 36 DC E8 42 B4 33 7F [13:27:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 65 E3 47 00 FA BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B7 22 02 00 F4 03 04 00 E2 82 24 67 B6 04 01 00 00 A8 74 06 FE D8 48 E3 B6 [13:27:15]CommunicateWithHost err = 0 [13:27:15]CheckOFDResponse [13:27:15]1017 (14) - 77093643461234 [13:27:15]1041 (16) - 0000000000874669 [13:27:15]1040 (4) - 139959 [13:27:15]1012 (4) - 01.11.2024 07:27 [13:27:15]1206 (1) - 0 [13:27:15]OFD Sender: Remove packet 139959 [13:27:15]ProducePacketName [13:27:15]name=ofd_packets/00139959 [13:27:15]NVStorageDeleteData [13:27:15]Write to MH i2c: 01 00 00 B6 5D 13 [13:27:15]Write i2c OK [13:27:15]MH_I2C_Read... [13:27:15]Read from MH i2c: 01 [13:27:15]MH_I2C_Read... [13:27:15]Read from MH i2c: 01 07 00 [13:27:15]MH_I2C_Read... [13:27:15]Read from MH i2c: 01 07 00 B6 5D 00 00 00 00 00 0F 0D 36 [13:27:15]RasterBufferAndPrint [13:27:15]line [13:27:15]line [13:27:15]line [13:27:15]line [13:27:15]line [13:27:15]written 0, free lines is 3350 [13:27:15]MH_Cut [13:27:15]Write to MH i2c: D1 01 00 BD 5D 01 EC [13:27:15]Write i2c OK [13:27:15]MH_I2C_Read... [13:27:15]Read from MH i2c: D1 [13:27:15]MH_I2C_Read... [13:27:15]Read from MH i2c: D1 01 00 [13:27:15]MH_I2C_Read... [13:27:15]Read from MH i2c: D1 01 00 BD 5D 00 EB [13:27:15]Write to MH i2c: 01 00 00 BE 5D 1B [13:27:15]Write i2c OK [13:27:15]MH_I2C_Read... [13:27:16]OFD Sender: No OFD packet to send [13:27:16]*** Cut start [13:27:16]*** Partial cut [13:27:16]*** CUTSNS_PIN = 1 [13:27:16]*** CUTSNS_PIN = 0 [13:27:16]*** Brake cut motor [13:27:17]Read from MH i2c: 01 [13:27:17]MH_I2C_Read... [13:27:17]*** Stop cut motor [13:27:17]*** Cut end [13:27:17]Read from MH i2c: 01 07 00 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: 01 07 00 BE 5D 00 00 00 00 00 FF 0F 30 [13:27:17]process_action close_receipt done [13:27:17]requested_data is exist [13:27:17]produce_requested_data [13:27:17]requested_item fm.sn is exist - process it [13:27:17]wFMCommunicate request_size=4 [13:27:17]MH_SAM_APDU [13:27:17]CAPDU: 80 11 00 00 [13:27:17]Write to MH i2c: E2 08 00 BF 5D 80 11 00 00 00 00 00 00 96 [13:27:17]Write i2c OK [13:27:17]MH_I2C_Read... [13:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:17]Read from MH i2c: E2 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: E2 17 00 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: E2 17 00 BF 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F1 [13:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:27:17]wFMCommunicate OK [13:27:17]requested_item fd.num is exist - process it [13:27:17]SAM_PROTO_GetFieldsCounters [13:27:17]wFMCommunicate request_size=4 [13:27:17]MH_SAM_APDU [13:27:17]CAPDU: 80 13 00 00 [13:27:17]Write to MH i2c: E2 08 00 C0 5D 80 13 00 00 00 00 00 00 99 [13:27:17]Write i2c OK [13:27:17]MH_I2C_Read... [13:27:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:17]Read from MH i2c: E2 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: E2 62 00 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: E2 62 00 C0 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B7 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [13: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 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B7 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:27:17]wFMCommunicate OK [13:27:17]SAM_PROTO_GetFieldsCounters done [13:27:17]requested_item shift.num is exist - process it [13:27:17]requested_item shift.opened is exist - process it [13:27:17]req_shift_opened [13:27:17]FM_GetShiftState [13:27:17]SAM_PROTO_GetShiftState [13:27:17]wFMCommunicate request_size=4 [13:27:17]MH_SAM_APDU [13:27:17]CAPDU: 80 13 01 00 [13:27:17]Write to MH i2c: E2 08 00 C1 5D 80 13 01 00 00 00 00 00 9B [13:27:17]Write i2c OK [13:27:17]MH_I2C_Read... [13:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:17]Read from MH i2c: E2 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: E2 0E 00 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: E2 0E 00 C1 5D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 D4 [13:27:17]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [13:27:17]wFMCommunicate OK [13:27:17]SAM_PROTO_GetShiftState done [13:27:17]FM_GetShiftState done [13:27:17]req_shift_opened done [13:27:17]requested_item shift.open_date is exist - process it [13:27:17]req_shift_open_date [13:27:17]req_shift_open_date done [13:27:17]produce_requested_data done [13:27:17]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139959,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [13:27:17]process_action_free close_receipt [13:27:17]json_value_free [13:27:17]json_value_free done [13:27:17]process_json_proto returns [13:27:17]Send response to host [13:27:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139959,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [13:27:17]free response buf [13:27:17]execute_script done [13:27:17]execute_script returns [13:27:17]free content buf [13:27:17]Sock 9.Close socket [13:27:17]Sock 9.Thread stoped [13:27:21]OFD Sender: No OFD packet to send [13:27:26]OFD Sender: No OFD packet to send [13:27:31]OFD Sender: No OFD packet to send [13:27:36]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:51]OFD Sender: No OFD packet to send [13:28:56]OFD Sender: No OFD packet to send [13:29:01]OFD Sender: No OFD packet to send [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:16]OFD Sender: No OFD packet to send [13:29:21]OFD Sender: No OFD packet to send [13:29:26]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:30:01]OFD Sender: No OFD packet to send [13:30:06]OFD Sender: No OFD packet to send [13:30:11]OFD Sender: No OFD packet to send [13:30:16]OFD Sender: No OFD packet to send [13:30:21]OFD Sender: No OFD packet to send [13:30:26]OFD Sender: No OFD packet to send [13:30:31]OFD Sender: No OFD packet to send [13:30:36]OFD Sender: No OFD packet to send [13:30:41]OFD Sender: No OFD packet to send [13:30:46]OFD Sender: No OFD packet to send [13:30:51]OFD Sender: No OFD packet to send [13:30:56]OFD Sender: No OFD packet to send [13:31:01]OFD Sender: No OFD packet to send [13:31:06]OFD Sender: No OFD packet to send [13:31:09]accept exits with 7 [13:31:09]New connection [13:31:09]New thread 3066654052 created [13:31:09]Thread 3066510692 joined [13:31:09]Waiting for new connection... [13:31:09] Sock 7.Parse request [13:31:09]Sock 7.Check first char [13:31:09]Sock 7.First char is OK [13:31:09]request: POST /json_proto HTTP/1.0 [13:31:09]Method: POST [13:31:09]URL: /json_proto [13:31:09]Method is POST - this is cgi request [13:31:09]url: /json_proto [13:31:09]query_string will be loaded in cgi processing [13:31:09]execute_cgi json_proto POST (null) [13:31:09]execute_cgi path=json_proto method=POST [13:31:09]POST find Content-Length [13:31:09]Host: 172.17.50.196:8080 [13:31:09]Content-Length: 767 [13:31:09]Content-Type: application/json [13:31:09] [13:31:09]POST finish read [13:31:09]Found Content-Length = 767 [13:31:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:09]execute_script... [13:31: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)1095932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:09]POST & json_proto [13:31:09]process_json_proto [13:31:09]json parsed OK: [13:31:09]protocol is kg_v1.0 [13:31:09]action value=close_receipt [13:31:09]process_action close_receipt [13:31:09]cmd_close_receipt [13:31:09]MH_GetDate [13:31:09]Write to MH i2c: F0 00 00 C2 5D 0E [13:31:09]Write i2c OK [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: F0 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: F0 09 00 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: F0 09 00 C2 5D 00 23 D8 24 67 72 0D 1C 67 9F [13:31:09]GetLastDocTimeStamp 1730467639 [13:31:09]current date 1730467875 [13:31:09]FM_GetShiftState [13:31:09]SAM_PROTO_GetShiftState [13:31:09]wFMCommunicate request_size=4 [13:31:09]MH_SAM_APDU [13:31:09]CAPDU: 80 13 01 00 [13:31:09]Write to MH i2c: E2 08 00 C3 5D 80 13 01 00 00 00 00 00 9D [13:31:09]Write i2c OK [13:31:09]MH_I2C_Read... [13:31:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:09]Read from MH i2c: E2 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 0E 00 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 0E 00 C3 5D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 D6 [13:31:09]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [13:31:09]wFMCommunicate OK [13:31:09]SAM_PROTO_GetShiftState done [13:31:09]FM_GetShiftState done [13:31:09]opened in 1730419081 [13:31:09]opened+sec_in_day 1730505481 [13:31:09]quantity*price = 60009 [13:31:09]sum+1 = 60010 [13:31:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 141 01.11.2024 13:31 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139960 ФПД: 187852688558296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T133115&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139960&fm=187852688558296&tin=02508201610067®Number=0000000000091631&sum=60009 [13:31:10]StoreToDocumentArchive [13:31:10]shift 558 fd 139960 [13:31:10]save to /storage/0558/doc_00139960 [13:31:10]save last doc name /storage/0558/doc_00139960 to /storage/kkm_last_doc_name [13:31:10]save OK [13:31:10]Clear old archive folders... [13:31:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:31:10]tlvbuf is B6F0F700 [13:31:10]SAM_PROTO_ClearQueue [13:31:10]wFMCommunicate request_size=4 [13:31:10]MH_SAM_APDU [13:31:10]CAPDU: 80 09 00 00 [13:31:10]Write to MH i2c: E2 08 00 D0 5D 80 09 00 00 00 00 00 00 9F [13:31:10]Write i2c OK [13:31:10]MH_I2C_Read... [13:31:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:10]Read from MH i2c: E2 [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: E2 03 00 [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: E2 03 00 D0 5D 00 90 00 A1 [13:31:10]RAPDU: 90 00 [13:31:10]wFMCommunicate OK [13:31:10]SAM_PROTO_ClearQueue done [13:31:10]KKMCreateOFDPacket [13:31:10]OFDProtocolAddRootSTLVToBuf [13:31:10]FM_MakeSignedData [13:31:10]FM_MakeSignedData [13:31:10]SAM_PROTO_SignData [13:31:10]wFMCommunicate request_size=4 [13:31:10]MH_SAM_APDU [13:31:10]CAPDU: 80 0D 01 02 [13:31:10]Write to MH i2c: E2 08 00 D1 5D 80 0D 01 02 00 00 00 00 A7 [13:31:10]Write i2c OK [13:31:10]MH_I2C_Read... [13:31:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:10]Read from MH i2c: E2 [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: E2 03 00 [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: E2 03 00 D1 5D 00 90 00 A2 [13:31:10]RAPDU: 90 00 [13:31:10]wFMCommunicate OK [13:31:10]wFMCommunicate request_size=255 [13:31:10]MH_SAM_APDU [13:31:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 23 D8 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B8 22 02 00 35 04 06 00 AA [13:31:10]Write to MH i2c: E2 02 01 D2 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 23 D8 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B8 22 02 00 35 04 06 00 AA 00 00 EE [13:31:10]Write i2c OK [13:31:10]MH_I2C_Read... [13:31:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:11]Read from MH i2c: E2 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: E2 03 00 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: E2 03 00 D2 5D 00 90 00 A3 [13:31:11]RAPDU: 90 00 [13:31:11]wFMCommunicate OK [13:31:11]wFMCommunicate request_size=10 [13:31:11]MH_SAM_APDU [13:31:11]CAPDU: 80 0D 02 02 05 D9 DC C5 88 D8 [13:31:11]Write to MH i2c: E2 0D 00 D3 5D 80 0D 02 02 05 00 D9 DC C5 88 D8 00 00 8E [13:31:11]Write i2c OK [13:31:11]MH_I2C_Read... [13:31:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:11]Read from MH i2c: E2 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: E2 03 00 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: E2 03 00 D3 5D 00 90 00 A4 [13:31:11]RAPDU: 90 00 [13:31:11]wFMCommunicate OK [13:31:11]wFMCommunicate request_size=4 [13:31:11]MH_SAM_APDU [13:31:11]CAPDU: 80 0D 03 02 [13:31:11]Write to MH i2c: E2 08 00 D4 5D 80 0D 03 02 00 00 00 00 AC [13:31:11]Write i2c OK [13:31:11]MH_I2C_Read... [13:31:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:11]Read from MH i2c: E2 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: E2 0B 00 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: E2 0B 00 D4 5D 00 A6 74 96 31 7C 4F 68 0C 90 00 CD [13:31:11]RAPDU: A6 74 96 31 7C 4F 68 0C 90 00 [13:31:11]wFMCommunicate OK [13:31:11]SAM_PROTO_SignData done [13:31:11]FM_MakeSignedData done [13:31:11]CreateOFDProtocolMessage [13:31:11]wFMCommunicate request_size=4 [13:31:11]MH_SAM_APDU [13:31:11]CAPDU: 80 11 00 00 [13:31:11]Write to MH i2c: E2 08 00 D5 5D 80 11 00 00 00 00 00 00 AC [13:31:11]Write i2c OK [13:31:11]MH_I2C_Read... [13:31:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:11]Read from MH i2c: E2 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: E2 17 00 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: E2 17 00 D5 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 07 [13:31:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:31:11]wFMCommunicate OK [13:31:11]CreateOFDProtocolMessage done [13:31:11]OFDSenderStorePacket 139960 [13:31:11]StoreOFDPacket docnum=139960 [13:31:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 51 3C 07 01 06 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 23 D8 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B8 22 02 00 35 04 06 00 AA D9 DC C5 88 D8 A6 74 96 31 7C 4F 68 0C [13:31:11]CheckFolder [13:31:11]dirname=/storage/ofd_packets [13:31:11]CheckFolder done [13:31:11]ProducePacketName [13:31:11]name=ofd_packets/00139960 [13:31:11]NVStorageSaveData ofd_packets/00139960 [13:31:11]File name is /storage/ofd_packets/00139960 [13:31:11]Write 301 bytes [13:31:11]NVStorageSaveData done [13:31:11]OFDSenderStorePacket done [13:31:11]KKMCreateOFDPacket done [13:31:11]NVStorageSaveData kkm_last_timestamp [13:31:11]File name is /storage/kkm_last_timestamp [13:31:11]Write 4 bytes [13:31:11]NVStorageSaveData done [13:31:11]ExternCall_PrintAddStr [13:31:11]wPrintStart [13:31:11]Write to MH i2c: 01 00 00 D6 5D 33 [13:31:11]Write i2c OK [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: 01 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: 01 07 00 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: 01 07 00 D6 5D 00 00 00 00 00 FF 0F 48 [13:31:11]RasterBufferAndPrint [13:31:11]line Счет N : (1)1095932 [13:31:11]line ИНН: 02508201610067 [13:31:11]line Контрольно-Кассовый Чек [13:31:11]line ПРОДАЖА [13:31:11]line ТРК (МРК, ГНК) : 63 [13:31:11]line Товар: 2710124130 [13:31:11]line Аи-92-К-2 [13:31:11]line 8.970 * 66.90 [13:31:11]line = 600.09 [13:31:11]line НДС 12% НСП 1% [13:31:11]line > о реализуемом товаре [13:31:11]line ИТОГО: 600.09 [13:31:11]line НСП 1% : 5.31 [13:31:11]line НДС 12% : 63.73 [13:31:11]line Наличными: 0.00 [13:31:11]line Безнал.: 600.09 [13:31:11]line Место: АЗС № 101 "Партнер Нефть" [13:31:11]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:31:11]line СНО: Общий режим [13:31:11]line Чек 141 01.11.2024 13:31 [13:31:11]line Смена: 558 ФФД: 1.0 [13:31:11]line ЗНМ: 0300000081 [13:31:11]line РНМ: 0000000000091631 [13:31:11]line Версия ККМ: 001 [13:31:11]line Платежная система: Mbank [13:31:11]line ФМ: 0000000000874669 [13:31:11]line ФД: 139960 [13:31:11]line ФПД: 187852688558296 [13:31:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T133115&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139960&fm=187852688558296&tin=02508201610067®Number=0000000000091631&sum=60009 [13:31:11]OFD Sender: Processing packet 139960 [packets to send 34, broken 33] [13:31:11]ProducePacketName [13:31:11]name=ofd_packets/00139960 [13:31:11]OFD Sender: To server: pG, [13:31:11]CommunicateWithHost lk.salyk.kg:30040 [13:31:11]ConnectInit lk.salyk.kg [13:31:11]written 0, free lines is 4095 [13:31:11]Connected sock=10 [13:31:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 51 3C 07 01 06 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 23 D8 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B8 22 02 00 35 04 06 00 AA D9 DC C5 88 D8 A6 74 96 31 7C 4F 68 0C [13:31:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 0A 3D 47 00 79 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 34 36 36 39 10 04 04 00 B8 22 02 00 F4 03 04 00 CE 83 24 67 B6 04 01 00 00 A6 73 3A 18 5F 16 03 BF [13:31:12]CommunicateWithHost err = 0 [13:31:12]CheckOFDResponse [13:31:12]1017 (14) - 77093643461234 [13:31:12]1041 (16) - 0000000000874669 [13:31:12]1040 (4) - 139960 [13:31:12]1012 (4) - 01.11.2024 07:31 [13:31:12]1206 (1) - 0 [13:31:12]OFD Sender: Remove packet 139960 [13:31:12]ProducePacketName [13:31:12]name=ofd_packets/00139960 [13:31:12]NVStorageDeleteData [13:31:12]Write to MH i2c: 01 00 00 FF 5D 5C [13:31:12]Write i2c OK [13:31:12]MH_I2C_Read... [13:31:12]Read from MH i2c: 01 [13:31:12]MH_I2C_Read... [13:31:12]Read from MH i2c: 01 07 00 [13:31:12]MH_I2C_Read... [13:31:12]Read from MH i2c: 01 07 00 FF 5D 00 00 00 00 00 19 0D 89 [13:31:12]RasterBufferAndPrint [13:31:12]line [13:31:12]line [13:31:12]line [13:31:12]line [13:31:12]line [13:31:12]written 0, free lines is 3362 [13:31:12]MH_Cut [13:31:12]Write to MH i2c: D1 01 00 06 5E 01 36 [13:31:12]Write i2c OK [13:31:12]MH_I2C_Read... [13:31:12]Read from MH i2c: D1 [13:31:12]MH_I2C_Read... [13:31:12]Read from MH i2c: D1 01 00 [13:31:12]MH_I2C_Read... [13:31:12]Read from MH i2c: D1 01 00 06 5E 00 35 [13:31:12]Write to MH i2c: 01 00 00 07 5E 65 [13:31:12]Write i2c OK [13:31:12]MH_I2C_Read... [13:31:12]OFD Sender: No OFD packet to send [13:31:12]*** Cut start [13:31:12]*** Partial cut [13:31:12]*** CUTSNS_PIN = 1 [13:31:12]*** CUTSNS_PIN = 0 [13:31:13]*** Brake cut motor [13:31:13]Read from MH i2c: 01 [13:31:13]MH_I2C_Read... [13:31:13]*** Stop cut motor [13:31:13]*** Cut end [13:31:13]Read from MH i2c: 01 07 00 [13:31:13]MH_I2C_Read... [13:31:13]Read from MH i2c: 01 07 00 07 5E 00 00 00 00 00 FF 0F 7A [13:31:13]process_action close_receipt done [13:31:13]requested_data is exist [13:31:13]produce_requested_data [13:31:13]requested_item fm.sn is exist - process it [13:31:13]wFMCommunicate request_size=4 [13:31:13]MH_SAM_APDU [13:31:13]CAPDU: 80 11 00 00 [13:31:13]Write to MH i2c: E2 08 00 08 5E 80 11 00 00 00 00 00 00 E0 [13:31:13]Write i2c OK [13:31:13]MH_I2C_Read... [13:31:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:13]Read from MH i2c: E2 [13:31:13]MH_I2C_Read... [13:31:13]Read from MH i2c: E2 17 00 [13:31:13]MH_I2C_Read... [13:31:13]Read from MH i2c: E2 17 00 08 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3B [13:31:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:31:13]wFMCommunicate OK [13:31:13]requested_item fd.num is exist - process it [13:31:13]SAM_PROTO_GetFieldsCounters [13:31:13]wFMCommunicate request_size=4 [13:31:13]MH_SAM_APDU [13:31:13]CAPDU: 80 13 00 00 [13:31:13]Write to MH i2c: E2 08 00 09 5E 80 13 00 00 00 00 00 00 E3 [13:31:13]Write i2c OK [13:31:13]MH_I2C_Read... [13:31:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:13]Read from MH i2c: E2 [13:31:13]MH_I2C_Read... [13:31:13]Read from MH i2c: E2 62 00 [13:31:13]MH_I2C_Read... [13:31:13]Read from MH i2c: E2 62 00 09 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B8 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [13:31:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B8 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:31:13]wFMCommunicate OK [13:31:13]SAM_PROTO_GetFieldsCounters done [13:31:13]requested_item shift.num is exist - process it [13:31:13]requested_item shift.opened is exist - process it [13:31:13]req_shift_opened [13:31:13]FM_GetShiftState [13:31:13]SAM_PROTO_GetShiftState [13:31:13]wFMCommunicate request_size=4 [13:31:13]MH_SAM_APDU [13:31:13]CAPDU: 80 13 01 00 [13:31:13]Write to MH i2c: E2 08 00 0A 5E 80 13 01 00 00 00 00 00 E5 [13:31:13]Write i2c OK [13:31:13]MH_I2C_Read... [13:31:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:13]Read from MH i2c: E2 [13:31:13]MH_I2C_Read... [13:31:13]Read from MH i2c: E2 0E 00 [13:31:13]MH_I2C_Read... [13:31:13]Read from MH i2c: E2 0E 00 0A 5E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 1E [13:31:13]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [13:31:13]wFMCommunicate OK [13:31:13]SAM_PROTO_GetShiftState done [13:31:13]FM_GetShiftState done [13:31:13]req_shift_opened done [13:31:13]requested_item shift.open_date is exist - process it [13:31:13]req_shift_open_date [13:31:13]req_shift_open_date done [13:31:13]produce_requested_data done [13:31:13]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139960,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [13:31:13]process_action_free close_receipt [13:31:13]json_value_free [13:31:13]json_value_free done [13:31:13]process_json_proto returns [13:31:13]Send response to host [13:31:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139960,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [13:31:13]free response buf [13:31:13]execute_script done [13:31:13]execute_script returns [13:31:13]free content buf [13:31:13]Sock 7.Close socket [13:31:13]Sock 7.Thread stoped [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:32]OFD Sender: No OFD packet to send [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [13:32:52]OFD Sender: No OFD packet to send [13:32:57]OFD Sender: No OFD packet to send [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:29]accept exits with 9 [13:33:29]New connection [13:33:29]New thread 3066510692 created [13:33:29]Thread 3066654052 joined [13:33:29]Waiting for new connection... [13:33:29] Sock 9.Parse request [13:33:29]Sock 9.Check first char [13:33:29]Sock 9.First char is OK [13:33:29]request: POST /json_proto HTTP/1.0 [13:33:29]Method: POST [13:33:29]URL: /json_proto [13:33:29]Method is POST - this is cgi request [13:33:29]url: /json_proto [13:33:29]query_string will be loaded in cgi processing [13:33:29]execute_cgi json_proto POST (null) [13:33:29]execute_cgi path=json_proto method=POST [13:33:29]POST find Content-Length [13:33:29]Host: 172.17.50.196:8080 [13:33:29]Content-Length: 745 [13:33:29]Content-Type: application/json [13:33:29] [13:33:29]POST finish read [13:33:29]Found Content-Length = 745 [13:33:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335775", "tax_sys" : 0, "items" : [ { "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:29]execute_script... [13:33: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)335775", "tax_sys" : 0, "items" : [ { "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:29]POST & json_proto [13:33:29]process_json_proto [13:33:29]json parsed OK: [13:33:29]protocol is kg_v1.0 [13:33:29]action value=close_receipt [13:33:29]process_action close_receipt [13:33:29]cmd_close_receipt [13:33:29]MH_GetDate [13:33:29]Write to MH i2c: F0 00 00 0B 5E 58 [13:33:29]Write i2c OK [13:33:29]MH_I2C_Read... [13:33:29]Read from MH i2c: F0 [13:33:29]MH_I2C_Read... [13:33:29]Read from MH i2c: F0 09 00 [13:33:29]MH_I2C_Read... [13:33:29]Read from MH i2c: F0 09 00 0B 5E 00 AF D8 24 67 72 0D 1C 67 75 [13:33:29]GetLastDocTimeStamp 1730467875 [13:33:29]current date 1730468015 [13:33:29]FM_GetShiftState [13:33:29]SAM_PROTO_GetShiftState [13:33:29]wFMCommunicate request_size=4 [13:33:29]MH_SAM_APDU [13:33:29]CAPDU: 80 13 01 00 [13:33:29]Write to MH i2c: E2 08 00 0C 5E 80 13 01 00 00 00 00 00 E7 [13:33:29]Write i2c OK [13:33:29]MH_I2C_Read... [13:33:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:29]Read from MH i2c: E2 [13:33:29]MH_I2C_Read... [13:33:29]Read from MH i2c: E2 0E 00 [13:33:29]MH_I2C_Read... [13:33:29]Read from MH i2c: E2 0E 00 0C 5E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 20 [13:33:29]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [13:33:29]wFMCommunicate OK [13:33:29]SAM_PROTO_GetShiftState done [13:33:29]FM_GetShiftState done [13:33:29]opened in 1730419081 [13:33:29]opened+sec_in_day 1730505481 [13:33:29]quantity*price = 7000 [13:33:29]sum+1 = 7001 [13:33:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 142 01.11.2024 13:33 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139961 ФПД: 259229889661016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T133335&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139961&fm=259229889661016&tin=02508201610067®Number=0000000000091631&sum=7000 0 [13:33:30]StoreToDocumentArchive [13:33:30]shift 558 fd 139961 [13:33:30]save to /storage/0558/doc_00139961 [13:33:30]save last doc name /storage/0558/doc_00139961 to /storage/kkm_last_doc_name [13:33:30]save OK [13:33:30]Clear old archive folders... [13:33:30]ProcessDocumentItem done err = 0, tmpTLVsize=312 [13:33:30]tlvbuf is 00A17660 [13:33:30]SAM_PROTO_ClearQueue [13:33:30]wFMCommunicate request_size=4 [13:33:30]MH_SAM_APDU [13:33:30]CAPDU: 80 09 00 00 [13:33:30]Write to MH i2c: E2 08 00 19 5E 80 09 00 00 00 00 00 00 E9 [13:33:30]Write i2c OK [13:33:30]MH_I2C_Read... [13:33:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:30]Read from MH i2c: E2 [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: E2 03 00 [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: E2 03 00 19 5E 00 90 00 EB [13:33:30]RAPDU: 90 00 [13:33:30]wFMCommunicate OK [13:33:30]SAM_PROTO_ClearQueue done [13:33:30]KKMCreateOFDPacket [13:33:30]OFDProtocolAddRootSTLVToBuf [13:33:30]FM_MakeSignedData [13:33:30]FM_MakeSignedData [13:33:30]SAM_PROTO_SignData [13:33:30]wFMCommunicate request_size=4 [13:33:30]MH_SAM_APDU [13:33:30]CAPDU: 80 0D 01 02 [13:33:30]Write to MH i2c: E2 08 00 1A 5E 80 0D 01 02 00 00 00 00 F1 [13:33:30]Write i2c OK [13:33:30]MH_I2C_Read... [13:33:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:30]Read from MH i2c: E2 [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: E2 03 00 [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: E2 03 00 1A 5E 00 90 00 EC [13:33:30]RAPDU: 90 00 [13:33:30]wFMCommunicate OK [13:33:30]wFMCommunicate request_size=255 [13:33:30]MH_SAM_APDU [13:33:30]CAPDU: 80 0D 02 02 FA 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 AF D8 24 67 0E 04 04 00 2E [13:33:30]Write to MH i2c: E2 02 01 1B 5E 80 0D 02 02 FA 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 AF D8 24 67 0E 04 04 00 2E 00 00 1F [13:33:30]Write i2c OK [13:33:30]MH_I2C_Read... [13:33:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:30]Read from MH i2c: E2 [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: E2 03 00 [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: E2 03 00 1B 5E 00 90 00 ED [13:33:30]RAPDU: 90 00 [13:33:30]wFMCommunicate OK [13:33:30]wFMCommunicate request_size=71 [13:33:30]MH_SAM_APDU [13:33:30]CAPDU: 80 0D 02 02 42 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B9 22 02 00 35 04 06 00 EB C4 A9 7D 08 58 [13:33:30]Write to MH i2c: E2 4A 00 1C 5E 80 0D 02 02 42 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B9 22 02 00 35 04 06 00 EB C4 A9 7D 08 58 00 00 24 [13:33:30]Write i2c OK [13:33:30]MH_I2C_Read... [13:33:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:30]Read from MH i2c: E2 [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: E2 03 00 [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: E2 03 00 1C 5E 00 90 00 EE [13:33:30]RAPDU: 90 00 [13:33:30]wFMCommunicate OK [13:33:30]wFMCommunicate request_size=4 [13:33:30]MH_SAM_APDU [13:33:30]CAPDU: 80 0D 03 02 [13:33:30]Write to MH i2c: E2 08 00 1D 5E 80 0D 03 02 00 00 00 00 F6 [13:33:30]Write i2c OK [13:33:30]MH_I2C_Read... [13:33:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:30]Read from MH i2c: E2 [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: E2 0B 00 [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: E2 0B 00 1D 5E 00 19 EF F5 2E 62 FF 26 7B 90 00 24 [13:33:30]RAPDU: 19 EF F5 2E 62 FF 26 7B 90 00 [13:33:30]wFMCommunicate OK [13:33:30]SAM_PROTO_SignData done [13:33:30]FM_MakeSignedData done [13:33:30]CreateOFDProtocolMessage [13:33:30]wFMCommunicate request_size=4 [13:33:30]MH_SAM_APDU [13:33:30]CAPDU: 80 11 00 00 [13:33:30]Write to MH i2c: E2 08 00 1E 5E 80 11 00 00 00 00 00 00 F6 [13:33:30]Write i2c OK [13:33:30]MH_I2C_Read... [13:33:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:30]Read from MH i2c: E2 [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: E2 17 00 [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: E2 17 00 1E 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 51 [13:33:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:33:30]wFMCommunicate OK [13:33:30]CreateOFDProtocolMessage done [13:33:30]OFDSenderStorePacket 139961 [13:33:30]StoreOFDPacket docnum=139961 [13:33:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4C 01 00 00 0C E8 44 01 3F 43 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 AF D8 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B9 22 02 00 35 04 06 00 EB C4 A9 7D 08 58 19 EF F5 2E 62 FF 26 7B [13:33:30]CheckFolder [13:33:30]dirname=/storage/ofd_packets [13:33:30]CheckFolder done [13:33:30]ProducePacketName [13:33:30]name=ofd_packets/00139961 [13:33:30]NVStorageSaveData ofd_packets/00139961 [13:33:30]File name is /storage/ofd_packets/00139961 [13:33:30]Write 362 bytes [13:33:30]NVStorageSaveData done [13:33:30]OFDSenderStorePacket done [13:33:30]KKMCreateOFDPacket done [13:33:30]NVStorageSaveData kkm_last_timestamp [13:33:30]File name is /storage/kkm_last_timestamp [13:33:30]Write 4 bytes [13:33:30]NVStorageSaveData done [13:33:30]ExternCall_PrintAddStr [13:33:30]wPrintStart [13:33:30]Write to MH i2c: 01 00 00 1F 5E 7D [13:33:30]Write i2c OK [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: 01 [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: 01 07 00 [13:33:30]MH_I2C_Read... [13:33:30]Read from MH i2c: 01 07 00 1F 5E 00 00 00 00 00 FF 0F 92 [13:33:30]RasterBufferAndPrint [13:33:30]line Счет N : (3)335775 [13:33:30]line ИНН: 02508201610067 [13:33:30]line Контрольно-Кассовый Чек [13:33:30]line ПРОДАЖА [13:33:30]line Товар: 4870202521186 [13:33:30]line Чай холодный MAXI черный со вкусом клубн [13:33:30]line 1.000 * 70.00 [13:33:30]line = 70.00 [13:33:30]line НДС 12% НСП 1% [13:33:30]line > о реализуемом товаре [13:33:30]line ИТОГО: 70.00 [13:33:30]line НСП 1% : 0.62 [13:33:30]line НДС 12% : 7.43 [13:33:30]line Наличными: 70.00 [13:33:30]line Безнал.: 0.00 [13:33:30]line Место: АЗС № 101 "Партнер Нефть" [13:33:30]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:33:30]line СНО: Общий режим [13:33:30]line Чек 142 01.11.2024 13:33 [13:33:30]line Смена: 558 ФФД: 1.0 [13:33:30]line ЗНМ: 0300000081 [13:33:30]line РНМ: 0000000000091631 [13:33:30]line Версия ККМ: 001 [13:33:30]line ФМ: 0000000000874669 [13:33:30]line ФД: 139961 [13:33:30]line ФПД: 259229889661016 [13:33:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T133335&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139961&fm=259229889661016&tin=02508201610067®Number=0000000000091631&sum=7000 [13:33:31]line 0 [13:33:31]OFD Sender: Processing packet 139961 [packets to send 34, broken 33] [13:33:31]ProducePacketName [13:33:31]name=ofd_packets/00139961 [13:33:31]OFD Sender: To server: pG, [13:33:31]CommunicateWithHost lk.salyk.kg:30040 [13:33:31]ConnectInit lk.salyk.kg [13:33:31]written 0, free lines is 4095 [13:33:31]Connected sock=10 [13:33:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4C 01 00 00 0C E8 44 01 3F 43 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 AF D8 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B9 22 02 00 35 04 06 00 EB C4 A9 7D 08 58 19 EF F5 2E 62 FF 26 7B [13:33:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 81 75 47 00 2E 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B9 22 02 00 F4 03 04 00 5A 84 24 67 B6 04 01 00 00 AD 5B 94 87 99 B9 BB DC [13:33:31]CommunicateWithHost err = 0 [13:33:31]CheckOFDResponse [13:33:31]1017 (14) - 77093643461234 [13:33:31]1041 (16) - 0000000000874669 [13:33:31]1040 (4) - 139961 [13:33:31]1012 (4) - 01.11.2024 07:33 [13:33:31]1206 (1) - 0 [13:33:31]OFD Sender: Remove packet 139961 [13:33:31]ProducePacketName [13:33:31]name=ofd_packets/00139961 [13:33:31]NVStorageDeleteData [13:33:31]Write to MH i2c: 01 00 00 48 5E A6 [13:33:31]Write i2c OK [13:33:31]MH_I2C_Read... [13:33:31]Read from MH i2c: 01 [13:33:31]MH_I2C_Read... [13:33:31]Read from MH i2c: 01 07 00 [13:33:31]MH_I2C_Read... [13:33:31]Read from MH i2c: 01 07 00 48 5E 00 00 00 00 00 1A 0D D4 [13:33:31]RasterBufferAndPrint [13:33:31]line [13:33:31]line [13:33:31]line [13:33:31]line [13:33:31]line [13:33:31]written 0, free lines is 3360 [13:33:31]MH_Cut [13:33:31]Write to MH i2c: D1 01 00 4F 5E 01 7F [13:33:31]Write i2c OK [13:33:31]MH_I2C_Read... [13:33:31]Read from MH i2c: D1 [13:33:31]MH_I2C_Read... [13:33:31]Read from MH i2c: D1 01 00 [13:33:31]MH_I2C_Read... [13:33:31]Read from MH i2c: D1 01 00 4F 5E 00 7E [13:33:31]Write to MH i2c: 01 00 00 50 5E AE [13:33:31]Write i2c OK [13:33:31]MH_I2C_Read... [13:33:32]OFD Sender: No OFD packet to send [13:33:32]*** Cut start [13:33:32]*** Partial cut [13:33:32]*** CUTSNS_PIN = 1 [13:33:32]*** CUTSNS_PIN = 0 [13:33:32]*** Brake cut motor [13:33:32]Read from MH i2c: 01 [13:33:33]MH_I2C_Read... [13:33:33]*** Stop cut motor [13:33:33]*** Cut end [13:33:33]Read from MH i2c: 01 07 00 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: 01 07 00 50 5E 00 00 00 00 00 FF 0F C3 [13:33:33]process_action close_receipt done [13:33:33]requested_data is exist [13:33:33]produce_requested_data [13:33:33]requested_item fm.sn is exist - process it [13:33:33]wFMCommunicate request_size=4 [13:33:33]MH_SAM_APDU [13:33:33]CAPDU: 80 11 00 00 [13:33:33]Write to MH i2c: E2 08 00 51 5E 80 11 00 00 00 00 00 00 29 [13:33:33]Write i2c OK [13:33:33]MH_I2C_Read... [13:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:33]Read from MH i2c: E2 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: E2 17 00 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: E2 17 00 51 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 84 [13:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:33:33]wFMCommunicate OK [13:33:33]requested_item fd.num is exist - process it [13:33:33]SAM_PROTO_GetFieldsCounters [13:33:33]wFMCommunicate request_size=4 [13:33:33]MH_SAM_APDU [13:33:33]CAPDU: 80 13 00 00 [13:33:33]Write to MH i2c: E2 08 00 52 5E 80 13 00 00 00 00 00 00 2C [13:33:33]Write i2c OK [13:33:33]MH_I2C_Read... [13:33:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:33]Read from MH i2c: E2 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: E2 62 00 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: E2 62 00 52 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B9 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [13:33:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B9 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:33:33]wFMCommunicate OK [13:33:33]SAM_PROTO_GetFieldsCounters done [13:33:33]requested_item shift.num is exist - process it [13:33:33]requested_item shift.opened is exist - process it [13:33:33]req_shift_opened [13:33:33]FM_GetShiftState [13:33:33]SAM_PROTO_GetShiftState [13:33:33]wFMCommunicate request_size=4 [13:33:33]MH_SAM_APDU [13:33:33]CAPDU: 80 13 01 00 [13:33:33]Write to MH i2c: E2 08 00 53 5E 80 13 01 00 00 00 00 00 2E [13:33:33]Write i2c OK [13:33:33]MH_I2C_Read... [13:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:33]Read from MH i2c: E2 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: E2 0E 00 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: E2 0E 00 53 5E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 67 [13:33:33]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [13:33:33]wFMCommunicate OK [13:33:33]SAM_PROTO_GetShiftState done [13:33:33]FM_GetShiftState done [13:33:33]req_shift_opened done [13:33:33]requested_item shift.open_date is exist - process it [13:33:33]req_shift_open_date [13:33:33]req_shift_open_date done [13:33:33]produce_requested_data done [13:33:33]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139961,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [13:33:33]process_action_free close_receipt [13:33:33]json_value_free [13:33:33]json_value_free done [13:33:33]process_json_proto returns [13:33:33]Send response to host [13:33:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139961,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [13:33:33]free response buf [13:33:33]execute_script done [13:33:33]execute_script returns [13:33:33]free content buf [13:33:33]Sock 9.Close socket [13:33:33]Sock 9.Thread stoped [13:33:37]OFD Sender: No OFD packet to send [13:33:42]OFD Sender: No OFD packet to send [13:33:47]OFD Sender: No OFD packet to send [13:33:52]OFD Sender: No OFD packet to send [13:33:56]accept exits with 7 [13:33:56]New connection [13:33:56]New thread 3066654052 created [13:33:56]Thread 3066510692 joined [13:33:56]Waiting for new connection... [13:33:56] Sock 7.Parse request [13:33:56]Sock 7.Check first char [13:33:56]Sock 7.First char is OK [13:33:56]request: POST /json_proto HTTP/1.0 [13:33:56]Method: POST [13:33:56]URL: /json_proto [13:33:56]Method is POST - this is cgi request [13:33:56]url: /json_proto [13:33:56]query_string will be loaded in cgi processing [13:33:56]execute_cgi json_proto POST (null) [13:33:56]execute_cgi path=json_proto method=POST [13:33:56]POST find Content-Length [13:33:56]Host: 172.17.50.196:8080 [13:33:56]Content-Length: 633 [13:33:56]Content-Type: application/json [13:33:56] [13:33:56]POST finish read [13:33:56]Found Content-Length = 633 [13:33:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335776", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 139.00, "quantity" : 2.000, "sum" : 278.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 278.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:56]execute_script... [13:33:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335776", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 139.00, "quantity" : 2.000, "sum" : 278.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 278.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:56]POST & json_proto [13:33:56]process_json_proto [13:33:56]json parsed OK: [13:33:56]protocol is kg_v1.0 [13:33:56]action value=close_receipt [13:33:56]process_action close_receipt [13:33:56]cmd_close_receipt [13:33:56]MH_GetDate [13:33:56]Write to MH i2c: F0 00 00 54 5E A1 [13:33:56]Write i2c OK [13:33:56]MH_I2C_Read... [13:33:56]Read from MH i2c: F0 [13:33:56]MH_I2C_Read... [13:33:56]Read from MH i2c: F0 09 00 [13:33:56]MH_I2C_Read... [13:33:56]Read from MH i2c: F0 09 00 54 5E 00 CA D8 24 67 72 0D 1C 67 D9 [13:33:56]GetLastDocTimeStamp 1730468015 [13:33:56]current date 1730468042 [13:33:56]FM_GetShiftState [13:33:56]SAM_PROTO_GetShiftState [13:33:56]wFMCommunicate request_size=4 [13:33:56]MH_SAM_APDU [13:33:56]CAPDU: 80 13 01 00 [13:33:56]Write to MH i2c: E2 08 00 55 5E 80 13 01 00 00 00 00 00 30 [13:33:56]Write i2c OK [13:33:56]MH_I2C_Read... [13:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:56]Read from MH i2c: E2 [13:33:56]MH_I2C_Read... [13:33:56]Read from MH i2c: E2 0E 00 [13:33:56]MH_I2C_Read... [13:33:56]Read from MH i2c: E2 0E 00 55 5E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 69 [13:33:56]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [13:33:56]wFMCommunicate OK [13:33:56]SAM_PROTO_GetShiftState done [13:33:56]FM_GetShiftState done [13:33:56]opened in 1730419081 [13:33:56]opened+sec_in_day 1730505481 [13:33:56]quantity*price = 27800 [13:33:56]sum+1 = 27801 [13:33:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 278.00 НСП 1% : 2.46 НДС 12% : 29.52 Наличными: 278.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 143 01.11.2024 13:34 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139962 ФПД: 241931300280445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T133402&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139962&fm=241931300280445&tin=02508201610067®Number=0000000000091631&sum=27800 0 [13:33:57]StoreToDocumentArchive [13:33:57]shift 558 fd 139962 [13:33:57]save to /storage/0558/doc_00139962 [13:33:57]save last doc name /storage/0558/doc_00139962 to /storage/kkm_last_doc_name [13:33:57]save OK [13:33:57]Clear old archive folders... [13:33:57]ProcessDocumentItem done err = 0, tmpTLVsize=285 [13:33:57]tlvbuf is 00A180F0 [13:33:57]SAM_PROTO_ClearQueue [13:33:57]wFMCommunicate request_size=4 [13:33:57]MH_SAM_APDU [13:33:57]CAPDU: 80 09 00 00 [13:33:57]Write to MH i2c: E2 08 00 62 5E 80 09 00 00 00 00 00 00 32 [13:33:57]Write i2c OK [13:33:57]MH_I2C_Read... [13:33:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:57]Read from MH i2c: E2 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: E2 03 00 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: E2 03 00 62 5E 00 90 00 34 [13:33:57]RAPDU: 90 00 [13:33:57]wFMCommunicate OK [13:33:57]SAM_PROTO_ClearQueue done [13:33:57]KKMCreateOFDPacket [13:33:57]OFDProtocolAddRootSTLVToBuf [13:33:57]FM_MakeSignedData [13:33:57]FM_MakeSignedData [13:33:57]SAM_PROTO_SignData [13:33:57]wFMCommunicate request_size=4 [13:33:57]MH_SAM_APDU [13:33:57]CAPDU: 80 0D 01 02 [13:33:57]Write to MH i2c: E2 08 00 63 5E 80 0D 01 02 00 00 00 00 3A [13:33:57]Write i2c OK [13:33:57]MH_I2C_Read... [13:33:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:57]Read from MH i2c: E2 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: E2 03 00 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: E2 03 00 63 5E 00 90 00 35 [13:33:57]RAPDU: 90 00 [13:33:57]wFMCommunicate OK [13:33:57]wFMCommunicate request_size=255 [13:33:57]MH_SAM_APDU [13:33:57]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 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 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0B 00 00 00 00 07 04 06 00 98 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 8F 00 00 00 F4 03 04 00 CA D8 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 [13:33:57]Write to MH i2c: E2 02 01 64 5E 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 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 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0B 00 00 00 00 07 04 06 00 98 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 8F 00 00 00 F4 03 04 00 CA D8 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 00 00 28 [13:33:57]Write i2c OK [13:33:57]MH_I2C_Read... [13:33:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:57]Read from MH i2c: E2 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: E2 03 00 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: E2 03 00 64 5E 00 90 00 36 [13:33:57]RAPDU: 90 00 [13:33:57]wFMCommunicate OK [13:33:57]wFMCommunicate request_size=44 [13:33:57]MH_SAM_APDU [13:33:57]CAPDU: 80 0D 02 02 27 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BA 22 02 00 35 04 06 00 DC 09 05 36 98 7D [13:33:57]Write to MH i2c: E2 2F 00 65 5E 80 0D 02 02 27 00 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BA 22 02 00 35 04 06 00 DC 09 05 36 98 7D 00 00 73 [13:33:57]Write i2c OK [13:33:57]MH_I2C_Read... [13:33:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:57]Read from MH i2c: E2 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: E2 03 00 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: E2 03 00 65 5E 00 90 00 37 [13:33:57]RAPDU: 90 00 [13:33:57]wFMCommunicate OK [13:33:57]wFMCommunicate request_size=4 [13:33:57]MH_SAM_APDU [13:33:57]CAPDU: 80 0D 03 02 [13:33:57]Write to MH i2c: E2 08 00 66 5E 80 0D 03 02 00 00 00 00 3F [13:33:57]Write i2c OK [13:33:57]MH_I2C_Read... [13:33:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:57]Read from MH i2c: E2 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: E2 0B 00 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: E2 0B 00 66 5E 00 21 EF 2E 62 C0 80 5F 1D 90 00 9C [13:33:57]RAPDU: 21 EF 2E 62 C0 80 5F 1D 90 00 [13:33:57]wFMCommunicate OK [13:33:57]SAM_PROTO_SignData done [13:33:57]FM_MakeSignedData done [13:33:57]CreateOFDProtocolMessage [13:33:57]wFMCommunicate request_size=4 [13:33:57]MH_SAM_APDU [13:33:57]CAPDU: 80 11 00 00 [13:33:57]Write to MH i2c: E2 08 00 67 5E 80 11 00 00 00 00 00 00 3F [13:33:57]Write i2c OK [13:33:57]MH_I2C_Read... [13:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:58]Read from MH i2c: E2 [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: E2 17 00 [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: E2 17 00 67 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9A [13:33:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:33:58]wFMCommunicate OK [13:33:58]CreateOFDProtocolMessage done [13:33:58]OFDSenderStorePacket 139962 [13:33:58]StoreOFDPacket docnum=139962 [13:33:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 31 01 00 00 5A C6 29 01 0A 2A 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 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 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0B 00 00 00 00 07 04 06 00 98 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 8F 00 00 00 F4 03 04 00 CA D8 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BA 22 02 00 35 04 06 00 DC 09 05 36 98 7D 21 EF 2E 62 C0 80 5F 1D [13:33:58]CheckFolder [13:33:58]dirname=/storage/ofd_packets [13:33:58]CheckFolder done [13:33:58]ProducePacketName [13:33:58]name=ofd_packets/00139962 [13:33:58]NVStorageSaveData ofd_packets/00139962 [13:33:58]File name is /storage/ofd_packets/00139962 [13:33:58]Write 335 bytes [13:33:58]NVStorageSaveData done [13:33:58]OFDSenderStorePacket done [13:33:58]KKMCreateOFDPacket done [13:33:58]NVStorageSaveData kkm_last_timestamp [13:33:58]File name is /storage/kkm_last_timestamp [13:33:58]Write 4 bytes [13:33:58]NVStorageSaveData done [13:33:58]ExternCall_PrintAddStr [13:33:58]wPrintStart [13:33:58]Write to MH i2c: 01 00 00 68 5E C6 [13:33:58]Write i2c OK [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: 01 [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: 01 07 00 [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: 01 07 00 68 5E 00 00 00 00 00 FF 0F DB [13:33:58]RasterBufferAndPrint [13:33:58]line Счет N : (3)335776 [13:33:58]line ИНН: 02508201610067 [13:33:58]line Контрольно-Кассовый Чек [13:33:58]line ПРОДАЖА [13:33:58]line Товар: 48745291 [13:33:58]line Сигареты Parliament SOHO NYC COMPACT BLU [13:33:58]line 2.000 * 139.00 [13:33:58]line = 278.00 [13:33:58]line НДС 12% НСП 1% [13:33:58]line > о реализуемом товаре [13:33:58]line ИТОГО: 278.00 [13:33:58]line НСП 1% : 2.46 [13:33:58]line НДС 12% : 29.52 [13:33:58]line Наличными: 278.00 [13:33:58]line Безнал.: 0.00 [13:33:58]line Место: АЗС № 101 "Партнер Нефть" [13:33:58]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:33:58]line СНО: Общий режим [13:33:58]line Чек 143 01.11.2024 13:34 [13:33:58]line Смена: 558 ФФД: 1.0 [13:33:58]line ЗНМ: 0300000081 [13:33:58]line РНМ: 0000000000091631 [13:33:58]line Версия ККМ: 001 [13:33:58]line ФМ: 0000000000874669 [13:33:58]line ФД: 139962 [13:33:58]line ФПД: 241931300280445 [13:33:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T133402&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139962&fm=241931300280445&tin=02508201610067®Number=0000000000091631&sum=27800 [13:33:58]line 0 [13:33:58]OFD Sender: Processing packet 139962 [packets to send 34, broken 33] [13:33:58]ProducePacketName [13:33:58]name=ofd_packets/00139962 [13:33:58]OFD Sender: To server: pG, [13:33:58]CommunicateWithHost lk.salyk.kg:30040 [13:33:58]ConnectInit lk.salyk.kg [13:33:58]written 0, free lines is 4095 [13:33:58]Connected sock=10 [13:33:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 31 01 00 00 5A C6 29 01 0A 2A 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 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 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0B 00 00 00 00 07 04 06 00 98 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 8F 00 00 00 F4 03 04 00 CA D8 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BA 22 02 00 35 04 06 00 DC 09 05 36 98 7D 21 EF 2E 62 C0 80 5F 1D [13:33:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 87 0B 47 00 05 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BA 22 02 00 F4 03 04 00 75 84 24 67 B6 04 01 00 00 03 DB 4B FF 97 25 5B F8 [13:33:58]CommunicateWithHost err = 0 [13:33:58]CheckOFDResponse [13:33:58]1017 (14) - 77093643461234 [13:33:58]1041 (16) - 0000000000874669 [13:33:58]1040 (4) - 139962 [13:33:58]1012 (4) - 01.11.2024 07:34 [13:33:58]1206 (1) - 0 [13:33:58]OFD Sender: Remove packet 139962 [13:33:58]ProducePacketName [13:33:58]name=ofd_packets/00139962 [13:33:58]NVStorageDeleteData [13:33:58]Write to MH i2c: 01 00 00 91 5E EF [13:33:58]Write i2c OK [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: 01 [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: 01 07 00 [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: 01 07 00 91 5E 00 00 00 00 00 07 0D 0A [13:33:58]RasterBufferAndPrint [13:33:58]line [13:33:58]line [13:33:58]line [13:33:58]line [13:33:58]line [13:33:58]written 0, free lines is 3341 [13:33:58]MH_Cut [13:33:58]Write to MH i2c: D1 01 00 98 5E 01 C8 [13:33:58]Write i2c OK [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: D1 [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: D1 01 00 [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: D1 01 00 98 5E 00 C7 [13:33:58]Write to MH i2c: 01 00 00 99 5E F7 [13:33:58]Write i2c OK [13:33:58]MH_I2C_Read... [13:33:59]OFD Sender: No OFD packet to send [13:33:59]*** Cut start [13:33:59]*** Partial cut [13:33:59]*** CUTSNS_PIN = 1 [13:33:59]*** CUTSNS_PIN = 0 [13:33:59]*** Brake cut motor [13:34:00]Read from MH i2c: 01 [13:34:00]MH_I2C_Read... [13:34:00]*** Stop cut motor [13:34:00]*** Cut end [13:34:00]Read from MH i2c: 01 07 00 [13:34:00]MH_I2C_Read... [13:34:00]Read from MH i2c: 01 07 00 99 5E 00 00 00 00 00 FF 0F 0C [13:34:00]process_action close_receipt done [13:34:00]requested_data is exist [13:34:00]produce_requested_data [13:34:00]requested_item fm.sn is exist - process it [13:34:00]wFMCommunicate request_size=4 [13:34:00]MH_SAM_APDU [13:34:00]CAPDU: 80 11 00 00 [13:34:00]Write to MH i2c: E2 08 00 9A 5E 80 11 00 00 00 00 00 00 72 [13:34:00]Write i2c OK [13:34:00]MH_I2C_Read... [13:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:00]Read from MH i2c: E2 [13:34:00]MH_I2C_Read... [13:34:00]Read from MH i2c: E2 17 00 [13:34:00]MH_I2C_Read... [13:34:00]Read from MH i2c: E2 17 00 9A 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CD [13:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:34:00]wFMCommunicate OK [13:34:00]requested_item fd.num is exist - process it [13:34:00]SAM_PROTO_GetFieldsCounters [13:34:00]wFMCommunicate request_size=4 [13:34:00]MH_SAM_APDU [13:34:00]CAPDU: 80 13 00 00 [13:34:00]Write to MH i2c: E2 08 00 9B 5E 80 13 00 00 00 00 00 00 75 [13:34:00]Write i2c OK [13:34:00]MH_I2C_Read... [13:34:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:00]Read from MH i2c: E2 [13:34:00]MH_I2C_Read... [13:34:00]Read from MH i2c: E2 62 00 [13:34:00]MH_I2C_Read... [13:34:00]Read from MH i2c: E2 62 00 9B 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 BA 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [13:34:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 BA 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:34:00]wFMCommunicate OK [13:34:00]SAM_PROTO_GetFieldsCounters done [13:34:00]requested_item shift.num is exist - process it [13:34:00]requested_item shift.opened is exist - process it [13:34:00]req_shift_opened [13:34:00]FM_GetShiftState [13:34:00]SAM_PROTO_GetShiftState [13:34:00]wFMCommunicate request_size=4 [13:34:00]MH_SAM_APDU [13:34:00]CAPDU: 80 13 01 00 [13:34:00]Write to MH i2c: E2 08 00 9C 5E 80 13 01 00 00 00 00 00 77 [13:34:00]Write i2c OK [13:34:00]MH_I2C_Read... [13:34:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:00]Read from MH i2c: E2 [13:34:00]MH_I2C_Read... [13:34:00]Read from MH i2c: E2 0E 00 [13:34:00]MH_I2C_Read... [13:34:00]Read from MH i2c: E2 0E 00 9C 5E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 B0 [13:34:00]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [13:34:00]wFMCommunicate OK [13:34:00]SAM_PROTO_GetShiftState done [13:34:00]FM_GetShiftState done [13:34:00]req_shift_opened done [13:34:00]requested_item shift.open_date is exist - process it [13:34:00]req_shift_open_date [13:34:00]req_shift_open_date done [13:34:00]produce_requested_data done [13:34:00]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139962,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [13:34:00]process_action_free close_receipt [13:34:00]json_value_free [13:34:00]json_value_free done [13:34:00]process_json_proto returns [13:34:00]Send response to host [13:34:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139962,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [13:34:00]free response buf [13:34:00]execute_script done [13:34:00]execute_script returns [13:34:00]free content buf [13:34:00]Sock 7.Close socket [13:34:00]Sock 7.Thread stoped [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:41]accept exits with 9 [13:34:41]New connection [13:34:41]New thread 3066510692 created [13:34:41]Thread 3066654052 joined [13:34:41]Waiting for new connection... [13:34:41] Sock 9.Parse request [13:34:41]Sock 9.Check first char [13:34:41]Sock 9.First char is OK [13:34:41]request: POST /json_proto HTTP/1.0 [13:34:41]Method: POST [13:34:41]URL: /json_proto [13:34:41]Method is POST - this is cgi request [13:34:41]url: /json_proto [13:34:41]query_string will be loaded in cgi processing [13:34:41]execute_cgi json_proto POST (null) [13:34:41]execute_cgi path=json_proto method=POST [13:34:41]POST find Content-Length [13:34:41]Host: 172.17.50.196:8080 [13:34:41]Content-Length: 678 [13:34:41]Content-Type: application/json [13:34:41] [13:34:41]POST finish read [13:34:41]Found Content-Length = 678 [13:34:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:41]execute_script... [13:34: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)1095934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:41]POST & json_proto [13:34:41]process_json_proto [13:34:41]json parsed OK: [13:34:41]protocol is kg_v1.0 [13:34:41]action value=close_receipt [13:34:41]process_action close_receipt [13:34:41]cmd_close_receipt [13:34:41]MH_GetDate [13:34:41]Write to MH i2c: F0 00 00 9D 5E EA [13:34:41]Write i2c OK [13:34:41]MH_I2C_Read... [13:34:41]Read from MH i2c: F0 [13:34:41]MH_I2C_Read... [13:34:41]Read from MH i2c: F0 09 00 [13:34:41]MH_I2C_Read... [13:34:41]Read from MH i2c: F0 09 00 9D 5E 00 F7 D8 24 67 72 0D 1C 67 4F [13:34:41]GetLastDocTimeStamp 1730468042 [13:34:41]current date 1730468087 [13:34:41]FM_GetShiftState [13:34:41]SAM_PROTO_GetShiftState [13:34:41]wFMCommunicate request_size=4 [13:34:41]MH_SAM_APDU [13:34:41]CAPDU: 80 13 01 00 [13:34:41]Write to MH i2c: E2 08 00 9E 5E 80 13 01 00 00 00 00 00 79 [13:34:41]Write i2c OK [13:34:41]MH_I2C_Read... [13:34:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:41]Read from MH i2c: E2 [13:34:41]MH_I2C_Read... [13:34:41]Read from MH i2c: E2 0E 00 [13:34:41]MH_I2C_Read... [13:34:41]Read from MH i2c: E2 0E 00 9E 5E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 B2 [13:34:41]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [13:34:41]wFMCommunicate OK [13:34:41]SAM_PROTO_GetShiftState done [13:34:41]FM_GetShiftState done [13:34:41]opened in 1730419081 [13:34:41]opened+sec_in_day 1730505481 [13:34:41]quantity*price = 30038 [13:34:41]sum+1 = 30039 [13:34:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 144 01.11.2024 13:34 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139963 ФПД: 237419161774938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T133447&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139963&fm=237419161774938&tin=02508201610067®Number=0000000000091631&sum=30000 [13:34:43]StoreToDocumentArchive [13:34:43]shift 558 fd 139963 [13:34:43]save to /storage/0558/doc_00139963 [13:34:43]save last doc name /storage/0558/doc_00139963 to /storage/kkm_last_doc_name [13:34:43]save OK [13:34:43]Clear old archive folders... [13:34:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:34:43]tlvbuf is 00BC50F0 [13:34:43]SAM_PROTO_ClearQueue [13:34:43]wFMCommunicate request_size=4 [13:34:43]MH_SAM_APDU [13:34:43]CAPDU: 80 09 00 00 [13:34:43]Write to MH i2c: E2 08 00 AB 5E 80 09 00 00 00 00 00 00 7B [13:34:43]Write i2c OK [13:34:43]MH_I2C_Read... [13:34:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:43]Read from MH i2c: E2 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 03 00 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 03 00 AB 5E 00 90 00 7D [13:34:43]RAPDU: 90 00 [13:34:43]wFMCommunicate OK [13:34:43]SAM_PROTO_ClearQueue done [13:34:43]KKMCreateOFDPacket [13:34:43]OFDProtocolAddRootSTLVToBuf [13:34:43]FM_MakeSignedData [13:34:43]FM_MakeSignedData [13:34:43]SAM_PROTO_SignData [13:34:43]wFMCommunicate request_size=4 [13:34:43]MH_SAM_APDU [13:34:43]CAPDU: 80 0D 01 02 [13:34:43]Write to MH i2c: E2 08 00 AC 5E 80 0D 01 02 00 00 00 00 83 [13:34:43]Write i2c OK [13:34:43]MH_I2C_Read... [13:34:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:43]Read from MH i2c: E2 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 03 00 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 03 00 AC 5E 00 90 00 7E [13:34:43]RAPDU: 90 00 [13:34:43]wFMCommunicate OK [13:34:43]wFMCommunicate request_size=255 [13:34:43]MH_SAM_APDU [13:34:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 90 00 00 00 F4 03 04 00 F7 D8 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BB 22 02 00 35 04 06 00 D7 [13:34:43]Write to MH i2c: E2 02 01 AD 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 90 00 00 00 F4 03 04 00 F7 D8 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BB 22 02 00 35 04 06 00 D7 00 00 D6 [13:34:43]Write i2c OK [13:34:43]MH_I2C_Read... [13:34:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:43]Read from MH i2c: E2 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 03 00 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 03 00 AD 5E 00 90 00 7F [13:34:43]RAPDU: 90 00 [13:34:43]wFMCommunicate OK [13:34:43]wFMCommunicate request_size=10 [13:34:43]MH_SAM_APDU [13:34:43]CAPDU: 80 0D 02 02 05 EE 74 CC EB 5A [13:34:43]Write to MH i2c: E2 0D 00 AE 5E 80 0D 02 02 05 00 EE 74 CC EB 5A 00 00 03 [13:34:43]Write i2c OK [13:34:43]MH_I2C_Read... [13:34:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:43]Read from MH i2c: E2 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 03 00 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 03 00 AE 5E 00 90 00 80 [13:34:43]RAPDU: 90 00 [13:34:43]wFMCommunicate OK [13:34:43]wFMCommunicate request_size=4 [13:34:43]MH_SAM_APDU [13:34:43]CAPDU: 80 0D 03 02 [13:34:43]Write to MH i2c: E2 08 00 AF 5E 80 0D 03 02 00 00 00 00 88 [13:34:43]Write i2c OK [13:34:43]MH_I2C_Read... [13:34:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:43]Read from MH i2c: E2 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 0B 00 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 0B 00 AF 5E 00 B7 7A 43 2E F2 92 BE FF 90 00 6C [13:34:43]RAPDU: B7 7A 43 2E F2 92 BE FF 90 00 [13:34:43]wFMCommunicate OK [13:34:43]SAM_PROTO_SignData done [13:34:43]FM_MakeSignedData done [13:34:43]CreateOFDProtocolMessage [13:34:43]wFMCommunicate request_size=4 [13:34:43]MH_SAM_APDU [13:34:43]CAPDU: 80 11 00 00 [13:34:43]Write to MH i2c: E2 08 00 B0 5E 80 11 00 00 00 00 00 00 88 [13:34:43]Write i2c OK [13:34:43]MH_I2C_Read... [13:34:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:43]Read from MH i2c: E2 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 17 00 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 17 00 B0 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E3 [13:34:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:34:43]wFMCommunicate OK [13:34:43]CreateOFDProtocolMessage done [13:34:43]OFDSenderStorePacket 139963 [13:34:43]StoreOFDPacket docnum=139963 [13:34:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 B3 53 07 01 63 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 90 00 00 00 F4 03 04 00 F7 D8 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BB 22 02 00 35 04 06 00 D7 EE 74 CC EB 5A B7 7A 43 2E F2 92 BE FF [13:34:43]CheckFolder [13:34:43]dirname=/storage/ofd_packets [13:34:43]CheckFolder done [13:34:43]ProducePacketName [13:34:43]name=ofd_packets/00139963 [13:34:43]NVStorageSaveData ofd_packets/00139963 [13:34:43]File name is /storage/ofd_packets/00139963 [13:34:43]Write 301 bytes [13:34:43]NVStorageSaveData done [13:34:43]OFDSenderStorePacket done [13:34:43]KKMCreateOFDPacket done [13:34:43]NVStorageSaveData kkm_last_timestamp [13:34:43]File name is /storage/kkm_last_timestamp [13:34:43]Write 4 bytes [13:34:43]NVStorageSaveData done [13:34:43]ExternCall_PrintAddStr [13:34:43]wPrintStart [13:34:43]Write to MH i2c: 01 00 00 B1 5E 0F [13:34:43]Write i2c OK [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: 01 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: 01 07 00 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: 01 07 00 B1 5E 00 00 00 00 00 FF 0F 24 [13:34:43]RasterBufferAndPrint [13:34:43]line Счет N : (1)1095934 [13:34:43]line ИНН: 02508201610067 [13:34:43]line Контрольно-Кассовый Чек [13:34:43]line ПРОДАЖА [13:34:43]line ТРК (МРК, ГНК) : 33 [13:34:43]line Товар: 2710124130 [13:34:43]line Аи-92-К-2 [13:34:43]line 4.490 * 66.90 [13:34:43]line = 300.38 [13:34:43]line НДС 12% НСП 1% [13:34:43]line > о реализуемом товаре [13:34:43]line ОКРУГЛЕНИЕ: -0.38 [13:34:43]line ИТОГО: 300.00 [13:34:43]line Внесено: 300.00 [13:34:43]line СДАЧА: 0.00 [13:34:43]line НСП 1% : 2.66 [13:34:43]line НДС 12% : 31.90 [13:34:43]line Наличными: 300.00 [13:34:43]line Безнал.: 0.00 [13:34:43]line Место: АЗС № 101 "Партнер Нефть" [13:34:43]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:34:43]line СНО: Общий режим [13:34:43]line Чек 144 01.11.2024 13:34 [13:34:43]line Смена: 558 ФФД: 1.0 [13:34:43]line ЗНМ: 0300000081 [13:34:43]line РНМ: 0000000000091631 [13:34:43]line Версия ККМ: 001 [13:34:43]line ФМ: 0000000000874669 [13:34:43]line ФД: 139963 [13:34:43]line ФПД: 237419161774938 [13:34:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T133447&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139963&fm=237419161774938&tin=02508201610067®Number=0000000000091631&sum=30000 [13:34:43]OFD Sender: Processing packet 139963 [packets to send 34, broken 33] [13:34:43]ProducePacketName [13:34:43]name=ofd_packets/00139963 [13:34:43]OFD Sender: To server: pG, [13:34:43]CommunicateWithHost lk.salyk.kg:30040 [13:34:43]ConnectInit lk.salyk.kg [13:34:43]written 0, free lines is 4095 [13:34:43]Connected sock=10 [13:34:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 B3 53 07 01 63 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 90 00 00 00 F4 03 04 00 F7 D8 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BB 22 02 00 35 04 06 00 D7 EE 74 CC EB 5A B7 7A 43 2E F2 92 BE FF [13:34:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 86 4D 47 00 58 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BB 22 02 00 F4 03 04 00 A2 84 24 67 B6 04 01 00 00 F0 58 54 D8 82 81 73 C4 [13:34:44]CommunicateWithHost err = 0 [13:34:44]CheckOFDResponse [13:34:44]1017 (14) - 77093643461234 [13:34:44]1041 (16) - 0000000000874669 [13:34:44]1040 (4) - 139963 [13:34:44]1012 (4) - 01.11.2024 07:34 [13:34:44]1206 (1) - 0 [13:34:44]OFD Sender: Remove packet 139963 [13:34:44]ProducePacketName [13:34:44]name=ofd_packets/00139963 [13:34:44]NVStorageDeleteData [13:34:44]Write to MH i2c: 01 00 00 DC 5E 3A [13:34:44]Write i2c OK [13:34:44]MH_I2C_Read... [13:34:44]Read from MH i2c: 01 [13:34:44]MH_I2C_Read... [13:34:44]Read from MH i2c: 01 07 00 [13:34:44]MH_I2C_Read... [13:34:44]Read from MH i2c: 01 07 00 DC 5E 00 00 00 00 00 FA 0C 47 [13:34:44]RasterBufferAndPrint [13:34:44]line [13:34:44]line [13:34:44]line [13:34:44]line [13:34:44]line [13:34:44]written 0, free lines is 3332 [13:34:44]MH_Cut [13:34:44]Write to MH i2c: D1 01 00 E3 5E 01 13 [13:34:44]Write i2c OK [13:34:44]MH_I2C_Read... [13:34:44]Read from MH i2c: D1 [13:34:44]MH_I2C_Read... [13:34:44]Read from MH i2c: D1 01 00 [13:34:44]MH_I2C_Read... [13:34:44]Read from MH i2c: D1 01 00 E3 5E 00 12 [13:34:44]Write to MH i2c: 01 00 00 E4 5E 42 [13:34:44]Write i2c OK [13:34:44]MH_I2C_Read... [13:34:44]OFD Sender: No OFD packet to send [13:34:45]*** Cut start [13:34:45]*** Partial cut [13:34:45]*** CUTSNS_PIN = 1 [13:34:45]*** CUTSNS_PIN = 0 [13:34:45]*** Brake cut motor [13:34:45]Read from MH i2c: 01 [13:34:45]MH_I2C_Read... [13:34:45]*** Stop cut motor [13:34:45]*** Cut end [13:34:45]Read from MH i2c: 01 07 00 [13:34:45]MH_I2C_Read... [13:34:45]Read from MH i2c: 01 07 00 E4 5E 00 00 00 00 00 FF 0F 57 [13:34:45]process_action close_receipt done [13:34:45]requested_data is exist [13:34:45]produce_requested_data [13:34:45]requested_item fm.sn is exist - process it [13:34:45]wFMCommunicate request_size=4 [13:34:45]MH_SAM_APDU [13:34:45]CAPDU: 80 11 00 00 [13:34:45]Write to MH i2c: E2 08 00 E5 5E 80 11 00 00 00 00 00 00 BD [13:34:45]Write i2c OK [13:34:45]MH_I2C_Read... [13:34:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:45]Read from MH i2c: E2 [13:34:45]MH_I2C_Read... [13:34:45]Read from MH i2c: E2 17 00 [13:34:45]MH_I2C_Read... [13:34:45]Read from MH i2c: E2 17 00 E5 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 18 [13:34:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:34:45]wFMCommunicate OK [13:34:45]requested_item fd.num is exist - process it [13:34:45]SAM_PROTO_GetFieldsCounters [13:34:45]wFMCommunicate request_size=4 [13:34:45]MH_SAM_APDU [13:34:45]CAPDU: 80 13 00 00 [13:34:45]Write to MH i2c: E2 08 00 E6 5E 80 13 00 00 00 00 00 00 C0 [13:34:45]Write i2c OK [13:34:45]MH_I2C_Read... [13:34:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:45]Read from MH i2c: E2 [13:34:45]MH_I2C_Read... [13:34:45]Read from MH i2c: E2 62 00 [13:34:45]MH_I2C_Read... [13:34:45]Read from MH i2c: E2 62 00 E6 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 BB 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [13:34:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 BB 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:34:45]wFMCommunicate OK [13:34:45]SAM_PROTO_GetFieldsCounters done [13:34:45]requested_item shift.num is exist - process it [13:34:45]requested_item shift.opened is exist - process it [13:34:45]req_shift_opened [13:34:45]FM_GetShiftState [13:34:45]SAM_PROTO_GetShiftState [13:34:45]wFMCommunicate request_size=4 [13:34:45]MH_SAM_APDU [13:34:45]CAPDU: 80 13 01 00 [13:34:45]Write to MH i2c: E2 08 00 E7 5E 80 13 01 00 00 00 00 00 C2 [13:34:45]Write i2c OK [13:34:45]MH_I2C_Read... [13:34:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:45]Read from MH i2c: E2 [13:34:45]MH_I2C_Read... [13:34:45]Read from MH i2c: E2 0E 00 [13:34:45]MH_I2C_Read... [13:34:45]Read from MH i2c: E2 0E 00 E7 5E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 FB [13:34:45]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [13:34:45]wFMCommunicate OK [13:34:45]SAM_PROTO_GetShiftState done [13:34:45]FM_GetShiftState done [13:34:45]req_shift_opened done [13:34:45]requested_item shift.open_date is exist - process it [13:34:45]req_shift_open_date [13:34:45]req_shift_open_date done [13:34:45]produce_requested_data done [13:34:45]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139963,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [13:34:45]process_action_free close_receipt [13:34:45]json_value_free [13:34:45]json_value_free done [13:34:45]process_json_proto returns [13:34:45]Send response to host [13:34:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139963,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [13:34:45]free response buf [13:34:45]execute_script done [13:34:45]execute_script returns [13:34:45]free content buf [13:34:45]Sock 9.Close socket [13:34:45]Sock 9.Thread stoped [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:39]OFD Sender: No OFD packet to send [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:24]OFD Sender: No OFD packet to send [13:37:29]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:39]OFD Sender: No OFD packet to send [13:37:44]OFD Sender: No OFD packet to send [13:37:49]OFD Sender: No OFD packet to send [13:37:54]OFD Sender: No OFD packet to send [13:37:59]OFD Sender: No OFD packet to send [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:34]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:54]OFD Sender: No OFD packet to send [13:38:59]OFD Sender: No OFD packet to send [13:39:04]OFD Sender: No OFD packet to send [13:39:09]OFD Sender: No OFD packet to send [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:24]OFD Sender: No OFD packet to send [13:39:29]OFD Sender: No OFD packet to send [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:54]OFD Sender: No OFD packet to send [13:39:59]OFD Sender: No OFD packet to send [13:40:04]OFD Sender: No OFD packet to send [13:40:09]OFD Sender: No OFD packet to send [13:40:14]OFD Sender: No OFD packet to send [13:40:19]OFD Sender: No OFD packet to send [13:40:24]OFD Sender: No OFD packet to send [13:40:28]accept exits with 7 [13:40:28]New connection [13:40:28]New thread 3066654052 created [13:40:28]Thread 3066510692 joined [13:40:28]Waiting for new connection... [13:40:28] Sock 7.Parse request [13:40:28]Sock 7.Check first char [13:40:28]Sock 7.First char is OK [13:40:28]request: POST /json_proto HTTP/1.0 [13:40:28]Method: POST [13:40:28]URL: /json_proto [13:40:28]Method is POST - this is cgi request [13:40:28]url: /json_proto [13:40:28]query_string will be loaded in cgi processing [13:40:28]execute_cgi json_proto POST (null) [13:40:28]execute_cgi path=json_proto method=POST [13:40:28]POST find Content-Length [13:40:28]Host: 172.17.50.196:8080 [13:40:28]Content-Length: 641 [13:40:28]Content-Type: application/json [13:40:28] [13:40:28]POST finish read [13:40:28]Found Content-Length = 641 [13:40:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335777", "tax_sys" : 0, "items" : [ { "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "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:40:28]execute_script... [13:40: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)335777", "tax_sys" : 0, "items" : [ { "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "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:40:28]POST & json_proto [13:40:28]process_json_proto [13:40:28]json parsed OK: [13:40:28]protocol is kg_v1.0 [13:40:28]action value=close_receipt [13:40:28]process_action close_receipt [13:40:28]cmd_close_receipt [13:40:28]MH_GetDate [13:40:28]Write to MH i2c: F0 00 00 E8 5E 35 [13:40:28]Write i2c OK [13:40:28]MH_I2C_Read... [13:40:28]Read from MH i2c: F0 [13:40:28]MH_I2C_Read... [13:40:28]Read from MH i2c: F0 09 00 [13:40:28]MH_I2C_Read... [13:40:28]Read from MH i2c: F0 09 00 E8 5E 00 52 DA 24 67 72 0D 1C 67 F7 [13:40:28]GetLastDocTimeStamp 1730468087 [13:40:28]current date 1730468434 [13:40:28]FM_GetShiftState [13:40:28]SAM_PROTO_GetShiftState [13:40:28]wFMCommunicate request_size=4 [13:40:28]MH_SAM_APDU [13:40:28]CAPDU: 80 13 01 00 [13:40:28]Write to MH i2c: E2 08 00 E9 5E 80 13 01 00 00 00 00 00 C4 [13:40:28]Write i2c OK [13:40:28]MH_I2C_Read... [13:40:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:28]Read from MH i2c: E2 [13:40:28]MH_I2C_Read... [13:40:28]Read from MH i2c: E2 0E 00 [13:40:28]MH_I2C_Read... [13:40:28]Read from MH i2c: E2 0E 00 E9 5E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 FD [13:40:28]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [13:40:28]wFMCommunicate OK [13:40:28]SAM_PROTO_GetShiftState done [13:40:28]FM_GetShiftState done [13:40:28]opened in 1730419081 [13:40:28]opened+sec_in_day 1730505481 [13:40:28]quantity*price = 13000 [13:40:28]sum+1 = 13001 [13:40:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 145 01.11.2024 13:40 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139964 ФПД: 134033868798217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T134034&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139964&fm=134033868798217&tin=02508201610067®Number=0000000000091631&sum=13000 0 [13:40:29]StoreToDocumentArchive [13:40:29]shift 558 fd 139964 [13:40:29]save to /storage/0558/doc_00139964 [13:40:29]save last doc name /storage/0558/doc_00139964 to /storage/kkm_last_doc_name [13:40:29]save OK [13:40:29]Clear old archive folders... [13:40:29]ProcessDocumentItem done err = 0, tmpTLVsize=273 [13:40:29]tlvbuf is 00A59620 [13:40:29]SAM_PROTO_ClearQueue [13:40:29]wFMCommunicate request_size=4 [13:40:29]MH_SAM_APDU [13:40:29]CAPDU: 80 09 00 00 [13:40:29]Write to MH i2c: E2 08 00 F6 5E 80 09 00 00 00 00 00 00 C6 [13:40:29]Write i2c OK [13:40:29]MH_I2C_Read... [13:40:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:29]Read from MH i2c: E2 [13:40:29]MH_I2C_Read... [13:40:29]Read from MH i2c: E2 03 00 [13:40:29]MH_I2C_Read... [13:40:29]Read from MH i2c: E2 03 00 F6 5E 00 90 00 C8 [13:40:29]RAPDU: 90 00 [13:40:29]wFMCommunicate OK [13:40:29]SAM_PROTO_ClearQueue done [13:40:29]KKMCreateOFDPacket [13:40:29]OFDProtocolAddRootSTLVToBuf [13:40:29]FM_MakeSignedData [13:40:29]FM_MakeSignedData [13:40:29]SAM_PROTO_SignData [13:40:29]wFMCommunicate request_size=4 [13:40:29]MH_SAM_APDU [13:40:29]CAPDU: 80 0D 01 02 [13:40:29]Write to MH i2c: E2 08 00 F7 5E 80 0D 01 02 00 00 00 00 CE [13:40:29]Write i2c OK [13:40:29]MH_I2C_Read... [13:40:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:29]Read from MH i2c: E2 [13:40:29]MH_I2C_Read... [13:40:29]Read from MH i2c: E2 03 00 [13:40:29]MH_I2C_Read... [13:40:29]Read from MH i2c: E2 03 00 F7 5E 00 90 00 C9 [13:40:29]RAPDU: 90 00 [13:40:29]wFMCommunicate OK [13:40:29]wFMCommunicate request_size=255 [13:40:29]MH_SAM_APDU [13:40:29]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 91 00 00 00 F4 03 04 00 52 DA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 [13:40:29]Write to MH i2c: E2 02 01 F8 5E 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 91 00 00 00 F4 03 04 00 52 DA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 19 [13:40:29]Write i2c OK [13:40:29]MH_I2C_Read... [13:40:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:29]Read from MH i2c: E2 [13:40:29]MH_I2C_Read... [13:40:29]Read from MH i2c: E2 03 00 [13:40:29]MH_I2C_Read... [13:40:29]Read from MH i2c: E2 03 00 F8 5E 00 90 00 CA [13:40:29]RAPDU: 90 00 [13:40:29]wFMCommunicate OK [13:40:29]wFMCommunicate request_size=32 [13:40:29]MH_SAM_APDU [13:40:29]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 36 39 10 04 04 00 BC 22 02 00 35 04 06 00 79 E7 31 23 39 09 [13:40:29]Write to MH i2c: E2 23 00 F9 5E 80 0D 02 02 1B 00 30 30 30 38 37 34 36 36 39 10 04 04 00 BC 22 02 00 35 04 06 00 79 E7 31 23 39 09 00 00 0C [13:40:29]Write i2c OK [13:40:29]MH_I2C_Read... [13:40:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:29]Read from MH i2c: E2 [13:40:29]MH_I2C_Read... [13:40:29]Read from MH i2c: E2 03 00 [13:40:29]MH_I2C_Read... [13:40:29]Read from MH i2c: E2 03 00 F9 5E 00 90 00 CB [13:40:29]RAPDU: 90 00 [13:40:29]wFMCommunicate OK [13:40:29]wFMCommunicate request_size=4 [13:40:29]MH_SAM_APDU [13:40:29]CAPDU: 80 0D 03 02 [13:40:29]Write to MH i2c: E2 08 00 FA 5E 80 0D 03 02 00 00 00 00 D3 [13:40:29]Write i2c OK [13:40:29]MH_I2C_Read... [13:40:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:29]Read from MH i2c: E2 [13:40:29]MH_I2C_Read... [13:40:29]Read from MH i2c: E2 0B 00 [13:40:29]MH_I2C_Read... [13:40:29]Read from MH i2c: E2 0B 00 FA 5E 00 8B 5B 5D 4D F7 D8 87 54 90 00 0E [13:40:29]RAPDU: 8B 5B 5D 4D F7 D8 87 54 90 00 [13:40:29]wFMCommunicate OK [13:40:29]SAM_PROTO_SignData done [13:40:29]FM_MakeSignedData done [13:40:29]CreateOFDProtocolMessage [13:40:29]wFMCommunicate request_size=4 [13:40:29]MH_SAM_APDU [13:40:29]CAPDU: 80 11 00 00 [13:40:29]Write to MH i2c: E2 08 00 FB 5E 80 11 00 00 00 00 00 00 D3 [13:40:29]Write i2c OK [13:40:29]MH_I2C_Read... [13:40:30]OFD Sender: No OFD packet to send [13:40:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:30]Read from MH i2c: E2 [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: E2 17 00 [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: E2 17 00 FB 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2E [13:40:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:40:30]wFMCommunicate OK [13:40:30]CreateOFDProtocolMessage done [13:40:30]OFDSenderStorePacket 139964 [13:40:30]StoreOFDPacket docnum=139964 [13:40:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 BF 5D 1D 01 62 1D 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 91 00 00 00 F4 03 04 00 52 DA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BC 22 02 00 35 04 06 00 79 E7 31 23 39 09 8B 5B 5D 4D F7 D8 87 54 [13:40:30]CheckFolder [13:40:30]dirname=/storage/ofd_packets [13:40:30]CheckFolder done [13:40:30]ProducePacketName [13:40:30]name=ofd_packets/00139964 [13:40:30]NVStorageSaveData ofd_packets/00139964 [13:40:30]File name is /storage/ofd_packets/00139964 [13:40:30]Write 323 bytes [13:40:30]NVStorageSaveData done [13:40:30]OFDSenderStorePacket done [13:40:30]KKMCreateOFDPacket done [13:40:30]NVStorageSaveData kkm_last_timestamp [13:40:30]File name is /storage/kkm_last_timestamp [13:40:30]Write 4 bytes [13:40:30]NVStorageSaveData done [13:40:30]ExternCall_PrintAddStr [13:40:30]wPrintStart [13:40:30]Write to MH i2c: 01 00 00 FC 5E 5A [13:40:30]Write i2c OK [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: 01 [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: 01 07 00 [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: 01 07 00 FC 5E 00 00 00 00 00 FF 0F 6F [13:40:30]RasterBufferAndPrint [13:40:30]line Счет N : (3)335777 [13:40:30]line ИНН: 02508201610067 [13:40:30]line Контрольно-Кассовый Чек [13:40:30]line ПРОДАЖА [13:40:30]line Товар: 4630007400389 [13:40:30]line Семечки ДЖИНН 140г [13:40:30]line 1.000 * 130.00 [13:40:30]line = 130.00 [13:40:30]line НДС 12% НСП 1% [13:40:30]line > о реализуемом товаре [13:40:30]line ИТОГО: 130.00 [13:40:30]line НСП 1% : 1.15 [13:40:30]line НДС 12% : 13.80 [13:40:30]line Наличными: 130.00 [13:40:30]line Безнал.: 0.00 [13:40:30]line Место: АЗС № 101 "Партнер Нефть" [13:40:30]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:40:30]line СНО: Общий режим [13:40:30]line Чек 145 01.11.2024 13:40 [13:40:30]line Смена: 558 ФФД: 1.0 [13:40:30]line ЗНМ: 0300000081 [13:40:30]line РНМ: 0000000000091631 [13:40:30]line Версия ККМ: 001 [13:40:30]line ФМ: 0000000000874669 [13:40:30]line ФД: 139964 [13:40:30]line ФПД: 134033868798217 [13:40:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T134034&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139964&fm=134033868798217&tin=02508201610067®Number=0000000000091631&sum=13000 [13:40:30]line 0 [13:40:30]OFD Sender: Processing packet 139964 [packets to send 34, broken 33] [13:40:30]ProducePacketName [13:40:30]name=ofd_packets/00139964 [13:40:30]OFD Sender: To server: pG, [13:40:30]CommunicateWithHost lk.salyk.kg:30040 [13:40:30]ConnectInit lk.salyk.kg [13:40:30]written 0, free lines is 4095 [13:40:30]Connected sock=10 [13:40:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 BF 5D 1D 01 62 1D 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 91 00 00 00 F4 03 04 00 52 DA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BC 22 02 00 35 04 06 00 79 E7 31 23 39 09 8B 5B 5D 4D F7 D8 87 54 [13:40:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 2D 75 47 00 79 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 34 36 36 39 10 04 04 00 BC 22 02 00 F4 03 04 00 FD 85 24 67 B6 04 01 00 00 A1 AF 7C 5C E1 8C 38 63 [13:40:30]CommunicateWithHost err = 0 [13:40:30]CheckOFDResponse [13:40:30]1017 (14) - 77093643461234 [13:40:30]1041 (16) - 0000000000874669 [13:40:30]1040 (4) - 139964 [13:40:30]1012 (4) - 01.11.2024 07:40 [13:40:30]1206 (1) - 0 [13:40:30]OFD Sender: Remove packet 139964 [13:40:30]ProducePacketName [13:40:30]name=ofd_packets/00139964 [13:40:30]NVStorageDeleteData [13:40:30]Write to MH i2c: 01 00 00 24 5F 83 [13:40:30]Write i2c OK [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: 01 [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: 01 07 00 [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: 01 07 00 24 5F 00 00 00 00 00 24 0D BB [13:40:30]RasterBufferAndPrint [13:40:30]line [13:40:30]line [13:40:30]line [13:40:30]line [13:40:30]line [13:40:30]written 0, free lines is 3373 [13:40:30]MH_Cut [13:40:30]Write to MH i2c: D1 01 00 2B 5F 01 5C [13:40:30]Write i2c OK [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: D1 [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: D1 01 00 [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: D1 01 00 2B 5F 00 5B [13:40:30]Write to MH i2c: 01 00 00 2C 5F 8B [13:40:30]Write i2c OK [13:40:30]MH_I2C_Read... [13:40:31]OFD Sender: No OFD packet to send [13:40:31]*** Cut start [13:40:31]*** Partial cut [13:40:31]*** CUTSNS_PIN = 1 [13:40:31]*** CUTSNS_PIN = 0 [13:40:31]*** Brake cut motor [13:40:32]Read from MH i2c: 01 [13:40:32]MH_I2C_Read... [13:40:32]*** Stop cut motor [13:40:32]*** Cut end [13:40:32]Read from MH i2c: 01 07 00 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: 01 07 00 2C 5F 00 00 00 00 00 FF 0F A0 [13:40:32]process_action close_receipt done [13:40:32]requested_data is exist [13:40:32]produce_requested_data [13:40:32]requested_item fm.sn is exist - process it [13:40:32]wFMCommunicate request_size=4 [13:40:32]MH_SAM_APDU [13:40:32]CAPDU: 80 11 00 00 [13:40:32]Write to MH i2c: E2 08 00 2D 5F 80 11 00 00 00 00 00 00 06 [13:40:32]Write i2c OK [13:40:32]MH_I2C_Read... [13:40:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:32]Read from MH i2c: E2 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: E2 17 00 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: E2 17 00 2D 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 61 [13:40:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:40:32]wFMCommunicate OK [13:40:32]requested_item fd.num is exist - process it [13:40:32]SAM_PROTO_GetFieldsCounters [13:40:32]wFMCommunicate request_size=4 [13:40:32]MH_SAM_APDU [13:40:32]CAPDU: 80 13 00 00 [13:40:32]Write to MH i2c: E2 08 00 2E 5F 80 13 00 00 00 00 00 00 09 [13:40:32]Write i2c OK [13:40:32]MH_I2C_Read... [13:40:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:32]Read from MH i2c: E2 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: E2 62 00 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: E2 62 00 2E 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 BC 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [13:40:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 BC 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:40:32]wFMCommunicate OK [13:40:32]SAM_PROTO_GetFieldsCounters done [13:40:32]requested_item shift.num is exist - process it [13:40:32]requested_item shift.opened is exist - process it [13:40:32]req_shift_opened [13:40:32]FM_GetShiftState [13:40:32]SAM_PROTO_GetShiftState [13:40:32]wFMCommunicate request_size=4 [13:40:32]MH_SAM_APDU [13:40:32]CAPDU: 80 13 01 00 [13:40:32]Write to MH i2c: E2 08 00 2F 5F 80 13 01 00 00 00 00 00 0B [13:40:32]Write i2c OK [13:40:32]MH_I2C_Read... [13:40:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:32]Read from MH i2c: E2 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: E2 0E 00 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: E2 0E 00 2F 5F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 44 [13:40:32]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [13:40:32]wFMCommunicate OK [13:40:32]SAM_PROTO_GetShiftState done [13:40:32]FM_GetShiftState done [13:40:32]req_shift_opened done [13:40:32]requested_item shift.open_date is exist - process it [13:40:32]req_shift_open_date [13:40:32]req_shift_open_date done [13:40:32]produce_requested_data done [13:40:32]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139964,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [13:40:32]process_action_free close_receipt [13:40:32]json_value_free [13:40:32]json_value_free done [13:40:32]process_json_proto returns [13:40:32]Send response to host [13:40:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139964,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [13:40:32]free response buf [13:40:32]execute_script done [13:40:32]execute_script returns [13:40:32]free content buf [13:40:32]Sock 7.Close socket [13:40:32]Sock 7.Thread stoped [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:46]accept exits with 9 [13:40:46]New connection [13:40:46]New thread 3066510692 created [13:40:46]Thread 3066654052 joined [13:40:46]Waiting for new connection... [13:40:46] Sock 9.Parse request [13:40:46]Sock 9.Check first char [13:40:46]Sock 9.First char is OK [13:40:46]request: POST /json_proto HTTP/1.0 [13:40:46]Method: POST [13:40:46]URL: /json_proto [13:40:46]Method is POST - this is cgi request [13:40:46]url: /json_proto [13:40:46]query_string will be loaded in cgi processing [13:40:46]execute_cgi json_proto POST (null) [13:40:46]execute_cgi path=json_proto method=POST [13:40:46]POST find Content-Length [13:40:46]Host: 172.17.50.196:8080 [13:40:46]Content-Length: 1031 [13:40:46]Content-Type: application/json [13:40:46] [13:40:46]POST finish read [13:40:46]Found Content-Length = 1031 [13:40:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335778", "tax_sys" : 0, "items" : [ { "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" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000273673", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 1\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 264.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:46]execute_script... [13:40:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335778", "tax_sys" : 0, "items" : [ { "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" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000273673", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 1\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 264.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:46]POST & json_proto [13:40:46]process_json_proto [13:40:46]json parsed OK: [13:40:46]protocol is kg_v1.0 [13:40:46]action value=close_receipt [13:40:46]process_action close_receipt [13:40:46]cmd_close_receipt [13:40:46]MH_GetDate [13:40:46]Write to MH i2c: F0 00 00 30 5F 7E [13:40:46]Write i2c OK [13:40:46]MH_I2C_Read... [13:40:46]Read from MH i2c: F0 [13:40:46]MH_I2C_Read... [13:40:46]Read from MH i2c: F0 09 00 [13:40:46]MH_I2C_Read... [13:40:46]Read from MH i2c: F0 09 00 30 5F 00 64 DA 24 67 72 0D 1C 67 52 [13:40:46]GetLastDocTimeStamp 1730468434 [13:40:46]current date 1730468452 [13:40:46]FM_GetShiftState [13:40:46]SAM_PROTO_GetShiftState [13:40:46]wFMCommunicate request_size=4 [13:40:46]MH_SAM_APDU [13:40:46]CAPDU: 80 13 01 00 [13:40:46]Write to MH i2c: E2 08 00 31 5F 80 13 01 00 00 00 00 00 0D [13:40:46]Write i2c OK [13:40:46]MH_I2C_Read... [13:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:46]Read from MH i2c: E2 [13:40:46]MH_I2C_Read... [13:40:46]Read from MH i2c: E2 0E 00 [13:40:46]MH_I2C_Read... [13:40:46]Read from MH i2c: E2 0E 00 31 5F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 46 [13:40:46]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [13:40:46]wFMCommunicate OK [13:40:46]SAM_PROTO_GetShiftState done [13:40:46]FM_GetShiftState done [13:40:46]opened in 1730419081 [13:40:46]opened+sec_in_day 1730505481 [13:40:46]quantity*price = 8900 [13:40:46]sum+1 = 8901 [13:40:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000273673 Сок Piko Pulpy красный виноград ПЭТ 1л 1.000 * 175.00 = 175.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 264.00 НСП 1% : 2.34 НДС 12% : 28.03 Наличными: 264.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 146 01.11.2024 13:40 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139965 ФПД: 112126444709140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T134052&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139965&fm=112126444709140&tin=02508201610067®Number=0000000000091631&sum=26400 0 [13:40:47]StoreToDocumentArchive [13:40:47]shift 558 fd 139965 [13:40:47]save to /storage/0558/doc_00139965 [13:40:47]save last doc name /storage/0558/doc_00139965 to /storage/kkm_last_doc_name [13:40:47]save OK [13:40:47]Clear old archive folders... [13:40:47]ProcessDocumentItem done err = 0, tmpTLVsize=431 [13:40:47]tlvbuf is 00BA7AE0 [13:40:47]SAM_PROTO_ClearQueue [13:40:47]wFMCommunicate request_size=4 [13:40:47]MH_SAM_APDU [13:40:47]CAPDU: 80 09 00 00 [13:40:47]Write to MH i2c: E2 08 00 3E 5F 80 09 00 00 00 00 00 00 0F [13:40:47]Write i2c OK [13:40:47]MH_I2C_Read... [13:40:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:47]Read from MH i2c: E2 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 03 00 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 03 00 3E 5F 00 90 00 11 [13:40:47]RAPDU: 90 00 [13:40:47]wFMCommunicate OK [13:40:47]SAM_PROTO_ClearQueue done [13:40:47]KKMCreateOFDPacket [13:40:47]OFDProtocolAddRootSTLVToBuf [13:40:47]FM_MakeSignedData [13:40:47]FM_MakeSignedData [13:40:47]SAM_PROTO_SignData [13:40:47]wFMCommunicate request_size=4 [13:40:47]MH_SAM_APDU [13:40:47]CAPDU: 80 0D 01 02 [13:40:47]Write to MH i2c: E2 08 00 3F 5F 80 0D 01 02 00 00 00 00 17 [13:40:47]Write i2c OK [13:40:47]MH_I2C_Read... [13:40:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:47]Read from MH i2c: E2 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 03 00 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 03 00 3F 5F 00 90 00 12 [13:40:47]RAPDU: 90 00 [13:40:47]wFMCommunicate OK [13:40:47]wFMCommunicate request_size=255 [13:40:47]MH_SAM_APDU [13:40:47]CAPDU: 80 0D 02 02 FA 03 00 AF 01 1E 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 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C [13:40:47]Write to MH i2c: E2 02 01 40 5F 80 0D 02 02 FA 00 03 00 AF 01 1E 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 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 00 00 1B [13:40:47]Write i2c OK [13:40:47]MH_I2C_Read... [13:40:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:47]Read from MH i2c: E2 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 03 00 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 03 00 40 5F 00 90 00 13 [13:40:47]RAPDU: 90 00 [13:40:47]wFMCommunicate OK [13:40:47]wFMCommunicate request_size=190 [13:40:47]MH_SAM_APDU [13:40:47]CAPDU: 80 0D 02 02 B9 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 20 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 64 DA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BD 22 02 00 35 04 06 00 65 FA 78 E8 25 14 [13:40:47]Write to MH i2c: E2 C1 00 41 5F 80 0D 02 02 B9 00 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 20 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 64 DA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BD 22 02 00 35 04 06 00 65 FA 78 E8 25 14 00 00 22 [13:40:47]Write i2c OK [13:40:47]MH_I2C_Read... [13:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:48]Read from MH i2c: E2 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: E2 03 00 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: E2 03 00 41 5F 00 90 00 14 [13:40:48]RAPDU: 90 00 [13:40:48]wFMCommunicate OK [13:40:48]wFMCommunicate request_size=4 [13:40:48]MH_SAM_APDU [13:40:48]CAPDU: 80 0D 03 02 [13:40:48]Write to MH i2c: E2 08 00 42 5F 80 0D 03 02 00 00 00 00 1C [13:40:48]Write i2c OK [13:40:48]MH_I2C_Read... [13:40:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:48]Read from MH i2c: E2 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: E2 0B 00 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: E2 0B 00 42 5F 00 C4 7B E9 9E 3E C0 5C 82 90 00 BF [13:40:48]RAPDU: C4 7B E9 9E 3E C0 5C 82 90 00 [13:40:48]wFMCommunicate OK [13:40:48]SAM_PROTO_SignData done [13:40:48]FM_MakeSignedData done [13:40:48]CreateOFDProtocolMessage [13:40:48]wFMCommunicate request_size=4 [13:40:48]MH_SAM_APDU [13:40:48]CAPDU: 80 11 00 00 [13:40:48]Write to MH i2c: E2 08 00 43 5F 80 11 00 00 00 00 00 00 1C [13:40:48]Write i2c OK [13:40:48]MH_I2C_Read... [13:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:48]Read from MH i2c: E2 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: E2 17 00 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: E2 17 00 43 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 77 [13:40:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:40:48]wFMCommunicate OK [13:40:48]CreateOFDProtocolMessage done [13:40:48]OFDSenderStorePacket 139965 [13:40:48]StoreOFDPacket docnum=139965 [13:40:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 C3 01 00 00 66 1F BB 01 C3 6B 5A 03 01 00 03 00 AF 01 1E 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 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 20 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 64 DA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BD 22 02 00 35 04 06 00 65 FA 78 E8 25 14 C4 7B E9 9E 3E C0 5C 82 [13:40:48]CheckFolder [13:40:48]dirname=/storage/ofd_packets [13:40:48]CheckFolder done [13:40:48]ProducePacketName [13:40:48]name=ofd_packets/00139965 [13:40:48]NVStorageSaveData ofd_packets/00139965 [13:40:48]File name is /storage/ofd_packets/00139965 [13:40:48]Write 481 bytes [13:40:48]NVStorageSaveData done [13:40:48]OFDSenderStorePacket done [13:40:48]KKMCreateOFDPacket done [13:40:48]NVStorageSaveData kkm_last_timestamp [13:40:48]File name is /storage/kkm_last_timestamp [13:40:48]Write 4 bytes [13:40:48]NVStorageSaveData done [13:40:48]ExternCall_PrintAddStr [13:40:48]wPrintStart [13:40:48]Write to MH i2c: 01 00 00 44 5F A3 [13:40:48]Write i2c OK [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: 01 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: 01 07 00 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: 01 07 00 44 5F 00 00 00 00 00 FF 0F B8 [13:40:48]RasterBufferAndPrint [13:40:48]line Счет N : (3)335778 [13:40:48]line ИНН: 02508201610067 [13:40:48]line Контрольно-Кассовый Чек [13:40:48]line ПРОДАЖА [13:40:48]line Товар: 4660085515163 [13:40:48]line Шок Батончик Сникерс супер 95/80г [13:40:48]line 1.000 * 89.00 [13:40:48]line = 89.00 [13:40:48]line НДС 12% НСП 1% [13:40:48]line > о реализуемом товаре [13:40:48]line Товар: 5449000273673 [13:40:48]line Сок Piko Pulpy красный виноград ПЭТ 1л [13:40:48]line 1.000 * 175.00 [13:40:48]line = 175.00 [13:40:48]line НДС 12% НСП 1% [13:40:48]line > о реализуемом товаре [13:40:48]line ИТОГО: 264.00 [13:40:48]line НСП 1% : 2.34 [13:40:48]line НДС 12% : 28.03 [13:40:48]line Наличными: 264.00 [13:40:48]line Безнал.: 0.00 [13:40:48]line Место: АЗС № 101 "Партнер Нефть" [13:40:48]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:40:48]line СНО: Общий режим [13:40:48]line Чек 146 01.11.2024 13:40 [13:40:48]line Смена: 558 ФФД: 1.0 [13:40:48]line ЗНМ: 0300000081 [13:40:48]line РНМ: 0000000000091631 [13:40:48]line Версия ККМ: 001 [13:40:48]line ФМ: 0000000000874669 [13:40:48]line ФД: 139965 [13:40:48]line ФПД: 112126444709140 [13:40:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T134052&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139965&fm=112126444709140&tin=02508201610067®Number=0000000000091631&sum=26400 [13:40:48]line 0 [13:40:48]OFD Sender: Processing packet 139965 [packets to send 34, broken 33] [13:40:48]ProducePacketName [13:40:48]name=ofd_packets/00139965 [13:40:48]OFD Sender: To server: pG, [13:40:48]CommunicateWithHost lk.salyk.kg:30040 [13:40:48]ConnectInit lk.salyk.kg [13:40:48]written 0, free lines is 4095 [13:40:48]Connected sock=11 [13:40:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 C3 01 00 00 66 1F BB 01 C3 6B 5A 03 01 00 03 00 AF 01 1E 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 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 20 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 64 DA 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BD 22 02 00 35 04 06 00 65 FA 78 E8 25 14 C4 7B E9 9E 3E C0 5C 82 [13:40:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 9C C2 47 00 9A D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BD 22 02 00 F4 03 04 00 0F 86 24 67 B6 04 01 00 00 A0 DC C1 63 A3 D7 4E E6 [13:40:48]CommunicateWithHost err = 0 [13:40:48]CheckOFDResponse [13:40:48]1017 (14) - 77093643461234 [13:40:48]1041 (16) - 0000000000874669 [13:40:48]1040 (4) - 139965 [13:40:48]1012 (4) - 01.11.2024 07:41 [13:40:48]1206 (1) - 0 [13:40:48]OFD Sender: Remove packet 139965 [13:40:48]ProducePacketName [13:40:48]name=ofd_packets/00139965 [13:40:48]NVStorageDeleteData [13:40:49]Write to MH i2c: 01 00 00 74 5F D3 [13:40:49]Write i2c OK [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: 01 [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: 01 07 00 [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: 01 07 00 74 5F 00 00 00 00 00 B4 0C 9A [13:40:49]RasterBufferAndPrint [13:40:49]line [13:40:49]line [13:40:49]line [13:40:49]line [13:40:49]line [13:40:49]written 0, free lines is 3258 [13:40:49]MH_Cut [13:40:49]Write to MH i2c: D1 01 00 7B 5F 01 AC [13:40:49]Write i2c OK [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: D1 [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: D1 01 00 [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: D1 01 00 7B 5F 00 AB [13:40:49]Write to MH i2c: 01 00 00 7C 5F DB [13:40:49]Write i2c OK [13:40:49]MH_I2C_Read... [13:40:49]OFD Sender: No OFD packet to send [13:40:49]*** Cut start [13:40:49]*** Partial cut [13:40:49]*** CUTSNS_PIN = 1 [13:40:49]*** CUTSNS_PIN = 0 [13:40:50]*** Brake cut motor [13:40:50]Read from MH i2c: 01 [13:40:50]MH_I2C_Read... [13:40:50]*** Stop cut motor [13:40:50]*** Cut end [13:40:50]Read from MH i2c: 01 07 00 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: 01 07 00 7C 5F 00 00 00 00 00 FF 0F F0 [13:40:50]process_action close_receipt done [13:40:50]requested_data is exist [13:40:50]produce_requested_data [13:40:50]requested_item fm.sn is exist - process it [13:40:50]wFMCommunicate request_size=4 [13:40:50]MH_SAM_APDU [13:40:50]CAPDU: 80 11 00 00 [13:40:50]Write to MH i2c: E2 08 00 7D 5F 80 11 00 00 00 00 00 00 56 [13:40:50]Write i2c OK [13:40:50]MH_I2C_Read... [13:40:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:50]Read from MH i2c: E2 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 17 00 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 17 00 7D 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B1 [13:40:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:40:50]wFMCommunicate OK [13:40:50]requested_item fd.num is exist - process it [13:40:50]SAM_PROTO_GetFieldsCounters [13:40:50]wFMCommunicate request_size=4 [13:40:50]MH_SAM_APDU [13:40:50]CAPDU: 80 13 00 00 [13:40:50]Write to MH i2c: E2 08 00 7E 5F 80 13 00 00 00 00 00 00 59 [13:40:50]Write i2c OK [13:40:50]MH_I2C_Read... [13:40:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:50]Read from MH i2c: E2 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 62 00 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 62 00 7E 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 BD 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [13:40:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 BD 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:40:50]wFMCommunicate OK [13:40:50]SAM_PROTO_GetFieldsCounters done [13:40:50]requested_item shift.num is exist - process it [13:40:50]requested_item shift.opened is exist - process it [13:40:50]req_shift_opened [13:40:50]FM_GetShiftState [13:40:50]SAM_PROTO_GetShiftState [13:40:50]wFMCommunicate request_size=4 [13:40:50]MH_SAM_APDU [13:40:50]CAPDU: 80 13 01 00 [13:40:50]Write to MH i2c: E2 08 00 7F 5F 80 13 01 00 00 00 00 00 5B [13:40:50]Write i2c OK [13:40:50]MH_I2C_Read... [13:40:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:50]Read from MH i2c: E2 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 0E 00 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 0E 00 7F 5F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 94 [13:40:50]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [13:40:50]wFMCommunicate OK [13:40:50]SAM_PROTO_GetShiftState done [13:40:50]FM_GetShiftState done [13:40:50]req_shift_opened done [13:40:50]requested_item shift.open_date is exist - process it [13:40:50]req_shift_open_date [13:40:50]req_shift_open_date done [13:40:50]produce_requested_data done [13:40:50]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139965,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [13:40:50]process_action_free close_receipt [13:40:50]json_value_free [13:40:50]json_value_free done [13:40:50]process_json_proto returns [13:40:50]Send response to host [13:40:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139965,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [13:40:50]free response buf [13:40:50]execute_script done [13:40:50]execute_script returns [13:40:50]free content buf [13:40:50]Sock 9.Close socket [13:40:50]Sock 9.Thread stoped [13:40:54]OFD Sender: No OFD packet to send [13:40:59]OFD Sender: No OFD packet to send [13:41:04]OFD Sender: No OFD packet to send [13:41:09]OFD Sender: No OFD packet to send [13:41:14]OFD Sender: No OFD packet to send [13:41:19]OFD Sender: No OFD packet to send [13:41:24]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43: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:54]accept exits with 7 [13:43:54]New connection [13:43:54]New thread 3066654052 created [13:43:54]Thread 3066510692 joined [13:43:54]Waiting for new connection... [13:43:54] Sock 7.Parse request [13:43:54]Sock 7.Check first char [13:43:54]Sock 7.First char is OK [13:43:54]request: POST /json_proto HTTP/1.0 [13:43:54]Method: POST [13:43:54]URL: /json_proto [13:43:54]Method is POST - this is cgi request [13:43:54]url: /json_proto [13:43:54]query_string will be loaded in cgi processing [13:43:54]execute_cgi json_proto POST (null) [13:43:54]execute_cgi path=json_proto method=POST [13:43:54]POST find Content-Length [13:43:54]Host: 172.17.50.196:8080 [13:43:54]Content-Length: 1146 [13:43:54]Content-Type: application/json [13:43:54] [13:43:54]POST finish read [13:43:54]Found Content-Length = 1146 [13:43:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335779", "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": "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": "4602606003759", "name": "\u041C\u0430\u0440-\u0434 Fruit-tella \u0437\u0432\u0435\u0440\u0438 mix 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" : 348.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:54]execute_script... [13:43: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)335779", "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": "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": "4602606003759", "name": "\u041C\u0430\u0440-\u0434 Fruit-tella \u0437\u0432\u0435\u0440\u0438 mix 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" : 348.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:54]POST & json_proto [13:43:54]process_json_proto [13:43:54]json parsed OK: [13:43:54]protocol is kg_v1.0 [13:43:54]action value=close_receipt [13:43:54]process_action close_receipt [13:43:54]cmd_close_receipt [13:43:54]MH_GetDate [13:43:54]Write to MH i2c: F0 00 00 80 5F CE [13:43:54]Write i2c OK [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: F0 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: F0 09 00 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: F0 09 00 80 5F 00 20 DB 24 67 72 0D 1C 67 5F [13:43:54]GetLastDocTimeStamp 1730468452 [13:43:54]current date 1730468640 [13:43:54]FM_GetShiftState [13:43:54]SAM_PROTO_GetShiftState [13:43:54]wFMCommunicate request_size=4 [13:43:54]MH_SAM_APDU [13:43:54]CAPDU: 80 13 01 00 [13:43:54]Write to MH i2c: E2 08 00 81 5F 80 13 01 00 00 00 00 00 5D [13:43:54]Write i2c OK [13:43:54]MH_I2C_Read... [13:43:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:54]Read from MH i2c: E2 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: E2 0E 00 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: E2 0E 00 81 5F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 96 [13:43:54]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [13:43:54]wFMCommunicate OK [13:43:54]SAM_PROTO_GetShiftState done [13:43:54]FM_GetShiftState done [13:43:54]opened in 1730419081 [13:43:54]opened+sec_in_day 1730505481 [13:43:54]quantity*price = 11500 [13:43:54]sum+1 = 11501 [13:43:54]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4602606003759 Мар-д Fruit-tella звери mix 30*70г 1.000 * 103.00 = 103.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 348.00 НСП 1% : 3.08 НДС 12% : 36.95 Наличными: 348.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 147 01.11.2024 13:44 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139966 ФПД: 172748386198492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T134400&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139966&fm=172748386198492&tin=02508201610067®Number=0000000000091631&sum=34800 0 [13:43:55]StoreToDocumentArchive [13:43:55]shift 558 fd 139966 [13:43:55]save to /storage/0558/doc_00139966 [13:43:55]save last doc name /storage/0558/doc_00139966 to /storage/kkm_last_doc_name [13:43:55]save OK [13:43:55]Clear old archive folders... [13:43:55]ProcessDocumentItem done err = 0, tmpTLVsize=502 [13:43:55]tlvbuf is B6F0C330 [13:43:55]SAM_PROTO_ClearQueue [13:43:55]wFMCommunicate request_size=4 [13:43:55]MH_SAM_APDU [13:43:55]CAPDU: 80 09 00 00 [13:43:55]Write to MH i2c: E2 08 00 8E 5F 80 09 00 00 00 00 00 00 5F [13:43:55]Write i2c OK [13:43:55]MH_I2C_Read... [13:43:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:55]Read from MH i2c: E2 [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: E2 03 00 [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: E2 03 00 8E 5F 00 90 00 61 [13:43:55]RAPDU: 90 00 [13:43:55]wFMCommunicate OK [13:43:55]SAM_PROTO_ClearQueue done [13:43:55]KKMCreateOFDPacket [13:43:55]OFDProtocolAddRootSTLVToBuf [13:43:55]FM_MakeSignedData [13:43:55]FM_MakeSignedData [13:43:55]SAM_PROTO_SignData [13:43:55]wFMCommunicate request_size=4 [13:43:55]MH_SAM_APDU [13:43:55]CAPDU: 80 0D 01 02 [13:43:55]Write to MH i2c: E2 08 00 8F 5F 80 0D 01 02 00 00 00 00 67 [13:43:55]Write i2c OK [13:43:55]MH_I2C_Read... [13:43:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:55]Read from MH i2c: E2 [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: E2 03 00 [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: E2 03 00 8F 5F 00 90 00 62 [13:43:55]RAPDU: 90 00 [13:43:55]wFMCommunicate OK [13:43:55]wFMCommunicate request_size=255 [13:43:55]MH_SAM_APDU [13:43:55]CAPDU: 80 0D 02 02 FA 03 00 F6 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 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 70 00 8A 04 0D 00 34 36 30 32 36 30 36 30 30 33 37 35 39 06 04 2C 00 [13:43:55]Write to MH i2c: E2 02 01 90 5F 80 0D 02 02 FA 00 03 00 F6 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 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 70 00 8A 04 0D 00 34 36 30 32 36 30 36 30 30 33 37 35 39 06 04 2C 00 00 00 F0 [13:43:56]Write i2c OK [13:43:56]MH_I2C_Read... [13:43:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:56]Read from MH i2c: E2 [13:43:56]MH_I2C_Read... [13:43:56]Read from MH i2c: E2 03 00 [13:43:56]MH_I2C_Read... [13:43:56]Read from MH i2c: E2 03 00 90 5F 00 90 00 63 [13:43:56]RAPDU: 90 00 [13:43:56]wFMCommunicate OK [13:43:56]wFMCommunicate request_size=255 [13:43:56]MH_SAM_APDU [13:43:56]CAPDU: 80 0D 02 02 FA D0 9C D0 B0 D1 80 2D D0 B4 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D0 B7 D0 B2 D0 B5 D1 80 D0 B8 20 6D 69 78 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 F0 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0E 00 00 00 00 07 04 06 00 F0 87 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 20 DB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BE 22 02 00 35 04 06 00 [13:43:56]Write to MH i2c: E2 02 01 91 5F 80 0D 02 02 FA 00 D0 9C D0 B0 D1 80 2D D0 B4 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D0 B7 D0 B2 D0 B5 D1 80 D0 B8 20 6D 69 78 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 F0 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0E 00 00 00 00 07 04 06 00 F0 87 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 20 DB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BE 22 02 00 35 04 06 00 00 00 24 [13:43:56]Write i2c OK [13:43:56]MH_I2C_Read... [13:43:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:56]Read from MH i2c: E2 [13:43:56]MH_I2C_Read... [13:43:56]Read from MH i2c: E2 03 00 [13:43:56]MH_I2C_Read... [13:43:56]Read from MH i2c: E2 03 00 91 5F 00 90 00 64 [13:43:56]RAPDU: 90 00 [13:43:56]wFMCommunicate OK [13:43:56]wFMCommunicate request_size=11 [13:43:56]MH_SAM_APDU [13:43:56]CAPDU: 80 0D 02 02 06 9D 1D 1E 31 E3 DC [13:43:56]Write to MH i2c: E2 0E 00 92 5F 80 0D 02 02 06 00 9D 1D 1E 31 E3 DC 00 00 3F [13:43:56]Write i2c OK [13:43:56]MH_I2C_Read... [13:43:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:56]Read from MH i2c: E2 [13:43:56]MH_I2C_Read... [13:43:56]Read from MH i2c: E2 03 00 [13:43:56]MH_I2C_Read... [13:43:56]Read from MH i2c: E2 03 00 92 5F 00 90 00 65 [13:43:56]RAPDU: 90 00 [13:43:56]wFMCommunicate OK [13:43:56]wFMCommunicate request_size=4 [13:43:56]MH_SAM_APDU [13:43:56]CAPDU: 80 0D 03 02 [13:43:56]Write to MH i2c: E2 08 00 93 5F 80 0D 03 02 00 00 00 00 6D [13:43:56]Write i2c OK [13:43:56]MH_I2C_Read... [13:43:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:56]Read from MH i2c: E2 [13:43:56]MH_I2C_Read... [13:43:56]Read from MH i2c: E2 0B 00 [13:43:56]MH_I2C_Read... [13:43:56]Read from MH i2c: E2 0B 00 93 5F 00 18 2C DB 22 36 23 79 BE 90 00 3F [13:43:56]RAPDU: 18 2C DB 22 36 23 79 BE 90 00 [13:43:56]wFMCommunicate OK [13:43:56]SAM_PROTO_SignData done [13:43:56]FM_MakeSignedData done [13:43:56]CreateOFDProtocolMessage [13:43:56]wFMCommunicate request_size=4 [13:43:56]MH_SAM_APDU [13:43:56]CAPDU: 80 11 00 00 [13:43:56]Write to MH i2c: E2 08 00 94 5F 80 11 00 00 00 00 00 00 6D [13:43:56]Write i2c OK [13:43:56]MH_I2C_Read... [13:43:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:57]Read from MH i2c: E2 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: E2 17 00 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: E2 17 00 94 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C8 [13:43:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:43:57]wFMCommunicate OK [13:43:57]CreateOFDProtocolMessage done [13:43:57]OFDSenderStorePacket 139966 [13:43:57]StoreOFDPacket docnum=139966 [13:43:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0A 02 00 00 84 0D 02 02 91 4D 5A 03 01 00 03 00 F6 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 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 70 00 8A 04 0D 00 34 36 30 32 36 30 36 30 30 33 37 35 39 06 04 2C 00 D0 9C D0 B0 D1 80 2D D0 B4 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D0 B7 D0 B2 D0 B5 D1 80 D0 B8 20 6D 69 78 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 F0 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0E 00 00 00 00 07 04 06 00 F0 87 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 20 DB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BE 22 02 00 35 04 06 00 9D 1D 1E 31 E3 DC 18 2C DB 22 36 23 79 BE [13:43:57]CheckFolder [13:43:57]dirname=/storage/ofd_packets [13:43:57]CheckFolder done [13:43:57]ProducePacketName [13:43:57]name=ofd_packets/00139966 [13:43:57]NVStorageSaveData ofd_packets/00139966 [13:43:57]File name is /storage/ofd_packets/00139966 [13:43:57]Write 552 bytes [13:43:57]NVStorageSaveData done [13:43:57]OFDSenderStorePacket done [13:43:57]KKMCreateOFDPacket done [13:43:57]NVStorageSaveData kkm_last_timestamp [13:43:57]File name is /storage/kkm_last_timestamp [13:43:57]Write 4 bytes [13:43:57]NVStorageSaveData done [13:43:57]ExternCall_PrintAddStr [13:43:57]wPrintStart [13:43:57]Write to MH i2c: 01 00 00 95 5F F4 [13:43:57]Write i2c OK [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: 01 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: 01 07 00 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: 01 07 00 95 5F 00 00 00 00 00 FF 0F 09 [13:43:57]RasterBufferAndPrint [13:43:57]line Счет N : (3)335779 [13:43:57]line ИНН: 02508201610067 [13:43:57]line Контрольно-Кассовый Чек [13:43:57]line ПРОДАЖА [13:43:57]line Товар: 2000036210013 [13:43:57]line Кофе Капучино (GABB TRADE) [13:43:57]line 1.000 * 115.00 [13:43:57]line = 115.00 [13:43:57]line НДС 12% НСП 1% [13:43:57]line > о реализуемом товаре [13:43:57]line Товар: 2000036230011 [13:43:57]line Кофе Латте XL(GABB TRADE) [13:43:57]line 1.000 * 130.00 [13:43:57]line = 130.00 [13:43:57]line НДС 12% НСП 1% [13:43:57]line > о реализуемом товаре [13:43:57]line Товар: 4602606003759 [13:43:57]line Мар-д Fruit-tella звери mix 30*70г [13:43:57]line 1.000 * 103.00 [13:43:57]line = 103.00 [13:43:57]line НДС 12% НСП 1% [13:43:57]line > о реализуемом товаре [13:43:57]line ИТОГО: 348.00 [13:43:57]line НСП 1% : 3.08 [13:43:57]line НДС 12% : 36.95 [13:43:57]line Наличными: 348.00 [13:43:57]line Безнал.: 0.00 [13:43:57]line Место: АЗС № 101 "Партнер Нефть" [13:43:57]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:43:57]line СНО: Общий режим [13:43:57]line Чек 147 01.11.2024 13:44 [13:43:57]line Смена: 558 ФФД: 1.0 [13:43:57]line ЗНМ: 0300000081 [13:43:57]line РНМ: 0000000000091631 [13:43:57]line Версия ККМ: 001 [13:43:57]line ФМ: 0000000000874669 [13:43:57]line ФД: 139966 [13:43:57]line ФПД: 172748386198492 [13:43:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T134400&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139966&fm=172748386198492&tin=02508201610067®Number=0000000000091631&sum=34800 [13:43:57]line 0 [13:43:57]written 0, free lines is 4095 [13:43:57]OFD Sender: Processing packet 139966 [packets to send 34, broken 33] [13:43:57]ProducePacketName [13:43:57]name=ofd_packets/00139966 [13:43:57]OFD Sender: To server: pG, [13:43:57]CommunicateWithHost lk.salyk.kg:30040 [13:43:57]ConnectInit lk.salyk.kg [13:43:57]Connected sock=10 [13:43:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0A 02 00 00 84 0D 02 02 91 4D 5A 03 01 00 03 00 F6 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 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 70 00 8A 04 0D 00 34 36 30 32 36 30 36 30 30 33 37 35 39 06 04 2C 00 D0 9C D0 B0 D1 80 2D D0 B4 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D0 B7 D0 B2 D0 B5 D1 80 D0 B8 20 6D 69 78 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 F0 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0E 00 00 00 00 07 04 06 00 F0 87 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 20 DB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BE 22 02 00 35 04 06 00 9D 1D 1E 31 E3 DC 18 2C DB 22 36 23 79 BE [13:43:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 E1 B6 47 00 D7 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 34 36 36 39 10 04 04 00 BE 22 02 00 F4 03 04 00 CB 86 24 67 B6 04 01 00 00 DA 0E 27 9A EA AA 52 B4 [13:43:57]CommunicateWithHost err = 0 [13:43:57]CheckOFDResponse [13:43:57]1017 (14) - 77093643461234 [13:43:57]1041 (16) - 0000000000874669 [13:43:57]1040 (4) - 139966 [13:43:57]1012 (4) - 01.11.2024 07:44 [13:43:57]1206 (1) - 0 [13:43:57]OFD Sender: Remove packet 139966 [13:43:57]ProducePacketName [13:43:57]name=ofd_packets/00139966 [13:43:57]NVStorageDeleteData [13:43:57]Write to MH i2c: 01 00 00 CA 5F 29 [13:43:57]Write i2c OK [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: 01 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: 01 07 00 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: 01 07 00 CA 5F 00 00 00 00 00 A4 0C E0 [13:43:57]RasterBufferAndPrint [13:43:57]line [13:43:57]line [13:43:57]line [13:43:57]line [13:43:57]line [13:43:57]written 0, free lines is 3245 [13:43:57]MH_Cut [13:43:57]Write to MH i2c: D1 01 00 D1 5F 01 02 [13:43:57]Write i2c OK [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: D1 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: D1 01 00 [13:43:57]MH_I2C_Read... [13:43:57]Read from MH i2c: D1 01 00 D1 5F 00 01 [13:43:57]Write to MH i2c: 01 00 00 D2 5F 31 [13:43:57]Write i2c OK [13:43:57]MH_I2C_Read... [13:43:57]OFD Sender: No OFD packet to send [13:43:58]*** Cut start [13:43:58]*** Partial cut [13:43:58]*** CUTSNS_PIN = 1 [13:43:58]*** CUTSNS_PIN = 0 [13:43:58]*** Brake cut motor [13:43:58]Read from MH i2c: 01 [13:43:58]MH_I2C_Read... [13:43:58]*** Stop cut motor [13:43:58]*** Cut end [13:43:58]Read from MH i2c: 01 07 00 [13:43:58]MH_I2C_Read... [13:43:58]Read from MH i2c: 01 07 00 D2 5F 00 00 00 00 00 FF 0F 46 [13:43:58]process_action close_receipt done [13:43:58]requested_data is exist [13:43:58]produce_requested_data [13:43:58]requested_item fm.sn is exist - process it [13:43:58]wFMCommunicate request_size=4 [13:43:58]MH_SAM_APDU [13:43:58]CAPDU: 80 11 00 00 [13:43:58]Write to MH i2c: E2 08 00 D3 5F 80 11 00 00 00 00 00 00 AC [13:43:58]Write i2c OK [13:43:58]MH_I2C_Read... [13:43:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:59]Read from MH i2c: E2 [13:43:59]MH_I2C_Read... [13:43:59]Read from MH i2c: E2 17 00 [13:43:59]MH_I2C_Read... [13:43:59]Read from MH i2c: E2 17 00 D3 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 07 [13:43:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:43:59]wFMCommunicate OK [13:43:59]requested_item fd.num is exist - process it [13:43:59]SAM_PROTO_GetFieldsCounters [13:43:59]wFMCommunicate request_size=4 [13:43:59]MH_SAM_APDU [13:43:59]CAPDU: 80 13 00 00 [13:43:59]Write to MH i2c: E2 08 00 D4 5F 80 13 00 00 00 00 00 00 AF [13:43:59]Write i2c OK [13:43:59]MH_I2C_Read... [13:43:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:59]Read from MH i2c: E2 [13:43:59]MH_I2C_Read... [13:43:59]Read from MH i2c: E2 62 00 [13:43:59]MH_I2C_Read... [13:43:59]Read from MH i2c: E2 62 00 D4 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 BE 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [13:43:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 BE 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:43:59]wFMCommunicate OK [13:43:59]SAM_PROTO_GetFieldsCounters done [13:43:59]requested_item shift.num is exist - process it [13:43:59]requested_item shift.opened is exist - process it [13:43:59]req_shift_opened [13:43:59]FM_GetShiftState [13:43:59]SAM_PROTO_GetShiftState [13:43:59]wFMCommunicate request_size=4 [13:43:59]MH_SAM_APDU [13:43:59]CAPDU: 80 13 01 00 [13:43:59]Write to MH i2c: E2 08 00 D5 5F 80 13 01 00 00 00 00 00 B1 [13:43:59]Write i2c OK [13:43:59]MH_I2C_Read... [13:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:59]Read from MH i2c: E2 [13:43:59]MH_I2C_Read... [13:43:59]Read from MH i2c: E2 0E 00 [13:43:59]MH_I2C_Read... [13:43:59]Read from MH i2c: E2 0E 00 D5 5F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 EA [13:43:59]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [13:43:59]wFMCommunicate OK [13:43:59]SAM_PROTO_GetShiftState done [13:43:59]FM_GetShiftState done [13:43:59]req_shift_opened done [13:43:59]requested_item shift.open_date is exist - process it [13:43:59]req_shift_open_date [13:43:59]req_shift_open_date done [13:43:59]produce_requested_data done [13:43:59]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139966,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [13:43:59]process_action_free close_receipt [13:43:59]json_value_free [13:43:59]json_value_free done [13:43:59]process_json_proto returns [13:43:59]Send response to host [13:43:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139966,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [13:43:59]free response buf [13:43:59]execute_script done [13:43:59]execute_script returns [13:43:59]free content buf [13:43:59]Sock 7.Close socket [13:43:59]Sock 7.Thread stoped [13:44:02]OFD Sender: No OFD packet to send [13:44:07]OFD Sender: No OFD packet to send [13:44:12]OFD Sender: No OFD packet to send [13:44:17]OFD Sender: No OFD packet to send [13:44:22]OFD Sender: No OFD packet to send [13:44:27]OFD Sender: No OFD packet to send [13:44:32]OFD Sender: No OFD packet to send [13:44:37]OFD Sender: No OFD packet to send [13:44:42]OFD Sender: No OFD packet to send [13:44:47]OFD Sender: No OFD packet to send [13:44:52]OFD Sender: No OFD packet to send [13:44:57]OFD Sender: No OFD packet to send [13:45:02]OFD Sender: No OFD packet to send [13:45:07]OFD Sender: No OFD packet to send [13:45:12]OFD Sender: No OFD packet to send [13:45:17]OFD Sender: No OFD packet to send [13:45:22]OFD Sender: No OFD packet to send [13:45:27]OFD Sender: No OFD packet to send [13:45:32]OFD Sender: No OFD packet to send [13:45:37]OFD Sender: No OFD packet to send [13:45:42]OFD Sender: No OFD packet to send [13:45:47]OFD Sender: No OFD packet to send [13:45:52]OFD Sender: No OFD packet to send [13:45:57]OFD Sender: No OFD packet to send [13:46:02]OFD Sender: No OFD packet to send [13:46:07]OFD Sender: No OFD packet to send [13:46:12]OFD Sender: No OFD packet to send [13:46:17]OFD Sender: No OFD packet to send [13:46:22]OFD Sender: No OFD packet to send [13:46:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:38]OFD Sender: No OFD packet to send [13:46:43]OFD Sender: No OFD packet to send [13:46:48]OFD Sender: No OFD packet to send [13:46:53]OFD Sender: No OFD packet to send [13:46:58]OFD Sender: No OFD packet to send [13:47:03]OFD Sender: No OFD packet to send [13:47:08]OFD Sender: No OFD packet to send [13:47:13]OFD Sender: No OFD packet to send [13:47:18]OFD Sender: No OFD packet to send [13:47:23]OFD Sender: No OFD packet to send [13:47:28]OFD Sender: No OFD packet to send [13:47:33]OFD Sender: No OFD packet to send [13:47:38]OFD Sender: No OFD packet to send [13:47:43]OFD Sender: No OFD packet to send [13:47:48]OFD Sender: No OFD packet to send [13:47:53]OFD Sender: No OFD packet to send [13:47:58]OFD Sender: No OFD packet to send [13:48:03]OFD Sender: No OFD packet to send [13:48:08]OFD Sender: No OFD packet to send [13:48:13]OFD Sender: No OFD packet to send [13:48:18]OFD Sender: No OFD packet to send [13:48:23]OFD Sender: No OFD packet to send [13:48:28]OFD Sender: No OFD packet to send [13:48:33]OFD Sender: No OFD packet to send [13:48:38]OFD Sender: No OFD packet to send [13:48:43]OFD Sender: No OFD packet to send [13:48:48]OFD Sender: No OFD packet to send [13:48:53]OFD Sender: No OFD packet to send [13:48:58]OFD Sender: No OFD packet to send [13:49:03]OFD Sender: No OFD packet to send [13:49:08]OFD Sender: No OFD packet to send [13:49:13]OFD Sender: No OFD packet to send [13:49:18]OFD Sender: No OFD packet to send [13:49:23]OFD Sender: No OFD packet to send [13:49:28]OFD Sender: No OFD packet to send [13:49:33]OFD Sender: No OFD packet to send [13:49:38]OFD Sender: No OFD packet to send [13:49:43]OFD Sender: No OFD packet to send [13:49:48]OFD Sender: No OFD packet to send [13:49:53]OFD Sender: No OFD packet to send [13:49:58]OFD Sender: No OFD packet to send [13:50:03]OFD Sender: No OFD packet to send [13:50:08]OFD Sender: No OFD packet to send [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:23]OFD Sender: No OFD packet to send [13:50:28]OFD Sender: No OFD packet to send [13:50:33]OFD Sender: No OFD packet to send [13:50:38]OFD Sender: No OFD packet to send [13:50:43]OFD Sender: No OFD packet to send [13:50:48]OFD Sender: No OFD packet to send [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:37]accept exits with 9 [13:51:37]New connection [13:51:37]New thread 3066510692 created [13:51:37]Thread 3066654052 joined [13:51:37]Waiting for new connection... [13:51:37] Sock 9.Parse request [13:51:37]Sock 9.Check first char [13:51:37]Sock 9.First char is OK [13:51:37]request: POST /json_proto HTTP/1.0 [13:51:37]Method: POST [13:51:37]URL: /json_proto [13:51:37]Method is POST - this is cgi request [13:51:37]url: /json_proto [13:51:37]query_string will be loaded in cgi processing [13:51:37]execute_cgi json_proto POST (null) [13:51:37]execute_cgi path=json_proto method=POST [13:51:37]POST find Content-Length [13:51:37]Host: 172.17.50.196:8080 [13:51:37]Content-Length: 1468 [13:51:37]Content-Type: application/json [13:51:37] [13:51:37]POST finish read [13:51:37]Found Content-Length = 1468 [13:51:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335780", "tax_sys" : 0, "items" : [ { "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" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46003553", "name": "Nestle NUTS \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A 30\u044550\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650075420409", "name": "\u0421\u043E\u043A Rich \u0412\u0438\u0448\u043D\u044F 0,2", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 308.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:37]execute_script... [13:51:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335780", "tax_sys" : 0, "items" : [ { "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" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46003553", "name": "Nestle NUTS \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A 30\u044550\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650075420409", "name": "\u0421\u043E\u043A Rich \u0412\u0438\u0448\u043D\u044F 0,2", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 308.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:37]POST & json_proto [13:51:37]process_json_proto [13:51:37]json parsed OK: [13:51:37]protocol is kg_v1.0 [13:51:37]action value=close_receipt [13:51:37]process_action close_receipt [13:51:37]cmd_close_receipt [13:51:37]MH_GetDate [13:51:37]Write to MH i2c: F0 00 00 D6 5F 24 [13:51:37]Write i2c OK [13:51:37]MH_I2C_Read... [13:51:37]Read from MH i2c: F0 [13:51:37]MH_I2C_Read... [13:51:37]Read from MH i2c: F0 09 00 [13:51:37]MH_I2C_Read... [13:51:37]Read from MH i2c: F0 09 00 D6 5F 00 EF DC 24 67 72 0D 1C 67 85 [13:51:37]GetLastDocTimeStamp 1730468640 [13:51:37]current date 1730469103 [13:51:37]FM_GetShiftState [13:51:37]SAM_PROTO_GetShiftState [13:51:38]wFMCommunicate request_size=4 [13:51:38]MH_SAM_APDU [13:51:38]CAPDU: 80 13 01 00 [13:51:38]Write to MH i2c: E2 08 00 D7 5F 80 13 01 00 00 00 00 00 B3 [13:51:38]Write i2c OK [13:51:38]MH_I2C_Read... [13:51:38]OFD Sender: No OFD packet to send [13:51:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:38]Read from MH i2c: E2 [13:51:38]MH_I2C_Read... [13:51:38]Read from MH i2c: E2 0E 00 [13:51:38]MH_I2C_Read... [13:51:38]Read from MH i2c: E2 0E 00 D7 5F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 EC [13:51:38]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [13:51:38]wFMCommunicate OK [13:51:38]SAM_PROTO_GetShiftState done [13:51:38]FM_GetShiftState done [13:51:38]opened in 1730419081 [13:51:38]opened+sec_in_day 1730505481 [13:51:38]quantity*price = 8900 [13:51:38]sum+1 = 8901 [13:51:38]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4011100977624 Шок Батончик Баунти 55г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46003553 Nestle NUTS батончик 30х50г 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4650075420409 Сок Rich Вишня 0,2 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 308.00 НСП 1% : 2.72 НДС 12% : 32.70 Наличными: 308.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 148 01.11.2024 13:51 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139967 ФПД: 143130746797238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T135144&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139967&fm=143130746797238&tin=02508201610067®Number=0000000000091631&sum=30800 0 [13:51:39]StoreToDocumentArchive [13:51:39]shift 558 fd 139967 [13:51:39]save to /storage/0558/doc_00139967 [13:51:39]save last doc name /storage/0558/doc_00139967 to /storage/kkm_last_doc_name [13:51:39]save OK [13:51:39]Clear old archive folders... [13:51:39]ProcessDocumentItem done err = 0, tmpTLVsize=614 [13:51:39]tlvbuf is B6F0F760 [13:51:39]SAM_PROTO_ClearQueue [13:51:39]wFMCommunicate request_size=4 [13:51:39]MH_SAM_APDU [13:51:39]CAPDU: 80 09 00 00 [13:51:39]Write to MH i2c: E2 08 00 E4 5F 80 09 00 00 00 00 00 00 B5 [13:51:39]Write i2c OK [13:51:39]MH_I2C_Read... [13:51:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:39]Read from MH i2c: E2 [13:51:39]MH_I2C_Read... [13:51:39]Read from MH i2c: E2 03 00 [13:51:39]MH_I2C_Read... [13:51:39]Read from MH i2c: E2 03 00 E4 5F 00 90 00 B7 [13:51:39]RAPDU: 90 00 [13:51:39]wFMCommunicate OK [13:51:39]SAM_PROTO_ClearQueue done [13:51:39]KKMCreateOFDPacket [13:51:39]OFDProtocolAddRootSTLVToBuf [13:51:39]FM_MakeSignedData [13:51:39]FM_MakeSignedData [13:51:39]SAM_PROTO_SignData [13:51:39]wFMCommunicate request_size=4 [13:51:39]MH_SAM_APDU [13:51:39]CAPDU: 80 0D 01 02 [13:51:39]Write to MH i2c: E2 08 00 E5 5F 80 0D 01 02 00 00 00 00 BD [13:51:39]Write i2c OK [13:51:39]MH_I2C_Read... [13:51:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:39]Read from MH i2c: E2 [13:51:39]MH_I2C_Read... [13:51:39]Read from MH i2c: E2 03 00 [13:51:39]MH_I2C_Read... [13:51:39]Read from MH i2c: E2 03 00 E5 5F 00 90 00 B8 [13:51:39]RAPDU: 90 00 [13:51:39]wFMCommunicate OK [13:51:39]wFMCommunicate request_size=255 [13:51:39]MH_SAM_APDU [13:51:39]CAPDU: 80 0D 02 02 FA 03 00 66 02 1E 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 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 [13:51:39]Write to MH i2c: E2 02 01 E6 5F 80 0D 02 02 FA 00 03 00 66 02 1E 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 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 00 4F [13:51:39]Write i2c OK [13:51:39]MH_I2C_Read... [13:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:39]Read from MH i2c: E2 [13:51:39]MH_I2C_Read... [13:51:39]Read from MH i2c: E2 03 00 [13:51:39]MH_I2C_Read... [13:51:39]Read from MH i2c: E2 03 00 E6 5F 00 90 00 B9 [13:51:39]RAPDU: 90 00 [13:51:39]wFMCommunicate OK [13:51:39]wFMCommunicate request_size=255 [13:51:39]MH_SAM_APDU [13:51:39]CAPDU: 80 0D 02 02 FA 01 23 04 64 00 8A 04 08 00 34 36 30 30 33 35 35 33 06 04 25 00 4E 65 73 74 6C 65 20 4E 55 54 53 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 33 30 D1 85 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 34 30 39 06 04 1A 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 [13:51:39]Write to MH i2c: E2 02 01 E7 5F 80 0D 02 02 FA 00 01 23 04 64 00 8A 04 08 00 34 36 30 30 33 35 35 33 06 04 25 00 4E 65 73 74 6C 65 20 4E 55 54 53 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 33 30 D1 85 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 34 30 39 06 04 1A 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 00 00 75 [13:51:39]Write i2c OK [13:51:39]MH_I2C_Read... [13:51:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:40]Read from MH i2c: E2 [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: E2 03 00 [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: E2 03 00 E7 5F 00 90 00 BA [13:51:40]RAPDU: 90 00 [13:51:40]wFMCommunicate OK [13:51:40]wFMCommunicate request_size=123 [13:51:40]MH_SAM_APDU [13:51:40]CAPDU: 80 0D 02 02 76 0C 00 00 00 00 07 04 06 00 50 78 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 F0 DC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BF 22 02 00 35 04 06 00 82 2D 39 51 BC B6 [13:51:40]Write to MH i2c: E2 7E 00 E8 5F 80 0D 02 02 76 00 0C 00 00 00 00 07 04 06 00 50 78 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 F0 DC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BF 22 02 00 35 04 06 00 82 2D 39 51 BC B6 00 00 67 [13:51:40]Write i2c OK [13:51:40]MH_I2C_Read... [13:51:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:40]Read from MH i2c: E2 [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: E2 03 00 [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: E2 03 00 E8 5F 00 90 00 BB [13:51:40]RAPDU: 90 00 [13:51:40]wFMCommunicate OK [13:51:40]wFMCommunicate request_size=4 [13:51:40]MH_SAM_APDU [13:51:40]CAPDU: 80 0D 03 02 [13:51:40]Write to MH i2c: E2 08 00 E9 5F 80 0D 03 02 00 00 00 00 C3 [13:51:40]Write i2c OK [13:51:40]MH_I2C_Read... [13:51:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:40]Read from MH i2c: E2 [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: E2 0B 00 [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: E2 0B 00 E9 5F 00 06 2C DE F5 38 C4 66 1A 90 00 45 [13:51:40]RAPDU: 06 2C DE F5 38 C4 66 1A 90 00 [13:51:40]wFMCommunicate OK [13:51:40]SAM_PROTO_SignData done [13:51:40]FM_MakeSignedData done [13:51:40]CreateOFDProtocolMessage [13:51:40]wFMCommunicate request_size=4 [13:51:40]MH_SAM_APDU [13:51:40]CAPDU: 80 11 00 00 [13:51:40]Write to MH i2c: E2 08 00 EA 5F 80 11 00 00 00 00 00 00 C3 [13:51:40]Write i2c OK [13:51:40]MH_I2C_Read... [13:51:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:40]Read from MH i2c: E2 [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: E2 17 00 [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: E2 17 00 EA 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1E [13:51:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:51:40]wFMCommunicate OK [13:51:40]CreateOFDProtocolMessage done [13:51:40]OFDSenderStorePacket 139967 [13:51:40]StoreOFDPacket docnum=139967 [13:51:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 7A 02 00 00 92 DF 72 02 BF 82 5A 03 01 00 03 00 66 02 1E 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 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 30 30 33 35 35 33 06 04 25 00 4E 65 73 74 6C 65 20 4E 55 54 53 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 33 30 D1 85 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 34 30 39 06 04 1A 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0C 00 00 00 00 07 04 06 00 50 78 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 F0 DC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BF 22 02 00 35 04 06 00 82 2D 39 51 BC B6 06 2C DE F5 38 C4 66 1A [13:51:40]CheckFolder [13:51:40]dirname=/storage/ofd_packets [13:51:40]CheckFolder done [13:51:40]ProducePacketName [13:51:40]name=ofd_packets/00139967 [13:51:40]NVStorageSaveData ofd_packets/00139967 [13:51:40]File name is /storage/ofd_packets/00139967 [13:51:40]Write 664 bytes [13:51:40]NVStorageSaveData done [13:51:40]OFDSenderStorePacket done [13:51:40]KKMCreateOFDPacket done [13:51:40]NVStorageSaveData kkm_last_timestamp [13:51:40]File name is /storage/kkm_last_timestamp [13:51:40]Write 4 bytes [13:51:40]NVStorageSaveData done [13:51:40]ExternCall_PrintAddStr [13:51:40]wPrintStart [13:51:40]Write to MH i2c: 01 00 00 EB 5F 4A [13:51:40]Write i2c OK [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: 01 [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: 01 07 00 [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: 01 07 00 EB 5F 00 00 00 00 00 FF 0F 5F [13:51:40]RasterBufferAndPrint [13:51:40]line Счет N : (3)335780 [13:51:40]line ИНН: 02508201610067 [13:51:40]line Контрольно-Кассовый Чек [13:51:40]line ПРОДАЖА [13:51:40]line Товар: 4660085515163 [13:51:40]line Шок Батончик Сникерс супер 95/80г [13:51:40]line 1.000 * 89.00 [13:51:40]line = 89.00 [13:51:40]line НДС 12% НСП 1% [13:51:40]line > о реализуемом товаре [13:51:40]line Товар: 4011100977624 [13:51:40]line Шок Батончик Баунти 55г [13:51:40]line 1.000 * 59.00 [13:51:40]line = 59.00 [13:51:40]line НДС 12% НСП 1% [13:51:40]line > о реализуемом товаре [13:51:40]line Товар: 46003553 [13:51:40]line Nestle NUTS батончик 30х50г [13:51:40]line 1.000 * 75.00 [13:51:40]line = 75.00 [13:51:40]line НДС 12% НСП 1% [13:51:40]line > о реализуемом товаре [13:51:40]line Товар: 4650075420409 [13:51:40]line Сок Rich Вишня 0,2 [13:51:40]line 1.000 * 85.00 [13:51:40]line = 85.00 [13:51:40]line НДС 12% НСП 1% [13:51:40]line > о реализуемом товаре [13:51:40]line ИТОГО: 308.00 [13:51:40]line НСП 1% : 2.72 [13:51:40]line НДС 12% : 32.70 [13:51:40]line Наличными: 308.00 [13:51:40]line Безнал.: 0.00 [13:51:40]line Место: АЗС № 101 "Партнер Нефть" [13:51:40]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:51:40]line СНО: Общий режим [13:51:40]line Чек 148 01.11.2024 13:51 [13:51:40]line Смена: 558 ФФД: 1.0 [13:51:40]line ЗНМ: 0300000081 [13:51:40]line РНМ: 0000000000091631 [13:51:40]line Версия ККМ: 001 [13:51:40]line ФМ: 0000000000874669 [13:51:40]line ФД: 139967 [13:51:40]line ФПД: 143130746797238 [13:51:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T135144&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139967&fm=143130746797238&tin=02508201610067®Number=0000000000091631&sum=30800 [13:51:40]OFD Sender: Processing packet 139967 [packets to send 34, broken 33] [13:51:40]ProducePacketName [13:51:40]name=ofd_packets/00139967 [13:51:40]OFD Sender: To server: pG, [13:51:40]CommunicateWithHost lk.salyk.kg:30040 [13:51:40]ConnectInit lk.salyk.kg [13:51:40]line 0 [13:51:40]written 0, free lines is 4095 [13:51:40]Connected sock=10 [13:51:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 7A 02 00 00 92 DF 72 02 BF 82 5A 03 01 00 03 00 66 02 1E 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 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 30 30 33 35 35 33 06 04 25 00 4E 65 73 74 6C 65 20 4E 55 54 53 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 33 30 D1 85 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 34 30 39 06 04 1A 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0C 00 00 00 00 07 04 06 00 50 78 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 F0 DC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BF 22 02 00 35 04 06 00 82 2D 39 51 BC B6 06 2C DE F5 38 C4 66 1A [13:51:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 45 88 47 00 6D 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BF 22 02 00 F4 03 04 00 9B 88 24 67 B6 04 01 00 00 BC 7C 16 16 06 15 E1 8C [13:51:41]CommunicateWithHost err = 0 [13:51:41]CheckOFDResponse [13:51:41]1017 (14) - 77093643461234 [13:51:41]1041 (16) - 0000000000874669 [13:51:41]1040 (4) - 139967 [13:51:41]1012 (4) - 01.11.2024 07:51 [13:51:41]1206 (1) - 0 [13:51:41]OFD Sender: Remove packet 139967 [13:51:41]ProducePacketName [13:51:41]name=ofd_packets/00139967 [13:51:41]NVStorageDeleteData [13:51:41]Write to MH i2c: 01 00 00 26 60 86 [13:51:41]Write i2c OK [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: 01 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: 01 07 00 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: 01 07 00 26 60 00 00 00 00 00 2D 0C C6 [13:51:41]RasterBufferAndPrint [13:51:41]line [13:51:41]line [13:51:41]line [13:51:41]line [13:51:41]line [13:51:41]written 0, free lines is 3126 [13:51:41]MH_Cut [13:51:41]Write to MH i2c: D1 01 00 2D 60 01 5F [13:51:41]Write i2c OK [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: D1 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: D1 01 00 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: D1 01 00 2D 60 00 5E [13:51:41]Write to MH i2c: 01 00 00 2E 60 8E [13:51:41]Write i2c OK [13:51:41]MH_I2C_Read... [13:51:41]OFD Sender: No OFD packet to send [13:51:42]*** Cut start [13:51:42]*** Partial cut [13:51:42]*** CUTSNS_PIN = 1 [13:51:42]*** CUTSNS_PIN = 0 [13:51:42]*** Brake cut motor [13:51:42]Read from MH i2c: 01 [13:51:42]MH_I2C_Read... [13:51:42]*** Stop cut motor [13:51:42]*** Cut end [13:51:42]Read from MH i2c: 01 07 00 [13:51:42]MH_I2C_Read... [13:51:42]Read from MH i2c: 01 07 00 2E 60 00 00 00 00 00 FF 0F A3 [13:51:42]process_action close_receipt done [13:51:42]requested_data is exist [13:51:42]produce_requested_data [13:51:42]requested_item fm.sn is exist - process it [13:51:42]wFMCommunicate request_size=4 [13:51:42]MH_SAM_APDU [13:51:42]CAPDU: 80 11 00 00 [13:51:42]Write to MH i2c: E2 08 00 2F 60 80 11 00 00 00 00 00 00 09 [13:51:42]Write i2c OK [13:51:42]MH_I2C_Read... [13:51:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:42]Read from MH i2c: E2 [13:51:42]MH_I2C_Read... [13:51:42]Read from MH i2c: E2 17 00 [13:51:42]MH_I2C_Read... [13:51:42]Read from MH i2c: E2 17 00 2F 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 64 [13:51:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:51:42]wFMCommunicate OK [13:51:42]requested_item fd.num is exist - process it [13:51:42]SAM_PROTO_GetFieldsCounters [13:51:42]wFMCommunicate request_size=4 [13:51:42]MH_SAM_APDU [13:51:42]CAPDU: 80 13 00 00 [13:51:42]Write to MH i2c: E2 08 00 30 60 80 13 00 00 00 00 00 00 0C [13:51:42]Write i2c OK [13:51:42]MH_I2C_Read... [13:51:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:42]Read from MH i2c: E2 [13:51:42]MH_I2C_Read... [13:51:42]Read from MH i2c: E2 62 00 [13:51:42]MH_I2C_Read... [13:51:42]Read from MH i2c: E2 62 00 30 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 BF 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [13:51: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 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 BF 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:51:42]wFMCommunicate OK [13:51:42]SAM_PROTO_GetFieldsCounters done [13:51:42]requested_item shift.num is exist - process it [13:51:42]requested_item shift.opened is exist - process it [13:51:42]req_shift_opened [13:51:42]FM_GetShiftState [13:51:42]SAM_PROTO_GetShiftState [13:51:42]wFMCommunicate request_size=4 [13:51:42]MH_SAM_APDU [13:51:42]CAPDU: 80 13 01 00 [13:51:42]Write to MH i2c: E2 08 00 31 60 80 13 01 00 00 00 00 00 0E [13:51:42]Write i2c OK [13:51:42]MH_I2C_Read... [13:51:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:42]Read from MH i2c: E2 [13:51:42]MH_I2C_Read... [13:51:42]Read from MH i2c: E2 0E 00 [13:51:42]MH_I2C_Read... [13:51:42]Read from MH i2c: E2 0E 00 31 60 00 09 00 01 89 19 24 67 00 00 00 00 90 00 47 [13:51:43]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [13:51:43]wFMCommunicate OK [13:51:43]SAM_PROTO_GetShiftState done [13:51:43]FM_GetShiftState done [13:51:43]req_shift_opened done [13:51:43]requested_item shift.open_date is exist - process it [13:51:43]req_shift_open_date [13:51:43]req_shift_open_date done [13:51:43]produce_requested_data done [13:51:43]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139967,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [13:51:43]process_action_free close_receipt [13:51:43]json_value_free [13:51:43]json_value_free done [13:51:43]process_json_proto returns [13:51:43]Send response to host [13:51:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139967,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [13:51:43]free response buf [13:51:43]execute_script done [13:51:43]execute_script returns [13:51:43]free content buf [13:51:43]Sock 9.Close socket [13:51:43]Sock 9.Thread stoped [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:41]OFD Sender: No OFD packet to send [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:56]OFD Sender: No OFD packet to send [13:53:01]OFD Sender: No OFD packet to send [13:53:06]OFD Sender: No OFD packet to send [13:53:11]OFD Sender: No OFD packet to send [13:53:16]OFD Sender: No OFD packet to send [13:53:21]OFD Sender: No OFD packet to send [13:53:26]OFD Sender: No OFD packet to send [13:53:31]OFD Sender: No OFD packet to send [13:53:36]OFD Sender: No OFD packet to send [13:53:41]OFD Sender: No OFD packet to send [13:53:46]OFD Sender: No OFD packet to send [13:53:51]OFD Sender: No OFD packet to send [13:53:56]OFD Sender: No OFD packet to send [13:54:01]OFD Sender: No OFD packet to send [13:54:06]OFD Sender: No OFD packet to send [13:54:11]OFD Sender: No OFD packet to send [13:54:16]OFD Sender: No OFD packet to send [13:54:21]OFD Sender: No OFD packet to send [13:54:26]OFD Sender: No OFD packet to send [13:54:31]OFD Sender: No OFD packet to send [13:54:36]OFD Sender: No OFD packet to send [13:54:41]OFD Sender: No OFD packet to send [13:54:46]OFD Sender: No OFD packet to send [13:54:51]OFD Sender: No OFD packet to send [13:54:56]OFD Sender: No OFD packet to send [13:55:01]OFD Sender: No OFD packet to send [13:55:06]OFD Sender: No OFD packet to send [13:55:11]OFD Sender: No OFD packet to send [13:55:16]OFD Sender: No OFD packet to send [13:55:21]OFD Sender: No OFD packet to send [13:55:26]OFD Sender: No OFD packet to send [13:55:31]OFD Sender: No OFD packet to send [13:55:36]OFD Sender: No OFD packet to send [13:55:41]OFD Sender: No OFD packet to send [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:11]OFD Sender: No OFD packet to send [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:26]OFD Sender: No OFD packet to send [13:56:31]OFD Sender: No OFD packet to send [13:56:36]OFD Sender: No OFD packet to send [13:56:41]OFD Sender: No OFD packet to send [13:56:46]OFD Sender: No OFD packet to send [13:56:51]OFD Sender: No OFD packet to send [13:56:56]OFD Sender: No OFD packet to send [13:57:01]OFD Sender: No OFD packet to send [13:57:06]OFD Sender: No OFD packet to send [13:57:11]OFD Sender: No OFD packet to send [13:57:16]OFD Sender: No OFD packet to send [13:57:21]OFD Sender: No OFD packet to send [13:57:26]OFD Sender: No OFD packet to send [13:57:31]OFD Sender: No OFD packet to send [13:57:36]OFD Sender: No OFD packet to send [13:57:41]OFD Sender: No OFD packet to send [13:57:46]OFD Sender: No OFD packet to send [13:57:51]OFD Sender: No OFD packet to send [13:57:56]OFD Sender: No OFD packet to send [13:58:01]OFD Sender: No OFD packet to send [13:58:06]OFD Sender: No OFD packet to send [13:58:11]OFD Sender: No OFD packet to send [13:58:16]OFD Sender: No OFD packet to send [13:58:21]OFD Sender: No OFD packet to send [13:58:26]OFD Sender: No OFD packet to send [13:58:31]OFD Sender: No OFD packet to send [13:58:36]OFD Sender: No OFD packet to send [13:58:41]OFD Sender: No OFD packet to send [13:58:46]OFD Sender: No OFD packet to send [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:07]OFD Sender: No OFD packet to send [14:01:12]OFD Sender: No OFD packet to send [14:01:17]OFD Sender: No OFD packet to send [14:01:22]OFD Sender: No OFD packet to send [14:01:27]OFD Sender: No OFD packet to send [14:01:32]OFD Sender: No OFD packet to send [14:01:37]OFD Sender: No OFD packet to send [14:01:42]OFD Sender: No OFD packet to send [14:01:47]OFD Sender: No OFD packet to send [14:01:52]OFD Sender: No OFD packet to send [14:01:57]OFD Sender: No OFD packet to send [14:02:02]OFD Sender: No OFD packet to send [14:02:07]OFD Sender: No OFD packet to send [14:02:12]OFD Sender: No OFD packet to send [14:02:17]OFD Sender: No OFD packet to send [14:02:22]OFD Sender: No OFD packet to send [14:02:27]OFD Sender: No OFD packet to send [14:02:32]OFD Sender: No OFD packet to send [14:02:37]OFD Sender: No OFD packet to send [14:02:42]OFD Sender: No OFD packet to send [14:02:47]OFD Sender: No OFD packet to send [14:02:52]OFD Sender: No OFD packet to send [14:02:57]OFD Sender: No OFD packet to send [14:03:02]OFD Sender: No OFD packet to send [14:03:07]OFD Sender: No OFD packet to send [14:03:12]OFD Sender: No OFD packet to send [14:03:17]OFD Sender: No OFD packet to send [14:03:22]OFD Sender: No OFD packet to send [14:03:27]OFD Sender: No OFD packet to send [14:03:32]OFD Sender: No OFD packet to send [14:03:37]OFD Sender: No OFD packet to send [14:03:42]OFD Sender: No OFD packet to send [14:03:47]OFD Sender: No OFD packet to send [14:03:52]OFD Sender: No OFD packet to send [14:03:57]OFD Sender: No OFD packet to send [14:04:02]OFD Sender: No OFD packet to send [14:04:07]OFD Sender: No OFD packet to send [14:04:12]OFD Sender: No OFD packet to send [14:04:17]OFD Sender: No OFD packet to send [14:04:22]OFD Sender: No OFD packet to send [14:04:27]OFD Sender: No OFD packet to send [14:04:32]OFD Sender: No OFD packet to send [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05:52]OFD Sender: No OFD packet to send [14:05:57]OFD Sender: No OFD packet to send [14:06:02]OFD Sender: No OFD packet to send [14:06:07]OFD Sender: No OFD packet to send [14:06:12]OFD Sender: No OFD packet to send [14:06:17]OFD Sender: No OFD packet to send [14:06:22]OFD Sender: No OFD packet to send [14:06:27]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:52]OFD Sender: No OFD packet to send [14:06:57]OFD Sender: No OFD packet to send [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:08:02]OFD Sender: No OFD packet to send [14:08:07]OFD Sender: No OFD packet to send [14:08:12]OFD Sender: No OFD packet to send [14:08:17]OFD Sender: No OFD packet to send [14:08:22]OFD Sender: No OFD packet to send [14:08:27]OFD Sender: No OFD packet to send [14:08:32]OFD Sender: No OFD packet to send [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:47]OFD Sender: No OFD packet to send [14:08:52]OFD Sender: No OFD packet to send [14:08:57]OFD Sender: No OFD packet to send [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:11]accept exits with 7 [14:11:11]New connection [14:11:11]New thread 3066654052 created [14:11:11]Thread 3066510692 joined [14:11:11]Waiting for new connection... [14:11:11] Sock 7.Parse request [14:11:11]Sock 7.Check first char [14:11:11]Sock 7.First char is OK [14:11:11]request: POST /json_proto HTTP/1.0 [14:11:11]Method: POST [14:11:11]URL: /json_proto [14:11:11]Method is POST - this is cgi request [14:11:11]url: /json_proto [14:11:11]query_string will be loaded in cgi processing [14:11:11]execute_cgi json_proto POST (null) [14:11:11]execute_cgi path=json_proto method=POST [14:11:11]POST find Content-Length [14:11:11]Host: 172.17.50.196:8080 [14:11:11]Content-Length: 724 [14:11:11]Content-Type: application/json [14:11:11] [14:11:11]POST finish read [14:11:11]Found Content-Length = 724 [14:11:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335781", "tax_sys" : 0, "items" : [ { "code": "8901086040022", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0441\u0442\u0435\u043A\u043B\u043E\u043E\u043C\u044B\u0432\u0430\u044E\u0449\u0430\u044F \u041F\u041D -20 4,5\u043B", "price" : 285.00, "quantity" : 1.000, "sum" : 285.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" ] } } [14:11:11]execute_script... [14:11:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335781", "tax_sys" : 0, "items" : [ { "code": "8901086040022", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0441\u0442\u0435\u043A\u043B\u043E\u043E\u043C\u044B\u0432\u0430\u044E\u0449\u0430\u044F \u041F\u041D -20 4,5\u043B", "price" : 285.00, "quantity" : 1.000, "sum" : 285.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" ] } } [14:11:11]POST & json_proto [14:11:11]process_json_proto [14:11:11]json parsed OK: [14:11:11]protocol is kg_v1.0 [14:11:11]action value=close_receipt [14:11:11]process_action close_receipt [14:11:11]cmd_close_receipt [14:11:11]MH_GetDate [14:11:11]Write to MH i2c: F0 00 00 32 60 81 [14:11:11]Write i2c OK [14:11:11]MH_I2C_Read... [14:11:11]Read from MH i2c: F0 [14:11:11]MH_I2C_Read... [14:11:11]Read from MH i2c: F0 09 00 [14:11:11]MH_I2C_Read... [14:11:11]Read from MH i2c: F0 09 00 32 60 00 84 E1 24 67 72 0D 1C 67 7C [14:11:11]GetLastDocTimeStamp 1730469104 [14:11:11]current date 1730470276 [14:11:11]FM_GetShiftState [14:11:11]SAM_PROTO_GetShiftState [14:11:11]wFMCommunicate request_size=4 [14:11:11]MH_SAM_APDU [14:11:11]CAPDU: 80 13 01 00 [14:11:11]Write to MH i2c: E2 08 00 33 60 80 13 01 00 00 00 00 00 10 [14:11:11]Write i2c OK [14:11:11]MH_I2C_Read... [14:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:11]Read from MH i2c: E2 [14:11:11]MH_I2C_Read... [14:11:11]Read from MH i2c: E2 0E 00 [14:11:11]MH_I2C_Read... [14:11:11]Read from MH i2c: E2 0E 00 33 60 00 09 00 01 89 19 24 67 00 00 00 00 90 00 49 [14:11:11]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:11:11]wFMCommunicate OK [14:11:11]SAM_PROTO_GetShiftState done [14:11:11]FM_GetShiftState done [14:11:11]opened in 1730419081 [14:11:11]opened+sec_in_day 1730505481 [14:11:11]quantity*price = 28500 [14:11:11]sum+1 = 28501 [14:11:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.52 НДС 12% : 30.26 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 149 01.11.2024 14:11 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139968 ФПД: 211114391269093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T141117&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139968&fm=211114391269093&tin=02508201610067®Number=0000000000091631&sum=28500 0 [14:11:12]StoreToDocumentArchive [14:11:12]shift 558 fd 139968 [14:11:12]save to /storage/0558/doc_00139968 [14:11:12]save last doc name /storage/0558/doc_00139968 to /storage/kkm_last_doc_name [14:11:12]save OK [14:11:12]Clear old archive folders... [14:11:12]ProcessDocumentItem done err = 0, tmpTLVsize=304 [14:11:12]tlvbuf is 00BA7610 [14:11:12]SAM_PROTO_ClearQueue [14:11:12]wFMCommunicate request_size=4 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 09 00 00 [14:11:12]Write to MH i2c: E2 08 00 40 60 80 09 00 00 00 00 00 00 12 [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 40 60 00 90 00 14 [14:11:12]RAPDU: 90 00 [14:11:12]wFMCommunicate OK [14:11:12]SAM_PROTO_ClearQueue done [14:11:12]KKMCreateOFDPacket [14:11:12]OFDProtocolAddRootSTLVToBuf [14:11:12]FM_MakeSignedData [14:11:12]FM_MakeSignedData [14:11:12]SAM_PROTO_SignData [14:11:12]wFMCommunicate request_size=4 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 0D 01 02 [14:11:12]Write to MH i2c: E2 08 00 41 60 80 0D 01 02 00 00 00 00 1A [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 41 60 00 90 00 15 [14:11:12]RAPDU: 90 00 [14:11:12]wFMCommunicate OK [14:11:12]wFMCommunicate request_size=255 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 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 D2 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 95 00 00 00 F4 03 04 00 85 E1 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 [14:11:12]Write to MH i2c: E2 02 01 42 60 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 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 D2 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 95 00 00 00 F4 03 04 00 85 E1 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 00 00 13 [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]OFD Sender: No OFD packet to send [14:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 42 60 00 90 00 16 [14:11:12]RAPDU: 90 00 [14:11:12]wFMCommunicate OK [14:11:12]wFMCommunicate request_size=63 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C0 22 02 00 35 04 06 00 C0 01 E6 4C 6E E5 [14:11:12]Write to MH i2c: E2 42 00 43 60 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C0 22 02 00 35 04 06 00 C0 01 E6 4C 6E E5 00 00 94 [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 43 60 00 90 00 17 [14:11:12]RAPDU: 90 00 [14:11:12]wFMCommunicate OK [14:11:12]wFMCommunicate request_size=4 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 0D 03 02 [14:11:12]Write to MH i2c: E2 08 00 44 60 80 0D 03 02 00 00 00 00 1F [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 0B 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 0B 00 44 60 00 D8 40 76 39 49 62 B6 93 90 00 DB [14:11:12]RAPDU: D8 40 76 39 49 62 B6 93 90 00 [14:11:12]wFMCommunicate OK [14:11:12]SAM_PROTO_SignData done [14:11:12]FM_MakeSignedData done [14:11:12]CreateOFDProtocolMessage [14:11:12]wFMCommunicate request_size=4 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 11 00 00 [14:11:12]Write to MH i2c: E2 08 00 45 60 80 11 00 00 00 00 00 00 1F [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 17 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 17 00 45 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 7A [14:11:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:11:12]wFMCommunicate OK [14:11:12]CreateOFDProtocolMessage done [14:11:12]OFDSenderStorePacket 139968 [14:11:12]StoreOFDPacket docnum=139968 [14:11:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 44 01 00 00 59 FB 3C 01 20 6E 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 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 D2 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 95 00 00 00 F4 03 04 00 85 E1 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C0 22 02 00 35 04 06 00 C0 01 E6 4C 6E E5 D8 40 76 39 49 62 B6 93 [14:11:12]CheckFolder [14:11:12]dirname=/storage/ofd_packets [14:11:12]CheckFolder done [14:11:12]ProducePacketName [14:11:12]name=ofd_packets/00139968 [14:11:12]NVStorageSaveData ofd_packets/00139968 [14:11:12]File name is /storage/ofd_packets/00139968 [14:11:12]Write 354 bytes [14:11:12]NVStorageSaveData done [14:11:12]OFDSenderStorePacket done [14:11:12]KKMCreateOFDPacket done [14:11:12]NVStorageSaveData kkm_last_timestamp [14:11:12]File name is /storage/kkm_last_timestamp [14:11:12]Write 4 bytes [14:11:12]NVStorageSaveData done [14:11:12]ExternCall_PrintAddStr [14:11:12]wPrintStart [14:11:12]Write to MH i2c: 01 00 00 46 60 A6 [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: 01 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: 01 07 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: 01 07 00 46 60 00 00 00 00 00 FF 0F BB [14:11:12]RasterBufferAndPrint [14:11:12]line Счет N : (3)335781 [14:11:12]line ИНН: 02508201610067 [14:11:12]line Контрольно-Кассовый Чек [14:11:12]line ПРОДАЖА [14:11:12]line Товар: 8901086040022 [14:11:12]line Жидкость стеклоомывающая ПН -20 4,5л [14:11:12]line 1.000 * 285.00 [14:11:12]line = 285.00 [14:11:12]line НДС 12% НСП 1% [14:11:12]line > о реализуемом товаре [14:11:12]line ИТОГО: 285.00 [14:11:12]line НСП 1% : 2.52 [14:11:12]line НДС 12% : 30.26 [14:11:12]line Наличными: 285.00 [14:11:12]line Безнал.: 0.00 [14:11:12]line Место: АЗС № 101 "Партнер Нефть" [14:11:12]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:11:12]line СНО: Общий режим [14:11:12]line Чек 149 01.11.2024 14:11 [14:11:12]line Смена: 558 ФФД: 1.0 [14:11:12]line ЗНМ: 0300000081 [14:11:12]line РНМ: 0000000000091631 [14:11:12]line Версия ККМ: 001 [14:11:12]line ФМ: 0000000000874669 [14:11:12]line ФД: 139968 [14:11:12]line ФПД: 211114391269093 [14:11:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T141117&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139968&fm=211114391269093&tin=02508201610067®Number=0000000000091631&sum=28500 [14:11:13]line 0 [14:11:13]OFD Sender: Processing packet 139968 [packets to send 34, broken 33] [14:11:13]ProducePacketName [14:11:13]name=ofd_packets/00139968 [14:11:13]OFD Sender: To server: pG, [14:11:13]CommunicateWithHost lk.salyk.kg:30040 [14:11:13]ConnectInit lk.salyk.kg [14:11:13]written 0, free lines is 4095 [14:11:13]Connected sock=10 [14:11:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 44 01 00 00 59 FB 3C 01 20 6E 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 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 D2 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 95 00 00 00 F4 03 04 00 85 E1 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C0 22 02 00 35 04 06 00 C0 01 E6 4C 6E E5 D8 40 76 39 49 62 B6 93 [14:11:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 75 99 47 00 67 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 34 36 36 39 10 04 04 00 C0 22 02 00 F4 03 04 00 2F 8D 24 67 B6 04 01 00 00 B9 25 14 A8 2F DE 53 E5 [14:11:13]CommunicateWithHost err = 0 [14:11:13]CheckOFDResponse [14:11:13]1017 (14) - 77093643461234 [14:11:13]1041 (16) - 0000000000874669 [14:11:13]1040 (4) - 139968 [14:11:13]1012 (4) - 01.11.2024 08:11 [14:11:13]1206 (1) - 0 [14:11:13]OFD Sender: Remove packet 139968 [14:11:13]ProducePacketName [14:11:13]name=ofd_packets/00139968 [14:11:13]NVStorageDeleteData [14:11:13]Write to MH i2c: 01 00 00 6F 60 CF [14:11:13]Write i2c OK [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: 01 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: 01 07 00 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: 01 07 00 6F 60 00 00 00 00 00 0B 0D EE [14:11:13]RasterBufferAndPrint [14:11:13]line [14:11:13]line [14:11:13]line [14:11:13]line [14:11:13]line [14:11:13]written 0, free lines is 3348 [14:11:13]MH_Cut [14:11:13]Write to MH i2c: D1 01 00 76 60 01 A8 [14:11:13]Write i2c OK [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: D1 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: D1 01 00 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: D1 01 00 76 60 00 A7 [14:11:13]Write to MH i2c: 01 00 00 77 60 D7 [14:11:13]Write i2c OK [14:11:13]MH_I2C_Read... [14:11:13]OFD Sender: No OFD packet to send [14:11:14]*** Cut start [14:11:14]*** Partial cut [14:11:14]*** CUTSNS_PIN = 1 [14:11:14]*** CUTSNS_PIN = 0 [14:11:14]*** Brake cut motor [14:11:14]Read from MH i2c: 01 [14:11:14]MH_I2C_Read... [14:11:14]*** Stop cut motor [14:11:14]*** Cut end [14:11:14]Read from MH i2c: 01 07 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: 01 07 00 77 60 00 00 00 00 00 FF 0F EC [14:11:14]process_action close_receipt done [14:11:14]requested_data is exist [14:11:14]produce_requested_data [14:11:14]requested_item fm.sn is exist - process it [14:11:14]wFMCommunicate request_size=4 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 11 00 00 [14:11:14]Write to MH i2c: E2 08 00 78 60 80 11 00 00 00 00 00 00 52 [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 17 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 17 00 78 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AD [14:11:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:11:14]wFMCommunicate OK [14:11:14]requested_item fd.num is exist - process it [14:11:14]SAM_PROTO_GetFieldsCounters [14:11:14]wFMCommunicate request_size=4 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 13 00 00 [14:11:14]Write to MH i2c: E2 08 00 79 60 80 13 00 00 00 00 00 00 55 [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:15]Read from MH i2c: E2 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: E2 62 00 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: E2 62 00 79 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C0 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [14:11:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C0 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:15]wFMCommunicate OK [14:11:15]SAM_PROTO_GetFieldsCounters done [14:11:15]requested_item shift.num is exist - process it [14:11:15]requested_item shift.opened is exist - process it [14:11:15]req_shift_opened [14:11:15]FM_GetShiftState [14:11:15]SAM_PROTO_GetShiftState [14:11:15]wFMCommunicate request_size=4 [14:11:15]MH_SAM_APDU [14:11:15]CAPDU: 80 13 01 00 [14:11:15]Write to MH i2c: E2 08 00 7A 60 80 13 01 00 00 00 00 00 57 [14:11:15]Write i2c OK [14:11:15]MH_I2C_Read... [14:11:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:15]Read from MH i2c: E2 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: E2 0E 00 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: E2 0E 00 7A 60 00 09 00 01 89 19 24 67 00 00 00 00 90 00 90 [14:11:15]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:11:15]wFMCommunicate OK [14:11:15]SAM_PROTO_GetShiftState done [14:11:15]FM_GetShiftState done [14:11:15]req_shift_opened done [14:11:15]requested_item shift.open_date is exist - process it [14:11:15]req_shift_open_date [14:11:15]req_shift_open_date done [14:11:15]produce_requested_data done [14:11:15]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139968,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [14:11:15]process_action_free close_receipt [14:11:15]json_value_free [14:11:15]json_value_free done [14:11:15]process_json_proto returns [14:11:15]Send response to host [14:11:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139968,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [14:11:15]free response buf [14:11:15]execute_script done [14:11:15]execute_script returns [14:11:15]free content buf [14:11:15]Sock 7.Close socket [14:11:15]Sock 7.Thread stoped [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:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:55]accept exits with 9 [14:13:55]New connection [14:13:55]New thread 3066510692 created [14:13:55]Thread 3066654052 joined [14:13:55]Waiting for new connection... [14:13:55] Sock 9.Parse request [14:13:55]Sock 9.Check first char [14:13:55]Sock 9.First char is OK [14:13:55]request: POST /json_proto HTTP/1.0 [14:13:55]Method: POST [14:13:55]URL: /json_proto [14:13:55]Method is POST - this is cgi request [14:13:55]url: /json_proto [14:13:55]query_string will be loaded in cgi processing [14:13:55]execute_cgi json_proto POST (null) [14:13:55]execute_cgi path=json_proto method=POST [14:13:55]POST find Content-Length [14:13:55]Host: 172.17.50.196:8080 [14:13:55]Content-Length: 992 [14:13:55]Content-Type: application/json [14:13:55] [14:13:55]POST finish read [14:13:55]Found Content-Length = 992 [14:13:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335782", "tax_sys" : 0, "items" : [ { "code": "5449000189349", "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,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 164.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:55]execute_script... [14:13: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)335782", "tax_sys" : 0, "items" : [ { "code": "5449000189349", "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,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 164.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:55]POST & json_proto [14:13:55]process_json_proto [14:13:55]json parsed OK: [14:13:55]protocol is kg_v1.0 [14:13:55]action value=close_receipt [14:13:55]process_action close_receipt [14:13:55]cmd_close_receipt [14:13:55]MH_GetDate [14:13:55]Write to MH i2c: F0 00 00 7B 60 CA [14:13:55]Write i2c OK [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: F0 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: F0 09 00 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: F0 09 00 7B 60 00 29 E2 24 67 72 0D 1C 67 6B [14:13:55]GetLastDocTimeStamp 1730470277 [14:13:55]current date 1730470441 [14:13:55]FM_GetShiftState [14:13:55]SAM_PROTO_GetShiftState [14:13:55]wFMCommunicate request_size=4 [14:13:55]MH_SAM_APDU [14:13:55]CAPDU: 80 13 01 00 [14:13:55]Write to MH i2c: E2 08 00 7C 60 80 13 01 00 00 00 00 00 59 [14:13:55]Write i2c OK [14:13:55]MH_I2C_Read... [14:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:55]Read from MH i2c: E2 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: E2 0E 00 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: E2 0E 00 7C 60 00 09 00 01 89 19 24 67 00 00 00 00 90 00 92 [14:13:55]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:13:55]wFMCommunicate OK [14:13:55]SAM_PROTO_GetShiftState done [14:13:55]FM_GetShiftState done [14:13:55]opened in 1730419081 [14:13:55]opened+sec_in_day 1730505481 [14:13:55]quantity*price = 7500 [14:13:55]sum+1 = 7501 [14:13:55]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700040114137 Султан чай 1л. зел лимон 1.000 * 89.00 = 89.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 164.00 НСП 1% : 1.45 НДС 12% : 17.41 Наличными: 164.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 150 01.11.2024 14:14 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139969 ФПД: 251861774101387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T141401&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139969&fm=251861774101387&tin=02508201610067®Number=0000000000091631&sum=16400 0 [14:13:56]StoreToDocumentArchive [14:13:56]shift 558 fd 139969 [14:13:56]save to /storage/0558/doc_00139969 [14:13:56]save last doc name /storage/0558/doc_00139969 to /storage/kkm_last_doc_name [14:13:56]save OK [14:13:56]Clear old archive folders... [14:13:56]ProcessDocumentItem done err = 0, tmpTLVsize=414 [14:13:56]tlvbuf is 00BB4140 [14:13:56]SAM_PROTO_ClearQueue [14:13:56]wFMCommunicate request_size=4 [14:13:56]MH_SAM_APDU [14:13:56]CAPDU: 80 09 00 00 [14:13:56]Write to MH i2c: E2 08 00 89 60 80 09 00 00 00 00 00 00 5B [14:13:56]Write i2c OK [14:13:56]MH_I2C_Read... [14:13:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:56]Read from MH i2c: E2 [14:13:56]MH_I2C_Read... [14:13:56]Read from MH i2c: E2 03 00 [14:13:56]MH_I2C_Read... [14:13:56]Read from MH i2c: E2 03 00 89 60 00 90 00 5D [14:13:56]RAPDU: 90 00 [14:13:56]wFMCommunicate OK [14:13:56]SAM_PROTO_ClearQueue done [14:13:56]KKMCreateOFDPacket [14:13:56]OFDProtocolAddRootSTLVToBuf [14:13:56]FM_MakeSignedData [14:13:56]FM_MakeSignedData [14:13:56]SAM_PROTO_SignData [14:13:56]wFMCommunicate request_size=4 [14:13:56]MH_SAM_APDU [14:13:56]CAPDU: 80 0D 01 02 [14:13:56]Write to MH i2c: E2 08 00 8A 60 80 0D 01 02 00 00 00 00 63 [14:13:56]Write i2c OK [14:13:56]MH_I2C_Read... [14:13:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:56]Read from MH i2c: E2 [14:13:56]MH_I2C_Read... [14:13:56]Read from MH i2c: E2 03 00 [14:13:56]MH_I2C_Read... [14:13:56]Read from MH i2c: E2 03 00 8A 60 00 90 00 5E [14:13:56]RAPDU: 90 00 [14:13:56]wFMCommunicate OK [14:13:56]wFMCommunicate request_size=255 [14:13:56]MH_SAM_APDU [14:13:56]CAPDU: 80 0D 02 02 FA 03 00 9E 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 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 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 [14:13:56]Write to MH i2c: E2 02 01 8B 60 80 0D 02 02 FA 00 03 00 9E 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 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 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 00 00 14 [14:13:56]Write i2c OK [14:13:56]MH_I2C_Read... [14:13:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:56]Read from MH i2c: E2 [14:13:56]MH_I2C_Read... [14:13:56]Read from MH i2c: E2 03 00 [14:13:56]MH_I2C_Read... [14:13:56]Read from MH i2c: E2 03 00 8B 60 00 90 00 5F [14:13:56]RAPDU: 90 00 [14:13:56]wFMCommunicate OK [14:13:56]wFMCommunicate request_size=173 [14:13:56]MH_SAM_APDU [14:13:56]CAPDU: 80 0D 02 02 A8 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 10 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 29 E2 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C1 22 02 00 35 04 06 00 E5 11 23 93 EB 8B [14:13:56]Write to MH i2c: E2 B0 00 8C 60 80 0D 02 02 A8 00 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 10 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 29 E2 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C1 22 02 00 35 04 06 00 E5 11 23 93 EB 8B 00 00 64 [14:13:56]Write i2c OK [14:13:56]MH_I2C_Read... [14:13:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:57]Read from MH i2c: E2 [14:13:57]MH_I2C_Read... [14:13:57]Read from MH i2c: E2 03 00 [14:13:57]MH_I2C_Read... [14:13:57]Read from MH i2c: E2 03 00 8C 60 00 90 00 60 [14:13:57]RAPDU: 90 00 [14:13:57]wFMCommunicate OK [14:13:57]wFMCommunicate request_size=4 [14:13:57]MH_SAM_APDU [14:13:57]CAPDU: 80 0D 03 02 [14:13:57]Write to MH i2c: E2 08 00 8D 60 80 0D 03 02 00 00 00 00 68 [14:13:57]Write i2c OK [14:13:57]MH_I2C_Read... [14:13:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:57]Read from MH i2c: E2 [14:13:57]MH_I2C_Read... [14:13:57]Read from MH i2c: E2 0B 00 [14:13:57]MH_I2C_Read... [14:13:57]Read from MH i2c: E2 0B 00 8D 60 00 0E D3 AB C5 3A AD 67 2E 90 00 36 [14:13:57]RAPDU: 0E D3 AB C5 3A AD 67 2E 90 00 [14:13:57]wFMCommunicate OK [14:13:57]SAM_PROTO_SignData done [14:13:57]FM_MakeSignedData done [14:13:57]CreateOFDProtocolMessage [14:13:57]wFMCommunicate request_size=4 [14:13:57]MH_SAM_APDU [14:13:57]CAPDU: 80 11 00 00 [14:13:57]Write to MH i2c: E2 08 00 8E 60 80 11 00 00 00 00 00 00 68 [14:13:57]Write i2c OK [14:13:57]MH_I2C_Read... [14:13:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:57]Read from MH i2c: E2 [14:13:57]MH_I2C_Read... [14:13:57]Read from MH i2c: E2 17 00 [14:13:57]MH_I2C_Read... [14:13:57]Read from MH i2c: E2 17 00 8E 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C3 [14:13:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:13:57]wFMCommunicate OK [14:13:57]CreateOFDProtocolMessage done [14:13:57]OFDSenderStorePacket 139969 [14:13:57]StoreOFDPacket docnum=139969 [14:13:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B2 01 00 00 03 91 AA 01 B4 43 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 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 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 10 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 29 E2 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C1 22 02 00 35 04 06 00 E5 11 23 93 EB 8B 0E D3 AB C5 3A AD 67 2E [14:13:57]CheckFolder [14:13:57]dirname=/storage/ofd_packets [14:13:57]CheckFolder done [14:13:57]ProducePacketName [14:13:57]name=ofd_packets/00139969 [14:13:57]NVStorageSaveData ofd_packets/00139969 [14:13:57]File name is /storage/ofd_packets/00139969 [14:13:57]Write 464 bytes [14:13:57]NVStorageSaveData done [14:13:57]OFDSenderStorePacket done [14:13:57]KKMCreateOFDPacket done [14:13:57]NVStorageSaveData kkm_last_timestamp [14:13:57]File name is /storage/kkm_last_timestamp [14:13:57]Write 4 bytes [14:13:57]NVStorageSaveData done [14:13:57]ExternCall_PrintAddStr [14:13:57]wPrintStart [14:13:57]Write to MH i2c: 01 00 00 8F 60 EF [14:13:57]Write i2c OK [14:13:57]MH_I2C_Read... [14:13:57]Read from MH i2c: 01 [14:13:57]MH_I2C_Read... [14:13:57]OFD Sender: Processing packet 139969 [packets to send 34, broken 33] [14:13:57]ProducePacketName [14:13:57]name=ofd_packets/00139969 [14:13:57]OFD Sender: To server: pG, [14:13:57]CommunicateWithHost lk.salyk.kg:30040 [14:13:57]ConnectInit lk.salyk.kg [14:13:57]Read from MH i2c: 01 07 00 [14:13:57]MH_I2C_Read... [14:13:57]Read from MH i2c: 01 07 00 8F 60 00 00 00 00 00 FF 0F 04 [14:13:57]RasterBufferAndPrint [14:13:57]line Счет N : (3)335782 [14:13:57]line ИНН: 02508201610067 [14:13:57]line Контрольно-Кассовый Чек [14:13:57]line ПРОДАЖА [14:13:57]line Товар: 5449000189349 [14:13:57]line Холодный чай Fuse манго ананас 0,5л [14:13:57]line 1.000 * 75.00 [14:13:57]line = 75.00 [14:13:57]line НДС 12% НСП 1% [14:13:57]line > о реализуемом товаре [14:13:57]line Товар: 4700040114137 [14:13:57]line Султан чай 1л. зел лимон [14:13:57]line 1.000 * 89.00 [14:13:57]line = 89.00 [14:13:57]line НДС 12% НСП 1% [14:13:57]line > о реализуемом товаре [14:13:57]line ИТОГО: 164.00 [14:13:57]line НСП 1% : 1.45 [14:13:57]line НДС 12% : 17.41 [14:13:57]line Наличными: 164.00 [14:13:57]line Безнал.: 0.00 [14:13:57]line Место: АЗС № 101 "Партнер Нефть" [14:13:57]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:13:57]line СНО: Общий режим [14:13:57]line Чек 150 01.11.2024 14:14 [14:13:57]line Смена: 558 ФФД: 1.0 [14:13:57]line ЗНМ: 0300000081 [14:13:57]line РНМ: 0000000000091631 [14:13:57]line Версия ККМ: 001 [14:13:57]line ФМ: 0000000000874669 [14:13:57]line ФД: 139969 [14:13:57]line ФПД: 251861774101387 [14:13:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T141401&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139969&fm=251861774101387&tin=02508201610067®Number=0000000000091631&sum=16400 [14:13:57]line 0 [14:13:57]written 0, free lines is 4095 [14:13:57]Connected sock=10 [14:13:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B2 01 00 00 03 91 AA 01 B4 43 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 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 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 10 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 29 E2 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C1 22 02 00 35 04 06 00 E5 11 23 93 EB 8B 0E D3 AB C5 3A AD 67 2E [14:13:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 A0 A2 47 00 AE 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 34 36 36 39 10 04 04 00 C1 22 02 00 F4 03 04 00 D4 8D 24 67 B6 04 01 00 00 8C 6A E1 81 D5 26 CB C6 [14:13:57]CommunicateWithHost err = 0 [14:13:57]CheckOFDResponse [14:13:57]1017 (14) - 77093643461234 [14:13:57]1041 (16) - 0000000000874669 [14:13:57]1040 (4) - 139969 [14:13:57]1012 (4) - 01.11.2024 08:14 [14:13:57]1206 (1) - 0 [14:13:57]OFD Sender: Remove packet 139969 [14:13:57]ProducePacketName [14:13:57]name=ofd_packets/00139969 [14:13:57]NVStorageDeleteData [14:13:57]Write to MH i2c: 01 00 00 BE 60 1E [14:13:57]Write i2c OK [14:13:57]MH_I2C_Read... [14:13:57]Read from MH i2c: 01 [14:13:57]MH_I2C_Read... [14:13:57]Read from MH i2c: 01 07 00 [14:13:57]MH_I2C_Read... [14:13:57]Read from MH i2c: 01 07 00 BE 60 00 00 00 00 00 C5 0C F6 [14:13:57]RasterBufferAndPrint [14:13:57]line [14:13:57]line [14:13:57]line [14:13:57]line [14:13:57]line [14:13:57]written 0, free lines is 3277 [14:13:57]MH_Cut [14:13:58]Write to MH i2c: D1 01 00 C5 60 01 F7 [14:13:58]Write i2c OK [14:13:58]MH_I2C_Read... [14:13:58]Read from MH i2c: D1 [14:13:58]MH_I2C_Read... [14:13:58]Read from MH i2c: D1 01 00 [14:13:58]MH_I2C_Read... [14:13:58]Read from MH i2c: D1 01 00 C5 60 00 F6 [14:13:58]Write to MH i2c: 01 00 00 C6 60 26 [14:13:58]Write i2c OK [14:13:58]MH_I2C_Read... [14:13:58]OFD Sender: No OFD packet to send [14:13:58]*** Cut start [14:13:58]*** Partial cut [14:13:58]*** CUTSNS_PIN = 1 [14:13:58]*** CUTSNS_PIN = 0 [14:13:58]*** Brake cut motor [14:13:59]Read from MH i2c: 01 [14:13:59]MH_I2C_Read... [14:13:59]*** Stop cut motor [14:13:59]*** Cut end [14:13:59]Read from MH i2c: 01 07 00 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: 01 07 00 C6 60 00 00 00 00 00 FF 0F 3B [14:13:59]process_action close_receipt done [14:13:59]requested_data is exist [14:13:59]produce_requested_data [14:13:59]requested_item fm.sn is exist - process it [14:13:59]wFMCommunicate request_size=4 [14:13:59]MH_SAM_APDU [14:13:59]CAPDU: 80 11 00 00 [14:13:59]Write to MH i2c: E2 08 00 C7 60 80 11 00 00 00 00 00 00 A1 [14:13:59]Write i2c OK [14:13:59]MH_I2C_Read... [14:13:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:59]Read from MH i2c: E2 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: E2 17 00 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: E2 17 00 C7 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FC [14:13:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:13:59]wFMCommunicate OK [14:13:59]requested_item fd.num is exist - process it [14:13:59]SAM_PROTO_GetFieldsCounters [14:13:59]wFMCommunicate request_size=4 [14:13:59]MH_SAM_APDU [14:13:59]CAPDU: 80 13 00 00 [14:13:59]Write to MH i2c: E2 08 00 C8 60 80 13 00 00 00 00 00 00 A4 [14:13:59]Write i2c OK [14:13:59]MH_I2C_Read... [14:13:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:59]Read from MH i2c: E2 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: E2 62 00 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: E2 62 00 C8 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C1 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [14:13:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C1 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:59]wFMCommunicate OK [14:13:59]SAM_PROTO_GetFieldsCounters done [14:13:59]requested_item shift.num is exist - process it [14:13:59]requested_item shift.opened is exist - process it [14:13:59]req_shift_opened [14:13:59]FM_GetShiftState [14:13:59]SAM_PROTO_GetShiftState [14:13:59]wFMCommunicate request_size=4 [14:13:59]MH_SAM_APDU [14:13:59]CAPDU: 80 13 01 00 [14:13:59]Write to MH i2c: E2 08 00 C9 60 80 13 01 00 00 00 00 00 A6 [14:13:59]Write i2c OK [14:13:59]MH_I2C_Read... [14:13:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:59]Read from MH i2c: E2 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: E2 0E 00 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: E2 0E 00 C9 60 00 09 00 01 89 19 24 67 00 00 00 00 90 00 DF [14:13:59]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:13:59]wFMCommunicate OK [14:13:59]SAM_PROTO_GetShiftState done [14:13:59]FM_GetShiftState done [14:13:59]req_shift_opened done [14:13:59]requested_item shift.open_date is exist - process it [14:13:59]req_shift_open_date [14:13:59]req_shift_open_date done [14:13:59]produce_requested_data done [14:13:59]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139969,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [14:13:59]process_action_free close_receipt [14:13:59]json_value_free [14:13:59]json_value_free done [14:13:59]process_json_proto returns [14:13:59]Send response to host [14:13:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139969,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [14:13:59]free response buf [14:13:59]execute_script done [14:13:59]execute_script returns [14:13:59]free content buf [14:13:59]Sock 9.Close socket [14:13:59]Sock 9.Thread stoped [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:04]accept exits with 7 [14:16:04]New connection [14:16:04]New thread 3066654052 created [14:16:04]Thread 3066510692 joined [14:16:04]Waiting for new connection... [14:16:04] Sock 7.Parse request [14:16:04]Sock 7.Check first char [14:16:04]Sock 7.First char is OK [14:16:04]request: POST /json_proto HTTP/1.0 [14:16:04]Method: POST [14:16:04]URL: /json_proto [14:16:04]Method is POST - this is cgi request [14:16:04]url: /json_proto [14:16:04]query_string will be loaded in cgi processing [14:16:04]execute_cgi json_proto POST (null) [14:16:04]execute_cgi path=json_proto method=POST [14:16:04]POST find Content-Length [14:16:04]Host: 172.17.50.196:8080 [14:16:04]Content-Length: 975 [14:16:04]Content-Type: application/json [14:16:04] [14:16:04]POST finish read [14:16:04]Found Content-Length = 975 [14:16:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335783", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:04]execute_script... [14:16:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335783", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:04]POST & json_proto [14:16:04]process_json_proto [14:16:04]json parsed OK: [14:16:04]protocol is kg_v1.0 [14:16:04]action value=close_receipt [14:16:04]process_action close_receipt [14:16:04]cmd_close_receipt [14:16:04]MH_GetDate [14:16:04]Write to MH i2c: F0 00 00 CA 60 19 [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: F0 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: F0 09 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: F0 09 00 CA 60 00 AA E2 24 67 72 0D 1C 67 3B [14:16:04]GetLastDocTimeStamp 1730470441 [14:16:04]current date 1730470570 [14:16:04]FM_GetShiftState [14:16:04]SAM_PROTO_GetShiftState [14:16:04]wFMCommunicate request_size=4 [14:16:04]MH_SAM_APDU [14:16:04]CAPDU: 80 13 01 00 [14:16:04]Write to MH i2c: E2 08 00 CB 60 80 13 01 00 00 00 00 00 A8 [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:04]Read from MH i2c: E2 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 0E 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 0E 00 CB 60 00 09 00 01 89 19 24 67 00 00 00 00 90 00 E1 [14:16:04]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:16:04]wFMCommunicate OK [14:16:04]SAM_PROTO_GetShiftState done [14:16:04]FM_GetShiftState done [14:16:04]opened in 1730419081 [14:16:04]opened+sec_in_day 1730505481 [14:16:04]quantity*price = 12000 [14:16:04]sum+1 = 12001 [14:16:04]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 151 01.11.2024 14:16 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139970 ФПД: 167151882208924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T141610&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139970&fm=167151882208924&tin=02508201610067®Number=0000000000091631&sum=17000 0 [14:16:05]StoreToDocumentArchive [14:16:05]shift 558 fd 139970 [14:16:05]save to /storage/0558/doc_00139970 [14:16:05]save last doc name /storage/0558/doc_00139970 to /storage/kkm_last_doc_name [14:16:05]save OK [14:16:05]Clear old archive folders... [14:16:05]ProcessDocumentItem done err = 0, tmpTLVsize=407 [14:16:05]tlvbuf is 00BA7B00 [14:16:05]SAM_PROTO_ClearQueue [14:16:05]wFMCommunicate request_size=4 [14:16:05]MH_SAM_APDU [14:16:05]CAPDU: 80 09 00 00 [14:16:05]Write to MH i2c: E2 08 00 D8 60 80 09 00 00 00 00 00 00 AA [14:16:05]Write i2c OK [14:16:05]MH_I2C_Read... [14:16:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:05]Read from MH i2c: E2 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: E2 03 00 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: E2 03 00 D8 60 00 90 00 AC [14:16:05]RAPDU: 90 00 [14:16:05]wFMCommunicate OK [14:16:05]SAM_PROTO_ClearQueue done [14:16:05]KKMCreateOFDPacket [14:16:05]OFDProtocolAddRootSTLVToBuf [14:16:05]FM_MakeSignedData [14:16:05]FM_MakeSignedData [14:16:05]SAM_PROTO_SignData [14:16:05]wFMCommunicate request_size=4 [14:16:05]MH_SAM_APDU [14:16:05]CAPDU: 80 0D 01 02 [14:16:05]Write to MH i2c: E2 08 00 D9 60 80 0D 01 02 00 00 00 00 B2 [14:16:05]Write i2c OK [14:16:05]MH_I2C_Read... [14:16:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:05]Read from MH i2c: E2 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: E2 03 00 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: E2 03 00 D9 60 00 90 00 AD [14:16:05]RAPDU: 90 00 [14:16:05]wFMCommunicate OK [14:16:05]wFMCommunicate request_size=255 [14:16:05]MH_SAM_APDU [14:16:05]CAPDU: 80 0D 02 02 FA 03 00 97 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 [14:16:05]Write to MH i2c: E2 02 01 DA 60 80 0D 02 02 FA 00 03 00 97 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 00 00 F1 [14:16:05]Write i2c OK [14:16:05]MH_I2C_Read... [14:16:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:05]Read from MH i2c: E2 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: E2 03 00 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: E2 03 00 DA 60 00 90 00 AE [14:16:05]RAPDU: 90 00 [14:16:05]wFMCommunicate OK [14:16:05]wFMCommunicate request_size=166 [14:16:05]MH_SAM_APDU [14:16:05]CAPDU: 80 0D 02 02 A1 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 97 00 00 00 F4 03 04 00 AA E2 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C2 22 02 00 35 04 06 00 98 06 14 90 06 9C [14:16:05]Write to MH i2c: E2 A9 00 DB 60 80 0D 02 02 A1 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 97 00 00 00 F4 03 04 00 AA E2 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C2 22 02 00 35 04 06 00 98 06 14 90 06 9C 00 00 DD [14:16:05]Write i2c OK [14:16:05]MH_I2C_Read... [14:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:06]Read from MH i2c: E2 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: E2 03 00 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: E2 03 00 DB 60 00 90 00 AF [14:16:06]RAPDU: 90 00 [14:16:06]wFMCommunicate OK [14:16:06]wFMCommunicate request_size=4 [14:16:06]MH_SAM_APDU [14:16:06]CAPDU: 80 0D 03 02 [14:16:06]Write to MH i2c: E2 08 00 DC 60 80 0D 03 02 00 00 00 00 B7 [14:16:06]Write i2c OK [14:16:06]MH_I2C_Read... [14:16:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:06]Read from MH i2c: E2 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: E2 0B 00 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: E2 0B 00 DC 60 00 34 1A 5F C2 85 70 99 3D 90 00 F2 [14:16:06]RAPDU: 34 1A 5F C2 85 70 99 3D 90 00 [14:16:06]wFMCommunicate OK [14:16:06]SAM_PROTO_SignData done [14:16:06]FM_MakeSignedData done [14:16:06]CreateOFDProtocolMessage [14:16:06]wFMCommunicate request_size=4 [14:16:06]MH_SAM_APDU [14:16:06]CAPDU: 80 11 00 00 [14:16:06]Write to MH i2c: E2 08 00 DD 60 80 11 00 00 00 00 00 00 B7 [14:16:06]Write i2c OK [14:16:06]MH_I2C_Read... [14:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:06]Read from MH i2c: E2 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: E2 17 00 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: E2 17 00 DD 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 12 [14:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:16:06]wFMCommunicate OK [14:16:06]CreateOFDProtocolMessage done [14:16:06]OFDSenderStorePacket 139970 [14:16:06]StoreOFDPacket docnum=139970 [14:16:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 AB 01 00 00 77 7D A3 01 E9 2C 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 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 97 00 00 00 F4 03 04 00 AA E2 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C2 22 02 00 35 04 06 00 98 06 14 90 06 9C 34 1A 5F C2 85 70 99 3D [14:16:06]CheckFolder [14:16:06]dirname=/storage/ofd_packets [14:16:06]CheckFolder done [14:16:06]ProducePacketName [14:16:06]name=ofd_packets/00139970 [14:16:06]NVStorageSaveData ofd_packets/00139970 [14:16:06]File name is /storage/ofd_packets/00139970 [14:16:06]Write 457 bytes [14:16:06]NVStorageSaveData done [14:16:06]OFDSenderStorePacket done [14:16:06]KKMCreateOFDPacket done [14:16:06]NVStorageSaveData kkm_last_timestamp [14:16:06]File name is /storage/kkm_last_timestamp [14:16:06]Write 4 bytes [14:16:06]NVStorageSaveData done [14:16:06]ExternCall_PrintAddStr [14:16:06]wPrintStart [14:16:06]Write to MH i2c: 01 00 00 DE 60 3E [14:16:06]Write i2c OK [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: 01 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: 01 07 00 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: 01 07 00 DE 60 00 00 00 00 00 FF 0F 53 [14:16:06]RasterBufferAndPrint [14:16:06]line Счет N : (3)335783 [14:16:06]line ИНН: 02508201610067 [14:16:06]line Контрольно-Кассовый Чек [14:16:06]line ПРОДАЖА [14:16:06]line Товар: 5449000027474 [14:16:06]line Напиток FuzeTea зел чай манго,ромашка 1л [14:16:06]line 1.000 * 120.00 [14:16:06]line = 120.00 [14:16:06]line НДС 12% НСП 1% [14:16:06]line > о реализуемом товаре [14:16:06]line Товар: 4700000160358 [14:16:06]line Вода Легенда 1л [14:16:06]line 1.000 * 50.00 [14:16:06]line = 50.00 [14:16:06]line НДС 12% НСП 1% [14:16:06]line > о реализуемом товаре [14:16:06]line ИТОГО: 170.00 [14:16:06]line НСП 1% : 1.50 [14:16:06]line НДС 12% : 18.05 [14:16:06]line Наличными: 170.00 [14:16:06]line Безнал.: 0.00 [14:16:06]line Место: АЗС № 101 "Партнер Нефть" [14:16:06]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:16:06]line СНО: Общий режим [14:16:06]line Чек 151 01.11.2024 14:16 [14:16:06]line Смена: 558 ФФД: 1.0 [14:16:06]line ЗНМ: 0300000081 [14:16:06]line РНМ: 0000000000091631 [14:16:06]line Версия ККМ: 001 [14:16:06]line ФМ: 0000000000874669 [14:16:06]line ФД: 139970 [14:16:06]line ФПД: 167151882208924 [14:16:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T141610&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139970&fm=167151882208924&tin=02508201610067®Number=0000000000091631&sum=17000 [14:16:06]line 0 [14:16:06]OFD Sender: Processing packet 139970 [packets to send 34, broken 33] [14:16:06]ProducePacketName [14:16:06]name=ofd_packets/00139970 [14:16:06]OFD Sender: To server: pG, [14:16:06]CommunicateWithHost lk.salyk.kg:30040 [14:16:06]ConnectInit lk.salyk.kg [14:16:06]written 0, free lines is 4095 [14:16:06]Connected sock=10 [14:16:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 AB 01 00 00 77 7D A3 01 E9 2C 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 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 97 00 00 00 F4 03 04 00 AA E2 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C2 22 02 00 35 04 06 00 98 06 14 90 06 9C 34 1A 5F C2 85 70 99 3D [14:16:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 97 B7 47 00 E3 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C2 22 02 00 F4 03 04 00 55 8E 24 67 B6 04 01 00 00 AA CF 2E 6B F2 AE C7 B8 [14:16:06]CommunicateWithHost err = 0 [14:16:06]CheckOFDResponse [14:16:06]1017 (14) - 77093643461234 [14:16:06]1041 (16) - 0000000000874669 [14:16:06]1040 (4) - 139970 [14:16:06]1012 (4) - 01.11.2024 08:16 [14:16:06]1206 (1) - 0 [14:16:06]OFD Sender: Remove packet 139970 [14:16:06]ProducePacketName [14:16:06]name=ofd_packets/00139970 [14:16:06]NVStorageDeleteData [14:16:07]Write to MH i2c: 01 00 00 0D 61 6E [14:16:07]Write i2c OK [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: 01 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: 01 07 00 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: 01 07 00 0D 61 00 00 00 00 00 A8 0C 29 [14:16:07]RasterBufferAndPrint [14:16:07]line [14:16:07]line [14:16:07]line [14:16:07]line [14:16:07]line [14:16:07]written 0, free lines is 3249 [14:16:07]MH_Cut [14:16:07]Write to MH i2c: D1 01 00 14 61 01 47 [14:16:07]Write i2c OK [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: D1 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: D1 01 00 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: D1 01 00 14 61 00 46 [14:16:07]Write to MH i2c: 01 00 00 15 61 76 [14:16:07]Write i2c OK [14:16:07]MH_I2C_Read... [14:16:07]OFD Sender: No OFD packet to send [14:16:07]*** Cut start [14:16:07]*** Partial cut [14:16:07]*** CUTSNS_PIN = 1 [14:16:07]*** CUTSNS_PIN = 0 [14:16:08]*** Brake cut motor [14:16:08]Read from MH i2c: 01 [14:16:08]MH_I2C_Read... [14:16:08]*** Stop cut motor [14:16:08]*** Cut end [14:16:08]Read from MH i2c: 01 07 00 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: 01 07 00 15 61 00 00 00 00 00 FF 0F 8B [14:16:08]process_action close_receipt done [14:16:08]requested_data is exist [14:16:08]produce_requested_data [14:16:08]requested_item fm.sn is exist - process it [14:16:08]wFMCommunicate request_size=4 [14:16:08]MH_SAM_APDU [14:16:08]CAPDU: 80 11 00 00 [14:16:08]Write to MH i2c: E2 08 00 16 61 80 11 00 00 00 00 00 00 F1 [14:16:08]Write i2c OK [14:16:08]MH_I2C_Read... [14:16:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:08]Read from MH i2c: E2 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: E2 17 00 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: E2 17 00 16 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4C [14:16:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:16:08]wFMCommunicate OK [14:16:08]requested_item fd.num is exist - process it [14:16:08]SAM_PROTO_GetFieldsCounters [14:16:08]wFMCommunicate request_size=4 [14:16:08]MH_SAM_APDU [14:16:08]CAPDU: 80 13 00 00 [14:16:08]Write to MH i2c: E2 08 00 17 61 80 13 00 00 00 00 00 00 F4 [14:16:08]Write i2c OK [14:16:08]MH_I2C_Read... [14:16:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:08]Read from MH i2c: E2 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: E2 62 00 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: E2 62 00 17 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C2 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [14:16:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C2 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:08]wFMCommunicate OK [14:16:08]SAM_PROTO_GetFieldsCounters done [14:16:08]requested_item shift.num is exist - process it [14:16:08]requested_item shift.opened is exist - process it [14:16:08]req_shift_opened [14:16:08]FM_GetShiftState [14:16:08]SAM_PROTO_GetShiftState [14:16:08]wFMCommunicate request_size=4 [14:16:08]MH_SAM_APDU [14:16:08]CAPDU: 80 13 01 00 [14:16:08]Write to MH i2c: E2 08 00 18 61 80 13 01 00 00 00 00 00 F6 [14:16:08]Write i2c OK [14:16:08]MH_I2C_Read... [14:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:08]Read from MH i2c: E2 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: E2 0E 00 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: E2 0E 00 18 61 00 09 00 01 89 19 24 67 00 00 00 00 90 00 2F [14:16:08]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:16:08]wFMCommunicate OK [14:16:08]SAM_PROTO_GetShiftState done [14:16:08]FM_GetShiftState done [14:16:08]req_shift_opened done [14:16:08]requested_item shift.open_date is exist - process it [14:16:08]req_shift_open_date [14:16:08]req_shift_open_date done [14:16:08]produce_requested_data done [14:16:08]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139970,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [14:16:08]process_action_free close_receipt [14:16:08]json_value_free [14:16:08]json_value_free done [14:16:08]process_json_proto returns [14:16:08]Send response to host [14:16:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139970,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [14:16:08]free response buf [14:16:08]execute_script done [14:16:08]execute_script returns [14:16:08]free content buf [14:16:08]Sock 7.Close socket [14:16:08]Sock 7.Thread stoped [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]accept exits with 9 [14:17:32]New connection [14:17:32]New thread 3066510692 created [14:17:32]Thread 3066654052 joined [14:17:32]Waiting for new connection... [14:17:32] Sock 9.Parse request [14:17:32]Sock 9.Check first char [14:17:32]Sock 9.First char is OK [14:17:32]request: POST /json_proto HTTP/1.0 [14:17:32]Method: POST [14:17:32]URL: /json_proto [14:17:32]Method is POST - this is cgi request [14:17:32]url: /json_proto [14:17:32]query_string will be loaded in cgi processing [14:17:32]execute_cgi json_proto POST (null) [14:17:32]execute_cgi path=json_proto method=POST [14:17:32]POST find Content-Length [14:17:32]Host: 172.17.50.196:8080 [14:17:32]Content-Length: 678 [14:17:32]Content-Type: application/json [14:17:32] [14:17:32]POST finish read [14:17:32]Found Content-Length = 678 [14:17:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:32]execute_script... [14:17:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:32]POST & json_proto [14:17:32]process_json_proto [14:17:32]json parsed OK: [14:17:32]protocol is kg_v1.0 [14:17:32]action value=close_receipt [14:17:32]process_action close_receipt [14:17:32]cmd_close_receipt [14:17:32]MH_GetDate [14:17:32]Write to MH i2c: F0 00 00 19 61 69 [14:17:32]Write i2c OK [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: F0 [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: F0 09 00 [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: F0 09 00 19 61 00 02 E3 24 67 72 0D 1C 67 E4 [14:17:32]GetLastDocTimeStamp 1730470570 [14:17:32]current date 1730470658 [14:17:32]FM_GetShiftState [14:17:32]SAM_PROTO_GetShiftState [14:17:32]wFMCommunicate request_size=4 [14:17:32]MH_SAM_APDU [14:17:32]CAPDU: 80 13 01 00 [14:17:32]Write to MH i2c: E2 08 00 1A 61 80 13 01 00 00 00 00 00 F8 [14:17:32]Write i2c OK [14:17:32]MH_I2C_Read... [14:17:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:32]Read from MH i2c: E2 [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: E2 0E 00 [14:17:32]MH_I2C_Read... [14:17:32]OFD Sender: No OFD packet to send [14:17:32]Read from MH i2c: E2 0E 00 1A 61 00 09 00 01 89 19 24 67 00 00 00 00 90 00 31 [14:17:32]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:17:32]wFMCommunicate OK [14:17:32]SAM_PROTO_GetShiftState done [14:17:32]FM_GetShiftState done [14:17:32]opened in 1730419081 [14:17:32]opened+sec_in_day 1730505481 [14:17:32]quantity*price = 60027 [14:17:32]sum+1 = 60029 [14:17:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 152 01.11.2024 14:17 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139971 ФПД: 133045974756319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T141738&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139971&fm=133045974756319&tin=02508201610067®Number=0000000000091631&sum=60000 [14:17:33]StoreToDocumentArchive [14:17:33]shift 558 fd 139971 [14:17:33]save to /storage/0558/doc_00139971 [14:17:33]save last doc name /storage/0558/doc_00139971 to /storage/kkm_last_doc_name [14:17:33]save OK [14:17:33]Clear old archive folders... [14:17:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:17:33]tlvbuf is 00A755B0 [14:17:33]SAM_PROTO_ClearQueue [14:17:33]wFMCommunicate request_size=4 [14:17:33]MH_SAM_APDU [14:17:33]CAPDU: 80 09 00 00 [14:17:33]Write to MH i2c: E2 08 00 27 61 80 09 00 00 00 00 00 00 FA [14:17:33]Write i2c OK [14:17:33]MH_I2C_Read... [14:17:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:33]Read from MH i2c: E2 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: E2 03 00 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: E2 03 00 27 61 00 90 00 FC [14:17:33]RAPDU: 90 00 [14:17:33]wFMCommunicate OK [14:17:33]SAM_PROTO_ClearQueue done [14:17:33]KKMCreateOFDPacket [14:17:33]OFDProtocolAddRootSTLVToBuf [14:17:33]FM_MakeSignedData [14:17:33]FM_MakeSignedData [14:17:33]SAM_PROTO_SignData [14:17:33]wFMCommunicate request_size=4 [14:17:33]MH_SAM_APDU [14:17:33]CAPDU: 80 0D 01 02 [14:17:33]Write to MH i2c: E2 08 00 28 61 80 0D 01 02 00 00 00 00 02 [14:17:33]Write i2c OK [14:17:33]MH_I2C_Read... [14:17:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:33]Read from MH i2c: E2 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: E2 03 00 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: E2 03 00 28 61 00 90 00 FD [14:17:33]RAPDU: 90 00 [14:17:33]wFMCommunicate OK [14:17:33]wFMCommunicate request_size=255 [14:17:33]MH_SAM_APDU [14:17:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 02 E3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C3 22 02 00 35 04 06 00 79 [14:17:33]Write to MH i2c: E2 02 01 29 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 02 E3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C3 22 02 00 35 04 06 00 79 00 00 88 [14:17:33]Write i2c OK [14:17:33]MH_I2C_Read... [14:17:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:33]Read from MH i2c: E2 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: E2 03 00 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: E2 03 00 29 61 00 90 00 FE [14:17:33]RAPDU: 90 00 [14:17:33]wFMCommunicate OK [14:17:33]wFMCommunicate request_size=10 [14:17:33]MH_SAM_APDU [14:17:33]CAPDU: 80 0D 02 02 05 01 2E 10 6B DF [14:17:33]Write to MH i2c: E2 0D 00 2A 61 80 0D 02 02 05 00 01 2E 10 6B DF 00 00 98 [14:17:33]Write i2c OK [14:17:33]MH_I2C_Read... [14:17:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:33]Read from MH i2c: E2 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: E2 03 00 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: E2 03 00 2A 61 00 90 00 FF [14:17:33]RAPDU: 90 00 [14:17:33]wFMCommunicate OK [14:17:33]wFMCommunicate request_size=4 [14:17:33]MH_SAM_APDU [14:17:33]CAPDU: 80 0D 03 02 [14:17:33]Write to MH i2c: E2 08 00 2B 61 80 0D 03 02 00 00 00 00 07 [14:17:33]Write i2c OK [14:17:33]MH_I2C_Read... [14:17:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:33]Read from MH i2c: E2 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: E2 0B 00 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: E2 0B 00 2B 61 00 76 63 51 8A 0B 43 B8 28 90 00 EA [14:17:33]RAPDU: 76 63 51 8A 0B 43 B8 28 90 00 [14:17:33]wFMCommunicate OK [14:17:33]SAM_PROTO_SignData done [14:17:33]FM_MakeSignedData done [14:17:33]CreateOFDProtocolMessage [14:17:33]wFMCommunicate request_size=4 [14:17:33]MH_SAM_APDU [14:17:33]CAPDU: 80 11 00 00 [14:17:33]Write to MH i2c: E2 08 00 2C 61 80 11 00 00 00 00 00 00 07 [14:17:33]Write i2c OK [14:17:33]MH_I2C_Read... [14:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:34]Read from MH i2c: E2 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: E2 17 00 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: E2 17 00 2C 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 62 [14:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:17:34]wFMCommunicate OK [14:17:34]CreateOFDProtocolMessage done [14:17:34]OFDSenderStorePacket 139971 [14:17:34]StoreOFDPacket docnum=139971 [14:17:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 9B E2 07 01 F3 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 02 E3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C3 22 02 00 35 04 06 00 79 01 2E 10 6B DF 76 63 51 8A 0B 43 B8 28 [14:17:34]CheckFolder [14:17:34]dirname=/storage/ofd_packets [14:17:34]CheckFolder done [14:17:34]ProducePacketName [14:17:34]name=ofd_packets/00139971 [14:17:34]NVStorageSaveData ofd_packets/00139971 [14:17:34]File name is /storage/ofd_packets/00139971 [14:17:34]Write 301 bytes [14:17:34]NVStorageSaveData done [14:17:34]OFDSenderStorePacket done [14:17:34]KKMCreateOFDPacket done [14:17:34]NVStorageSaveData kkm_last_timestamp [14:17:34]File name is /storage/kkm_last_timestamp [14:17:34]Write 4 bytes [14:17:34]NVStorageSaveData done [14:17:34]ExternCall_PrintAddStr [14:17:34]wPrintStart [14:17:34]Write to MH i2c: 01 00 00 2D 61 8E [14:17:34]Write i2c OK [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: 01 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: 01 07 00 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: 01 07 00 2D 61 00 00 00 00 00 FF 0F A3 [14:17:34]RasterBufferAndPrint [14:17:34]line Счет N : (1)1095972 [14:17:34]line ИНН: 02508201610067 [14:17:34]line Контрольно-Кассовый Чек [14:17:34]line ПРОДАЖА [14:17:34]line ТРК (МРК, ГНК) : 54 [14:17:34]line Товар: 2710124500 [14:17:34]line Аи-95-К-3 [14:17:34]line 8.090 * 74.20 [14:17:34]line = 600.28 [14:17:34]line НДС 12% НСП 1% [14:17:34]line > о реализуемом товаре [14:17:34]line ОКРУГЛЕНИЕ: -0.28 [14:17:34]line ИТОГО: 600.00 [14:17:34]line Внесено: 600.00 [14:17:34]line СДАЧА: 0.00 [14:17:34]line НСП 1% : 5.31 [14:17:34]line НДС 12% : 63.75 [14:17:34]line Наличными: 600.00 [14:17:34]line Безнал.: 0.00 [14:17:34]line Место: АЗС № 101 "Партнер Нефть" [14:17:34]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:17:34]line СНО: Общий режим [14:17:34]line Чек 152 01.11.2024 14:17 [14:17:34]line Смена: 558 ФФД: 1.0 [14:17:34]line ЗНМ: 0300000081 [14:17:34]line РНМ: 0000000000091631 [14:17:34]line Версия ККМ: 001 [14:17:34]line ФМ: 0000000000874669 [14:17:34]line ФД: 139971 [14:17:34]line ФПД: 133045974756319 [14:17:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T141738&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139971&fm=133045974756319&tin=02508201610067®Number=0000000000091631&sum=60000 [14:17:34]OFD Sender: Processing packet 139971 [packets to send 34, broken 33] [14:17:34]ProducePacketName [14:17:34]name=ofd_packets/00139971 [14:17:34]OFD Sender: To server: pG, [14:17:34]CommunicateWithHost lk.salyk.kg:30040 [14:17:34]ConnectInit lk.salyk.kg [14:17:34]written 0, free lines is 4095 [14:17:34]Connected sock=10 [14:17:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 9B E2 07 01 F3 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 02 E3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C3 22 02 00 35 04 06 00 79 01 2E 10 6B DF 76 63 51 8A 0B 43 B8 28 [14:17:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 B0 2D 47 00 B5 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 34 36 36 39 10 04 04 00 C3 22 02 00 F4 03 04 00 AD 8E 24 67 B6 04 01 00 00 37 3C 5A E6 4B F1 76 70 [14:17:34]CommunicateWithHost err = 0 [14:17:34]CheckOFDResponse [14:17:34]1017 (14) - 77093643461234 [14:17:34]1041 (16) - 0000000000874669 [14:17:34]1040 (4) - 139971 [14:17:34]1012 (4) - 01.11.2024 08:17 [14:17:34]1206 (1) - 0 [14:17:34]OFD Sender: Remove packet 139971 [14:17:34]ProducePacketName [14:17:34]name=ofd_packets/00139971 [14:17:34]NVStorageDeleteData [14:17:34]Write to MH i2c: 01 00 00 58 61 B9 [14:17:34]Write i2c OK [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: 01 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: 01 07 00 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: 01 07 00 58 61 00 00 00 00 00 E4 0C B0 [14:17:34]RasterBufferAndPrint [14:17:34]line [14:17:34]line [14:17:34]line [14:17:34]line [14:17:34]line [14:17:34]written 0, free lines is 3306 [14:17:34]MH_Cut [14:17:34]Write to MH i2c: D1 01 00 5F 61 01 92 [14:17:34]Write i2c OK [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: D1 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: D1 01 00 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: D1 01 00 5F 61 00 91 [14:17:34]Write to MH i2c: 01 00 00 60 61 C1 [14:17:34]Write i2c OK [14:17:34]MH_I2C_Read... [14:17:35]OFD Sender: No OFD packet to send [14:17:35]*** Cut start [14:17:35]*** Partial cut [14:17:35]*** CUTSNS_PIN = 1 [14:17:35]*** CUTSNS_PIN = 0 [14:17:35]*** Brake cut motor [14:17:36]Read from MH i2c: 01 [14:17:36]MH_I2C_Read... [14:17:36]*** Stop cut motor [14:17:36]*** Cut end [14:17:36]Read from MH i2c: 01 07 00 [14:17:36]MH_I2C_Read... [14:17:36]Read from MH i2c: 01 07 00 60 61 00 00 00 00 00 FF 0F D6 [14:17:36]process_action close_receipt done [14:17:36]requested_data is exist [14:17:36]produce_requested_data [14:17:36]requested_item fm.sn is exist - process it [14:17:36]wFMCommunicate request_size=4 [14:17:36]MH_SAM_APDU [14:17:36]CAPDU: 80 11 00 00 [14:17:36]Write to MH i2c: E2 08 00 61 61 80 11 00 00 00 00 00 00 3C [14:17:36]Write i2c OK [14:17:36]MH_I2C_Read... [14:17:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:36]Read from MH i2c: E2 [14:17:36]MH_I2C_Read... [14:17:36]Read from MH i2c: E2 17 00 [14:17:36]MH_I2C_Read... [14:17:36]Read from MH i2c: E2 17 00 61 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 97 [14:17:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:17:36]wFMCommunicate OK [14:17:36]requested_item fd.num is exist - process it [14:17:36]SAM_PROTO_GetFieldsCounters [14:17:36]wFMCommunicate request_size=4 [14:17:36]MH_SAM_APDU [14:17:36]CAPDU: 80 13 00 00 [14:17:36]Write to MH i2c: E2 08 00 62 61 80 13 00 00 00 00 00 00 3F [14:17:36]Write i2c OK [14:17:36]MH_I2C_Read... [14:17:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:36]Read from MH i2c: E2 [14:17:36]MH_I2C_Read... [14:17:36]Read from MH i2c: E2 62 00 [14:17:36]MH_I2C_Read... [14:17:36]Read from MH i2c: E2 62 00 62 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C3 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [14:17:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C3 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:17:36]wFMCommunicate OK [14:17:36]SAM_PROTO_GetFieldsCounters done [14:17:36]requested_item shift.num is exist - process it [14:17:36]requested_item shift.opened is exist - process it [14:17:36]req_shift_opened [14:17:36]FM_GetShiftState [14:17:36]SAM_PROTO_GetShiftState [14:17:36]wFMCommunicate request_size=4 [14:17:36]MH_SAM_APDU [14:17:36]CAPDU: 80 13 01 00 [14:17:36]Write to MH i2c: E2 08 00 63 61 80 13 01 00 00 00 00 00 41 [14:17:36]Write i2c OK [14:17:36]MH_I2C_Read... [14:17:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:36]Read from MH i2c: E2 [14:17:36]MH_I2C_Read... [14:17:36]Read from MH i2c: E2 0E 00 [14:17:36]MH_I2C_Read... [14:17:36]Read from MH i2c: E2 0E 00 63 61 00 09 00 01 89 19 24 67 00 00 00 00 90 00 7A [14:17:36]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:17:36]wFMCommunicate OK [14:17:36]SAM_PROTO_GetShiftState done [14:17:36]FM_GetShiftState done [14:17:36]req_shift_opened done [14:17:36]requested_item shift.open_date is exist - process it [14:17:36]req_shift_open_date [14:17:36]req_shift_open_date done [14:17:36]produce_requested_data done [14:17:36]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139971,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [14:17:36]process_action_free close_receipt [14:17:36]json_value_free [14:17:36]json_value_free done [14:17:36]process_json_proto returns [14:17:36]Send response to host [14:17:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139971,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [14:17:36]free response buf [14:17:36]execute_script done [14:17:36]execute_script returns [14:17:36]free content buf [14:17:36]Sock 9.Close socket [14:17:36]Sock 9.Thread stoped [14:17:40]OFD Sender: No OFD packet to send [14:17:45]OFD Sender: No OFD packet to send [14:17:50]OFD Sender: No OFD packet to send [14:17:55]OFD Sender: No OFD packet to send [14:18:00]OFD Sender: No OFD packet to send [14:18:05]OFD Sender: No OFD packet to send [14:18:10]OFD Sender: No OFD packet to send [14:18:15]OFD Sender: No OFD packet to send [14:18:20]OFD Sender: No OFD packet to send [14:18:25]OFD Sender: No OFD packet to send [14:18:30]OFD Sender: No OFD packet to send [14:18:35]OFD Sender: No OFD packet to send [14:18:40]OFD Sender: No OFD packet to send [14:18:45]OFD Sender: No OFD packet to send [14:18:50]OFD Sender: No OFD packet to send [14:18:55]OFD Sender: No OFD packet to send [14:19:00]OFD Sender: No OFD packet to send [14:19:05]OFD Sender: No OFD packet to send [14:19:10]OFD Sender: No OFD packet to send [14:19:15]OFD Sender: No OFD packet to send [14:19:20]OFD Sender: No OFD packet to send [14:19:25]OFD Sender: No OFD packet to send [14:19:30]OFD Sender: No OFD packet to send [14:19:35]OFD Sender: No OFD packet to send [14:19:37]accept exits with 7 [14:19:37]New connection [14:19:37]New thread 3066654052 created [14:19:37]Thread 3066510692 joined [14:19:37]Waiting for new connection... [14:19:37] Sock 7.Parse request [14:19:37]Sock 7.Check first char [14:19:37]Sock 7.First char is OK [14:19:37]request: POST /json_proto HTTP/1.0 [14:19:37]Method: POST [14:19:37]URL: /json_proto [14:19:37]Method is POST - this is cgi request [14:19:37]url: /json_proto [14:19:37]query_string will be loaded in cgi processing [14:19:37]execute_cgi json_proto POST (null) [14:19:37]execute_cgi path=json_proto method=POST [14:19:37]POST find Content-Length [14:19:37]Host: 172.17.50.196:8080 [14:19:37]Content-Length: 782 [14:19:37]Content-Type: application/json [14:19:37] [14:19:37]POST finish read [14:19:37]Found Content-Length = 782 [14:19:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335784", "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" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:37]execute_script... [14:19: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)335784", "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" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:37]POST & json_proto [14:19:37]process_json_proto [14:19:37]json parsed OK: [14:19:37]protocol is kg_v1.0 [14:19:37]action value=close_receipt [14:19:37]process_action close_receipt [14:19:37]cmd_close_receipt [14:19:37]MH_GetDate [14:19:37]Write to MH i2c: F0 00 00 64 61 B4 [14:19:37]Write i2c OK [14:19:37]MH_I2C_Read... [14:19:37]Read from MH i2c: F0 [14:19:37]MH_I2C_Read... [14:19:37]Read from MH i2c: F0 09 00 [14:19:37]MH_I2C_Read... [14:19:37]Read from MH i2c: F0 09 00 64 61 00 7F E3 24 67 72 0D 1C 67 AC [14:19:37]GetLastDocTimeStamp 1730470658 [14:19:37]current date 1730470783 [14:19:37]FM_GetShiftState [14:19:37]SAM_PROTO_GetShiftState [14:19:37]wFMCommunicate request_size=4 [14:19:37]MH_SAM_APDU [14:19:37]CAPDU: 80 13 01 00 [14:19:37]Write to MH i2c: E2 08 00 65 61 80 13 01 00 00 00 00 00 43 [14:19:37]Write i2c OK [14:19:37]MH_I2C_Read... [14:19:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:37]Read from MH i2c: E2 [14:19:37]MH_I2C_Read... [14:19:37]Read from MH i2c: E2 0E 00 [14:19:37]MH_I2C_Read... [14:19:37]Read from MH i2c: E2 0E 00 65 61 00 09 00 01 89 19 24 67 00 00 00 00 90 00 7C [14:19:37]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:19:37]wFMCommunicate OK [14:19:37]SAM_PROTO_GetShiftState done [14:19:37]FM_GetShiftState done [14:19:37]opened in 1730419081 [14:19:37]opened+sec_in_day 1730505481 [14:19:37]quantity*price = 6900 [14:19:37]sum+1 = 6901 [14:19:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 69.00 НСП 1% : 0.61 НДС 12% : 7.33 Наличными: 0.00 Безнал.: 69.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 153 01.11.2024 14:19 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139972 ФПД: 96961078601161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T141943&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139972&fm=96961078601161&tin=02508201610067®Number=0000000000091631&sum=6900 0 [14:19:38]StoreToDocumentArchive [14:19:38]shift 558 fd 139972 [14:19:38]save to /storage/0558/doc_00139972 [14:19:38]save last doc name /storage/0558/doc_00139972 to /storage/kkm_last_doc_name [14:19:38]save OK [14:19:38]Clear old archive folders... [14:19:38]ProcessDocumentItem done err = 0, tmpTLVsize=294 [14:19:38]tlvbuf is 00B3B670 [14:19:38]SAM_PROTO_ClearQueue [14:19:38]wFMCommunicate request_size=4 [14:19:38]MH_SAM_APDU [14:19:38]CAPDU: 80 09 00 00 [14:19:38]Write to MH i2c: E2 08 00 72 61 80 09 00 00 00 00 00 00 45 [14:19:38]Write i2c OK [14:19:38]MH_I2C_Read... [14:19:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:38]Read from MH i2c: E2 [14:19:38]MH_I2C_Read... [14:19:38]Read from MH i2c: E2 03 00 [14:19:38]MH_I2C_Read... [14:19:38]Read from MH i2c: E2 03 00 72 61 00 90 00 47 [14:19:38]RAPDU: 90 00 [14:19:38]wFMCommunicate OK [14:19:38]SAM_PROTO_ClearQueue done [14:19:38]KKMCreateOFDPacket [14:19:38]OFDProtocolAddRootSTLVToBuf [14:19:38]FM_MakeSignedData [14:19:38]FM_MakeSignedData [14:19:38]SAM_PROTO_SignData [14:19:38]wFMCommunicate request_size=4 [14:19:38]MH_SAM_APDU [14:19:38]CAPDU: 80 0D 01 02 [14:19:38]Write to MH i2c: E2 08 00 73 61 80 0D 01 02 00 00 00 00 4D [14:19:38]Write i2c OK [14:19:38]MH_I2C_Read... [14:19:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:38]Read from MH i2c: E2 [14:19:38]MH_I2C_Read... [14:19:38]Read from MH i2c: E2 03 00 [14:19:38]MH_I2C_Read... [14:19:38]Read from MH i2c: E2 03 00 73 61 00 90 00 48 [14:19:38]RAPDU: 90 00 [14:19:38]wFMCommunicate OK [14:19:38]wFMCommunicate request_size=255 [14:19:38]MH_SAM_APDU [14:19:38]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 7F E3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [14:19:38]Write to MH i2c: E2 02 01 74 61 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 7F E3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 12 [14:19:38]Write i2c OK [14:19:38]MH_I2C_Read... [14:19:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:38]Read from MH i2c: E2 [14:19:38]MH_I2C_Read... [14:19:38]Read from MH i2c: E2 03 00 [14:19:38]MH_I2C_Read... [14:19:38]Read from MH i2c: E2 03 00 74 61 00 90 00 49 [14:19:38]RAPDU: 90 00 [14:19:38]wFMCommunicate OK [14:19:38]wFMCommunicate request_size=53 [14:19:38]MH_SAM_APDU [14:19:38]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C4 22 02 00 35 04 06 00 58 2F 82 A5 A5 C9 [14:19:38]Write to MH i2c: E2 38 00 75 61 80 0D 02 02 30 00 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C4 22 02 00 35 04 06 00 58 2F 82 A5 A5 C9 00 00 4C [14:19:38]Write i2c OK [14:19:38]MH_I2C_Read... [14:19:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:38]Read from MH i2c: E2 [14:19:38]MH_I2C_Read... [14:19:38]Read from MH i2c: E2 03 00 [14:19:38]MH_I2C_Read... [14:19:38]Read from MH i2c: E2 03 00 75 61 00 90 00 4A [14:19:38]RAPDU: 90 00 [14:19:38]wFMCommunicate OK [14:19:38]wFMCommunicate request_size=4 [14:19:38]MH_SAM_APDU [14:19:38]CAPDU: 80 0D 03 02 [14:19:38]Write to MH i2c: E2 08 00 76 61 80 0D 03 02 00 00 00 00 52 [14:19:38]Write i2c OK [14:19:38]MH_I2C_Read... [14:19:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:38]Read from MH i2c: E2 [14:19:38]MH_I2C_Read... [14:19:38]Read from MH i2c: E2 0B 00 [14:19:38]MH_I2C_Read... [14:19:38]Read from MH i2c: E2 0B 00 76 61 00 D7 7E 50 D4 9C B8 DC CA 90 00 C6 [14:19:38]RAPDU: D7 7E 50 D4 9C B8 DC CA 90 00 [14:19:38]wFMCommunicate OK [14:19:38]SAM_PROTO_SignData done [14:19:38]FM_MakeSignedData done [14:19:38]CreateOFDProtocolMessage [14:19:38]wFMCommunicate request_size=4 [14:19:38]MH_SAM_APDU [14:19:38]CAPDU: 80 11 00 00 [14:19:38]Write to MH i2c: E2 08 00 77 61 80 11 00 00 00 00 00 00 52 [14:19:38]Write i2c OK [14:19:38]MH_I2C_Read... [14:19:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:38]Read from MH i2c: E2 [14:19:38]MH_I2C_Read... [14:19:38]Read from MH i2c: E2 17 00 [14:19:38]MH_I2C_Read... [14:19:38]Read from MH i2c: E2 17 00 77 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AD [14:19:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:19:38]wFMCommunicate OK [14:19:38]CreateOFDProtocolMessage done [14:19:38]OFDSenderStorePacket 139972 [14:19:38]StoreOFDPacket docnum=139972 [14:19:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3A 01 00 00 8E 7A 32 01 63 C7 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 7F E3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C4 22 02 00 35 04 06 00 58 2F 82 A5 A5 C9 D7 7E 50 D4 9C B8 DC CA [14:19:38]CheckFolder [14:19:38]dirname=/storage/ofd_packets [14:19:38]CheckFolder done [14:19:38]ProducePacketName [14:19:38]name=ofd_packets/00139972 [14:19:38]NVStorageSaveData ofd_packets/00139972 [14:19:38]File name is /storage/ofd_packets/00139972 [14:19:38]Write 344 bytes [14:19:38]NVStorageSaveData done [14:19:38]OFDSenderStorePacket done [14:19:38]KKMCreateOFDPacket done [14:19:38]NVStorageSaveData kkm_last_timestamp [14:19:38]File name is /storage/kkm_last_timestamp [14:19:38]Write 4 bytes [14:19:38]NVStorageSaveData done [14:19:38]ExternCall_PrintAddStr [14:19:38]wPrintStart [14:19:38]Write to MH i2c: 01 00 00 78 61 D9 [14:19:38]Write i2c OK [14:19:38]MH_I2C_Read... [14:19:38]Read from MH i2c: 01 [14:19:38]MH_I2C_Read... [14:19:38]Read from MH i2c: 01 07 00 [14:19:38]MH_I2C_Read... [14:19:38]Read from MH i2c: 01 07 00 78 61 00 00 00 00 00 FF 0F EE [14:19:38]RasterBufferAndPrint [14:19:38]line Счет N : (3)335784 [14:19:38]line ИНН: 02508201610067 [14:19:38]line Контрольно-Кассовый Чек [14:19:38]line ПРОДАЖА [14:19:38]line Товар: 4600682557456 [14:19:38]line Напиток FLash up energy эн ж/б 0,5/0,45л [14:19:38]line 1.000 * 69.00 [14:19:38]line = 69.00 [14:19:38]line НДС 12% НСП 1% [14:19:38]line > о реализуемом товаре [14:19:38]line ИТОГО: 69.00 [14:19:38]line НСП 1% : 0.61 [14:19:38]line НДС 12% : 7.33 [14:19:38]line Наличными: 0.00 [14:19:38]line Безнал.: 69.00 [14:19:38]line Место: АЗС № 101 "Партнер Нефть" [14:19:38]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:19:38]line СНО: Общий режим [14:19:38]line Чек 153 01.11.2024 14:19 [14:19:38]line Смена: 558 ФФД: 1.0 [14:19:38]line ЗНМ: 0300000081 [14:19:38]line РНМ: 0000000000091631 [14:19:38]line Версия ККМ: 001 [14:19:38]line Платежная система: Mbank [14:19:38]line ФМ: 0000000000874669 [14:19:38]line ФД: 139972 [14:19:38]line ФПД: 96961078601161 [14:19:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T141943&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139972&fm=96961078601161&tin=02508201610067®Number=0000000000091631&sum=6900 [14:19:39]line 0 [14:19:39]OFD Sender: Processing packet 139972 [packets to send 34, broken 33] [14:19:39]ProducePacketName [14:19:39]name=ofd_packets/00139972 [14:19:39]OFD Sender: To server: pG, [14:19:39]CommunicateWithHost lk.salyk.kg:30040 [14:19:39]ConnectInit lk.salyk.kg [14:19:39]written 0, free lines is 4095 [14:19:39]Connected sock=10 [14:19:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3A 01 00 00 8E 7A 32 01 63 C7 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 7F E3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C4 22 02 00 35 04 06 00 58 2F 82 A5 A5 C9 D7 7E 50 D4 9C B8 DC CA [14:19:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 54 88 47 00 BF 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C4 22 02 00 F4 03 04 00 2A 8F 24 67 B6 04 01 00 00 AF 27 4F CF 95 85 65 D8 [14:19:39]CommunicateWithHost err = 0 [14:19:39]CheckOFDResponse [14:19:39]1017 (14) - 77093643461234 [14:19:39]1041 (16) - 0000000000874669 [14:19:39]1040 (4) - 139972 [14:19:39]1012 (4) - 01.11.2024 08:19 [14:19:39]1206 (1) - 0 [14:19:39]OFD Sender: Remove packet 139972 [14:19:39]ProducePacketName [14:19:39]name=ofd_packets/00139972 [14:19:39]NVStorageDeleteData [14:19:39]Write to MH i2c: 01 00 00 A2 61 03 [14:19:39]Write i2c OK [14:19:39]MH_I2C_Read... [14:19:39]Read from MH i2c: 01 [14:19:39]MH_I2C_Read... [14:19:39]Read from MH i2c: 01 07 00 [14:19:39]MH_I2C_Read... [14:19:39]Read from MH i2c: 01 07 00 A2 61 00 00 00 00 00 05 0D 1C [14:19:39]RasterBufferAndPrint [14:19:39]line [14:19:39]line [14:19:39]line [14:19:39]line [14:19:39]line [14:19:39]written 0, free lines is 3343 [14:19:39]MH_Cut [14:19:39]Write to MH i2c: D1 01 00 A9 61 01 DC [14:19:39]Write i2c OK [14:19:39]MH_I2C_Read... [14:19:39]Read from MH i2c: D1 [14:19:39]MH_I2C_Read... [14:19:39]Read from MH i2c: D1 01 00 [14:19:39]MH_I2C_Read... [14:19:39]Read from MH i2c: D1 01 00 A9 61 00 DB [14:19:39]Write to MH i2c: 01 00 00 AA 61 0B [14:19:39]Write i2c OK [14:19:39]MH_I2C_Read... [14:19:39]OFD Sender: No OFD packet to send [14:19:40]*** Cut start [14:19:40]*** Partial cut [14:19:40]*** CUTSNS_PIN = 1 [14:19:40]*** CUTSNS_PIN = 0 [14:19:40]*** Brake cut motor [14:19:40]Read from MH i2c: 01 [14:19:40]MH_I2C_Read... [14:19:40]*** Stop cut motor [14:19:40]*** Cut end [14:19:40]Read from MH i2c: 01 07 00 [14:19:40]MH_I2C_Read... [14:19:40]Read from MH i2c: 01 07 00 AA 61 00 00 00 00 00 FF 0F 20 [14:19:40]process_action close_receipt done [14:19:40]requested_data is exist [14:19:40]produce_requested_data [14:19:40]requested_item fm.sn is exist - process it [14:19:40]wFMCommunicate request_size=4 [14:19:40]MH_SAM_APDU [14:19:40]CAPDU: 80 11 00 00 [14:19:40]Write to MH i2c: E2 08 00 AB 61 80 11 00 00 00 00 00 00 86 [14:19:40]Write i2c OK [14:19:40]MH_I2C_Read... [14:19:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:40]Read from MH i2c: E2 [14:19:40]MH_I2C_Read... [14:19:40]Read from MH i2c: E2 17 00 [14:19:40]MH_I2C_Read... [14:19:41]Read from MH i2c: E2 17 00 AB 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E1 [14:19:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:19:41]wFMCommunicate OK [14:19:41]requested_item fd.num is exist - process it [14:19:41]SAM_PROTO_GetFieldsCounters [14:19:41]wFMCommunicate request_size=4 [14:19:41]MH_SAM_APDU [14:19:41]CAPDU: 80 13 00 00 [14:19:41]Write to MH i2c: E2 08 00 AC 61 80 13 00 00 00 00 00 00 89 [14:19:41]Write i2c OK [14:19:41]MH_I2C_Read... [14:19:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:41]Read from MH i2c: E2 [14:19:41]MH_I2C_Read... [14:19:41]Read from MH i2c: E2 62 00 [14:19:41]MH_I2C_Read... [14:19:41]Read from MH i2c: E2 62 00 AC 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C4 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [14:19:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C4 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:41]wFMCommunicate OK [14:19:41]SAM_PROTO_GetFieldsCounters done [14:19:41]requested_item shift.num is exist - process it [14:19:41]requested_item shift.opened is exist - process it [14:19:41]req_shift_opened [14:19:41]FM_GetShiftState [14:19:41]SAM_PROTO_GetShiftState [14:19:41]wFMCommunicate request_size=4 [14:19:41]MH_SAM_APDU [14:19:41]CAPDU: 80 13 01 00 [14:19:41]Write to MH i2c: E2 08 00 AD 61 80 13 01 00 00 00 00 00 8B [14:19:41]Write i2c OK [14:19:41]MH_I2C_Read... [14:19:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:41]Read from MH i2c: E2 [14:19:41]MH_I2C_Read... [14:19:41]Read from MH i2c: E2 0E 00 [14:19:41]MH_I2C_Read... [14:19:41]Read from MH i2c: E2 0E 00 AD 61 00 09 00 01 89 19 24 67 00 00 00 00 90 00 C4 [14:19:41]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:19:41]wFMCommunicate OK [14:19:41]SAM_PROTO_GetShiftState done [14:19:41]FM_GetShiftState done [14:19:41]req_shift_opened done [14:19:41]requested_item shift.open_date is exist - process it [14:19:41]req_shift_open_date [14:19:41]req_shift_open_date done [14:19:41]produce_requested_data done [14:19:41]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139972,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [14:19:41]process_action_free close_receipt [14:19:41]json_value_free [14:19:41]json_value_free done [14:19:41]process_json_proto returns [14:19:41]Send response to host [14:19:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139972,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [14:19:41]free response buf [14:19:41]execute_script done [14:19:41]execute_script returns [14:19:41]free content buf [14:19:41]Sock 7.Close socket [14:19:41]Sock 7.Thread stoped [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:55]OFD Sender: No OFD packet to send [14:20:00]OFD Sender: No OFD packet to send [14:20:05]OFD Sender: No OFD packet to send [14:20:10]OFD Sender: No OFD packet to send [14:20:15]OFD Sender: No OFD packet to send [14:20:20]OFD Sender: No OFD packet to send [14:20:25]OFD Sender: No OFD packet to send [14:20:28]accept exits with 9 [14:20:28]New connection [14:20:28]New thread 3066510692 created [14:20:28]Thread 3066654052 joined [14:20:28]Waiting for new connection... [14:20:28] Sock 9.Parse request [14:20:28]Sock 9.Check first char [14:20:28]Sock 9.First char is OK [14:20:28]request: POST /json_proto HTTP/1.0 [14:20:28]Method: POST [14:20:28]URL: /json_proto [14:20:28]Method is POST - this is cgi request [14:20:28]url: /json_proto [14:20:28]query_string will be loaded in cgi processing [14:20:28]execute_cgi json_proto POST (null) [14:20:28]execute_cgi path=json_proto method=POST [14:20:28]POST find Content-Length [14:20:28]Host: 172.17.50.196:8080 [14:20:28]Content-Length: 648 [14:20:28]Content-Type: application/json [14:20:28] [14:20:28]POST finish read [14:20:28]Found Content-Length = 648 [14:20:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335785", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:28]execute_script... [14:20: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)335785", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:28]POST & json_proto [14:20:28]process_json_proto [14:20:28]json parsed OK: [14:20:28]protocol is kg_v1.0 [14:20:28]action value=close_receipt [14:20:28]process_action close_receipt [14:20:28]cmd_close_receipt [14:20:28]MH_GetDate [14:20:28]Write to MH i2c: F0 00 00 AE 61 FE [14:20:28]Write i2c OK [14:20:28]MH_I2C_Read... [14:20:28]Read from MH i2c: F0 [14:20:28]MH_I2C_Read... [14:20:28]Read from MH i2c: F0 09 00 [14:20:28]MH_I2C_Read... [14:20:28]Read from MH i2c: F0 09 00 AE 61 00 B2 E3 24 67 72 0D 1C 67 29 [14:20:28]GetLastDocTimeStamp 1730470783 [14:20:28]current date 1730470834 [14:20:28]FM_GetShiftState [14:20:28]SAM_PROTO_GetShiftState [14:20:28]wFMCommunicate request_size=4 [14:20:28]MH_SAM_APDU [14:20:28]CAPDU: 80 13 01 00 [14:20:28]Write to MH i2c: E2 08 00 AF 61 80 13 01 00 00 00 00 00 8D [14:20:28]Write i2c OK [14:20:28]MH_I2C_Read... [14:20:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:28]Read from MH i2c: E2 [14:20:28]MH_I2C_Read... [14:20:28]Read from MH i2c: E2 0E 00 [14:20:28]MH_I2C_Read... [14:20:28]Read from MH i2c: E2 0E 00 AF 61 00 09 00 01 89 19 24 67 00 00 00 00 90 00 C6 [14:20:28]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:20:28]wFMCommunicate OK [14:20:28]SAM_PROTO_GetShiftState done [14:20:28]FM_GetShiftState done [14:20:28]opened in 1730419081 [14:20:28]opened+sec_in_day 1730505481 [14:20:28]quantity*price = 6000 [14:20:28]sum+1 = 6001 [14:20:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 154 01.11.2024 14:20 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139973 ФПД: 63345066909135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T142034&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139973&fm=63345066909135&tin=02508201610067®Number=0000000000091631&sum=6000 0 [14:20:29]StoreToDocumentArchive [14:20:29]shift 558 fd 139973 [14:20:29]save to /storage/0558/doc_00139973 [14:20:29]save last doc name /storage/0558/doc_00139973 to /storage/kkm_last_doc_name [14:20:29]save OK [14:20:29]Clear old archive folders... [14:20:29]ProcessDocumentItem done err = 0, tmpTLVsize=279 [14:20:29]tlvbuf is 00A9E900 [14:20:29]SAM_PROTO_ClearQueue [14:20:29]wFMCommunicate request_size=4 [14:20:29]MH_SAM_APDU [14:20:29]CAPDU: 80 09 00 00 [14:20:29]Write to MH i2c: E2 08 00 BC 61 80 09 00 00 00 00 00 00 8F [14:20:29]Write i2c OK [14:20:29]MH_I2C_Read... [14:20:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:29]Read from MH i2c: E2 [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: E2 03 00 [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: E2 03 00 BC 61 00 90 00 91 [14:20:29]RAPDU: 90 00 [14:20:29]wFMCommunicate OK [14:20:29]SAM_PROTO_ClearQueue done [14:20:29]KKMCreateOFDPacket [14:20:29]OFDProtocolAddRootSTLVToBuf [14:20:29]FM_MakeSignedData [14:20:29]FM_MakeSignedData [14:20:29]SAM_PROTO_SignData [14:20:29]wFMCommunicate request_size=4 [14:20:29]MH_SAM_APDU [14:20:29]CAPDU: 80 0D 01 02 [14:20:29]Write to MH i2c: E2 08 00 BD 61 80 0D 01 02 00 00 00 00 97 [14:20:29]Write i2c OK [14:20:29]MH_I2C_Read... [14:20:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:29]Read from MH i2c: E2 [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: E2 03 00 [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: E2 03 00 BD 61 00 90 00 92 [14:20:29]RAPDU: 90 00 [14:20:29]wFMCommunicate OK [14:20:29]wFMCommunicate request_size=255 [14:20:29]MH_SAM_APDU [14:20:29]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 B2 E3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 [14:20:29]Write to MH i2c: E2 02 01 BE 61 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 B2 E3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 00 00 43 [14:20:29]Write i2c OK [14:20:29]MH_I2C_Read... [14:20:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:29]Read from MH i2c: E2 [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: E2 03 00 [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: E2 03 00 BE 61 00 90 00 93 [14:20:29]RAPDU: 90 00 [14:20:29]wFMCommunicate OK [14:20:29]wFMCommunicate request_size=38 [14:20:29]MH_SAM_APDU [14:20:29]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C5 22 02 00 35 04 06 00 39 9C AC 36 1D CF [14:20:29]Write to MH i2c: E2 29 00 BF 61 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C5 22 02 00 35 04 06 00 39 9C AC 36 1D CF 00 00 B7 [14:20:29]Write i2c OK [14:20:29]MH_I2C_Read... [14:20:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:29]Read from MH i2c: E2 [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: E2 03 00 [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: E2 03 00 BF 61 00 90 00 94 [14:20:29]RAPDU: 90 00 [14:20:29]wFMCommunicate OK [14:20:29]wFMCommunicate request_size=4 [14:20:29]MH_SAM_APDU [14:20:29]CAPDU: 80 0D 03 02 [14:20:29]Write to MH i2c: E2 08 00 C0 61 80 0D 03 02 00 00 00 00 9C [14:20:29]Write i2c OK [14:20:29]MH_I2C_Read... [14:20:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:29]Read from MH i2c: E2 [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: E2 0B 00 [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: E2 0B 00 C0 61 00 E4 85 79 B8 96 8D 9E 23 90 00 1B [14:20:29]RAPDU: E4 85 79 B8 96 8D 9E 23 90 00 [14:20:29]wFMCommunicate OK [14:20:29]SAM_PROTO_SignData done [14:20:29]FM_MakeSignedData done [14:20:29]CreateOFDProtocolMessage [14:20:29]wFMCommunicate request_size=4 [14:20:29]MH_SAM_APDU [14:20:29]CAPDU: 80 11 00 00 [14:20:29]Write to MH i2c: E2 08 00 C1 61 80 11 00 00 00 00 00 00 9C [14:20:29]Write i2c OK [14:20:29]MH_I2C_Read... [14:20:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:29]Read from MH i2c: E2 [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: E2 17 00 [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: E2 17 00 C1 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F7 [14:20:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:20:29]wFMCommunicate OK [14:20:29]CreateOFDProtocolMessage done [14:20:29]OFDSenderStorePacket 139973 [14:20:29]StoreOFDPacket docnum=139973 [14:20:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2B 01 00 00 B9 95 23 01 29 85 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 B2 E3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C5 22 02 00 35 04 06 00 39 9C AC 36 1D CF E4 85 79 B8 96 8D 9E 23 [14:20:29]CheckFolder [14:20:29]dirname=/storage/ofd_packets [14:20:29]CheckFolder done [14:20:29]ProducePacketName [14:20:29]name=ofd_packets/00139973 [14:20:29]NVStorageSaveData ofd_packets/00139973 [14:20:29]File name is /storage/ofd_packets/00139973 [14:20:29]Write 329 bytes [14:20:29]NVStorageSaveData done [14:20:29]OFDSenderStorePacket done [14:20:29]KKMCreateOFDPacket done [14:20:29]NVStorageSaveData kkm_last_timestamp [14:20:29]File name is /storage/kkm_last_timestamp [14:20:29]Write 4 bytes [14:20:29]NVStorageSaveData done [14:20:29]ExternCall_PrintAddStr [14:20:29]wPrintStart [14:20:29]Write to MH i2c: 01 00 00 C2 61 23 [14:20:29]Write i2c OK [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: 01 [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: 01 07 00 [14:20:29]MH_I2C_Read... [14:20:29]Read from MH i2c: 01 07 00 C2 61 00 00 00 00 00 FF 0F 38 [14:20:29]RasterBufferAndPrint [14:20:29]line Счет N : (3)335785 [14:20:29]line ИНН: 02508201610067 [14:20:29]line Контрольно-Кассовый Чек [14:20:29]line ПРОДАЖА [14:20:29]line Товар: 2000032780025 [14:20:29]line Сосиска в тесте DC 110г [14:20:29]line 1.000 * 60.00 [14:20:29]line = 60.00 [14:20:29]line НДС 12% НСП 1% [14:20:29]line > о реализуемом товаре [14:20:29]line ИТОГО: 60.00 [14:20:29]line НСП 1% : 0.53 [14:20:29]line НДС 12% : 6.37 [14:20:29]line Наличными: 60.00 [14:20:29]line Безнал.: 0.00 [14:20:29]line Место: АЗС № 101 "Партнер Нефть" [14:20:29]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:20:29]line СНО: Общий режим [14:20:29]line Чек 154 01.11.2024 14:20 [14:20:29]line Смена: 558 ФФД: 1.0 [14:20:29]line ЗНМ: 0300000081 [14:20:29]line РНМ: 0000000000091631 [14:20:29]line Версия ККМ: 001 [14:20:29]line ФМ: 0000000000874669 [14:20:29]line ФД: 139973 [14:20:29]line ФПД: 63345066909135 [14:20:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T142034&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139973&fm=63345066909135&tin=02508201610067®Number=0000000000091631&sum=6000 [14:20:30]line 0 [14:20:30]OFD Sender: Processing packet 139973 [packets to send 34, broken 33] [14:20:30]ProducePacketName [14:20:30]name=ofd_packets/00139973 [14:20:30]OFD Sender: To server: pG, [14:20:30]CommunicateWithHost lk.salyk.kg:30040 [14:20:30]ConnectInit lk.salyk.kg [14:20:30]written 0, free lines is 4095 [14:20:30]Connected sock=10 [14:20:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2B 01 00 00 B9 95 23 01 29 85 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 B2 E3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C5 22 02 00 35 04 06 00 39 9C AC 36 1D CF E4 85 79 B8 96 8D 9E 23 [14:20:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 B8 0B 47 00 4D C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C5 22 02 00 F4 03 04 00 5D 8F 24 67 B6 04 01 00 00 6B FC F6 79 34 10 76 18 [14:20:30]CommunicateWithHost err = 0 [14:20:30]CheckOFDResponse [14:20:30]1017 (14) - 77093643461234 [14:20:30]1041 (16) - 0000000000874669 [14:20:30]1040 (4) - 139973 [14:20:30]1012 (4) - 01.11.2024 08:20 [14:20:30]1206 (1) - 0 [14:20:30]OFD Sender: Remove packet 139973 [14:20:30]ProducePacketName [14:20:30]name=ofd_packets/00139973 [14:20:30]NVStorageDeleteData [14:20:30]Write to MH i2c: 01 00 00 EA 61 4B [14:20:30]Write i2c OK [14:20:30]MH_I2C_Read... [14:20:30]Read from MH i2c: 01 [14:20:30]MH_I2C_Read... [14:20:30]Read from MH i2c: 01 07 00 [14:20:30]MH_I2C_Read... [14:20:30]Read from MH i2c: 01 07 00 EA 61 00 00 00 00 00 0F 0D 6E [14:20:30]RasterBufferAndPrint [14:20:30]line [14:20:30]line [14:20:30]line [14:20:30]line [14:20:30]line [14:20:30]written 0, free lines is 3352 [14:20:30]MH_Cut [14:20:30]Write to MH i2c: D1 01 00 F1 61 01 24 [14:20:30]Write i2c OK [14:20:30]MH_I2C_Read... [14:20:30]Read from MH i2c: D1 [14:20:30]MH_I2C_Read... [14:20:30]Read from MH i2c: D1 01 00 [14:20:30]MH_I2C_Read... [14:20:30]Read from MH i2c: D1 01 00 F1 61 00 23 [14:20:30]Write to MH i2c: 01 00 00 F2 61 53 [14:20:30]Write i2c OK [14:20:30]MH_I2C_Read... [14:20:30]OFD Sender: No OFD packet to send [14:20:31]*** Cut start [14:20:31]*** Partial cut [14:20:31]*** CUTSNS_PIN = 1 [14:20:31]*** CUTSNS_PIN = 0 [14:20:31]*** Brake cut motor [14:20:31]Read from MH i2c: 01 [14:20:31]MH_I2C_Read... [14:20:31]*** Stop cut motor [14:20:31]*** Cut end [14:20:31]Read from MH i2c: 01 07 00 [14:20:31]MH_I2C_Read... [14:20:31]Read from MH i2c: 01 07 00 F2 61 00 00 00 00 00 FF 0F 68 [14:20:31]process_action close_receipt done [14:20:31]requested_data is exist [14:20:31]produce_requested_data [14:20:31]requested_item fm.sn is exist - process it [14:20:31]wFMCommunicate request_size=4 [14:20:31]MH_SAM_APDU [14:20:31]CAPDU: 80 11 00 00 [14:20:31]Write to MH i2c: E2 08 00 F3 61 80 11 00 00 00 00 00 00 CE [14:20:31]Write i2c OK [14:20:31]MH_I2C_Read... [14:20:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:31]Read from MH i2c: E2 [14:20:31]MH_I2C_Read... [14:20:31]Read from MH i2c: E2 17 00 [14:20:31]MH_I2C_Read... [14:20:31]Read from MH i2c: E2 17 00 F3 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 29 [14:20:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:20:31]wFMCommunicate OK [14:20:31]requested_item fd.num is exist - process it [14:20:31]SAM_PROTO_GetFieldsCounters [14:20:31]wFMCommunicate request_size=4 [14:20:31]MH_SAM_APDU [14:20:31]CAPDU: 80 13 00 00 [14:20:31]Write to MH i2c: E2 08 00 F4 61 80 13 00 00 00 00 00 00 D1 [14:20:31]Write i2c OK [14:20:31]MH_I2C_Read... [14:20:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:32]Read from MH i2c: E2 [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: E2 62 00 [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: E2 62 00 F4 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C5 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [14:20:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C5 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:20:32]wFMCommunicate OK [14:20:32]SAM_PROTO_GetFieldsCounters done [14:20:32]requested_item shift.num is exist - process it [14:20:32]requested_item shift.opened is exist - process it [14:20:32]req_shift_opened [14:20:32]FM_GetShiftState [14:20:32]SAM_PROTO_GetShiftState [14:20:32]wFMCommunicate request_size=4 [14:20:32]MH_SAM_APDU [14:20:32]CAPDU: 80 13 01 00 [14:20:32]Write to MH i2c: E2 08 00 F5 61 80 13 01 00 00 00 00 00 D3 [14:20:32]Write i2c OK [14:20:32]MH_I2C_Read... [14:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:32]Read from MH i2c: E2 [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: E2 0E 00 [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: E2 0E 00 F5 61 00 09 00 01 89 19 24 67 00 00 00 00 90 00 0C [14:20:32]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:20:32]wFMCommunicate OK [14:20:32]SAM_PROTO_GetShiftState done [14:20:32]FM_GetShiftState done [14:20:32]req_shift_opened done [14:20:32]requested_item shift.open_date is exist - process it [14:20:32]req_shift_open_date [14:20:32]req_shift_open_date done [14:20:32]produce_requested_data done [14:20:32]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139973,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [14:20:32]process_action_free close_receipt [14:20:32]json_value_free [14:20:32]json_value_free done [14:20:32]process_json_proto returns [14:20:32]Send response to host [14:20:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139973,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [14:20:32]free response buf [14:20:32]execute_script done [14:20:32]execute_script returns [14:20:32]free content buf [14:20:32]Sock 9.Close socket [14:20:32]Sock 9.Thread stoped [14:20:32]accept exits with 7 [14:20:32]New connection [14:20:32]New thread 3066654052 created [14:20:32]Thread 3066510692 joined [14:20:32]Waiting for new connection... [14:20:32] Sock 7.Parse request [14:20:32]Sock 7.Check first char [14:20:32]Sock 7.First char is OK [14:20:32]request: POST /json_proto HTTP/1.0 [14:20:32]Method: POST [14:20:32]URL: /json_proto [14:20:32]Method is POST - this is cgi request [14:20:32]url: /json_proto [14:20:32]query_string will be loaded in cgi processing [14:20:32]execute_cgi json_proto POST (null) [14:20:32]execute_cgi path=json_proto method=POST [14:20:32]POST find Content-Length [14:20:32]Host: 172.17.50.196:8080 [14:20:32]Content-Length: 770 [14:20:32]Content-Type: application/json [14:20:32] [14:20:32]POST finish read [14:20:32]Found Content-Length = 770 [14:20:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:32]execute_script... [14:20:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:32]POST & json_proto [14:20:32]process_json_proto [14:20:32]json parsed OK: [14:20:32]protocol is kg_v1.0 [14:20:32]action value=close_receipt [14:20:32]process_action close_receipt [14:20:32]cmd_close_receipt [14:20:32]MH_GetDate [14:20:32]Write to MH i2c: F0 00 00 F6 61 46 [14:20:32]Write i2c OK [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: F0 [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: F0 09 00 [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: F0 09 00 F6 61 00 B6 E3 24 67 72 0D 1C 67 75 [14:20:32]GetLastDocTimeStamp 1730470834 [14:20:32]current date 1730470838 [14:20:32]FM_GetShiftState [14:20:32]SAM_PROTO_GetShiftState [14:20:32]wFMCommunicate request_size=4 [14:20:32]MH_SAM_APDU [14:20:32]CAPDU: 80 13 01 00 [14:20:32]Write to MH i2c: E2 08 00 F7 61 80 13 01 00 00 00 00 00 D5 [14:20:32]Write i2c OK [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: E2 [14:20:32]MH_I2C_Read... [14:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:32]Read from MH i2c: E2 0E 00 [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: E2 0E 00 F7 61 00 09 00 01 89 19 24 67 00 00 00 00 90 00 0E [14:20:32]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:20:32]wFMCommunicate OK [14:20:32]SAM_PROTO_GetShiftState done [14:20:32]FM_GetShiftState done [14:20:32]opened in 1730419081 [14:20:32]opened+sec_in_day 1730505481 [14:20:32]quantity*price = 150032 [14:20:32]sum+1 = 150033 [14:20:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.32 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 155 01.11.2024 14:20 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139974 ФПД: 232114606721361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T142038&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139974&fm=232114606721361&tin=02508201610067®Number=0000000000091631&sum=150032 [14:20:33]StoreToDocumentArchive [14:20:33]shift 558 fd 139974 [14:20:33]save to /storage/0558/doc_00139974 [14:20:33]save last doc name /storage/0558/doc_00139974 to /storage/kkm_last_doc_name [14:20:33]save OK [14:20:33]Clear old archive folders... [14:20:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:20:33]tlvbuf is 00A9A0A0 [14:20:33]SAM_PROTO_ClearQueue [14:20:33]wFMCommunicate request_size=4 [14:20:33]MH_SAM_APDU [14:20:33]CAPDU: 80 09 00 00 [14:20:33]Write to MH i2c: E2 08 00 04 62 80 09 00 00 00 00 00 00 D8 [14:20:33]Write i2c OK [14:20:33]MH_I2C_Read... [14:20:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:33]Read from MH i2c: E2 [14:20:33]MH_I2C_Read... [14:20:33]Read from MH i2c: E2 03 00 [14:20:33]MH_I2C_Read... [14:20:33]Read from MH i2c: E2 03 00 04 62 00 90 00 DA [14:20:33]RAPDU: 90 00 [14:20:33]wFMCommunicate OK [14:20:33]SAM_PROTO_ClearQueue done [14:20:33]KKMCreateOFDPacket [14:20:33]OFDProtocolAddRootSTLVToBuf [14:20:33]FM_MakeSignedData [14:20:33]FM_MakeSignedData [14:20:33]SAM_PROTO_SignData [14:20:33]wFMCommunicate request_size=4 [14:20:33]MH_SAM_APDU [14:20:33]CAPDU: 80 0D 01 02 [14:20:33]Write to MH i2c: E2 08 00 05 62 80 0D 01 02 00 00 00 00 E0 [14:20:33]Write i2c OK [14:20:33]MH_I2C_Read... [14:20:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:33]Read from MH i2c: E2 [14:20:33]MH_I2C_Read... [14:20:33]Read from MH i2c: E2 03 00 [14:20:33]MH_I2C_Read... [14:20:33]Read from MH i2c: E2 03 00 05 62 00 90 00 DB [14:20:33]RAPDU: 90 00 [14:20:33]wFMCommunicate OK [14:20:33]wFMCommunicate request_size=255 [14:20:33]MH_SAM_APDU [14:20:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 B6 E3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C6 22 02 00 35 04 06 00 D3 [14:20:33]Write to MH i2c: E2 02 01 06 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 B6 E3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C6 22 02 00 35 04 06 00 D3 00 00 C1 [14:20:33]Write i2c OK [14:20:33]MH_I2C_Read... [14:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:34]Read from MH i2c: E2 [14:20:34]MH_I2C_Read... [14:20:34]Read from MH i2c: E2 03 00 [14:20:34]MH_I2C_Read... [14:20:34]Read from MH i2c: E2 03 00 06 62 00 90 00 DC [14:20:34]RAPDU: 90 00 [14:20:34]wFMCommunicate OK [14:20:34]wFMCommunicate request_size=10 [14:20:34]MH_SAM_APDU [14:20:34]CAPDU: 80 0D 02 02 05 1B 64 AE 49 51 [14:20:34]Write to MH i2c: E2 0D 00 07 62 80 0D 02 02 05 00 1B 64 AE 49 51 00 00 B4 [14:20:34]Write i2c OK [14:20:34]MH_I2C_Read... [14:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:34]Read from MH i2c: E2 [14:20:34]MH_I2C_Read... [14:20:34]Read from MH i2c: E2 03 00 [14:20:34]MH_I2C_Read... [14:20:34]Read from MH i2c: E2 03 00 07 62 00 90 00 DD [14:20:34]RAPDU: 90 00 [14:20:34]wFMCommunicate OK [14:20:34]wFMCommunicate request_size=4 [14:20:34]MH_SAM_APDU [14:20:34]CAPDU: 80 0D 03 02 [14:20:34]Write to MH i2c: E2 08 00 08 62 80 0D 03 02 00 00 00 00 E5 [14:20:34]Write i2c OK [14:20:34]MH_I2C_Read... [14:20:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:34]Read from MH i2c: E2 [14:20:34]MH_I2C_Read... [14:20:34]Read from MH i2c: E2 0B 00 [14:20:34]MH_I2C_Read... [14:20:34]Read from MH i2c: E2 0B 00 08 62 00 C3 F1 5F A3 D0 8D 51 78 90 00 C2 [14:20:34]RAPDU: C3 F1 5F A3 D0 8D 51 78 90 00 [14:20:34]wFMCommunicate OK [14:20:34]SAM_PROTO_SignData done [14:20:34]FM_MakeSignedData done [14:20:34]CreateOFDProtocolMessage [14:20:34]wFMCommunicate request_size=4 [14:20:34]MH_SAM_APDU [14:20:34]CAPDU: 80 11 00 00 [14:20:34]Write to MH i2c: E2 08 00 09 62 80 11 00 00 00 00 00 00 E5 [14:20:34]Write i2c OK [14:20:34]MH_I2C_Read... [14:20:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:34]Read from MH i2c: E2 [14:20:34]MH_I2C_Read... [14:20:34]Read from MH i2c: E2 17 00 [14:20:34]MH_I2C_Read... [14:20:34]Read from MH i2c: E2 17 00 09 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 40 [14:20:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:20:34]wFMCommunicate OK [14:20:34]CreateOFDProtocolMessage done [14:20:34]OFDSenderStorePacket 139974 [14:20:34]StoreOFDPacket docnum=139974 [14:20:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 22 08 07 01 36 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 B6 E3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C6 22 02 00 35 04 06 00 D3 1B 64 AE 49 51 C3 F1 5F A3 D0 8D 51 78 [14:20:34]CheckFolder [14:20:34]dirname=/storage/ofd_packets [14:20:34]CheckFolder done [14:20:34]ProducePacketName [14:20:34]name=ofd_packets/00139974 [14:20:34]NVStorageSaveData ofd_packets/00139974 [14:20:34]File name is /storage/ofd_packets/00139974 [14:20:34]Write 301 bytes [14:20:34]NVStorageSaveData done [14:20:34]OFDSenderStorePacket done [14:20:34]KKMCreateOFDPacket done [14:20:34]NVStorageSaveData kkm_last_timestamp [14:20:34]File name is /storage/kkm_last_timestamp [14:20:34]Write 4 bytes [14:20:34]NVStorageSaveData done [14:20:34]ExternCall_PrintAddStr [14:20:34]wPrintStart [14:20:34]Write to MH i2c: 01 00 00 0A 62 6C [14:20:34]Write i2c OK [14:20:34]MH_I2C_Read... [14:20:34]Read from MH i2c: 01 [14:20:34]MH_I2C_Read... [14:20:34]Read from MH i2c: 01 07 00 [14:20:34]MH_I2C_Read... [14:20:34]Read from MH i2c: 01 07 00 0A 62 00 00 00 00 00 FF 0F 81 [14:20:34]RasterBufferAndPrint [14:20:34]line Счет N : (1)1095976 [14:20:34]line ИНН: 02508201610067 [14:20:34]line Контрольно-Кассовый Чек [14:20:34]line ПРОДАЖА [14:20:34]line ТРК (МРК, ГНК) : 44 [14:20:34]line Товар: 2710124500 [14:20:34]line Аи-95-К-3 [14:20:34]line 20.220 * 74.20 [14:20:34]line = 1500.32 [14:20:34]line НДС 12% НСП 1% [14:20:34]line > о реализуемом товаре [14:20:34]line ИТОГО: 1500.32 [14:20:34]line НСП 1% : 13.28 [14:20:34]line НДС 12% : 159.33 [14:20:34]line Наличными: 0.00 [14:20:34]line Безнал.: 1500.32 [14:20:34]line Место: АЗС № 101 "Партнер Нефть" [14:20:34]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:20:34]line СНО: Общий режим [14:20:34]line Чек 155 01.11.2024 14:20 [14:20:34]line Смена: 558 ФФД: 1.0 [14:20:34]line ЗНМ: 0300000081 [14:20:34]line РНМ: 0000000000091631 [14:20:34]line Версия ККМ: 001 [14:20:34]line Платежная система: Mbank [14:20:34]line ФМ: 0000000000874669 [14:20:34]line ФД: 139974 [14:20:34]line ФПД: 232114606721361 [14:20:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T142038&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139974&fm=232114606721361&tin=02508201610067®Number=0000000000091631&sum=150032 [14:20:34]OFD Sender: Processing packet 139974 [packets to send 34, broken 33] [14:20:34]ProducePacketName [14:20:34]name=ofd_packets/00139974 [14:20:34]OFD Sender: To server: pG, [14:20:34]CommunicateWithHost lk.salyk.kg:30040 [14:20:34]ConnectInit lk.salyk.kg [14:20:34]written 0, free lines is 4095 [14:20:34]Connected sock=9 [14:20:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 22 08 07 01 36 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 B6 E3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C6 22 02 00 35 04 06 00 D3 1B 64 AE 49 51 C3 F1 5F A3 D0 8D 51 78 [14:20:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 95 43 47 00 F1 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 34 36 36 39 10 04 04 00 C6 22 02 00 F4 03 04 00 61 8F 24 67 B6 04 01 00 00 92 09 99 A7 12 2F 44 1D [14:20:35]CommunicateWithHost err = 0 [14:20:35]CheckOFDResponse [14:20:35]1017 (14) - 77093643461234 [14:20:35]1041 (16) - 0000000000874669 [14:20:35]1040 (4) - 139974 [14:20:35]1012 (4) - 01.11.2024 08:20 [14:20:35]1206 (1) - 0 [14:20:35]OFD Sender: Remove packet 139974 [14:20:35]ProducePacketName [14:20:35]name=ofd_packets/00139974 [14:20:35]NVStorageDeleteData [14:20:35]Write to MH i2c: 01 00 00 33 62 95 [14:20:35]Write i2c OK [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: 01 [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: 01 07 00 [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: 01 07 00 33 62 00 00 00 00 00 23 0D CC [14:20:35]RasterBufferAndPrint [14:20:35]line [14:20:35]line [14:20:35]line [14:20:35]line [14:20:35]line [14:20:35]written 0, free lines is 3378 [14:20:35]MH_Cut [14:20:35]Write to MH i2c: D1 01 00 3A 62 01 6E [14:20:35]Write i2c OK [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: D1 [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: D1 01 00 [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: D1 01 00 3A 62 00 6D [14:20:35]Write to MH i2c: 01 00 00 3B 62 9D [14:20:35]Write i2c OK [14:20:35]MH_I2C_Read... [14:20:35]OFD Sender: No OFD packet to send [14:20:36]*** Cut start [14:20:36]*** Partial cut [14:20:36]*** CUTSNS_PIN = 1 [14:20:36]*** CUTSNS_PIN = 0 [14:20:36]*** Brake cut motor [14:20:36]Read from MH i2c: 01 [14:20:36]MH_I2C_Read... [14:20:36]*** Stop cut motor [14:20:36]*** Cut end [14:20:36]Read from MH i2c: 01 07 00 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: 01 07 00 3B 62 00 00 00 00 00 FF 0F B2 [14:20:36]process_action close_receipt done [14:20:36]requested_data is exist [14:20:36]produce_requested_data [14:20:36]requested_item fm.sn is exist - process it [14:20:36]wFMCommunicate request_size=4 [14:20:36]MH_SAM_APDU [14:20:36]CAPDU: 80 11 00 00 [14:20:36]Write to MH i2c: E2 08 00 3C 62 80 11 00 00 00 00 00 00 18 [14:20:36]Write i2c OK [14:20:36]MH_I2C_Read... [14:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:36]Read from MH i2c: E2 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: E2 17 00 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: E2 17 00 3C 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 73 [14:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:20:36]wFMCommunicate OK [14:20:36]requested_item fd.num is exist - process it [14:20:36]SAM_PROTO_GetFieldsCounters [14:20:36]wFMCommunicate request_size=4 [14:20:36]MH_SAM_APDU [14:20:36]CAPDU: 80 13 00 00 [14:20:36]Write to MH i2c: E2 08 00 3D 62 80 13 00 00 00 00 00 00 1B [14:20:36]Write i2c OK [14:20:36]MH_I2C_Read... [14:20:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:36]Read from MH i2c: E2 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: E2 62 00 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: E2 62 00 3D 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C6 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [14:20:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C6 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:20:36]wFMCommunicate OK [14:20:36]SAM_PROTO_GetFieldsCounters done [14:20:36]requested_item shift.num is exist - process it [14:20:36]requested_item shift.opened is exist - process it [14:20:36]req_shift_opened [14:20:36]FM_GetShiftState [14:20:36]SAM_PROTO_GetShiftState [14:20:36]wFMCommunicate request_size=4 [14:20:36]MH_SAM_APDU [14:20:36]CAPDU: 80 13 01 00 [14:20:36]Write to MH i2c: E2 08 00 3E 62 80 13 01 00 00 00 00 00 1D [14:20:36]Write i2c OK [14:20:36]MH_I2C_Read... [14:20:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:36]Read from MH i2c: E2 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: E2 0E 00 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: E2 0E 00 3E 62 00 09 00 01 89 19 24 67 00 00 00 00 90 00 56 [14:20:36]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:20:36]wFMCommunicate OK [14:20:36]SAM_PROTO_GetShiftState done [14:20:36]FM_GetShiftState done [14:20:36]req_shift_opened done [14:20:36]requested_item shift.open_date is exist - process it [14:20:36]req_shift_open_date [14:20:36]req_shift_open_date done [14:20:36]produce_requested_data done [14:20:36]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139974,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [14:20:36]process_action_free close_receipt [14:20:36]json_value_free [14:20:36]json_value_free done [14:20:36]process_json_proto returns [14:20:36]Send response to host [14:20:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139974,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [14:20:36]free response buf [14:20:36]execute_script done [14:20:37]execute_script returns [14:20:37]free content buf [14:20:37]Sock 7.Close socket [14:20:37]Sock 7.Thread stoped [14:20:40]OFD Sender: No OFD packet to send [14:20:45]OFD Sender: No OFD packet to send [14:20:50]OFD Sender: No OFD packet to send [14:20:55]OFD Sender: No OFD packet to send [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:15]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:35]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:50]OFD Sender: No OFD packet to send [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]OFD Sender: No OFD packet to send [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:53]accept exits with 10 [14:31:53]New connection [14:31:53]New thread 3066510692 created [14:31:53]Thread 3066654052 joined [14:31:53]Waiting for new connection... [14:31:53] Sock 10.Parse request [14:31:53]Sock 10.Check first char [14:31:53]Sock 10.First char is OK [14:31:53]request: POST /json_proto HTTP/1.0 [14:31:53]Method: POST [14:31:53]URL: /json_proto [14:31:53]Method is POST - this is cgi request [14:31:53]url: /json_proto [14:31:53]query_string will be loaded in cgi processing [14:31:53]execute_cgi json_proto POST (null) [14:31:53]execute_cgi path=json_proto method=POST [14:31:53]POST find Content-Length [14:31:53]Host: 172.17.50.196:8080 [14:31:53]Content-Length: 644 [14:31:53]Content-Type: application/json [14:31:53] [14:31:53]POST finish read [14:31:53]Found Content-Length = 644 [14:31:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335786", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:53]execute_script... [14:31: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)335786", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:53]POST & json_proto [14:31:53]process_json_proto [14:31:53]json parsed OK: [14:31:53]protocol is kg_v1.0 [14:31:53]action value=close_receipt [14:31:53]process_action close_receipt [14:31:53]cmd_close_receipt [14:31:53]MH_GetDate [14:31:53]Write to MH i2c: F0 00 00 3F 62 90 [14:31:53]Write i2c OK [14:31:53]MH_I2C_Read... [14:31:53]Read from MH i2c: F0 [14:31:53]MH_I2C_Read... [14:31:53]Read from MH i2c: F0 09 00 [14:31:53]MH_I2C_Read... [14:31:53]Read from MH i2c: F0 09 00 3F 62 00 5F E6 24 67 72 0D 1C 67 6B [14:31:53]GetLastDocTimeStamp 1730470838 [14:31:53]current date 1730471519 [14:31:53]FM_GetShiftState [14:31:53]SAM_PROTO_GetShiftState [14:31:53]wFMCommunicate request_size=4 [14:31:53]MH_SAM_APDU [14:31:53]CAPDU: 80 13 01 00 [14:31:53]Write to MH i2c: E2 08 00 40 62 80 13 01 00 00 00 00 00 1F [14:31:53]Write i2c OK [14:31:53]MH_I2C_Read... [14:31:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:53]Read from MH i2c: E2 [14:31:53]MH_I2C_Read... [14:31:53]Read from MH i2c: E2 0E 00 [14:31:53]MH_I2C_Read... [14:31:53]Read from MH i2c: E2 0E 00 40 62 00 09 00 01 89 19 24 67 00 00 00 00 90 00 58 [14:31:53]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:31:53]wFMCommunicate OK [14:31:53]SAM_PROTO_GetShiftState done [14:31:53]FM_GetShiftState done [14:31:53]opened in 1730419081 [14:31:53]opened+sec_in_day 1730505481 [14:31:53]quantity*price = 5000 [14:31:53]sum+1 = 5001 [14:31:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 156 01.11.2024 14:31 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139975 ФПД: 224192463668449 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T143159&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139975&fm=224192463668449&tin=02508201610067®Number=0000000000091631&sum=5000 0 [14:31:54]StoreToDocumentArchive [14:31:54]shift 558 fd 139975 [14:31:54]save to /storage/0558/doc_00139975 [14:31:54]save last doc name /storage/0558/doc_00139975 to /storage/kkm_last_doc_name [14:31:54]save OK [14:31:54]Clear old archive folders... [14:31:54]ProcessDocumentItem done err = 0, tmpTLVsize=275 [14:31:54]tlvbuf is B6F0C010 [14:31:54]SAM_PROTO_ClearQueue [14:31:54]wFMCommunicate request_size=4 [14:31:54]MH_SAM_APDU [14:31:54]CAPDU: 80 09 00 00 [14:31:54]Write to MH i2c: E2 08 00 4D 62 80 09 00 00 00 00 00 00 21 [14:31:54]Write i2c OK [14:31:54]MH_I2C_Read... [14:31:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:54]Read from MH i2c: E2 [14:31:54]MH_I2C_Read... [14:31:54]Read from MH i2c: E2 03 00 [14:31:54]MH_I2C_Read... [14:31:54]Read from MH i2c: E2 03 00 4D 62 00 90 00 23 [14:31:54]RAPDU: 90 00 [14:31:54]wFMCommunicate OK [14:31:54]SAM_PROTO_ClearQueue done [14:31:54]KKMCreateOFDPacket [14:31:54]OFDProtocolAddRootSTLVToBuf [14:31:54]FM_MakeSignedData [14:31:54]FM_MakeSignedData [14:31:54]SAM_PROTO_SignData [14:31:54]wFMCommunicate request_size=4 [14:31:54]MH_SAM_APDU [14:31:54]CAPDU: 80 0D 01 02 [14:31:54]Write to MH i2c: E2 08 00 4E 62 80 0D 01 02 00 00 00 00 29 [14:31:54]Write i2c OK [14:31:54]MH_I2C_Read... [14:31:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:54]Read from MH i2c: E2 [14:31:54]MH_I2C_Read... [14:31:54]Read from MH i2c: E2 03 00 [14:31:54]MH_I2C_Read... [14:31:54]Read from MH i2c: E2 03 00 4E 62 00 90 00 24 [14:31:54]RAPDU: 90 00 [14:31:54]wFMCommunicate OK [14:31:54]wFMCommunicate request_size=255 [14:31:54]MH_SAM_APDU [14:31:54]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 9C 00 00 00 F4 03 04 00 5F E6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 [14:31:54]Write to MH i2c: E2 02 01 4F 62 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 9C 00 00 00 F4 03 04 00 5F E6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 00 00 21 [14:31:54]Write i2c OK [14:31:54]MH_I2C_Read... [14:31:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:54]Read from MH i2c: E2 [14:31:54]MH_I2C_Read... [14:31:54]Read from MH i2c: E2 03 00 [14:31:54]MH_I2C_Read... [14:31:54]Read from MH i2c: E2 03 00 4F 62 00 90 00 25 [14:31:54]RAPDU: 90 00 [14:31:54]wFMCommunicate OK [14:31:54]wFMCommunicate request_size=34 [14:31:54]MH_SAM_APDU [14:31:54]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C7 22 02 00 35 04 06 00 CB E6 E0 28 84 E1 [14:31:54]Write to MH i2c: E2 25 00 50 62 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C7 22 02 00 35 04 06 00 CB E6 E0 28 84 E1 00 00 FE [14:31:54]Write i2c OK [14:31:54]MH_I2C_Read... [14:31:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:54]Read from MH i2c: E2 [14:31:54]MH_I2C_Read... [14:31:54]Read from MH i2c: E2 03 00 [14:31:54]MH_I2C_Read... [14:31:54]Read from MH i2c: E2 03 00 50 62 00 90 00 26 [14:31:54]RAPDU: 90 00 [14:31:54]wFMCommunicate OK [14:31:54]wFMCommunicate request_size=4 [14:31:54]MH_SAM_APDU [14:31:54]CAPDU: 80 0D 03 02 [14:31:54]Write to MH i2c: E2 08 00 51 62 80 0D 03 02 00 00 00 00 2E [14:31:54]Write i2c OK [14:31:54]MH_I2C_Read... [14:31:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:54]Read from MH i2c: E2 [14:31:54]MH_I2C_Read... [14:31:54]Read from MH i2c: E2 0B 00 [14:31:54]MH_I2C_Read... [14:31:54]Read from MH i2c: E2 0B 00 51 62 00 A4 88 59 83 70 F3 EB A1 90 00 26 [14:31:54]RAPDU: A4 88 59 83 70 F3 EB A1 90 00 [14:31:54]wFMCommunicate OK [14:31:54]SAM_PROTO_SignData done [14:31:54]FM_MakeSignedData done [14:31:54]CreateOFDProtocolMessage [14:31:54]wFMCommunicate request_size=4 [14:31:54]MH_SAM_APDU [14:31:54]CAPDU: 80 11 00 00 [14:31:54]Write to MH i2c: E2 08 00 52 62 80 11 00 00 00 00 00 00 2E [14:31:54]Write i2c OK [14:31:54]MH_I2C_Read... [14:31:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:54]Read from MH i2c: E2 [14:31:54]MH_I2C_Read... [14:31:54]Read from MH i2c: E2 17 00 [14:31:54]MH_I2C_Read... [14:31:54]Read from MH i2c: E2 17 00 52 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 89 [14:31:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:31:54]wFMCommunicate OK [14:31:54]CreateOFDProtocolMessage done [14:31:54]OFDSenderStorePacket 139975 [14:31:54]StoreOFDPacket docnum=139975 [14:31:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 27 01 00 00 2D 3B 1F 01 30 C4 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 9C 00 00 00 F4 03 04 00 5F E6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C7 22 02 00 35 04 06 00 CB E6 E0 28 84 E1 A4 88 59 83 70 F3 EB A1 [14:31:54]CheckFolder [14:31:54]dirname=/storage/ofd_packets [14:31:54]CheckFolder done [14:31:54]ProducePacketName [14:31:54]name=ofd_packets/00139975 [14:31:54]NVStorageSaveData ofd_packets/00139975 [14:31:54]File name is /storage/ofd_packets/00139975 [14:31:54]Write 325 bytes [14:31:54]NVStorageSaveData done [14:31:54]OFDSenderStorePacket done [14:31:54]KKMCreateOFDPacket done [14:31:54]NVStorageSaveData kkm_last_timestamp [14:31:54]File name is /storage/kkm_last_timestamp [14:31:54]Write 4 bytes [14:31:54]NVStorageSaveData done [14:31:54]ExternCall_PrintAddStr [14:31:54]wPrintStart [14:31:54]Write to MH i2c: 01 00 00 53 62 B5 [14:31:54]Write i2c OK [14:31:54]MH_I2C_Read... [14:31:54]Read from MH i2c: 01 [14:31:54]MH_I2C_Read... [14:31:54]Read from MH i2c: 01 07 00 [14:31:54]MH_I2C_Read... [14:31:54]Read from MH i2c: 01 07 00 53 62 00 00 00 00 00 FF 0F CA [14:31:54]RasterBufferAndPrint [14:31:54]line Счет N : (3)335786 [14:31:54]line ИНН: 02508201610067 [14:31:54]line Контрольно-Кассовый Чек [14:31:54]line ПРОДАЖА [14:31:54]line Товар: 5449000005489 [14:31:54]line Вода Бонаква 1л б/г [14:31:54]line 1.000 * 50.00 [14:31:54]line = 50.00 [14:31:54]line НДС 12% НСП 1% [14:31:54]line > о реализуемом товаре [14:31:54]line ИТОГО: 50.00 [14:31:54]line НСП 1% : 0.44 [14:31:54]line НДС 12% : 5.31 [14:31:54]line Наличными: 50.00 [14:31:54]line Безнал.: 0.00 [14:31:54]line Место: АЗС № 101 "Партнер Нефть" [14:31:54]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:31:54]line СНО: Общий режим [14:31:54]line Чек 156 01.11.2024 14:31 [14:31:54]line Смена: 558 ФФД: 1.0 [14:31:54]line ЗНМ: 0300000081 [14:31:54]line РНМ: 0000000000091631 [14:31:54]line Версия ККМ: 001 [14:31:54]line ФМ: 0000000000874669 [14:31:54]line ФД: 139975 [14:31:54]line ФПД: 224192463668449 [14:31:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T143159&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139975&fm=224192463668449&tin=02508201610067®Number=0000000000091631&sum=5000 [14:31:55]OFD Sender: Processing packet 139975 [packets to send 34, broken 33] [14:31:55]ProducePacketName [14:31:55]name=ofd_packets/00139975 [14:31:55]OFD Sender: To server: pG, [14:31:55]CommunicateWithHost lk.salyk.kg:30040 [14:31:55]ConnectInit lk.salyk.kg [14:31:55]line 0 [14:31:55]written 0, free lines is 4095 [14:31:55]Connected sock=9 [14:31:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 27 01 00 00 2D 3B 1F 01 30 C4 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 9C 00 00 00 F4 03 04 00 5F E6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C7 22 02 00 35 04 06 00 CB E6 E0 28 84 E1 A4 88 59 83 70 F3 EB A1 [14:31:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 05 D9 47 00 FB 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C7 22 02 00 F4 03 04 00 09 92 24 67 B6 04 01 00 00 30 8E DB 89 9A 79 94 67 [14:31:55]CommunicateWithHost err = 0 [14:31:55]CheckOFDResponse [14:31:55]1017 (14) - 77093643461234 [14:31:55]1041 (16) - 0000000000874669 [14:31:55]1040 (4) - 139975 [14:31:55]1012 (4) - 01.11.2024 08:32 [14:31:55]1206 (1) - 0 [14:31:55]OFD Sender: Remove packet 139975 [14:31:55]ProducePacketName [14:31:55]name=ofd_packets/00139975 [14:31:55]NVStorageDeleteData [14:31:55]Write to MH i2c: 01 00 00 7B 62 DD [14:31:55]Write i2c OK [14:31:55]MH_I2C_Read... [14:31:55]Read from MH i2c: 01 [14:31:55]MH_I2C_Read... [14:31:55]Read from MH i2c: 01 07 00 [14:31:55]MH_I2C_Read... [14:31:55]Read from MH i2c: 01 07 00 7B 62 00 00 00 00 00 13 0D 04 [14:31:55]RasterBufferAndPrint [14:31:55]line [14:31:55]line [14:31:55]line [14:31:55]line [14:31:55]line [14:31:55]written 0, free lines is 3356 [14:31:55]MH_Cut [14:31:55]Write to MH i2c: D1 01 00 82 62 01 B6 [14:31:55]Write i2c OK [14:31:55]MH_I2C_Read... [14:31:55]Read from MH i2c: D1 [14:31:55]MH_I2C_Read... [14:31:55]Read from MH i2c: D1 01 00 [14:31:55]MH_I2C_Read... [14:31:55]Read from MH i2c: D1 01 00 82 62 00 B5 [14:31:55]Write to MH i2c: 01 00 00 83 62 E5 [14:31:55]Write i2c OK [14:31:55]MH_I2C_Read... [14:31:55]OFD Sender: No OFD packet to send [14:31:56]*** Cut start [14:31:56]*** Partial cut [14:31:56]*** CUTSNS_PIN = 1 [14:31:56]*** CUTSNS_PIN = 0 [14:31:56]*** Brake cut motor [14:31:56]Read from MH i2c: 01 [14:31:56]MH_I2C_Read... [14:31:56]*** Stop cut motor [14:31:56]*** Cut end [14:31:56]Read from MH i2c: 01 07 00 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: 01 07 00 83 62 00 00 00 00 00 FF 0F FA [14:31:56]process_action close_receipt done [14:31:56]requested_data is exist [14:31:56]produce_requested_data [14:31:56]requested_item fm.sn is exist - process it [14:31:56]wFMCommunicate request_size=4 [14:31:56]MH_SAM_APDU [14:31:56]CAPDU: 80 11 00 00 [14:31:56]Write to MH i2c: E2 08 00 84 62 80 11 00 00 00 00 00 00 60 [14:31:56]Write i2c OK [14:31:56]MH_I2C_Read... [14:31:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:56]Read from MH i2c: E2 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 17 00 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 17 00 84 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BB [14:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:31:56]wFMCommunicate OK [14:31:56]requested_item fd.num is exist - process it [14:31:56]SAM_PROTO_GetFieldsCounters [14:31:56]wFMCommunicate request_size=4 [14:31:56]MH_SAM_APDU [14:31:56]CAPDU: 80 13 00 00 [14:31:56]Write to MH i2c: E2 08 00 85 62 80 13 00 00 00 00 00 00 63 [14:31:56]Write i2c OK [14:31:56]MH_I2C_Read... [14:31:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:56]Read from MH i2c: E2 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 62 00 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 62 00 85 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C7 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [14:31:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C7 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:31:56]wFMCommunicate OK [14:31:56]SAM_PROTO_GetFieldsCounters done [14:31:56]requested_item shift.num is exist - process it [14:31:56]requested_item shift.opened is exist - process it [14:31:56]req_shift_opened [14:31:56]FM_GetShiftState [14:31:56]SAM_PROTO_GetShiftState [14:31:56]wFMCommunicate request_size=4 [14:31:56]MH_SAM_APDU [14:31:56]CAPDU: 80 13 01 00 [14:31:56]Write to MH i2c: E2 08 00 86 62 80 13 01 00 00 00 00 00 65 [14:31:56]Write i2c OK [14:31:56]MH_I2C_Read... [14:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:57]Read from MH i2c: E2 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: E2 0E 00 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: E2 0E 00 86 62 00 09 00 01 89 19 24 67 00 00 00 00 90 00 9E [14:31:57]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:31:57]wFMCommunicate OK [14:31:57]SAM_PROTO_GetShiftState done [14:31:57]FM_GetShiftState done [14:31:57]req_shift_opened done [14:31:57]requested_item shift.open_date is exist - process it [14:31:57]req_shift_open_date [14:31:57]req_shift_open_date done [14:31:57]produce_requested_data done [14:31:57]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139975,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [14:31:57]process_action_free close_receipt [14:31:57]json_value_free [14:31:57]json_value_free done [14:31:57]process_json_proto returns [14:31:57]Send response to host [14:31:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139975,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [14:31:57]free response buf [14:31:57]execute_script done [14:31:57]execute_script returns [14:31:57]free content buf [14:31:57]Sock 10.Close socket [14:31:57]Sock 10.Thread stoped [14:32:00]OFD Sender: No OFD packet to send [14:32:05]OFD Sender: No OFD packet to send [14:32:10]OFD Sender: No OFD packet to send [14:32:15]OFD Sender: No OFD packet to send [14:32:20]OFD Sender: No OFD packet to send [14:32:25]OFD Sender: No OFD packet to send [14:32:30]OFD Sender: No OFD packet to send [14:32:35]OFD Sender: No OFD packet to send [14:32:40]OFD Sender: No OFD packet to send [14:32:45]OFD Sender: No OFD packet to send [14:32:50]OFD Sender: No OFD packet to send [14:32:55]OFD Sender: No OFD packet to send [14:33:00]OFD Sender: No OFD packet to send [14:33:05]OFD Sender: No OFD packet to send [14:33:10]accept exits with 7 [14:33:10]New connection [14:33:10]New thread 3066654052 created [14:33:10]Thread 3066510692 joined [14:33:10]Waiting for new connection... [14:33:10] Sock 7.Parse request [14:33:10]Sock 7.Check first char [14:33:10]Sock 7.First char is OK [14:33:10]request: POST /json_proto HTTP/1.0 [14:33:10]Method: POST [14:33:10]URL: /json_proto [14:33:10]Method is POST - this is cgi request [14:33:10]url: /json_proto [14:33:10]query_string will be loaded in cgi processing [14:33:10]execute_cgi json_proto POST (null) [14:33:10]execute_cgi path=json_proto method=POST [14:33:10]POST find Content-Length [14:33:10]Host: 172.17.50.196:8080 [14:33:10]Content-Length: 801 [14:33:10]Content-Type: application/json [14:33:10] [14:33:10]POST finish read [14:33:10]Found Content-Length = 801 [14:33:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1095991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3948916", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:10]execute_script... [14:33: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)1095991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3948916", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:10]POST & json_proto [14:33:10]process_json_proto [14:33:10]json parsed OK: [14:33:10]protocol is kg_v1.0 [14:33:10]action value=close_receipt [14:33:10]process_action close_receipt [14:33:10]cmd_close_receipt [14:33:10]MH_GetDate [14:33:10]Write to MH i2c: F0 00 00 87 62 D8 [14:33:10]Write i2c OK [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: F0 [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: F0 09 00 [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: F0 09 00 87 62 00 AC E6 24 67 72 0D 1C 67 00 [14:33:10]GetLastDocTimeStamp 1730471519 [14:33:10]current date 1730471596 [14:33:10]FM_GetShiftState [14:33:10]SAM_PROTO_GetShiftState [14:33:10]wFMCommunicate request_size=4 [14:33:10]MH_SAM_APDU [14:33:10]CAPDU: 80 13 01 00 [14:33:10]Write to MH i2c: E2 08 00 88 62 80 13 01 00 00 00 00 00 67 [14:33:10]Write i2c OK [14:33:10]MH_I2C_Read... [14:33:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:10]Read from MH i2c: E2 [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: E2 0E 00 [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: E2 0E 00 88 62 00 09 00 01 89 19 24 67 00 00 00 00 90 00 A0 [14:33:10]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:33:10]wFMCommunicate OK [14:33:10]SAM_PROTO_GetShiftState done [14:33:10]FM_GetShiftState done [14:33:10]opened in 1730419081 [14:33:10]opened+sec_in_day 1730505481 [14:33:10]quantity*price = 0 [14:33:10]sum+1 = 1 [14:33:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 157 01.11.2024 14:33 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Талоны: Топливные Талоны 3948916 ФМ: 0000000000874669 ФД: 139976 ФПД: 212189575239890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T143316&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139976&fm=212189575239890&tin=02508201610067®Number=0000000000091631&sum=0 [14:33:11]StoreToDocumentArchive [14:33:11]shift 558 fd 139976 [14:33:11]save to /storage/0558/doc_00139976 [14:33:11]save last doc name /storage/0558/doc_00139976 to /storage/kkm_last_doc_name [14:33:11]save OK [14:33:11]Clear old archive folders... [14:33:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:11]tlvbuf is 00A7ACD0 [14:33:11]SAM_PROTO_ClearQueue [14:33:11]wFMCommunicate request_size=4 [14:33:11]MH_SAM_APDU [14:33:11]CAPDU: 80 09 00 00 [14:33:11]Write to MH i2c: E2 08 00 95 62 80 09 00 00 00 00 00 00 69 [14:33:11]Write i2c OK [14:33:11]MH_I2C_Read... [14:33:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:11]Read from MH i2c: E2 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 03 00 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 03 00 95 62 00 90 00 6B [14:33:11]RAPDU: 90 00 [14:33:11]wFMCommunicate OK [14:33:11]SAM_PROTO_ClearQueue done [14:33:11]KKMCreateOFDPacket [14:33:11]OFDProtocolAddRootSTLVToBuf [14:33:11]FM_MakeSignedData [14:33:11]FM_MakeSignedData [14:33:11]SAM_PROTO_SignData [14:33:11]wFMCommunicate request_size=4 [14:33:11]MH_SAM_APDU [14:33:11]CAPDU: 80 0D 01 02 [14:33:11]Write to MH i2c: E2 08 00 96 62 80 0D 01 02 00 00 00 00 71 [14:33:11]Write i2c OK [14:33:11]MH_I2C_Read... [14:33:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:11]Read from MH i2c: E2 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 03 00 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 03 00 96 62 00 90 00 6C [14:33:11]RAPDU: 90 00 [14:33:11]wFMCommunicate OK [14:33:11]wFMCommunicate request_size=255 [14:33:11]MH_SAM_APDU [14:33: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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 AC E6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C8 22 02 00 35 04 06 00 C0 [14:33:11]Write to MH i2c: E2 02 01 97 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 AC E6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C8 22 02 00 35 04 06 00 C0 00 00 7F [14:33:11]Write i2c OK [14:33:11]MH_I2C_Read... [14:33:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:11]Read from MH i2c: E2 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 03 00 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 03 00 97 62 00 90 00 6D [14:33:11]RAPDU: 90 00 [14:33:11]wFMCommunicate OK [14:33:11]wFMCommunicate request_size=10 [14:33:11]MH_SAM_APDU [14:33:11]CAPDU: 80 0D 02 02 05 FC 3C 41 D8 D2 [14:33:11]Write to MH i2c: E2 0D 00 98 62 80 0D 02 02 05 00 FC 3C 41 D8 D2 00 00 A1 [14:33:11]Write i2c OK [14:33:11]MH_I2C_Read... [14:33:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:11]Read from MH i2c: E2 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 03 00 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 03 00 98 62 00 90 00 6E [14:33:11]RAPDU: 90 00 [14:33:11]wFMCommunicate OK [14:33:11]wFMCommunicate request_size=4 [14:33:11]MH_SAM_APDU [14:33:11]CAPDU: 80 0D 03 02 [14:33:11]Write to MH i2c: E2 08 00 99 62 80 0D 03 02 00 00 00 00 76 [14:33:11]Write i2c OK [14:33:11]MH_I2C_Read... [14:33:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:11]Read from MH i2c: E2 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 0B 00 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 0B 00 99 62 00 5B DC 3C DA B0 CC 84 72 90 00 36 [14:33:11]RAPDU: 5B DC 3C DA B0 CC 84 72 90 00 [14:33:11]wFMCommunicate OK [14:33:11]SAM_PROTO_SignData done [14:33:11]FM_MakeSignedData done [14:33:11]CreateOFDProtocolMessage [14:33:11]wFMCommunicate request_size=4 [14:33:11]MH_SAM_APDU [14:33:11]CAPDU: 80 11 00 00 [14:33:11]Write to MH i2c: E2 08 00 9A 62 80 11 00 00 00 00 00 00 76 [14:33:11]Write i2c OK [14:33:11]MH_I2C_Read... [14:33:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:11]Read from MH i2c: E2 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 17 00 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 17 00 9A 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D1 [14:33:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:33:11]wFMCommunicate OK [14:33:11]CreateOFDProtocolMessage done [14:33:11]OFDSenderStorePacket 139976 [14:33:11]StoreOFDPacket docnum=139976 [14:33:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 1E D9 07 01 E5 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 AC E6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C8 22 02 00 35 04 06 00 C0 FC 3C 41 D8 D2 5B DC 3C DA B0 CC 84 72 [14:33:11]CheckFolder [14:33:11]dirname=/storage/ofd_packets [14:33:11]CheckFolder done [14:33:11]ProducePacketName [14:33:11]name=ofd_packets/00139976 [14:33:11]NVStorageSaveData ofd_packets/00139976 [14:33:11]File name is /storage/ofd_packets/00139976 [14:33:11]Write 301 bytes [14:33:11]NVStorageSaveData done [14:33:11]OFDSenderStorePacket done [14:33:11]KKMCreateOFDPacket done [14:33:11]NVStorageSaveData kkm_last_timestamp [14:33:11]File name is /storage/kkm_last_timestamp [14:33:11]Write 4 bytes [14:33:11]NVStorageSaveData done [14:33:11]ExternCall_PrintAddStr [14:33:11]wPrintStart [14:33:11]Write to MH i2c: 01 00 00 9B 62 FD [14:33:11]Write i2c OK [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: 01 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: 01 07 00 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: 01 07 00 9B 62 00 00 00 00 00 FF 0F 12 [14:33:11]RasterBufferAndPrint [14:33:11]line Счет N : (1)1095991 [14:33:11]line ИНН: 02508201610067 [14:33:11]line Контрольно-Кассовый Чек [14:33:11]line ПРОДАЖА [14:33:11]line ТРК (МРК, ГНК) : 53 [14:33:11]line Товар: 2710124130 [14:33:11]line Аи-92-К-2 [14:33:11]line 20.000 * 0.00 [14:33:11]line = 0.00 [14:33:11]line НДС 12% НСП 1% [14:33:11]line > о реализуемом товаре [14:33:11]line ИТОГО: 0.00 [14:33:11]line НСП 1% : 0.00 [14:33:11]line НДС 12% : 0.00 [14:33:11]line Наличными: 0.00 [14:33:11]line Безнал.: 0.00 [14:33:11]line Место: АЗС № 101 "Партнер Нефть" [14:33:11]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:33:11]line СНО: Общий режим [14:33:11]line Чек 157 01.11.2024 14:33 [14:33:11]line Смена: 558 ФФД: 1.0 [14:33:11]line ЗНМ: 0300000081 [14:33:11]line РНМ: 0000000000091631 [14:33:11]line Версия ККМ: 001 [14:33:11]line Талоны: Топливные Талоны [14:33:11]line 3948916 [14:33:11]line ФМ: 0000000000874669 [14:33:11]line ФД: 139976 [14:33:11]line ФПД: 212189575239890 [14:33:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T143316&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139976&fm=212189575239890&tin=02508201610067®Number=0000000000091631&sum=0 [14:33:12]OFD Sender: Processing packet 139976 [packets to send 34, broken 33] [14:33:12]ProducePacketName [14:33:12]name=ofd_packets/00139976 [14:33:12]OFD Sender: To server: pG, [14:33:12]CommunicateWithHost lk.salyk.kg:30040 [14:33:12]ConnectInit lk.salyk.kg [14:33:12]written 0, free lines is 4095 [14:33:12]Connected sock=10 [14:33:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 1E D9 07 01 E5 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 AC E6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C8 22 02 00 35 04 06 00 C0 FC 3C 41 D8 D2 5B DC 3C DA B0 CC 84 72 [14:33:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 4F 88 47 00 B4 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C8 22 02 00 F4 03 04 00 56 92 24 67 B6 04 01 00 00 35 16 06 1B 20 B8 5B 8A [14:33:12]CommunicateWithHost err = 0 [14:33:12]CheckOFDResponse [14:33:12]1017 (14) - 77093643461234 [14:33:12]1041 (16) - 0000000000874669 [14:33:12]1040 (4) - 139976 [14:33:12]1012 (4) - 01.11.2024 08:33 [14:33:12]1206 (1) - 0 [14:33:12]OFD Sender: Remove packet 139976 [14:33:12]ProducePacketName [14:33:12]name=ofd_packets/00139976 [14:33:12]NVStorageDeleteData [14:33:12]Write to MH i2c: 01 00 00 C5 62 27 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: 01 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: 01 07 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: 01 07 00 C5 62 00 00 00 00 00 F6 0C 30 [14:33:12]RasterBufferAndPrint [14:33:12]line [14:33:12]line [14:33:12]line [14:33:12]line [14:33:12]line [14:33:12]written 0, free lines is 3324 [14:33:12]MH_Cut [14:33:12]Write to MH i2c: D1 01 00 CC 62 01 00 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: D1 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: D1 01 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: D1 01 00 CC 62 00 FF [14:33:12]Write to MH i2c: 01 00 00 CD 62 2F [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]OFD Sender: No OFD packet to send [14:33:13]*** Cut start [14:33:13]*** Partial cut [14:33:13]*** CUTSNS_PIN = 1 [14:33:13]*** CUTSNS_PIN = 0 [14:33:13]*** Brake cut motor [14:33:13]Read from MH i2c: 01 [14:33:13]MH_I2C_Read... [14:33:13]*** Stop cut motor [14:33:13]*** Cut end [14:33:13]Read from MH i2c: 01 07 00 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: 01 07 00 CD 62 00 00 00 00 00 FF 0F 44 [14:33:13]process_action close_receipt done [14:33:13]requested_data is exist [14:33:13]produce_requested_data [14:33:13]requested_item fm.sn is exist - process it [14:33:13]wFMCommunicate request_size=4 [14:33:13]MH_SAM_APDU [14:33:13]CAPDU: 80 11 00 00 [14:33:13]Write to MH i2c: E2 08 00 CE 62 80 11 00 00 00 00 00 00 AA [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:13]Read from MH i2c: E2 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 17 00 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 17 00 CE 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 05 [14:33:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:33:13]wFMCommunicate OK [14:33:13]requested_item fd.num is exist - process it [14:33:13]SAM_PROTO_GetFieldsCounters [14:33:13]wFMCommunicate request_size=4 [14:33:13]MH_SAM_APDU [14:33:13]CAPDU: 80 13 00 00 [14:33:13]Write to MH i2c: E2 08 00 CF 62 80 13 00 00 00 00 00 00 AD [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:14]Read from MH i2c: E2 [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: E2 62 00 [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: E2 62 00 CF 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C8 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [14:33:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C8 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:14]wFMCommunicate OK [14:33:14]SAM_PROTO_GetFieldsCounters done [14:33:14]requested_item shift.num is exist - process it [14:33:14]requested_item shift.opened is exist - process it [14:33:14]req_shift_opened [14:33:14]FM_GetShiftState [14:33:14]SAM_PROTO_GetShiftState [14:33:14]wFMCommunicate request_size=4 [14:33:14]MH_SAM_APDU [14:33:14]CAPDU: 80 13 01 00 [14:33:14]Write to MH i2c: E2 08 00 D0 62 80 13 01 00 00 00 00 00 AF [14:33:14]Write i2c OK [14:33:14]MH_I2C_Read... [14:33:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:14]Read from MH i2c: E2 [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: E2 0E 00 [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: E2 0E 00 D0 62 00 09 00 01 89 19 24 67 00 00 00 00 90 00 E8 [14:33:14]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:33:14]wFMCommunicate OK [14:33:14]SAM_PROTO_GetShiftState done [14:33:14]FM_GetShiftState done [14:33:14]req_shift_opened done [14:33:14]requested_item shift.open_date is exist - process it [14:33:14]req_shift_open_date [14:33:14]req_shift_open_date done [14:33:14]produce_requested_data done [14:33:14]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139976,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [14:33:14]process_action_free close_receipt [14:33:14]json_value_free [14:33:14]json_value_free done [14:33:14]process_json_proto returns [14:33:14]Send response to host [14:33:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139976,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [14:33:14]free response buf [14:33:14]execute_script done [14:33:14]execute_script returns [14:33:14]free content buf [14:33:14]Sock 7.Close socket [14:33:14]Sock 7.Thread stoped [14:33:17]OFD Sender: No OFD packet to send [14:33:22]OFD Sender: No OFD packet to send [14:33:27]OFD Sender: No OFD packet to send [14:33:32]OFD Sender: No OFD packet to send [14:33:37]OFD Sender: No OFD packet to send [14:33:42]OFD Sender: No OFD packet to send [14:33:47]OFD Sender: No OFD packet to send [14:33:52]OFD Sender: No OFD packet to send [14:33:53]accept exits with 9 [14:33:53]New connection [14:33:53]New thread 3066510692 created [14:33:53]Thread 3066654052 joined [14:33:53]Waiting for new connection... [14:33:53] Sock 9.Parse request [14:33:53]Sock 9.Check first char [14:33:53]Sock 9.First char is OK [14:33:53]request: POST /json_proto HTTP/1.0 [14:33:53]Method: POST [14:33:53]URL: /json_proto [14:33:53]Method is POST - this is cgi request [14:33:53]url: /json_proto [14:33:53]query_string will be loaded in cgi processing [14:33:53]execute_cgi json_proto POST (null) [14:33:53]execute_cgi path=json_proto method=POST [14:33:53]POST find Content-Length [14:33:53]Host: 172.17.50.196:8080 [14:33:53]Content-Length: 215 [14:33:53]Content-Type: application/json [14:33:53] [14:33:53]POST finish read [14:33:53]Found Content-Length = 215 [14:33:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:53]execute_script... [14:33:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:53]POST & json_proto [14:33:53]process_json_proto [14:33:53]json parsed OK: [14:33:53]protocol is kg_v1.0 [14:33:53]action value=get_value [14:33:53]process_action get_value [14:33:53]cmd_get_value [14:33:53]process_action get_value done [14:33:53]requested_data is exist [14:33:53]produce_requested_data [14:33:53]requested_item kkm.sn is exist - process it [14:33:53]requested_item kkm.ver is exist - process it [14:33:53]requested_item fm.sn is exist - process it [14:33:53]wFMCommunicate request_size=4 [14:33:53]MH_SAM_APDU [14:33:53]CAPDU: 80 11 00 00 [14:33:53]Write to MH i2c: E2 08 00 D1 62 80 11 00 00 00 00 00 00 AD [14:33:53]Write i2c OK [14:33:53]MH_I2C_Read... [14:33:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:53]Read from MH i2c: E2 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 17 00 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 17 00 D1 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 08 [14:33:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:33:53]wFMCommunicate OK [14:33:53]requested_item fd.num is exist - process it [14:33:53]SAM_PROTO_GetFieldsCounters [14:33:53]wFMCommunicate request_size=4 [14:33:53]MH_SAM_APDU [14:33:53]CAPDU: 80 13 00 00 [14:33:53]Write to MH i2c: E2 08 00 D2 62 80 13 00 00 00 00 00 00 B0 [14:33:53]Write i2c OK [14:33:53]MH_I2C_Read... [14:33:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:53]Read from MH i2c: E2 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 62 00 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 62 00 D2 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C8 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [14:33: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 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C8 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:53]wFMCommunicate OK [14:33:53]SAM_PROTO_GetFieldsCounters done [14:33:53]requested_item shift.num is exist - process it [14:33:53]requested_item shift.opened is exist - process it [14:33:53]req_shift_opened [14:33:53]FM_GetShiftState [14:33:53]SAM_PROTO_GetShiftState [14:33:53]wFMCommunicate request_size=4 [14:33:53]MH_SAM_APDU [14:33:53]CAPDU: 80 13 01 00 [14:33:53]Write to MH i2c: E2 08 00 D3 62 80 13 01 00 00 00 00 00 B2 [14:33:53]Write i2c OK [14:33:53]MH_I2C_Read... [14:33:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:53]Read from MH i2c: E2 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 0E 00 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 0E 00 D3 62 00 09 00 01 89 19 24 67 00 00 00 00 90 00 EB [14:33:53]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:33:53]wFMCommunicate OK [14:33:53]SAM_PROTO_GetShiftState done [14:33:53]FM_GetShiftState done [14:33:53]req_shift_opened done [14:33:53]requested_item shift.open_date is exist - process it [14:33:53]req_shift_open_date [14:33:53]req_shift_open_date done [14:33:53]produce_requested_data done [14:33:53]produce_requested_data return {"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139976,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [14:33:53]process_action_free get_value [14:33:53]json_value_free [14:33:53]json_value_free done [14:33:53]process_json_proto returns [14:33:53]Send response to host [14:33:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139976,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [14:33:53]free response buf [14:33:53]execute_script done [14:33:53]execute_script returns [14:33:53]free content buf [14:33:53]Sock 9.Close socket [14:33:53]Sock 9.Thread stoped [14:33:53]accept exits with 10 [14:33:53]New connection [14:33:53]New thread 3066654052 created [14:33:53]Thread 3066510692 joined [14:33:53]Waiting for new connection... [14:33:53] Sock 10.Parse request [14:33:53]Sock 10.Check first char [14:33:53]Sock 10.First char is OK [14:33:53]request: POST /json_proto HTTP/1.0 [14:33:53]Method: POST [14:33:53]URL: /json_proto [14:33:53]Method is POST - this is cgi request [14:33:53]url: /json_proto [14:33:53]query_string will be loaded in cgi processing [14:33:53]execute_cgi json_proto POST (null) [14:33:53]execute_cgi path=json_proto method=POST [14:33:53]POST find Content-Length [14:33:53]Host: 172.17.50.196:8080 [14:33:53]Content-Length: 331 [14:33:53]Content-Type: application/json [14:33:53] [14:33:53]POST finish read [14:33:53]Found Content-Length = 331 [14:33:53]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" ] } } [14:33:53]execute_script... [14:33:53]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" ] } } [14:33:53]POST & json_proto [14:33:53]process_json_proto [14:33:53]json parsed OK: [14:33:53]protocol is kg_v1.0 [14:33:53]action value=get_value [14:33:53]process_action get_value [14:33:53]cmd_get_value [14:33:53]process_action get_value done [14:33:53]requested_data is exist [14:33:53]produce_requested_data [14:33:53]requested_item fm.sale.total is exist - process it [14:33:53]SAM_PROTO_GetFMData [14:33:53]wFMCommunicate request_size=4 [14:33:53]MH_SAM_APDU [14:33:53]CAPDU: 80 13 03 00 [14:33:53]Write to MH i2c: E2 08 00 D4 62 80 13 03 00 00 00 00 00 B5 [14:33:53]Write i2c OK [14:33:53]MH_I2C_Read... [14:33:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:33:54]Read from MH i2c: E2 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: E2 FD 00 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: E2 FD 00 D4 62 00 C7 04 85 04 C3 04 6E 04 04 00 6C 1E 02 00 69 04 A3 00 6F 04 04 00 1C 1C 02 00 B1 04 05 00 2D 25 C5 53 01 70 04 05 00 94 A5 11 04 01 72 04 04 00 99 7F B3 4F 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 9D A9 15 24 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 4F 8B 01 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 50 02 00 00 B1 04 04 00 68 65 0B 09 70 04 04 00 A4 39 E7 08 72 04 03 00 C4 2B 24 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 ED E5 F5 EF 90 00 A3 [14:33:54]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 6C 1E 02 00 69 04 A3 00 6F 04 04 00 1C 1C 02 00 B1 04 05 00 2D 25 C5 53 01 70 04 05 00 94 A5 11 04 01 72 04 04 00 99 7F B3 4F 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 9D A9 15 24 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 4F 8B 01 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 50 02 00 00 B1 04 04 00 68 65 0B 09 70 04 04 00 A4 39 E7 08 72 04 03 00 C4 2B 24 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 ED E5 F5 EF 90 00 [14:33:54]wFMCommunicate OK [14:33:54]wFMCommunicate request_size=4 [14:33:54]MH_SAM_APDU [14:33:54]CAPDU: 80 17 00 00 [14:33:54]Write to MH i2c: E2 08 00 D5 62 80 17 00 00 00 00 00 00 B7 [14:33:54]Write i2c OK [14:33:54]MH_I2C_Read... [14:33:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:33:54]Read from MH i2c: E2 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: E2 FD 00 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: E2 FD 00 D5 62 00 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 95 7D 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 EA [14:33:54]RAPDU: 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 95 7D 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 [14:33:54]wFMCommunicate OK [14:33:54]wFMCommunicate request_size=4 [14:33:54]MH_SAM_APDU [14:33:54]CAPDU: 80 17 00 00 [14:33:54]Write to MH i2c: E2 08 00 D6 62 80 17 00 00 00 00 00 00 B8 [14:33:54]Write i2c OK [14:33:54]MH_I2C_Read... [14:33:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:33:54]Read from MH i2c: E2 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: E2 FD 00 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: E2 FD 00 D6 62 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 90 [14:33:54]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [14:33:54]wFMCommunicate OK [14:33:54]wFMCommunicate request_size=4 [14:33:54]MH_SAM_APDU [14:33:54]CAPDU: 80 17 00 00 [14:33:54]Write to MH i2c: E2 08 00 D7 62 80 17 00 00 00 00 00 00 B9 [14:33:54]Write i2c OK [14:33:54]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 FD 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 FD 00 D7 62 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 34 [14:33:55]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:33:55]wFMCommunicate OK [14:33:55]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 17 00 00 [14:33:55]Write to MH i2c: E2 08 00 D8 62 80 17 00 00 00 00 00 00 BA [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 E4 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 E4 00 D8 62 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9A [14:33:55]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:33:55]wFMCommunicate OK [14:33:55]SAM_PROTO_GetFMData done [14:33:55]requested_item fm.sale_refund.total is exist - process it [14:33:55]requested_item fm.buy.total is exist - process it [14:33:55]requested_item shift.sale.total is exist - process it [14:33:55]SAM_PROTO_GetShiftData [14:33:55]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 13 02 00 [14:33:55]Write to MH i2c: E2 08 00 D9 62 80 13 02 00 00 00 00 00 B9 [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 FD 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 FD 00 D9 62 00 B6 04 AA 04 B2 04 6E 04 04 00 9D 00 00 00 69 04 9C 00 6F 04 04 00 9C 00 00 00 B1 04 03 00 EC F2 8B 70 04 03 00 00 21 52 72 04 03 00 EC D1 39 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 CD DC 0E 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 03 3D 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 4C 36 70 04 02 00 4C 36 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C4 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 80 [14:33:55]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 9D 00 00 00 69 04 9C 00 6F 04 04 00 9C 00 00 00 B1 04 03 00 EC F2 8B 70 04 03 00 00 21 52 72 04 03 00 EC D1 39 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 CD DC 0E 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 03 3D 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 4C 36 70 04 02 00 4C 36 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C4 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 [14:33:55]wFMCommunicate OK [14:33:55]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 17 00 00 [14:33:55]Write to MH i2c: E2 08 00 DA 62 80 17 00 00 00 00 00 00 BC [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:33:56]Read from MH i2c: E2 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: E2 FD 00 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: E2 FD 00 DA 62 00 00 F6 03 01 00 01 F7 03 01 00 7B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 4A [14:33:56]RAPDU: 00 F6 03 01 00 01 F7 03 01 00 7B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 [14:33:56]wFMCommunicate OK [14:33:56]wFMCommunicate request_size=4 [14:33:56]MH_SAM_APDU [14:33:56]CAPDU: 80 17 00 00 [14:33:56]Write to MH i2c: E2 08 00 DB 62 80 17 00 00 00 00 00 00 BD [14:33:56]Write i2c OK [14:33:56]MH_I2C_Read... [14:33:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:33:56]Read from MH i2c: E2 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: E2 FD 00 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: E2 FD 00 DB 62 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 7D [14:33:56]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 [14:33:56]wFMCommunicate OK [14:33:56]wFMCommunicate request_size=4 [14:33:56]MH_SAM_APDU [14:33:56]CAPDU: 80 17 00 00 [14:33:56]Write to MH i2c: E2 08 00 DC 62 80 17 00 00 00 00 00 00 BE [14:33:56]Write i2c OK [14:33:56]MH_I2C_Read... [14:33:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:33:56]Read from MH i2c: E2 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: E2 FD 00 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: E2 FD 00 DC 62 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 2D [14:33:56]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 [14:33:56]wFMCommunicate OK [14:33:56]wFMCommunicate request_size=4 [14:33:56]MH_SAM_APDU [14:33:56]CAPDU: 80 17 00 00 [14:33:56]Write to MH i2c: E2 08 00 DD 62 80 17 00 00 00 00 00 00 BF [14:33:56]Write i2c OK [14:33:56]MH_I2C_Read... [14:33:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [14:33:56]Read from MH i2c: E2 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: E2 D3 00 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: E2 D3 00 DD 62 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 AC [14:33:57]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 [14:33:57]wFMCommunicate OK [14:33:57]SAM_PROTO_GetShiftData done [14:33:57]requested_item shift.sale.total_cash is exist - process it [14:33:57]requested_item shift.sale_refund.total is exist - process it [14:33:57]requested_item shift.sale_refund.total_cash is exist - process it [14:33:57]requested_item shift.buy.total is exist - process it [14:33:57]requested_item shift.buy.total_cash is exist - process it [14:33:57]produce_requested_data done [14:33:57]produce_requested_data return {"fm.sale.total":57003963.33,"fm.sale_refund.total":1517418.00,"fm.buy.total":0.00,"shift.sale.total":91716.92,"shift.sale.total_cash":53824.00,"shift.sale_refund.total":139.00,"shift.sale_refund.total_cash":139.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [14:33:57]process_action_free get_value [14:33:57]json_value_free [14:33:57]json_value_free done [14:33:57]process_json_proto returns [14:33:57]Send response to host [14:33:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":57003963.33,"fm.sale_refund.total":1517418.00,"fm.buy.total":0.00,"shift.sale.total":91716.92,"shift.sale.total_cash":53824.00,"shift.sale_refund.total":139.00,"shift.sale_refund.total_cash":139.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [14:33:57]free response buf [14:33:57]execute_script done [14:33:57]execute_script returns [14:33:57]free content buf [14:33:57]Sock 10.Close socket [14:33:57]Sock 10.Thread stoped [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:03]OFD Sender: No OFD packet to send [14:39:08]OFD Sender: No OFD packet to send [14:39:13]OFD Sender: No OFD packet to send [14:39:18]OFD Sender: No OFD packet to send [14:39:23]OFD Sender: No OFD packet to send [14:39:28]OFD Sender: No OFD packet to send [14:39:33]OFD Sender: No OFD packet to send [14:39:38]OFD Sender: No OFD packet to send [14:39:43]OFD Sender: No OFD packet to send [14:39:48]OFD Sender: No OFD packet to send [14:39:53]OFD Sender: No OFD packet to send [14:39:58]OFD Sender: No OFD packet to send [14:40:03]OFD Sender: No OFD packet to send [14:40:08]OFD Sender: No OFD packet to send [14:40:13]OFD Sender: No OFD packet to send [14:40:18]OFD Sender: No OFD packet to send [14:40:23]OFD Sender: No OFD packet to send [14:40:28]OFD Sender: No OFD packet to send [14:40:33]OFD Sender: No OFD packet to send [14:40:38]OFD Sender: No OFD packet to send [14:40:43]OFD Sender: No OFD packet to send [14:40:48]OFD Sender: No OFD packet to send [14:40:53]OFD Sender: No OFD packet to send [14:40:58]OFD Sender: No OFD packet to send [14:41:03]OFD Sender: No OFD packet to send [14:41:08]OFD Sender: No OFD packet to send [14:41:13]OFD Sender: No OFD packet to send [14:41:18]OFD Sender: No OFD packet to send [14:41:23]OFD Sender: No OFD packet to send [14:41:28]OFD Sender: No OFD packet to send [14:41:33]OFD Sender: No OFD packet to send [14:41:38]OFD Sender: No OFD packet to send [14:41:43]OFD Sender: No OFD packet to send [14:41:48]OFD Sender: No OFD packet to send [14:41:53]OFD Sender: No OFD packet to send [14:41:58]OFD Sender: No OFD packet to send [14:42:03]OFD Sender: No OFD packet to send [14:42:08]OFD Sender: No OFD packet to send [14:42:13]OFD Sender: No OFD packet to send [14:42:18]OFD Sender: No OFD packet to send [14:42:23]OFD Sender: No OFD packet to send [14:42:28]OFD Sender: No OFD packet to send [14:42:33]OFD Sender: No OFD packet to send [14:42:38]OFD Sender: No OFD packet to send [14:42:43]OFD Sender: No OFD packet to send [14:42:48]OFD Sender: No OFD packet to send [14:42:53]OFD Sender: No OFD packet to send [14:42:58]OFD Sender: No OFD packet to send [14:43:03]OFD Sender: No OFD packet to send [14:43:08]OFD Sender: No OFD packet to send [14:43:13]OFD Sender: No OFD packet to send [14:43:18]OFD Sender: No OFD packet to send [14:43:23]OFD Sender: No OFD packet to send [14:43:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:03]OFD Sender: No OFD packet to send [14:45:08]OFD Sender: No OFD packet to send [14:45:13]OFD Sender: No OFD packet to send [14:45:18]OFD Sender: No OFD packet to send [14:45:23]OFD Sender: No OFD packet to send [14:45:28]OFD Sender: No OFD packet to send [14:45:33]OFD Sender: No OFD packet to send [14:45:38]OFD Sender: No OFD packet to send [14:45:43]OFD Sender: No OFD packet to send [14:45:48]OFD Sender: No OFD packet to send [14:45:53]OFD Sender: No OFD packet to send [14:45:58]OFD Sender: No OFD packet to send [14:46:01]accept exits with 7 [14:46:01]New connection [14:46:01]New thread 3066510692 created [14:46:01]Thread 3066654052 joined [14:46:01]Waiting for new connection... [14:46:01] Sock 7.Parse request [14:46:01]Sock 7.Check first char [14:46:01]Sock 7.First char is OK [14:46:01]request: POST /json_proto HTTP/1.0 [14:46:01]Method: POST [14:46:01]URL: /json_proto [14:46:01]Method is POST - this is cgi request [14:46:01]url: /json_proto [14:46:01]query_string will be loaded in cgi processing [14:46:01]execute_cgi json_proto POST (null) [14:46:01]execute_cgi path=json_proto method=POST [14:46:01]POST find Content-Length [14:46:01]Host: 172.17.50.196:8080 [14:46:01]Content-Length: 666 [14:46:01]Content-Type: application/json [14:46:01] [14:46:01]POST finish read [14:46:01]Found Content-Length = 666 [14:46:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335789", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:01]execute_script... [14:46: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)335789", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:01]POST & json_proto [14:46:01]process_json_proto [14:46:01]json parsed OK: [14:46:01]protocol is kg_v1.0 [14:46:01]action value=close_receipt [14:46:01]process_action close_receipt [14:46:01]cmd_close_receipt [14:46:01]MH_GetDate [14:46:01]Write to MH i2c: F0 00 00 DE 62 2F [14:46:01]Write i2c OK [14:46:01]MH_I2C_Read... [14:46:01]Read from MH i2c: F0 [14:46:01]MH_I2C_Read... [14:46:01]Read from MH i2c: F0 09 00 [14:46:01]MH_I2C_Read... [14:46:01]Read from MH i2c: F0 09 00 DE 62 00 AF E9 24 67 72 0D 1C 67 5D [14:46:01]GetLastDocTimeStamp 1730471596 [14:46:01]current date 1730472367 [14:46:01]FM_GetShiftState [14:46:01]SAM_PROTO_GetShiftState [14:46:01]wFMCommunicate request_size=4 [14:46:01]MH_SAM_APDU [14:46:01]CAPDU: 80 13 01 00 [14:46:01]Write to MH i2c: E2 08 00 DF 62 80 13 01 00 00 00 00 00 BE [14:46:01]Write i2c OK [14:46:01]MH_I2C_Read... [14:46:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:01]Read from MH i2c: E2 [14:46:01]MH_I2C_Read... [14:46:01]Read from MH i2c: E2 0E 00 [14:46:01]MH_I2C_Read... [14:46:01]Read from MH i2c: E2 0E 00 DF 62 00 09 00 01 89 19 24 67 00 00 00 00 90 00 F7 [14:46:01]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:46:01]wFMCommunicate OK [14:46:01]SAM_PROTO_GetShiftState done [14:46:01]FM_GetShiftState done [14:46:01]opened in 1730419081 [14:46:01]opened+sec_in_day 1730505481 [14:46:01]quantity*price = 9900 [14:46:01]sum+1 = 9901 [14:46:01]Check (price>sum+1) || (price+1 о реализуемом товаре [14:46:03]line ИТОГО: 99.00 [14:46:03]line НСП 1% : 0.88 [14:46:03]line НДС 12% : 10.51 [14:46:03]line Наличными: 99.00 [14:46:03]line Безнал.: 0.00 [14:46:03]line Место: АЗС № 101 "Партнер Нефть" [14:46:03]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:46:03]line СНО: Общий режим [14:46:03]line Чек 158 01.11.2024 14:46 [14:46:03]line Смена: 558 ФФД: 1.0 [14:46:03]line ЗНМ: 0300000081 [14:46:03]line РНМ: 0000000000091631 [14:46:03]line Версия ККМ: 001 [14:46:03]line ФМ: 0000000000874669 [14:46:03]line ФД: 139977 [14:46:03]line ФПД: 223884625909714 [14:46:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T144608&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139977&fm=223884625909714&tin=02508201610067®Number=0000000000091631&sum=9900 [14:46:04]line 0 [14:46:04]Connected sock=12 [14:46:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 39 01 00 00 16 DE 31 01 E1 DC 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 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 B0 E9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C9 22 02 00 35 04 06 00 CB 9F 33 99 17 D2 CA B4 C8 C9 BD 7F 10 A8 [14:46:04]written 0, free lines is 4095 [14:46:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 CB A9 47 00 4F 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C9 22 02 00 F4 03 04 00 5A 95 24 67 B6 04 01 00 00 CA 95 59 55 25 7C E8 63 [14:46:04]CommunicateWithHost err = 0 [14:46:04]CheckOFDResponse [14:46:04]1017 (14) - 77093643461234 [14:46:04]1041 (16) - 0000000000874669 [14:46:04]1040 (4) - 139977 [14:46:04]1012 (4) - 01.11.2024 08:46 [14:46:04]1206 (1) - 0 [14:46:04]OFD Sender: Remove packet 139977 [14:46:04]ProducePacketName [14:46:04]name=ofd_packets/00139977 [14:46:04]NVStorageDeleteData [14:46:04]Write to MH i2c: 01 00 00 1B 63 7E [14:46:04]Write i2c OK [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: 01 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: 01 07 00 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: 01 07 00 1B 63 00 00 00 00 00 08 0D 9A [14:46:04]RasterBufferAndPrint [14:46:04]line [14:46:04]line [14:46:04]line [14:46:04]line [14:46:04]line [14:46:04]written 0, free lines is 3345 [14:46:04]MH_Cut [14:46:04]Write to MH i2c: D1 01 00 22 63 01 57 [14:46:04]Write i2c OK [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: D1 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: D1 01 00 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: D1 01 00 22 63 00 56 [14:46:04]Write to MH i2c: 01 00 00 23 63 86 [14:46:04]Write i2c OK [14:46:04]MH_I2C_Read... [14:46:04]OFD Sender: No OFD packet to send [14:46:05]*** Cut start [14:46:05]*** Partial cut [14:46:05]*** CUTSNS_PIN = 1 [14:46:05]*** CUTSNS_PIN = 0 [14:46:05]*** Brake cut motor [14:46:05]Read from MH i2c: 01 [14:46:05]MH_I2C_Read... [14:46:05]*** Stop cut motor [14:46:05]*** Cut end [14:46:05]Read from MH i2c: 01 07 00 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: 01 07 00 23 63 00 00 00 00 00 FF 0F 9B [14:46:05]process_action close_receipt done [14:46:05]requested_data is exist [14:46:05]produce_requested_data [14:46:05]requested_item fm.sn is exist - process it [14:46:05]wFMCommunicate request_size=4 [14:46:05]MH_SAM_APDU [14:46:05]CAPDU: 80 11 00 00 [14:46:05]Write to MH i2c: E2 08 00 24 63 80 11 00 00 00 00 00 00 01 [14:46:05]Write i2c OK [14:46:05]MH_I2C_Read... [14:46:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:05]Read from MH i2c: E2 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 17 00 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 17 00 24 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5C [14:46:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:46:05]wFMCommunicate OK [14:46:05]requested_item fd.num is exist - process it [14:46:05]SAM_PROTO_GetFieldsCounters [14:46:05]wFMCommunicate request_size=4 [14:46:05]MH_SAM_APDU [14:46:05]CAPDU: 80 13 00 00 [14:46:05]Write to MH i2c: E2 08 00 25 63 80 13 00 00 00 00 00 00 04 [14:46:05]Write i2c OK [14:46:05]MH_I2C_Read... [14:46:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:05]Read from MH i2c: E2 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 62 00 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 62 00 25 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C9 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [14:46:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C9 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:05]wFMCommunicate OK [14:46:05]SAM_PROTO_GetFieldsCounters done [14:46:05]requested_item shift.num is exist - process it [14:46:05]requested_item shift.opened is exist - process it [14:46:05]req_shift_opened [14:46:05]FM_GetShiftState [14:46:05]SAM_PROTO_GetShiftState [14:46:05]wFMCommunicate request_size=4 [14:46:05]MH_SAM_APDU [14:46:05]CAPDU: 80 13 01 00 [14:46:05]Write to MH i2c: E2 08 00 26 63 80 13 01 00 00 00 00 00 06 [14:46:05]Write i2c OK [14:46:05]MH_I2C_Read... [14:46:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:06]Read from MH i2c: E2 [14:46:06]MH_I2C_Read... [14:46:06]Read from MH i2c: E2 0E 00 [14:46:06]MH_I2C_Read... [14:46:06]Read from MH i2c: E2 0E 00 26 63 00 09 00 01 89 19 24 67 00 00 00 00 90 00 3F [14:46:06]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:46:06]wFMCommunicate OK [14:46:06]SAM_PROTO_GetShiftState done [14:46:06]FM_GetShiftState done [14:46:06]req_shift_opened done [14:46:06]requested_item shift.open_date is exist - process it [14:46:06]req_shift_open_date [14:46:06]req_shift_open_date done [14:46:06]produce_requested_data done [14:46:06]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139977,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [14:46:06]process_action_free close_receipt [14:46:06]json_value_free [14:46:06]json_value_free done [14:46:06]process_json_proto returns [14:46:06]Send response to host [14:46:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139977,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [14:46:06]free response buf [14:46:06]execute_script done [14:46:06]execute_script returns [14:46:06]free content buf [14:46:06]Sock 7.Close socket [14:46:06]Sock 7.Thread stoped [14:46:09]OFD Sender: No OFD packet to send [14:46:14]OFD Sender: No OFD packet to send [14:46:19]OFD Sender: No OFD packet to send [14:46:24]OFD Sender: No OFD packet to send [14:46:29]OFD Sender: No OFD packet to send [14:46:34]OFD Sender: No OFD packet to send [14:46:39]OFD Sender: No OFD packet to send [14:46:44]OFD Sender: No OFD packet to send [14:46:49]OFD Sender: No OFD packet to send [14:46:54]OFD Sender: No OFD packet to send [14:46:59]OFD Sender: No OFD packet to send [14:47:04]OFD Sender: No OFD packet to send [14:47:09]OFD Sender: No OFD packet to send [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:29]OFD Sender: No OFD packet to send [14:47:34]OFD Sender: No OFD packet to send [14:47:39]OFD Sender: No OFD packet to send [14:47:44]OFD Sender: No OFD packet to send [14:47:49]OFD Sender: No OFD packet to send [14:47:54]OFD Sender: No OFD packet to send [14:47:59]OFD Sender: No OFD packet to send [14:48:04]OFD Sender: No OFD packet to send [14:48:09]OFD Sender: No OFD packet to send [14:48:14]OFD Sender: No OFD packet to send [14:48:19]OFD Sender: No OFD packet to send [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:44]OFD Sender: No OFD packet to send [14:49:49]OFD Sender: No OFD packet to send [14:49:54]OFD Sender: No OFD packet to send [14:49:59]OFD Sender: No OFD packet to send [14:50:04]OFD Sender: No OFD packet to send [14:50:09]OFD Sender: No OFD packet to send [14:50:10]ConnectInit Can't connect to host [14:50:14]OFD Sender: No OFD packet to send [14:50:19]OFD Sender: No OFD packet to send [14:50:24]OFD Sender: No OFD packet to send [14:50:29]OFD Sender: No OFD packet to send [14:50:34]OFD Sender: No OFD packet to send [14:50:39]OFD Sender: No OFD packet to send [14:50:44]OFD Sender: No OFD packet to send [14:50:49]OFD Sender: No OFD packet to send [14:50:54]OFD Sender: No OFD packet to send [14:50:59]OFD Sender: No OFD packet to send [14:51:04]OFD Sender: No OFD packet to send [14:51:09]OFD Sender: No OFD packet to send [14:51:14]OFD Sender: No OFD packet to send [14:51:19]OFD Sender: No OFD packet to send [14:51:24]OFD Sender: No OFD packet to send [14:51:29]OFD Sender: No OFD packet to send [14:51:34]OFD Sender: No OFD packet to send [14:51:39]OFD Sender: No OFD packet to send [14:51:44]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:25]OFD Sender: No OFD packet to send [14:52:30]OFD Sender: No OFD packet to send [14:52:35]OFD Sender: No OFD packet to send [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:44]accept exits with 10 [14:55:44]New connection [14:55:44]New thread 3066654052 created [14:55:44]Thread 3066510692 joined [14:55:44]Waiting for new connection... [14:55:44] Sock 10.Parse request [14:55:44]Sock 10.Check first char [14:55:44]Sock 10.First char is OK [14:55:44]request: POST /json_proto HTTP/1.0 [14:55:44]Method: POST [14:55:44]URL: /json_proto [14:55:44]Method is POST - this is cgi request [14:55:44]url: /json_proto [14:55:44]query_string will be loaded in cgi processing [14:55:44]execute_cgi json_proto POST (null) [14:55:44]execute_cgi path=json_proto method=POST [14:55:44]POST find Content-Length [14:55:44]Host: 172.17.50.196:8080 [14:55:44]Content-Length: 613 [14:55:44]Content-Type: application/json [14:55:44] [14:55:44]POST finish read [14:55:44]Found Content-Length = 613 [14:55:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335791", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:44]execute_script... [14:55:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335791", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:44]POST & json_proto [14:55:44]process_json_proto [14:55:44]json parsed OK: [14:55:44]protocol is kg_v1.0 [14:55:44]action value=close_receipt [14:55:44]process_action close_receipt [14:55:44]cmd_close_receipt [14:55:44]MH_GetDate [14:55:44]Write to MH i2c: F0 00 00 27 63 79 [14:55:44]Write i2c OK [14:55:44]MH_I2C_Read... [14:55:44]Read from MH i2c: F0 [14:55:44]MH_I2C_Read... [14:55:44]Read from MH i2c: F0 09 00 [14:55:44]MH_I2C_Read... [14:55:44]Read from MH i2c: F0 09 00 27 63 00 F7 EB 24 67 72 0D 1C 67 F1 [14:55:44]GetLastDocTimeStamp 1730472368 [14:55:44]current date 1730472951 [14:55:44]FM_GetShiftState [14:55:44]SAM_PROTO_GetShiftState [14:55:44]wFMCommunicate request_size=4 [14:55:44]MH_SAM_APDU [14:55:44]CAPDU: 80 13 01 00 [14:55:44]Write to MH i2c: E2 08 00 28 63 80 13 01 00 00 00 00 00 08 [14:55:44]Write i2c OK [14:55:44]MH_I2C_Read... [14:55:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:44]Read from MH i2c: E2 [14:55:44]MH_I2C_Read... [14:55:44]Read from MH i2c: E2 0E 00 [14:55:44]MH_I2C_Read... [14:55:44]Read from MH i2c: E2 0E 00 28 63 00 09 00 01 89 19 24 67 00 00 00 00 90 00 41 [14:55:44]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:55:44]wFMCommunicate OK [14:55:44]SAM_PROTO_GetShiftState done [14:55:44]FM_GetShiftState done [14:55:44]opened in 1730419081 [14:55:44]opened+sec_in_day 1730505481 [14:55:44]quantity*price = 15900 [14:55:44]sum+1 = 15901 [14:55:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 159.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 159 01.11.2024 14:55 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139978 ФПД: 220013906836124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T145551&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139978&fm=220013906836124&tin=02508201610067®Number=0000000000091631&sum=15900 0 [14:55:46]StoreToDocumentArchive [14:55:46]shift 558 fd 139978 [14:55:46]save to /storage/0558/doc_00139978 [14:55:46]save last doc name /storage/0558/doc_00139978 to /storage/kkm_last_doc_name [14:55:46]save OK [14:55:46]Clear old archive folders... [14:55:46]ProcessDocumentItem done err = 0, tmpTLVsize=265 [14:55:46]tlvbuf is 00B567B0 [14:55:46]SAM_PROTO_ClearQueue [14:55:46]wFMCommunicate request_size=4 [14:55:46]MH_SAM_APDU [14:55:46]CAPDU: 80 09 00 00 [14:55:46]Write to MH i2c: E2 08 00 35 63 80 09 00 00 00 00 00 00 0A [14:55:46]Write i2c OK [14:55:46]MH_I2C_Read... [14:55:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:46]Read from MH i2c: E2 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: E2 03 00 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: E2 03 00 35 63 00 90 00 0C [14:55:46]RAPDU: 90 00 [14:55:46]wFMCommunicate OK [14:55:46]SAM_PROTO_ClearQueue done [14:55:46]KKMCreateOFDPacket [14:55:46]OFDProtocolAddRootSTLVToBuf [14:55:46]FM_MakeSignedData [14:55:46]FM_MakeSignedData [14:55:46]SAM_PROTO_SignData [14:55:46]wFMCommunicate request_size=4 [14:55:46]MH_SAM_APDU [14:55:46]CAPDU: 80 0D 01 02 [14:55:46]Write to MH i2c: E2 08 00 36 63 80 0D 01 02 00 00 00 00 12 [14:55:46]Write i2c OK [14:55:46]MH_I2C_Read... [14:55:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:46]Read from MH i2c: E2 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: E2 03 00 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: E2 03 00 36 63 00 90 00 0D [14:55:46]RAPDU: 90 00 [14:55:46]wFMCommunicate OK [14:55:46]wFMCommunicate request_size=255 [14:55:46]MH_SAM_APDU [14:55:46]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 F7 EB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 [14:55:46]Write to MH i2c: E2 02 01 37 63 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 F7 EB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 00 00 7A [14:55:46]Write i2c OK [14:55:46]MH_I2C_Read... [14:55:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:46]Read from MH i2c: E2 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: E2 03 00 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: E2 03 00 37 63 00 90 00 0E [14:55:46]RAPDU: 90 00 [14:55:46]wFMCommunicate OK [14:55:46]wFMCommunicate request_size=24 [14:55:46]MH_SAM_APDU [14:55:46]CAPDU: 80 0D 02 02 13 39 10 04 04 00 CA 22 02 00 35 04 06 00 C8 19 FA C3 3A 9C [14:55:46]Write to MH i2c: E2 1B 00 38 63 80 0D 02 02 13 00 39 10 04 04 00 CA 22 02 00 35 04 06 00 C8 19 FA C3 3A 9C 00 00 2D [14:55:46]Write i2c OK [14:55:46]MH_I2C_Read... [14:55:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:46]Read from MH i2c: E2 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: E2 03 00 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: E2 03 00 38 63 00 90 00 0F [14:55:46]RAPDU: 90 00 [14:55:46]wFMCommunicate OK [14:55:46]wFMCommunicate request_size=4 [14:55:46]MH_SAM_APDU [14:55:46]CAPDU: 80 0D 03 02 [14:55:46]Write to MH i2c: E2 08 00 39 63 80 0D 03 02 00 00 00 00 17 [14:55:46]Write i2c OK [14:55:46]MH_I2C_Read... [14:55:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:46]Read from MH i2c: E2 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: E2 0B 00 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: E2 0B 00 39 63 00 A5 2C 8D 2A E5 D1 5B 54 90 00 05 [14:55:46]RAPDU: A5 2C 8D 2A E5 D1 5B 54 90 00 [14:55:46]wFMCommunicate OK [14:55:46]SAM_PROTO_SignData done [14:55:46]FM_MakeSignedData done [14:55:46]CreateOFDProtocolMessage [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 3A 63 80 11 00 00 00 00 00 00 17 [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 3A 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 72 [14:55:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:55:46]wFMCommunicate OK [14:55:46]CreateOFDProtocolMessage done [14:55:46]OFDSenderStorePacket 139978 [14:55:46]StoreOFDPacket docnum=139978 [14:55:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1D 01 00 00 35 AB 15 01 25 48 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 F7 EB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CA 22 02 00 35 04 06 00 C8 19 FA C3 3A 9C A5 2C 8D 2A E5 D1 5B 54 [14:55:46]CheckFolder [14:55:46]dirname=/storage/ofd_packets [14:55:46]CheckFolder done [14:55:46]ProducePacketName [14:55:46]name=ofd_packets/00139978 [14:55:46]NVStorageSaveData ofd_packets/00139978 [14:55:46]File name is /storage/ofd_packets/00139978 [14:55:46]Write 315 bytes [14:55:46]NVStorageSaveData done [14:55:46]OFDSenderStorePacket done [14:55:46]KKMCreateOFDPacket done [14:55:46]NVStorageSaveData kkm_last_timestamp [14:55:46]File name is /storage/kkm_last_timestamp [14:55:46]Write 4 bytes [14:55:46]NVStorageSaveData done [14:55:46]ExternCall_PrintAddStr [14:55:46]wPrintStart [14:55:46]Write to MH i2c: 01 00 00 3B 63 9E [14:55:46]Write i2c OK [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: 01 [14:55:46]MH_I2C_Read... [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 3B 63 00 00 00 00 00 FF 0F B3 [14:55:46]RasterBufferAndPrint [14:55:46]line Счет N : (3)335791 [14:55:46]line ИНН: 02508201610067 [14:55:46]line Контрольно-Кассовый Чек [14:55:46]line ПРОДАЖА [14:55:46]line Товар: 47803152 [14:55:46]line Сигареты Mevius Revo [14:55:46]line 1.000 * 159.00 [14:55:46]line = 159.00 [14:55:46]line НДС 12% НСП 1% [14:55:46]line > о реализуемом товаре [14:55:46]line ИТОГО: 159.00 [14:55:46]line НСП 1% : 1.41 [14:55:46]line НДС 12% : 16.88 [14:55:46]line Наличными: 159.00 [14:55:46]line Безнал.: 0.00 [14:55:46]line Место: АЗС № 101 "Партнер Нефть" [14:55:46]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:55:46]line СНО: Общий режим [14:55:46]line Чек 159 01.11.2024 14:55 [14:55:46]line Смена: 558 ФФД: 1.0 [14:55:46]line ЗНМ: 0300000081 [14:55:46]line РНМ: 0000000000091631 [14:55:46]line Версия ККМ: 001 [14:55:46]line ФМ: 0000000000874669 [14:55:46]line ФД: 139978 [14:55:46]line ФПД: 220013906836124 [14:55:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T145551&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139978&fm=220013906836124&tin=02508201610067®Number=0000000000091631&sum=15900 [14:55:46]OFD Sender: Processing packet 139978 [packets to send 34, broken 33] [14:55:46]ProducePacketName [14:55:46]name=ofd_packets/00139978 [14:55:46]OFD Sender: To server: pG, [14:55:46]CommunicateWithHost lk.salyk.kg:30040 [14:55:46]ConnectInit lk.salyk.kg [14:55:46]line 0 [14:55:46]written 0, free lines is 4095 [14:55:47]Connected sock=9 [14:55:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1D 01 00 00 35 AB 15 01 25 48 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 F7 EB 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CA 22 02 00 35 04 06 00 C8 19 FA C3 3A 9C A5 2C 8D 2A E5 D1 5B 54 [14:55:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 7F CA 47 00 9B E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CA 22 02 00 F4 03 04 00 A1 97 24 67 B6 04 01 00 00 98 18 AD DC EB 4B 0B DA [14:55:47]CommunicateWithHost err = 0 [14:55:47]CheckOFDResponse [14:55:47]1017 (14) - 77093643461234 [14:55:47]1041 (16) - 0000000000874669 [14:55:47]1040 (4) - 139978 [14:55:47]1012 (4) - 01.11.2024 08:56 [14:55:47]1206 (1) - 0 [14:55:47]OFD Sender: Remove packet 139978 [14:55:47]ProducePacketName [14:55:47]name=ofd_packets/00139978 [14:55:47]NVStorageDeleteData [14:55:47]Write to MH i2c: 01 00 00 63 63 C6 [14:55:47]Write i2c OK [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: 01 [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: 01 07 00 [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: 01 07 00 63 63 00 00 00 00 00 23 0D FD [14:55:47]RasterBufferAndPrint [14:55:47]line [14:55:47]line [14:55:47]line [14:55:47]line [14:55:47]line [14:55:47]written 0, free lines is 3372 [14:55:47]MH_Cut [14:55:47]Write to MH i2c: D1 01 00 6A 63 01 9F [14:55:47]Write i2c OK [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: D1 [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: D1 01 00 [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: D1 01 00 6A 63 00 9E [14:55:47]Write to MH i2c: 01 00 00 6B 63 CE [14:55:47]Write i2c OK [14:55:47]MH_I2C_Read... [14:55:47]OFD Sender: No OFD packet to send [14:55:48]*** Cut start [14:55:48]*** Partial cut [14:55:48]*** CUTSNS_PIN = 1 [14:55:48]*** CUTSNS_PIN = 0 [14:55:48]*** Brake cut motor [14:55:48]Read from MH i2c: 01 [14:55:48]MH_I2C_Read... [14:55:48]*** Stop cut motor [14:55:48]*** Cut end [14:55:48]Read from MH i2c: 01 07 00 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: 01 07 00 6B 63 00 00 00 00 00 FF 0F E3 [14:55:48]process_action close_receipt done [14:55:48]requested_data is exist [14:55:48]produce_requested_data [14:55:48]requested_item fm.sn is exist - process it [14:55:48]wFMCommunicate request_size=4 [14:55:48]MH_SAM_APDU [14:55:48]CAPDU: 80 11 00 00 [14:55:48]Write to MH i2c: E2 08 00 6C 63 80 11 00 00 00 00 00 00 49 [14:55:48]Write i2c OK [14:55:48]MH_I2C_Read... [14:55:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:48]Read from MH i2c: E2 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 17 00 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 17 00 6C 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A4 [14:55:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:55:48]wFMCommunicate OK [14:55:48]requested_item fd.num is exist - process it [14:55:48]SAM_PROTO_GetFieldsCounters [14:55:48]wFMCommunicate request_size=4 [14:55:48]MH_SAM_APDU [14:55:48]CAPDU: 80 13 00 00 [14:55:48]Write to MH i2c: E2 08 00 6D 63 80 13 00 00 00 00 00 00 4C [14:55:48]Write i2c OK [14:55:48]MH_I2C_Read... [14:55:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:48]Read from MH i2c: E2 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 62 00 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 62 00 6D 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 CA 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [14:55:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 CA 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:48]wFMCommunicate OK [14:55:48]SAM_PROTO_GetFieldsCounters done [14:55:48]requested_item shift.num is exist - process it [14:55:48]requested_item shift.opened is exist - process it [14:55:48]req_shift_opened [14:55:48]FM_GetShiftState [14:55:48]SAM_PROTO_GetShiftState [14:55:48]wFMCommunicate request_size=4 [14:55:48]MH_SAM_APDU [14:55:48]CAPDU: 80 13 01 00 [14:55:48]Write to MH i2c: E2 08 00 6E 63 80 13 01 00 00 00 00 00 4E [14:55:48]Write i2c OK [14:55:48]MH_I2C_Read... [14:55:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:48]Read from MH i2c: E2 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 0E 00 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 0E 00 6E 63 00 09 00 01 89 19 24 67 00 00 00 00 90 00 87 [14:55:48]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:55:48]wFMCommunicate OK [14:55:48]SAM_PROTO_GetShiftState done [14:55:48]FM_GetShiftState done [14:55:48]req_shift_opened done [14:55:48]requested_item shift.open_date is exist - process it [14:55:48]req_shift_open_date [14:55:48]req_shift_open_date done [14:55:48]produce_requested_data done [14:55:48]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139978,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [14:55:48]process_action_free close_receipt [14:55:48]json_value_free [14:55:48]json_value_free done [14:55:48]process_json_proto returns [14:55:48]Send response to host [14:55:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139978,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [14:55:48]free response buf [14:55:48]execute_script done [14:55:48]execute_script returns [14:55:48]free content buf [14:55:48]Sock 10.Close socket [14:55:48]Sock 10.Thread stoped [14:55:52]OFD Sender: No OFD packet to send [14:55:57]OFD Sender: No OFD packet to send [14:56:02]OFD Sender: No OFD packet to send [14:56:07]OFD Sender: No OFD packet to send [14:56:12]OFD Sender: No OFD packet to send [14:56:17]OFD Sender: No OFD packet to send [14:56:22]OFD Sender: No OFD packet to send [14:56:27]OFD Sender: No OFD packet to send [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:42]OFD Sender: No OFD packet to send [14:56:47]OFD Sender: No OFD packet to send [14:56:52]OFD Sender: No OFD packet to send [14:56:57]OFD Sender: No OFD packet to send [14:57:02]OFD Sender: No OFD packet to send [14:57:03]accept exits with 7 [14:57:03]New connection [14:57:03]New thread 3066510692 created [14:57:03]Thread 3066654052 joined [14:57:03]Waiting for new connection... [14:57:03] Sock 7.Parse request [14:57:03]Sock 7.Check first char [14:57:03]Sock 7.First char is OK [14:57:03]request: POST /json_proto HTTP/1.0 [14:57:03]Method: POST [14:57:03]URL: /json_proto [14:57:03]Method is POST - this is cgi request [14:57:03]url: /json_proto [14:57:03]query_string will be loaded in cgi processing [14:57:03]execute_cgi json_proto POST (null) [14:57:03]execute_cgi path=json_proto method=POST [14:57:03]POST find Content-Length [14:57:03]Host: 172.17.50.196:8080 [14:57:03]Content-Length: 881 [14:57:03]Content-Type: application/json [14:57:03] [14:57:03]POST finish read [14:57:03]Found Content-Length = 881 [14:57:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335792", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 447.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:03]execute_script... [14:57: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)335792", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 447.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:03]POST & json_proto [14:57:03]process_json_proto [14:57:03]json parsed OK: [14:57:03]protocol is kg_v1.0 [14:57:03]action value=close_receipt [14:57:03]process_action close_receipt [14:57:03]cmd_close_receipt [14:57:03]MH_GetDate [14:57:03]Write to MH i2c: F0 00 00 6F 63 C1 [14:57:03]Write i2c OK [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: F0 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: F0 09 00 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: F0 09 00 6F 63 00 45 EC 24 67 72 0D 1C 67 88 [14:57:03]GetLastDocTimeStamp 1730472951 [14:57:03]current date 1730473029 [14:57:03]FM_GetShiftState [14:57:03]SAM_PROTO_GetShiftState [14:57:03]wFMCommunicate request_size=4 [14:57:03]MH_SAM_APDU [14:57:03]CAPDU: 80 13 01 00 [14:57:03]Write to MH i2c: E2 08 00 70 63 80 13 01 00 00 00 00 00 50 [14:57:03]Write i2c OK [14:57:03]MH_I2C_Read... [14:57:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:03]Read from MH i2c: E2 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: E2 0E 00 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: E2 0E 00 70 63 00 09 00 01 89 19 24 67 00 00 00 00 90 00 89 [14:57:03]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:57:03]wFMCommunicate OK [14:57:03]SAM_PROTO_GetShiftState done [14:57:03]FM_GetShiftState done [14:57:03]opened in 1730419081 [14:57:03]opened+sec_in_day 1730505481 [14:57:03]quantity*price = 28800 [14:57:03]sum+1 = 28801 [14:57:03]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 90162602 Энерг напиток Red bull 0,25л 1.000 * 159.00 = 159.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 447.00 НСП 1% : 3.96 НДС 12% : 47.46 Наличными: 447.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 160 01.11.2024 14:57 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139979 ФПД: 134720317652916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T145709&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139979&fm=134720317652916&tin=02508201610067®Number=0000000000091631&sum=44700 0 [14:57:04]StoreToDocumentArchive [14:57:04]shift 558 fd 139979 [14:57:04]save to /storage/0558/doc_00139979 [14:57:04]save last doc name /storage/0558/doc_00139979 to /storage/kkm_last_doc_name [14:57:04]save OK [14:57:04]Clear old archive folders... [14:57:04]ProcessDocumentItem done err = 0, tmpTLVsize=379 [14:57:04]tlvbuf is 00A17D70 [14:57:04]SAM_PROTO_ClearQueue [14:57:04]wFMCommunicate request_size=4 [14:57:04]MH_SAM_APDU [14:57:04]CAPDU: 80 09 00 00 [14:57:04]Write to MH i2c: E2 08 00 7D 63 80 09 00 00 00 00 00 00 52 [14:57:04]Write i2c OK [14:57:04]MH_I2C_Read... [14:57:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:04]Read from MH i2c: E2 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 03 00 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 03 00 7D 63 00 90 00 54 [14:57:04]RAPDU: 90 00 [14:57:04]wFMCommunicate OK [14:57:04]SAM_PROTO_ClearQueue done [14:57:04]KKMCreateOFDPacket [14:57:04]OFDProtocolAddRootSTLVToBuf [14:57:04]FM_MakeSignedData [14:57:04]FM_MakeSignedData [14:57:04]SAM_PROTO_SignData [14:57:04]wFMCommunicate request_size=4 [14:57:04]MH_SAM_APDU [14:57:04]CAPDU: 80 0D 01 02 [14:57:04]Write to MH i2c: E2 08 00 7E 63 80 0D 01 02 00 00 00 00 5A [14:57:04]Write i2c OK [14:57:04]MH_I2C_Read... [14:57:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:04]Read from MH i2c: E2 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 03 00 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 03 00 7E 63 00 90 00 55 [14:57:04]RAPDU: 90 00 [14:57:04]wFMCommunicate OK [14:57:04]wFMCommunicate request_size=255 [14:57:04]MH_SAM_APDU [14:57:04]CAPDU: 80 0D 02 02 FA 03 00 7B 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 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 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C AE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 01 00 00 00 [14:57:04]Write to MH i2c: E2 02 01 7F 63 80 0D 02 02 FA 00 03 00 7B 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 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 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C AE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 01 00 00 00 00 00 61 [14:57:04]Write i2c OK [14:57:04]MH_I2C_Read... [14:57:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:04]Read from MH i2c: E2 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 03 00 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 03 00 7F 63 00 90 00 56 [14:57:04]RAPDU: 90 00 [14:57:04]wFMCommunicate OK [14:57:04]wFMCommunicate request_size=138 [14:57:04]MH_SAM_APDU [14:57:04]CAPDU: 80 0D 02 02 85 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 12 00 00 00 00 07 04 06 00 9C AE 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 45 EC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CB 22 02 00 35 04 06 00 7A 87 04 AD 7F B4 [14:57:04]Write to MH i2c: E2 8D 00 80 63 80 0D 02 02 85 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 12 00 00 00 00 07 04 06 00 9C AE 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 45 EC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CB 22 02 00 35 04 06 00 7A 87 04 AD 7F B4 00 00 DD [14:57:04]Write i2c OK [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 [14:57:04]MH_I2C_Read... [14:57:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:04]Read from MH i2c: E2 03 00 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 03 00 80 63 00 90 00 57 [14:57:04]RAPDU: 90 00 [14:57:04]wFMCommunicate OK [14:57:04]wFMCommunicate request_size=4 [14:57:04]MH_SAM_APDU [14:57:04]CAPDU: 80 0D 03 02 [14:57:04]Write to MH i2c: E2 08 00 81 63 80 0D 03 02 00 00 00 00 5F [14:57:04]Write i2c OK [14:57:04]MH_I2C_Read... [14:57:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:04]Read from MH i2c: E2 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 0B 00 [14:57:04]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 0B 00 81 63 00 C8 86 CB 5D 63 81 03 36 90 00 F3 [14:57:05]RAPDU: C8 86 CB 5D 63 81 03 36 90 00 [14:57:05]wFMCommunicate OK [14:57:05]SAM_PROTO_SignData done [14:57:05]FM_MakeSignedData done [14:57:05]CreateOFDProtocolMessage [14:57:05]wFMCommunicate request_size=4 [14:57:05]MH_SAM_APDU [14:57:05]CAPDU: 80 11 00 00 [14:57:05]Write to MH i2c: E2 08 00 82 63 80 11 00 00 00 00 00 00 5F [14:57:05]Write i2c OK [14:57:05]MH_I2C_Read... [14:57:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:05]Read from MH i2c: E2 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 17 00 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 17 00 82 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BA [14:57:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:57:05]wFMCommunicate OK [14:57:05]CreateOFDProtocolMessage done [14:57:05]OFDSenderStorePacket 139979 [14:57:05]StoreOFDPacket docnum=139979 [14:57:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 8F 01 00 00 A4 9D 87 01 F3 24 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 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 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C AE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 12 00 00 00 00 07 04 06 00 9C AE 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 45 EC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CB 22 02 00 35 04 06 00 7A 87 04 AD 7F B4 C8 86 CB 5D 63 81 03 36 [14:57:05]CheckFolder [14:57:05]dirname=/storage/ofd_packets [14:57:05]CheckFolder done [14:57:05]ProducePacketName [14:57:05]name=ofd_packets/00139979 [14:57:05]NVStorageSaveData ofd_packets/00139979 [14:57:05]File name is /storage/ofd_packets/00139979 [14:57:05]Write 429 bytes [14:57:05]NVStorageSaveData done [14:57:05]OFDSenderStorePacket done [14:57:05]KKMCreateOFDPacket done [14:57:05]NVStorageSaveData kkm_last_timestamp [14:57:05]File name is /storage/kkm_last_timestamp [14:57:05]Write 4 bytes [14:57:05]NVStorageSaveData done [14:57:05]ExternCall_PrintAddStr [14:57:05]wPrintStart [14:57:05]Write to MH i2c: 01 00 00 83 63 E6 [14:57:05]Write i2c OK [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: 01 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: 01 07 00 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: 01 07 00 83 63 00 00 00 00 00 FF 0F FB [14:57:05]RasterBufferAndPrint [14:57:05]line Счет N : (3)335792 [14:57:05]line ИНН: 02508201610067 [14:57:05]line Контрольно-Кассовый Чек [14:57:05]line ПРОДАЖА [14:57:05]line Товар: 47802995 [14:57:05]line Сигареты Winston XS Silver [14:57:05]line 2.000 * 144.00 [14:57:05]line = 288.00 [14:57:05]line НДС 12% НСП 1% [14:57:05]line > о реализуемом товаре [14:57:05]line Товар: 90162602 [14:57:05]line Энерг напиток Red bull 0,25л [14:57:05]line 1.000 * 159.00 [14:57:05]line = 159.00 [14:57:05]line НДС 12% НСП 1% [14:57:05]line > о реализуемом товаре [14:57:05]line ИТОГО: 447.00 [14:57:05]line НСП 1% : 3.96 [14:57:05]line НДС 12% : 47.46 [14:57:05]line Наличными: 447.00 [14:57:05]line Безнал.: 0.00 [14:57:05]line Место: АЗС № 101 "Партнер Нефть" [14:57:05]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:57:05]line СНО: Общий режим [14:57:05]line Чек 160 01.11.2024 14:57 [14:57:05]line Смена: 558 ФФД: 1.0 [14:57:05]line ЗНМ: 0300000081 [14:57:05]line РНМ: 0000000000091631 [14:57:05]line Версия ККМ: 001 [14:57:05]line ФМ: 0000000000874669 [14:57:05]line ФД: 139979 [14:57:05]line ФПД: 134720317652916 [14:57:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T145709&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139979&fm=134720317652916&tin=02508201610067®Number=0000000000091631&sum=44700 [14:57:05]line 0 [14:57:05]OFD Sender: Processing packet 139979 [packets to send 34, broken 33] [14:57:05]ProducePacketName [14:57:05]name=ofd_packets/00139979 [14:57:05]OFD Sender: To server: pG, [14:57:05]CommunicateWithHost lk.salyk.kg:30040 [14:57:05]ConnectInit lk.salyk.kg [14:57:05]written 0, free lines is 4095 [14:57:05]Connected sock=10 [14:57:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 8F 01 00 00 A4 9D 87 01 F3 24 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 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 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C AE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 12 00 00 00 00 07 04 06 00 9C AE 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 45 EC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CB 22 02 00 35 04 06 00 7A 87 04 AD 7F B4 C8 86 CB 5D 63 81 03 36 [14:57:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 47 D9 47 00 6E 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CB 22 02 00 F4 03 04 00 F0 97 24 67 B6 04 01 00 00 53 63 E3 5D 21 B9 86 A0 [14:57:05]CommunicateWithHost err = 0 [14:57:05]CheckOFDResponse [14:57:05]1017 (14) - 77093643461234 [14:57:05]1041 (16) - 0000000000874669 [14:57:05]1040 (4) - 139979 [14:57:05]1012 (4) - 01.11.2024 08:57 [14:57:05]1206 (1) - 0 [14:57:05]OFD Sender: Remove packet 139979 [14:57:05]ProducePacketName [14:57:05]name=ofd_packets/00139979 [14:57:05]NVStorageDeleteData [14:57:05]Write to MH i2c: 01 00 00 B1 63 14 [14:57:05]Write i2c OK [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: 01 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: 01 07 00 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: 01 07 00 B1 63 00 00 00 00 00 C9 0C F0 [14:57:05]RasterBufferAndPrint [14:57:05]line [14:57:05]line [14:57:05]line [14:57:05]line [14:57:05]line [14:57:05]written 0, free lines is 3282 [14:57:05]MH_Cut [14:57:05]Write to MH i2c: D1 01 00 B8 63 01 ED [14:57:05]Write i2c OK [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: D1 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: D1 01 00 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: D1 01 00 B8 63 00 EC [14:57:05]Write to MH i2c: 01 00 00 B9 63 1C [14:57:05]Write i2c OK [14:57:05]MH_I2C_Read... [14:57:06]OFD Sender: No OFD packet to send [14:57:06]*** Cut start [14:57:06]*** Partial cut [14:57:06]*** CUTSNS_PIN = 1 [14:57:06]*** CUTSNS_PIN = 0 [14:57:06]*** Brake cut motor [14:57:07]Read from MH i2c: 01 [14:57:07]MH_I2C_Read... [14:57:07]*** Stop cut motor [14:57:07]*** Cut end [14:57:07]Read from MH i2c: 01 07 00 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: 01 07 00 B9 63 00 00 00 00 00 FF 0F 31 [14:57:07]process_action close_receipt done [14:57:07]requested_data is exist [14:57:07]produce_requested_data [14:57:07]requested_item fm.sn is exist - process it [14:57:07]wFMCommunicate request_size=4 [14:57:07]MH_SAM_APDU [14:57:07]CAPDU: 80 11 00 00 [14:57:07]Write to MH i2c: E2 08 00 BA 63 80 11 00 00 00 00 00 00 97 [14:57:07]Write i2c OK [14:57:07]MH_I2C_Read... [14:57:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:07]Read from MH i2c: E2 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: E2 17 00 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: E2 17 00 BA 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F2 [14:57:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:57:07]wFMCommunicate OK [14:57:07]requested_item fd.num is exist - process it [14:57:07]SAM_PROTO_GetFieldsCounters [14:57:07]wFMCommunicate request_size=4 [14:57:07]MH_SAM_APDU [14:57:07]CAPDU: 80 13 00 00 [14:57:07]Write to MH i2c: E2 08 00 BB 63 80 13 00 00 00 00 00 00 9A [14:57:07]Write i2c OK [14:57:07]MH_I2C_Read... [14:57:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:07]Read from MH i2c: E2 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: E2 62 00 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: E2 62 00 BB 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 CB 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [14:57:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 CB 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:07]wFMCommunicate OK [14:57:07]SAM_PROTO_GetFieldsCounters done [14:57:07]requested_item shift.num is exist - process it [14:57:07]requested_item shift.opened is exist - process it [14:57:07]req_shift_opened [14:57:07]FM_GetShiftState [14:57:07]SAM_PROTO_GetShiftState [14:57:07]wFMCommunicate request_size=4 [14:57:07]MH_SAM_APDU [14:57:07]CAPDU: 80 13 01 00 [14:57:07]Write to MH i2c: E2 08 00 BC 63 80 13 01 00 00 00 00 00 9C [14:57:07]Write i2c OK [14:57:07]MH_I2C_Read... [14:57:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:07]Read from MH i2c: E2 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: E2 0E 00 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: E2 0E 00 BC 63 00 09 00 01 89 19 24 67 00 00 00 00 90 00 D5 [14:57:07]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:57:07]wFMCommunicate OK [14:57:07]SAM_PROTO_GetShiftState done [14:57:07]FM_GetShiftState done [14:57:07]req_shift_opened done [14:57:07]requested_item shift.open_date is exist - process it [14:57:07]req_shift_open_date [14:57:07]req_shift_open_date done [14:57:07]produce_requested_data done [14:57:07]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139979,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [14:57:07]process_action_free close_receipt [14:57:07]json_value_free [14:57:07]json_value_free done [14:57:07]process_json_proto returns [14:57:07]Send response to host [14:57:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139979,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [14:57:07]free response buf [14:57:07]execute_script done [14:57:07]execute_script returns [14:57:07]free content buf [14:57:07]Sock 7.Close socket [14:57:07]Sock 7.Thread stoped [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:06]OFD Sender: No OFD packet to send [14:59:11]OFD Sender: No OFD packet to send [14:59:15]accept exits with 9 [14:59:15]New connection [14:59:15]New thread 3066654052 created [14:59:15]Thread 3066510692 joined [14:59:15]Waiting for new connection... [14:59:15] Sock 9.Parse request [14:59:15]Sock 9.Check first char [14:59:15]Sock 9.First char is OK [14:59:15]request: POST /json_proto HTTP/1.0 [14:59:15]Method: POST [14:59:15]URL: /json_proto [14:59:15]Method is POST - this is cgi request [14:59:15]url: /json_proto [14:59:15]query_string will be loaded in cgi processing [14:59:15]execute_cgi json_proto POST (null) [14:59:15]execute_cgi path=json_proto method=POST [14:59:15]POST find Content-Length [14:59:15]Host: 172.17.50.196:8080 [14:59:15]Content-Length: 945 [14:59:15]Content-Type: application/json [14:59:15] [14:59:15]POST finish read [14:59:15]Found Content-Length = 945 [14:59:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335793", "tax_sys" : 0, "items" : [ { "code": "4602606003728", "name": "\u041C\u0430\u0440-\u0434 Fruit-tella \u0437\u043C\u0435\u0438 XXL 30*70\u0433", "price" : 103.00, "quantity" : 1.000, "sum" : 103.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8691216090453", "name": "\u0416\u0435\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 HARIBO Chervyachki ", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 203.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:15]execute_script... [14:59: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)335793", "tax_sys" : 0, "items" : [ { "code": "4602606003728", "name": "\u041C\u0430\u0440-\u0434 Fruit-tella \u0437\u043C\u0435\u0438 XXL 30*70\u0433", "price" : 103.00, "quantity" : 1.000, "sum" : 103.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8691216090453", "name": "\u0416\u0435\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 HARIBO Chervyachki ", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 203.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:15]POST & json_proto [14:59:15]process_json_proto [14:59:15]json parsed OK: [14:59:15]protocol is kg_v1.0 [14:59:15]action value=close_receipt [14:59:15]process_action close_receipt [14:59:15]cmd_close_receipt [14:59:15]MH_GetDate [14:59:15]Write to MH i2c: F0 00 00 BD 63 0F [14:59:15]Write i2c OK [14:59:15]MH_I2C_Read... [14:59:15]Read from MH i2c: F0 [14:59:15]MH_I2C_Read... [14:59:15]Read from MH i2c: F0 09 00 [14:59:15]MH_I2C_Read... [14:59:15]Read from MH i2c: F0 09 00 BD 63 00 C9 EC 24 67 72 0D 1C 67 5A [14:59:15]GetLastDocTimeStamp 1730473029 [14:59:15]current date 1730473161 [14:59:15]FM_GetShiftState [14:59:15]SAM_PROTO_GetShiftState [14:59:15]wFMCommunicate request_size=4 [14:59:15]MH_SAM_APDU [14:59:15]CAPDU: 80 13 01 00 [14:59:15]Write to MH i2c: E2 08 00 BE 63 80 13 01 00 00 00 00 00 9E [14:59:15]Write i2c OK [14:59:15]MH_I2C_Read... [14:59:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:15]Read from MH i2c: E2 [14:59:15]MH_I2C_Read... [14:59:15]Read from MH i2c: E2 0E 00 [14:59:15]MH_I2C_Read... [14:59:15]Read from MH i2c: E2 0E 00 BE 63 00 09 00 01 89 19 24 67 00 00 00 00 90 00 D7 [14:59:15]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:59:15]wFMCommunicate OK [14:59:15]SAM_PROTO_GetShiftState done [14:59:15]FM_GetShiftState done [14:59:15]opened in 1730419081 [14:59:15]opened+sec_in_day 1730505481 [14:59:15]quantity*price = 10300 [14:59:15]sum+1 = 10301 [14:59:15]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8691216090453 Жевательный мармелад HARIBO Chervyachki 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 203.00 НСП 1% : 1.79 НДС 12% : 21.56 Наличными: 203.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 161 01.11.2024 14:59 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139980 ФПД: 71005868273336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T145921&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139980&fm=71005868273336&tin=02508201610067®Number=0000000000091631&sum=20300 0 [14:59:16]StoreToDocumentArchive [14:59:16]shift 558 fd 139980 [14:59:16]save to /storage/0558/doc_00139980 [14:59:16]save last doc name /storage/0558/doc_00139980 to /storage/kkm_last_doc_name [14:59:16]save OK [14:59:16]Clear old archive folders... [14:59:16]ProcessDocumentItem done err = 0, tmpTLVsize=415 [14:59:16]tlvbuf is 00BC4E80 [14:59:16]SAM_PROTO_ClearQueue [14:59:16]wFMCommunicate request_size=4 [14:59:16]MH_SAM_APDU [14:59:16]CAPDU: 80 09 00 00 [14:59:16]Write to MH i2c: E2 08 00 CB 63 80 09 00 00 00 00 00 00 A0 [14:59:16]Write i2c OK [14:59:16]MH_I2C_Read... [14:59:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:16]Read from MH i2c: E2 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: E2 03 00 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: E2 03 00 CB 63 00 90 00 A2 [14:59:16]RAPDU: 90 00 [14:59:16]wFMCommunicate OK [14:59:16]SAM_PROTO_ClearQueue done [14:59:16]KKMCreateOFDPacket [14:59:16]OFDProtocolAddRootSTLVToBuf [14:59:16]FM_MakeSignedData [14:59:16]FM_MakeSignedData [14:59:16]SAM_PROTO_SignData [14:59:16]wFMCommunicate request_size=4 [14:59:16]MH_SAM_APDU [14:59:16]CAPDU: 80 0D 01 02 [14:59:16]Write to MH i2c: E2 08 00 CC 63 80 0D 01 02 00 00 00 00 A8 [14:59:16]Write i2c OK [14:59:16]MH_I2C_Read... [14:59:16]OFD Sender: No OFD packet to send [14:59:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:16]Read from MH i2c: E2 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: E2 03 00 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: E2 03 00 CC 63 00 90 00 A3 [14:59:16]RAPDU: 90 00 [14:59:16]wFMCommunicate OK [14:59:16]wFMCommunicate request_size=255 [14:59:16]MH_SAM_APDU [14:59:16]CAPDU: 80 0D 02 02 FA 03 00 9F 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 36 30 36 30 30 33 37 32 38 06 04 2A 00 D0 9C D0 B0 D1 80 2D D0 B4 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D0 B7 D0 BC D0 B5 D0 B8 20 58 58 4C 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 23 04 7F 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 35 33 06 04 3B 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 43 68 65 72 76 79 61 63 68 6B 69 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC [14:59:16]Write to MH i2c: E2 02 01 CD 63 80 0D 02 02 FA 00 03 00 9F 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 36 30 36 30 30 33 37 32 38 06 04 2A 00 D0 9C D0 B0 D1 80 2D D0 B4 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D0 B7 D0 BC D0 B5 D0 B8 20 58 58 4C 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 23 04 7F 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 35 33 06 04 3B 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 43 68 65 72 76 79 61 63 68 6B 69 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 00 00 E2 [14:59:16]Write i2c OK [14:59:16]MH_I2C_Read... [14:59:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:16]Read from MH i2c: E2 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: E2 03 00 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: E2 03 00 CD 63 00 90 00 A4 [14:59:16]RAPDU: 90 00 [14:59:16]wFMCommunicate OK [14:59:16]wFMCommunicate request_size=174 [14:59:16]MH_SAM_APDU [14:59:16]CAPDU: 80 0D 02 02 A9 04 01 00 01 FC 03 06 00 4C 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 08 00 00 00 00 07 04 06 00 4C 4F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 C9 EC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CC 22 02 00 35 04 06 00 40 94 57 8E 2E B8 [14:59:16]Write to MH i2c: E2 B1 00 CE 63 80 0D 02 02 A9 00 04 01 00 01 FC 03 06 00 4C 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 08 00 00 00 00 07 04 06 00 4C 4F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 C9 EC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CC 22 02 00 35 04 06 00 40 94 57 8E 2E B8 00 00 45 [14:59:16]Write i2c OK [14:59:16]MH_I2C_Read... [14:59:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:16]Read from MH i2c: E2 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: E2 03 00 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: E2 03 00 CE 63 00 90 00 A5 [14:59:16]RAPDU: 90 00 [14:59:16]wFMCommunicate OK [14:59:16]wFMCommunicate request_size=4 [14:59:16]MH_SAM_APDU [14:59:16]CAPDU: 80 0D 03 02 [14:59:16]Write to MH i2c: E2 08 00 CF 63 80 0D 03 02 00 00 00 00 AD [14:59:16]Write i2c OK [14:59:16]MH_I2C_Read... [14:59:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:16]Read from MH i2c: E2 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: E2 0B 00 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: E2 0B 00 CF 63 00 8C 17 5B 36 37 A4 6F 2E 90 00 5A [14:59:16]RAPDU: 8C 17 5B 36 37 A4 6F 2E 90 00 [14:59:16]wFMCommunicate OK [14:59:16]SAM_PROTO_SignData done [14:59:16]FM_MakeSignedData done [14:59:16]CreateOFDProtocolMessage [14:59:16]wFMCommunicate request_size=4 [14:59:16]MH_SAM_APDU [14:59:16]CAPDU: 80 11 00 00 [14:59:16]Write to MH i2c: E2 08 00 D0 63 80 11 00 00 00 00 00 00 AD [14:59:16]Write i2c OK [14:59:16]MH_I2C_Read... [14:59:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:16]Read from MH i2c: E2 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: E2 17 00 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: E2 17 00 D0 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 08 [14:59:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:59:16]wFMCommunicate OK [14:59:16]CreateOFDProtocolMessage done [14:59:16]OFDSenderStorePacket 139980 [14:59:16]StoreOFDPacket docnum=139980 [14:59:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B3 01 00 00 89 86 AB 01 75 6B 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 36 30 36 30 30 33 37 32 38 06 04 2A 00 D0 9C D0 B0 D1 80 2D D0 B4 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D0 B7 D0 BC D0 B5 D0 B8 20 58 58 4C 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 23 04 7F 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 35 33 06 04 3B 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 43 68 65 72 76 79 61 63 68 6B 69 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 08 00 00 00 00 07 04 06 00 4C 4F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 C9 EC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CC 22 02 00 35 04 06 00 40 94 57 8E 2E B8 8C 17 5B 36 37 A4 6F 2E [14:59:16]CheckFolder [14:59:16]dirname=/storage/ofd_packets [14:59:16]CheckFolder done [14:59:16]ProducePacketName [14:59:16]name=ofd_packets/00139980 [14:59:16]NVStorageSaveData ofd_packets/00139980 [14:59:16]File name is /storage/ofd_packets/00139980 [14:59:16]Write 465 bytes [14:59:16]NVStorageSaveData done [14:59:16]OFDSenderStorePacket done [14:59:16]KKMCreateOFDPacket done [14:59:16]NVStorageSaveData kkm_last_timestamp [14:59:16]File name is /storage/kkm_last_timestamp [14:59:16]Write 4 bytes [14:59:16]NVStorageSaveData done [14:59:16]ExternCall_PrintAddStr [14:59:16]wPrintStart [14:59:16]Write to MH i2c: 01 00 00 D1 63 34 [14:59:16]Write i2c OK [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: 01 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: 01 07 00 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: 01 07 00 D1 63 00 00 00 00 00 FF 0F 49 [14:59:16]RasterBufferAndPrint [14:59:16]line Счет N : (3)335793 [14:59:16]line ИНН: 02508201610067 [14:59:16]line Контрольно-Кассовый Чек [14:59:16]line ПРОДАЖА [14:59:16]line Товар: 4602606003728 [14:59:16]line Мар-д Fruit-tella змеи XXL 30*70г [14:59:16]line 1.000 * 103.00 [14:59:16]line = 103.00 [14:59:16]line НДС 12% НСП 1% [14:59:17]line > о реализуемом товаре [14:59:17]line Товар: 8691216090453 [14:59:17]line Жевательный мармелад HARIBO Chervyachki [14:59:17]line 1.000 * 100.00 [14:59:17]line = 100.00 [14:59:17]line НДС 12% НСП 1% [14:59:17]line > о реализуемом товаре [14:59:17]line ИТОГО: 203.00 [14:59:17]line НСП 1% : 1.79 [14:59:17]line НДС 12% : 21.56 [14:59:17]line Наличными: 203.00 [14:59:17]line Безнал.: 0.00 [14:59:17]line Место: АЗС № 101 "Партнер Нефть" [14:59:17]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:59:17]line СНО: Общий режим [14:59:17]line Чек 161 01.11.2024 14:59 [14:59:17]line Смена: 558 ФФД: 1.0 [14:59:17]line ЗНМ: 0300000081 [14:59:17]line РНМ: 0000000000091631 [14:59:17]line Версия ККМ: 001 [14:59:17]line ФМ: 0000000000874669 [14:59:17]line ФД: 139980 [14:59:17]line ФПД: 71005868273336 [14:59:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T145921&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139980&fm=71005868273336&tin=02508201610067®Number=0000000000091631&sum=20300 [14:59:17]line 0 [14:59:17]OFD Sender: Processing packet 139980 [packets to send 34, broken 33] [14:59:17]ProducePacketName [14:59:17]name=ofd_packets/00139980 [14:59:17]OFD Sender: To server: pG, [14:59:17]CommunicateWithHost lk.salyk.kg:30040 [14:59:17]ConnectInit lk.salyk.kg [14:59:17]written 0, free lines is 4095 [14:59:17]Connected sock=7 [14:59:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B3 01 00 00 89 86 AB 01 75 6B 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 36 30 36 30 30 33 37 32 38 06 04 2A 00 D0 9C D0 B0 D1 80 2D D0 B4 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D0 B7 D0 BC D0 B5 D0 B8 20 58 58 4C 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 23 04 7F 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 35 33 06 04 3B 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 43 68 65 72 76 79 61 63 68 6B 69 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 08 00 00 00 00 07 04 06 00 4C 4F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 C9 EC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CC 22 02 00 35 04 06 00 40 94 57 8E 2E B8 8C 17 5B 36 37 A4 6F 2E [14:59:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 8C 2D 47 00 1F 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CC 22 02 00 F4 03 04 00 74 98 24 67 B6 04 01 00 00 64 A6 29 DA 01 4B BB F6 [14:59:17]CommunicateWithHost err = 0 [14:59:17]CheckOFDResponse [14:59:17]1017 (14) - 77093643461234 [14:59:17]1041 (16) - 0000000000874669 [14:59:17]1040 (4) - 139980 [14:59:17]1012 (4) - 01.11.2024 08:59 [14:59:17]1206 (1) - 0 [14:59:17]OFD Sender: Remove packet 139980 [14:59:17]ProducePacketName [14:59:17]name=ofd_packets/00139980 [14:59:17]NVStorageDeleteData [14:59:17]Write to MH i2c: 01 00 00 01 64 65 [14:59:17]Write i2c OK [14:59:17]MH_I2C_Read... [14:59:17]Read from MH i2c: 01 [14:59:17]MH_I2C_Read... [14:59:17]Read from MH i2c: 01 07 00 [14:59:17]MH_I2C_Read... [14:59:17]Read from MH i2c: 01 07 00 01 64 00 00 00 00 00 C0 0C 38 [14:59:17]RasterBufferAndPrint [14:59:17]line [14:59:17]line [14:59:17]line [14:59:17]line [14:59:17]line [14:59:17]written 0, free lines is 3273 [14:59:17]MH_Cut [14:59:17]Write to MH i2c: D1 01 00 08 64 01 3E [14:59:17]Write i2c OK [14:59:17]MH_I2C_Read... [14:59:17]Read from MH i2c: D1 [14:59:17]MH_I2C_Read... [14:59:17]Read from MH i2c: D1 01 00 [14:59:17]MH_I2C_Read... [14:59:17]Read from MH i2c: D1 01 00 08 64 00 3D [14:59:17]Write to MH i2c: 01 00 00 09 64 6D [14:59:17]Write i2c OK [14:59:17]MH_I2C_Read... [14:59:18]OFD Sender: No OFD packet to send [14:59:18]*** Cut start [14:59:18]*** Partial cut [14:59:18]*** CUTSNS_PIN = 1 [14:59:18]*** CUTSNS_PIN = 0 [14:59:18]*** Brake cut motor [14:59:19]Read from MH i2c: 01 [14:59:19]MH_I2C_Read... [14:59:19]*** Stop cut motor [14:59:19]*** Cut end [14:59:19]Read from MH i2c: 01 07 00 [14:59:19]MH_I2C_Read... [14:59:19]Read from MH i2c: 01 07 00 09 64 00 00 00 00 00 FF 0F 82 [14:59:19]process_action close_receipt done [14:59:19]requested_data is exist [14:59:19]produce_requested_data [14:59:19]requested_item fm.sn is exist - process it [14:59:19]wFMCommunicate request_size=4 [14:59:19]MH_SAM_APDU [14:59:19]CAPDU: 80 11 00 00 [14:59:19]Write to MH i2c: E2 08 00 0A 64 80 11 00 00 00 00 00 00 E8 [14:59:19]Write i2c OK [14:59:19]MH_I2C_Read... [14:59:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:19]Read from MH i2c: E2 [14:59:19]MH_I2C_Read... [14:59:19]Read from MH i2c: E2 17 00 [14:59:19]MH_I2C_Read... [14:59:19]Read from MH i2c: E2 17 00 0A 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 43 [14:59:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:59:19]wFMCommunicate OK [14:59:19]requested_item fd.num is exist - process it [14:59:19]SAM_PROTO_GetFieldsCounters [14:59:19]wFMCommunicate request_size=4 [14:59:19]MH_SAM_APDU [14:59:19]CAPDU: 80 13 00 00 [14:59:19]Write to MH i2c: E2 08 00 0B 64 80 13 00 00 00 00 00 00 EB [14:59:19]Write i2c OK [14:59:19]MH_I2C_Read... [14:59:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:19]Read from MH i2c: E2 [14:59:19]MH_I2C_Read... [14:59:19]Read from MH i2c: E2 62 00 [14:59:19]MH_I2C_Read... [14:59:19]Read from MH i2c: E2 62 00 0B 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 CC 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [14:59:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 CC 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:19]wFMCommunicate OK [14:59:19]SAM_PROTO_GetFieldsCounters done [14:59:19]requested_item shift.num is exist - process it [14:59:19]requested_item shift.opened is exist - process it [14:59:19]req_shift_opened [14:59:19]FM_GetShiftState [14:59:19]SAM_PROTO_GetShiftState [14:59:19]wFMCommunicate request_size=4 [14:59:19]MH_SAM_APDU [14:59:19]CAPDU: 80 13 01 00 [14:59:19]Write to MH i2c: E2 08 00 0C 64 80 13 01 00 00 00 00 00 ED [14:59:19]Write i2c OK [14:59:19]MH_I2C_Read... [14:59:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:19]Read from MH i2c: E2 [14:59:19]MH_I2C_Read... [14:59:19]Read from MH i2c: E2 0E 00 [14:59:19]MH_I2C_Read... [14:59:19]Read from MH i2c: E2 0E 00 0C 64 00 09 00 01 89 19 24 67 00 00 00 00 90 00 26 [14:59:19]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [14:59:19]wFMCommunicate OK [14:59:19]SAM_PROTO_GetShiftState done [14:59:19]FM_GetShiftState done [14:59:19]req_shift_opened done [14:59:19]requested_item shift.open_date is exist - process it [14:59:19]req_shift_open_date [14:59:19]req_shift_open_date done [14:59:19]produce_requested_data done [14:59:19]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139980,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [14:59:19]process_action_free close_receipt [14:59:19]json_value_free [14:59:19]json_value_free done [14:59:19]process_json_proto returns [14:59:19]Send response to host [14:59:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139980,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [14:59:19]free response buf [14:59:19]execute_script done [14:59:19]execute_script returns [14:59:19]free content buf [14:59:19]Sock 9.Close socket [14:59:19]Sock 9.Thread stoped [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:33]OFD Sender: No OFD packet to send [14:59:38]OFD Sender: No OFD packet to send [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:33]OFD Sender: No OFD packet to send [15:00:38]OFD Sender: No OFD packet to send [15:00:43]OFD Sender: No OFD packet to send [15:00:48]OFD Sender: No OFD packet to send [15:00:53]OFD Sender: No OFD packet to send [15:00:58]OFD Sender: No OFD packet to send [15:01:03]OFD Sender: No OFD packet to send [15:01:08]OFD Sender: No OFD packet to send [15:01:13]OFD Sender: No OFD packet to send [15:01:18]OFD Sender: No OFD packet to send [15:01:23]OFD Sender: No OFD packet to send [15:01:28]OFD Sender: No OFD packet to send [15:01:33]OFD Sender: No OFD packet to send [15:01:38]OFD Sender: No OFD packet to send [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:08]OFD Sender: No OFD packet to send [15:02:13]OFD Sender: No OFD packet to send [15:02:18]OFD Sender: No OFD packet to send [15:02:22]accept exits with 10 [15:02:22]New connection [15:02:22]New thread 3066510692 created [15:02:22]Thread 3066654052 joined [15:02:22]Waiting for new connection... [15:02:22] Sock 10.Parse request [15:02:22]Sock 10.Check first char [15:02:22]Sock 10.First char is OK [15:02:22]request: POST /json_proto HTTP/1.0 [15:02:22]Method: POST [15:02:22]URL: /json_proto [15:02:22]Method is POST - this is cgi request [15:02:22]url: /json_proto [15:02:22]query_string will be loaded in cgi processing [15:02:22]execute_cgi json_proto POST (null) [15:02:22]execute_cgi path=json_proto method=POST [15:02:22]POST find Content-Length [15:02:22]Host: 172.17.50.196:8080 [15:02:22]Content-Length: 1289 [15:02:22]Content-Type: application/json [15:02:22] [15:02:22]POST finish read [15:02:22]Found Content-Length = 1289 [15:02:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335795", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 2.000, "sum" : 320.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870216764968", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Torquoise Selectio", "price" : 141.00, "quantity" : 10.000, "sum" : 1410.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1995.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:22]execute_script... [15:02: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)335795", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 2.000, "sum" : 320.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870216764968", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Torquoise Selectio", "price" : 141.00, "quantity" : 10.000, "sum" : 1410.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1995.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:22]POST & json_proto [15:02:22]process_json_proto [15:02:22]json parsed OK: [15:02:22]protocol is kg_v1.0 [15:02:22]action value=close_receipt [15:02:22]process_action close_receipt [15:02:22]cmd_close_receipt [15:02:22]MH_GetDate [15:02:22]Write to MH i2c: F0 00 00 0D 64 60 [15:02:22]Write i2c OK [15:02:22]MH_I2C_Read... [15:02:22]Read from MH i2c: F0 [15:02:22]MH_I2C_Read... [15:02:22]Read from MH i2c: F0 09 00 [15:02:22]MH_I2C_Read... [15:02:22]Read from MH i2c: F0 09 00 0D 64 00 84 ED 24 67 72 0D 1C 67 67 [15:02:22]GetLastDocTimeStamp 1730473161 [15:02:22]current date 1730473348 [15:02:22]FM_GetShiftState [15:02:22]SAM_PROTO_GetShiftState [15:02:22]wFMCommunicate request_size=4 [15:02:22]MH_SAM_APDU [15:02:22]CAPDU: 80 13 01 00 [15:02:22]Write to MH i2c: E2 08 00 0E 64 80 13 01 00 00 00 00 00 EF [15:02:22]Write i2c OK [15:02:22]MH_I2C_Read... [15:02:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:22]Read from MH i2c: E2 [15:02:22]MH_I2C_Read... [15:02:22]Read from MH i2c: E2 0E 00 [15:02:22]MH_I2C_Read... [15:02:22]Read from MH i2c: E2 0E 00 0E 64 00 09 00 01 89 19 24 67 00 00 00 00 90 00 28 [15:02:22]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:02:22]wFMCommunicate OK [15:02:22]SAM_PROTO_GetShiftState done [15:02:22]FM_GetShiftState done [15:02:22]opened in 1730419081 [15:02:22]opened+sec_in_day 1730505481 [15:02:22]quantity*price = 32000 [15:02:22]sum+1 = 32001 [15:02:22]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 90448300 Энерг напиток Red Bull 0,355л 1.000 * 265.00 = 265.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870216764968 Нагр.Таб.Палоч. HEETS Torquoise Selectio 10.000 * 141.00 = 1410.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1995.00 НСП 1% : 17.65 НДС 12% : 211.85 Наличными: 0.00 Безнал.: 1995.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 162 01.11.2024 15:02 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139981 ФПД: 186582424057933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T150228&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139981&fm=186582424057933&tin=02508201610067®Number=0000000000091631&sum=199500 0 [15:02:23]StoreToDocumentArchive [15:02:23]shift 558 fd 139981 [15:02:23]save to /storage/0558/doc_00139981 [15:02:23]save last doc name /storage/0558/doc_00139981 to /storage/kkm_last_doc_name [15:02:23]save OK [15:02:23]Clear old archive folders... [15:02:23]ProcessDocumentItem done err = 0, tmpTLVsize=507 [15:02:23]tlvbuf is 00C42A50 [15:02:23]SAM_PROTO_ClearQueue [15:02:23]wFMCommunicate request_size=4 [15:02:23]MH_SAM_APDU [15:02:23]CAPDU: 80 09 00 00 [15:02:23]Write to MH i2c: E2 08 00 1B 64 80 09 00 00 00 00 00 00 F1 [15:02:23]Write i2c OK [15:02:23]MH_I2C_Read... [15:02:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:23]Read from MH i2c: E2 [15:02:23]MH_I2C_Read... [15:02:23]Read from MH i2c: E2 03 00 [15:02:23]MH_I2C_Read... [15:02:23]Read from MH i2c: E2 03 00 1B 64 00 90 00 F3 [15:02:23]RAPDU: 90 00 [15:02:23]wFMCommunicate OK [15:02:23]SAM_PROTO_ClearQueue done [15:02:23]KKMCreateOFDPacket [15:02:23]OFDProtocolAddRootSTLVToBuf [15:02:23]FM_MakeSignedData [15:02:23]FM_MakeSignedData [15:02:23]SAM_PROTO_SignData [15:02:23]wFMCommunicate request_size=4 [15:02:23]MH_SAM_APDU [15:02:23]CAPDU: 80 0D 01 02 [15:02:23]Write to MH i2c: E2 08 00 1C 64 80 0D 01 02 00 00 00 00 F9 [15:02:23]Write i2c OK [15:02:23]MH_I2C_Read... [15:02:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:23]Read from MH i2c: E2 [15:02:23]MH_I2C_Read... [15:02:23]Read from MH i2c: E2 03 00 [15:02:23]MH_I2C_Read... [15:02:23]Read from MH i2c: E2 03 00 1C 64 00 90 00 F4 [15:02:23]RAPDU: 90 00 [15:02:23]wFMCommunicate OK [15:02:23]wFMCommunicate request_size=255 [15:02:23]MH_SAM_APDU [15:02:23]CAPDU: 80 0D 02 02 FA 03 00 FB 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 D0 07 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 00 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 [15:02:23]Write to MH i2c: E2 02 01 1D 64 80 0D 02 02 FA 00 03 00 FB 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 D0 07 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 00 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 00 00 1F [15:02:23]Write i2c OK [15:02:23]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 [15:02:24]MH_I2C_Read... [15:02:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:24]Read from MH i2c: E2 03 00 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 03 00 1D 64 00 90 00 F5 [15:02:24]RAPDU: 90 00 [15:02:24]wFMCommunicate OK [15:02:24]wFMCommunicate request_size=255 [15:02:24]MH_SAM_APDU [15:02:24]CAPDU: 80 0D 02 02 FA 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 10 27 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 C8 26 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 0B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 84 ED 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CD 22 02 [15:02:24]Write to MH i2c: E2 02 01 1E 64 80 0D 02 02 FA 00 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 10 27 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 C8 26 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 0B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 84 ED 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CD 22 02 00 00 B6 [15:02:24]Write i2c OK [15:02:24]MH_I2C_Read... [15:02:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:24]Read from MH i2c: E2 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 03 00 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 03 00 1E 64 00 90 00 F6 [15:02:24]RAPDU: 90 00 [15:02:24]wFMCommunicate OK [15:02:24]wFMCommunicate request_size=16 [15:02:24]MH_SAM_APDU [15:02:24]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A9 B2 1B 1B 78 4D [15:02:24]Write to MH i2c: E2 13 00 1F 64 80 0D 02 02 0B 00 00 35 04 06 00 A9 B2 1B 1B 78 4D 00 00 A8 [15:02:24]Write i2c OK [15:02:24]MH_I2C_Read... [15:02:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:24]Read from MH i2c: E2 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 03 00 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 03 00 1F 64 00 90 00 F7 [15:02:24]RAPDU: 90 00 [15:02:24]wFMCommunicate OK [15:02:24]wFMCommunicate request_size=4 [15:02:24]MH_SAM_APDU [15:02:24]CAPDU: 80 0D 03 02 [15:02:24]Write to MH i2c: E2 08 00 20 64 80 0D 03 02 00 00 00 00 FF [15:02:24]Write i2c OK [15:02:24]MH_I2C_Read... [15:02:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:24]Read from MH i2c: E2 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 0B 00 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 0B 00 20 64 00 AC E4 A6 C6 F0 5E 89 EE 90 00 C1 [15:02:24]RAPDU: AC E4 A6 C6 F0 5E 89 EE 90 00 [15:02:24]wFMCommunicate OK [15:02:24]SAM_PROTO_SignData done [15:02:24]FM_MakeSignedData done [15:02:24]CreateOFDProtocolMessage [15:02:24]wFMCommunicate request_size=4 [15:02:24]MH_SAM_APDU [15:02:24]CAPDU: 80 11 00 00 [15:02:24]Write to MH i2c: E2 08 00 21 64 80 11 00 00 00 00 00 00 FF [15:02:24]Write i2c OK [15:02:24]MH_I2C_Read... [15:02:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:24]Read from MH i2c: E2 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 17 00 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 17 00 21 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5A [15:02:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:02:24]wFMCommunicate OK [15:02:24]CreateOFDProtocolMessage done [15:02:24]OFDSenderStorePacket 139981 [15:02:24]StoreOFDPacket docnum=139981 [15:02:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 02 00 00 0A E5 07 02 C5 60 5A 03 01 00 03 00 FB 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 D0 07 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 00 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 10 27 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 C8 26 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 0B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 84 ED 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CD 22 02 00 35 04 06 00 A9 B2 1B 1B 78 4D AC E4 A6 C6 F0 5E 89 EE [15:02:24]CheckFolder [15:02:24]dirname=/storage/ofd_packets [15:02:24]CheckFolder done [15:02:24]ProducePacketName [15:02:24]name=ofd_packets/00139981 [15:02:24]NVStorageSaveData ofd_packets/00139981 [15:02:24]File name is /storage/ofd_packets/00139981 [15:02:24]Write 557 bytes [15:02:24]NVStorageSaveData done [15:02:24]OFDSenderStorePacket done [15:02:24]KKMCreateOFDPacket done [15:02:24]NVStorageSaveData kkm_last_timestamp [15:02:24]File name is /storage/kkm_last_timestamp [15:02:24]Write 4 bytes [15:02:24]NVStorageSaveData done [15:02:24]ExternCall_PrintAddStr [15:02:24]wPrintStart [15:02:24]Write to MH i2c: 01 00 00 22 64 86 [15:02:24]Write i2c OK [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: 01 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: 01 07 00 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: 01 07 00 22 64 00 00 00 00 00 FF 0F 9B [15:02:24]RasterBufferAndPrint [15:02:24]line Счет N : (3)335795 [15:02:24]line ИНН: 02508201610067 [15:02:24]line Контрольно-Кассовый Чек [15:02:24]line ПРОДАЖА [15:02:24]line Товар: 48741958 [15:02:24]line Сигареты Parliament Aqua Blue [15:02:24]line 2.000 * 160.00 [15:02:24]line = 320.00 [15:02:24]line НДС 12% НСП 1% [15:02:24]line > о реализуемом товаре [15:02:24]line Товар: 90448300 [15:02:24]line Энерг напиток Red Bull 0,355л [15:02:24]line 1.000 * 265.00 [15:02:24]line = 265.00 [15:02:24]line НДС 12% НСП 1% [15:02:24]line > о реализуемом товаре [15:02:24]line Товар: 4870216764968 [15:02:24]line Нагр.Таб.Палоч. HEETS Torquoise Selectio [15:02:24]line 10.000 * 141.00 [15:02:24]line = 1410.00 [15:02:24]line НДС 12% НСП 1% [15:02:24]line > о реализуемом товаре [15:02:24]line ИТОГО: 1995.00 [15:02:24]line НСП 1% : 17.65 [15:02:24]line НДС 12% : 211.85 [15:02:24]line Наличными: 0.00 [15:02:24]line Безнал.: 1995.00 [15:02:24]line Место: АЗС № 101 "Партнер Нефть" [15:02:24]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:02:24]line СНО: Общий режим [15:02:24]line Чек 162 01.11.2024 15:02 [15:02:24]line Смена: 558 ФФД: 1.0 [15:02:24]line ЗНМ: 0300000081 [15:02:24]line РНМ: 0000000000091631 [15:02:24]line Версия ККМ: 001 [15:02:24]line Платежная система: Mbank [15:02:24]line ФМ: 0000000000874669 [15:02:24]line ФД: 139981 [15:02:24]line ФПД: 186582424057933 [15:02:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T150228&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139981&fm=186582424057933&tin=02508201610067®Number=0000000000091631&sum=199500 [15:02:25]line 0 [15:02:25]OFD Sender: Processing packet 139981 [packets to send 34, broken 33] [15:02:25]ProducePacketName [15:02:25]name=ofd_packets/00139981 [15:02:25]OFD Sender: To server: pG, [15:02:25]CommunicateWithHost lk.salyk.kg:30040 [15:02:25]ConnectInit lk.salyk.kg [15:02:25]written 0, free lines is 4095 [15:02:25]Connected sock=5 [15:02:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 02 00 00 0A E5 07 02 C5 60 5A 03 01 00 03 00 FB 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 D0 07 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 00 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 10 27 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 C8 26 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 0B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 84 ED 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CD 22 02 00 35 04 06 00 A9 B2 1B 1B 78 4D AC E4 A6 C6 F0 5E 89 EE [15:02:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 23 66 47 00 B9 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CD 22 02 00 F4 03 04 00 2F 99 24 67 B6 04 01 00 00 FC B6 7A 7F A0 96 24 7A [15:02:25]CommunicateWithHost err = 0 [15:02:25]CheckOFDResponse [15:02:25]1017 (14) - 77093643461234 [15:02:25]1041 (16) - 0000000000874669 [15:02:25]1040 (4) - 139981 [15:02:25]1012 (4) - 01.11.2024 09:02 [15:02:25]1206 (1) - 0 [15:02:25]OFD Sender: Remove packet 139981 [15:02:25]ProducePacketName [15:02:25]name=ofd_packets/00139981 [15:02:25]NVStorageDeleteData [15:02:25]Write to MH i2c: 01 00 00 59 64 BD [15:02:25]Write i2c OK [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: 01 [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: 01 07 00 [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: 01 07 00 59 64 00 00 00 00 00 69 0C 39 [15:02:25]RasterBufferAndPrint [15:02:25]line [15:02:25]line [15:02:25]line [15:02:25]line [15:02:25]line [15:02:25]written 0, free lines is 3183 [15:02:25]MH_Cut [15:02:25]Write to MH i2c: D1 01 00 60 64 01 96 [15:02:25]Write i2c OK [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: D1 [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: D1 01 00 [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: D1 01 00 60 64 00 95 [15:02:25]Write to MH i2c: 01 00 00 61 64 C5 [15:02:25]Write i2c OK [15:02:25]MH_I2C_Read... [15:02:25]OFD Sender: No OFD packet to send [15:02:26]*** Cut start [15:02:26]*** Partial cut [15:02:26]*** CUTSNS_PIN = 1 [15:02:26]*** CUTSNS_PIN = 0 [15:02:26]*** Brake cut motor [15:02:27]Read from MH i2c: 01 [15:02:27]MH_I2C_Read... [15:02:27]*** Stop cut motor [15:02:27]*** Cut end [15:02:27]Read from MH i2c: 01 07 00 [15:02:27]MH_I2C_Read... [15:02:27]Read from MH i2c: 01 07 00 61 64 00 00 00 00 00 FF 0F DA [15:02:27]process_action close_receipt done [15:02:27]requested_data is exist [15:02:27]produce_requested_data [15:02:27]requested_item fm.sn is exist - process it [15:02:27]wFMCommunicate request_size=4 [15:02:27]MH_SAM_APDU [15:02:27]CAPDU: 80 11 00 00 [15:02:27]Write to MH i2c: E2 08 00 62 64 80 11 00 00 00 00 00 00 40 [15:02:27]Write i2c OK [15:02:27]MH_I2C_Read... [15:02:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:27]Read from MH i2c: E2 [15:02:27]MH_I2C_Read... [15:02:27]Read from MH i2c: E2 17 00 [15:02:27]MH_I2C_Read... [15:02:27]Read from MH i2c: E2 17 00 62 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9B [15:02:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:02:27]wFMCommunicate OK [15:02:27]requested_item fd.num is exist - process it [15:02:27]SAM_PROTO_GetFieldsCounters [15:02:27]wFMCommunicate request_size=4 [15:02:27]MH_SAM_APDU [15:02:27]CAPDU: 80 13 00 00 [15:02:27]Write to MH i2c: E2 08 00 63 64 80 13 00 00 00 00 00 00 43 [15:02:27]Write i2c OK [15:02:27]MH_I2C_Read... [15:02:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:27]Read from MH i2c: E2 [15:02:27]MH_I2C_Read... [15:02:27]Read from MH i2c: E2 62 00 [15:02:27]MH_I2C_Read... [15:02:27]Read from MH i2c: E2 62 00 63 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 CD 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [15:02:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 CD 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:02:27]wFMCommunicate OK [15:02:27]SAM_PROTO_GetFieldsCounters done [15:02:27]requested_item shift.num is exist - process it [15:02:27]requested_item shift.opened is exist - process it [15:02:27]req_shift_opened [15:02:27]FM_GetShiftState [15:02:27]SAM_PROTO_GetShiftState [15:02:27]wFMCommunicate request_size=4 [15:02:27]MH_SAM_APDU [15:02:27]CAPDU: 80 13 01 00 [15:02:27]Write to MH i2c: E2 08 00 64 64 80 13 01 00 00 00 00 00 45 [15:02:27]Write i2c OK [15:02:27]MH_I2C_Read... [15:02:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:27]Read from MH i2c: E2 [15:02:27]MH_I2C_Read... [15:02:27]Read from MH i2c: E2 0E 00 [15:02:27]MH_I2C_Read... [15:02:27]Read from MH i2c: E2 0E 00 64 64 00 09 00 01 89 19 24 67 00 00 00 00 90 00 7E [15:02:27]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:02:27]wFMCommunicate OK [15:02:27]SAM_PROTO_GetShiftState done [15:02:27]FM_GetShiftState done [15:02:27]req_shift_opened done [15:02:27]requested_item shift.open_date is exist - process it [15:02:27]req_shift_open_date [15:02:27]req_shift_open_date done [15:02:27]produce_requested_data done [15:02:27]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139981,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [15:02:27]process_action_free close_receipt [15:02:27]json_value_free [15:02:27]json_value_free done [15:02:27]process_json_proto returns [15:02:27]Send response to host [15:02:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139981,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [15:02:27]free response buf [15:02:27]execute_script done [15:02:27]execute_script returns [15:02:27]free content buf [15:02:27]Sock 10.Close socket [15:02:27]Sock 10.Thread stoped [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:19]accept exits with 7 [15:03:19]New connection [15:03:19]New thread 3066654052 created [15:03:19]Thread 3066510692 joined [15:03:19]Waiting for new connection... [15:03:19] Sock 7.Parse request [15:03:19]Sock 7.Check first char [15:03:19]Sock 7.First char is OK [15:03:19]request: POST /json_proto HTTP/1.0 [15:03:19]Method: POST [15:03:19]URL: /json_proto [15:03:19]Method is POST - this is cgi request [15:03:19]url: /json_proto [15:03:19]query_string will be loaded in cgi processing [15:03:19]execute_cgi json_proto POST (null) [15:03:19]execute_cgi path=json_proto method=POST [15:03:19]POST find Content-Length [15:03:19]Host: 172.17.50.196:8080 [15:03:19]Content-Length: 620 [15:03:19]Content-Type: application/json [15:03:19] [15:03:19]POST finish read [15:03:19]Found Content-Length = 620 [15:03:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335797", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:19]execute_script... [15:03: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)335797", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:19]POST & json_proto [15:03:19]process_json_proto [15:03:19]json parsed OK: [15:03:19]protocol is kg_v1.0 [15:03:19]action value=close_receipt [15:03:19]process_action close_receipt [15:03:19]cmd_close_receipt [15:03:19]MH_GetDate [15:03:19]Write to MH i2c: F0 00 00 65 64 B8 [15:03:19]Write i2c OK [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: F0 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: F0 09 00 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: F0 09 00 65 64 00 BE ED 24 67 72 0D 1C 67 F9 [15:03:19]GetLastDocTimeStamp 1730473348 [15:03:19]current date 1730473406 [15:03:19]FM_GetShiftState [15:03:19]SAM_PROTO_GetShiftState [15:03:19]wFMCommunicate request_size=4 [15:03:19]MH_SAM_APDU [15:03:19]CAPDU: 80 13 01 00 [15:03:19]Write to MH i2c: E2 08 00 66 64 80 13 01 00 00 00 00 00 47 [15:03:19]Write i2c OK [15:03:19]MH_I2C_Read... [15:03:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:19]Read from MH i2c: E2 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: E2 0E 00 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: E2 0E 00 66 64 00 09 00 01 89 19 24 67 00 00 00 00 90 00 80 [15:03:19]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:03:19]wFMCommunicate OK [15:03:19]SAM_PROTO_GetShiftState done [15:03:19]FM_GetShiftState done [15:03:19]opened in 1730419081 [15:03:19]opened+sec_in_day 1730505481 [15:03:19]quantity*price = 15900 [15:03:19]sum+1 = 15901 [15:03:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 159.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 163 01.11.2024 15:03 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139982 ФПД: 8688272321931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T150326&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139982&fm=8688272321931&tin=02508201610067®Number=0000000000091631&sum=15900 0 [15:03:21]StoreToDocumentArchive [15:03:21]shift 558 fd 139982 [15:03:21]save to /storage/0558/doc_00139982 [15:03:21]save last doc name /storage/0558/doc_00139982 to /storage/kkm_last_doc_name [15:03:21]save OK [15:03:21]Clear old archive folders... [15:03:21]ProcessDocumentItem done err = 0, tmpTLVsize=272 [15:03:21]tlvbuf is B6D5F7E0 [15:03:21]SAM_PROTO_ClearQueue [15:03:21]wFMCommunicate request_size=4 [15:03:21]MH_SAM_APDU [15:03:21]CAPDU: 80 09 00 00 [15:03:21]Write to MH i2c: E2 08 00 73 64 80 09 00 00 00 00 00 00 49 [15:03:21]Write i2c OK [15:03:21]MH_I2C_Read... [15:03:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:21]Read from MH i2c: E2 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: E2 03 00 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: E2 03 00 73 64 00 90 00 4B [15:03:21]RAPDU: 90 00 [15:03:21]wFMCommunicate OK [15:03:21]SAM_PROTO_ClearQueue done [15:03:21]KKMCreateOFDPacket [15:03:21]OFDProtocolAddRootSTLVToBuf [15:03:21]FM_MakeSignedData [15:03:21]FM_MakeSignedData [15:03:21]SAM_PROTO_SignData [15:03:21]wFMCommunicate request_size=4 [15:03:21]MH_SAM_APDU [15:03:21]CAPDU: 80 0D 01 02 [15:03:21]Write to MH i2c: E2 08 00 74 64 80 0D 01 02 00 00 00 00 51 [15:03:21]Write i2c OK [15:03:21]MH_I2C_Read... [15:03:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:21]Read from MH i2c: E2 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: E2 03 00 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: E2 03 00 74 64 00 90 00 4C [15:03:21]RAPDU: 90 00 [15:03:21]wFMCommunicate OK [15:03:21]wFMCommunicate request_size=255 [15:03:21]MH_SAM_APDU [15:03:21]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 BE ED 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [15:03:21]Write to MH i2c: E2 02 01 75 64 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 BE ED 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 00 00 64 [15:03:21]Write i2c OK [15:03:21]MH_I2C_Read... [15:03:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:21]Read from MH i2c: E2 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: E2 03 00 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: E2 03 00 75 64 00 90 00 4D [15:03:21]RAPDU: 90 00 [15:03:21]wFMCommunicate OK [15:03:21]wFMCommunicate request_size=31 [15:03:21]MH_SAM_APDU [15:03:21]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 36 39 10 04 04 00 CE 22 02 00 35 04 06 00 07 E6 E5 62 AD 8B [15:03:21]Write to MH i2c: E2 22 00 76 64 80 0D 02 02 1A 00 30 30 38 37 34 36 36 39 10 04 04 00 CE 22 02 00 35 04 06 00 07 E6 E5 62 AD 8B 00 00 E5 [15:03:21]Write i2c OK [15:03:21]MH_I2C_Read... [15:03:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:21]Read from MH i2c: E2 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: E2 03 00 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: E2 03 00 76 64 00 90 00 4E [15:03:21]RAPDU: 90 00 [15:03:21]wFMCommunicate OK [15:03:21]wFMCommunicate request_size=4 [15:03:21]MH_SAM_APDU [15:03:21]CAPDU: 80 0D 03 02 [15:03:21]Write to MH i2c: E2 08 00 77 64 80 0D 03 02 00 00 00 00 56 [15:03:21]Write i2c OK [15:03:21]MH_I2C_Read... [15:03:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:21]Read from MH i2c: E2 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: E2 0B 00 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: E2 0B 00 77 64 00 A9 08 B1 A0 85 B3 8C 44 90 00 61 [15:03:21]RAPDU: A9 08 B1 A0 85 B3 8C 44 90 00 [15:03:21]wFMCommunicate OK [15:03:21]SAM_PROTO_SignData done [15:03:21]FM_MakeSignedData done [15:03:21]CreateOFDProtocolMessage [15:03:21]wFMCommunicate request_size=4 [15:03:21]MH_SAM_APDU [15:03:21]CAPDU: 80 11 00 00 [15:03:21]Write to MH i2c: E2 08 00 78 64 80 11 00 00 00 00 00 00 56 [15:03:21]Write i2c OK [15:03:21]MH_I2C_Read... [15:03:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:21]Read from MH i2c: E2 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: E2 17 00 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: E2 17 00 78 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B1 [15:03:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:03:21]wFMCommunicate OK [15:03:21]CreateOFDProtocolMessage done [15:03:21]OFDSenderStorePacket 139982 [15:03:21]StoreOFDPacket docnum=139982 [15:03:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 24 01 00 00 05 FD 1C 01 71 C3 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 BE ED 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CE 22 02 00 35 04 06 00 07 E6 E5 62 AD 8B A9 08 B1 A0 85 B3 8C 44 [15:03:21]CheckFolder [15:03:21]dirname=/storage/ofd_packets [15:03:21]CheckFolder done [15:03:21]ProducePacketName [15:03:21]name=ofd_packets/00139982 [15:03:21]NVStorageSaveData ofd_packets/00139982 [15:03:21]File name is /storage/ofd_packets/00139982 [15:03:21]Write 322 bytes [15:03:21]NVStorageSaveData done [15:03:21]OFDSenderStorePacket done [15:03:21]KKMCreateOFDPacket done [15:03:21]NVStorageSaveData kkm_last_timestamp [15:03:21]File name is /storage/kkm_last_timestamp [15:03:21]Write 4 bytes [15:03:21]NVStorageSaveData done [15:03:21]ExternCall_PrintAddStr [15:03:21]wPrintStart [15:03:21]Write to MH i2c: 01 00 00 79 64 DD [15:03:21]Write i2c OK [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: 01 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: 01 07 00 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: 01 07 00 79 64 00 00 00 00 00 FF 0F F2 [15:03:21]RasterBufferAndPrint [15:03:21]line Счет N : (3)335797 [15:03:21]line ИНН: 02508201610067 [15:03:21]line Контрольно-Кассовый Чек [15:03:21]line ПРОДАЖА [15:03:21]line Товар: 4640030091607 [15:03:21]line Сигареты ESSE Exchange [15:03:21]line 1.000 * 159.00 [15:03:21]line = 159.00 [15:03:21]line НДС 12% НСП 1% [15:03:21]line > о реализуемом товаре [15:03:21]line ИТОГО: 159.00 [15:03:21]line НСП 1% : 1.41 [15:03:21]line НДС 12% : 16.88 [15:03:21]line Наличными: 159.00 [15:03:21]line Безнал.: 0.00 [15:03:21]line Место: АЗС № 101 "Партнер Нефть" [15:03:21]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:03:21]line СНО: Общий режим [15:03:21]line Чек 163 01.11.2024 15:03 [15:03:21]line Смена: 558 ФФД: 1.0 [15:03:21]line ЗНМ: 0300000081 [15:03:21]line РНМ: 0000000000091631 [15:03:21]line Версия ККМ: 001 [15:03:21]line ФМ: 0000000000874669 [15:03:21]line ФД: 139982 [15:03:21]line ФПД: 8688272321931 [15:03:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T150326&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139982&fm=8688272321931&tin=02508201610067®Number=0000000000091631&sum=15900 [15:03:21]OFD Sender: Processing packet 139982 [packets to send 34, broken 33] [15:03:21]ProducePacketName [15:03:21]name=ofd_packets/00139982 [15:03:21]OFD Sender: To server: pG, [15:03:21]CommunicateWithHost lk.salyk.kg:30040 [15:03:21]ConnectInit lk.salyk.kg [15:03:21]line 0 [15:03:21]written 0, free lines is 4095 [15:03:22]Connected sock=10 [15:03:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 24 01 00 00 05 FD 1C 01 71 C3 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 BE ED 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CE 22 02 00 35 04 06 00 07 E6 E5 62 AD 8B A9 08 B1 A0 85 B3 8C 44 [15:03:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 84 CE 47 00 68 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CE 22 02 00 F4 03 04 00 68 99 24 67 B6 04 01 00 00 D4 75 1F 14 29 A1 8D D4 [15:03:22]CommunicateWithHost err = 0 [15:03:22]CheckOFDResponse [15:03:22]1017 (14) - 77093643461234 [15:03:22]1041 (16) - 0000000000874669 [15:03:22]1040 (4) - 139982 [15:03:22]1012 (4) - 01.11.2024 09:03 [15:03:22]1206 (1) - 0 [15:03:22]OFD Sender: Remove packet 139982 [15:03:22]ProducePacketName [15:03:22]name=ofd_packets/00139982 [15:03:22]NVStorageDeleteData [15:03:22]Write to MH i2c: 01 00 00 A1 64 05 [15:03:22]Write i2c OK [15:03:22]MH_I2C_Read... [15:03:22]Read from MH i2c: 01 [15:03:22]MH_I2C_Read... [15:03:22]Read from MH i2c: 01 07 00 [15:03:22]MH_I2C_Read... [15:03:22]Read from MH i2c: 01 07 00 A1 64 00 00 00 00 00 14 0D 2D [15:03:22]RasterBufferAndPrint [15:03:22]line [15:03:22]line [15:03:22]line [15:03:22]line [15:03:22]line [15:03:22]written 0, free lines is 3357 [15:03:22]MH_Cut [15:03:22]Write to MH i2c: D1 01 00 A8 64 01 DE [15:03:22]Write i2c OK [15:03:22]MH_I2C_Read... [15:03:22]Read from MH i2c: D1 [15:03:22]MH_I2C_Read... [15:03:22]Read from MH i2c: D1 01 00 [15:03:22]MH_I2C_Read... [15:03:22]Read from MH i2c: D1 01 00 A8 64 00 DD [15:03:22]Write to MH i2c: 01 00 00 A9 64 0D [15:03:22]Write i2c OK [15:03:22]MH_I2C_Read... [15:03:22]OFD Sender: No OFD packet to send [15:03:23]*** Cut start [15:03:23]*** Partial cut [15:03:23]*** CUTSNS_PIN = 1 [15:03:23]*** CUTSNS_PIN = 0 [15:03:23]*** Brake cut motor [15:03:23]Read from MH i2c: 01 [15:03:23]MH_I2C_Read... [15:03:23]*** Stop cut motor [15:03:23]*** Cut end [15:03:23]Read from MH i2c: 01 07 00 [15:03:23]MH_I2C_Read... [15:03:23]Read from MH i2c: 01 07 00 A9 64 00 00 00 00 00 FF 0F 22 [15:03:23]process_action close_receipt done [15:03:23]requested_data is exist [15:03:23]produce_requested_data [15:03:23]requested_item fm.sn is exist - process it [15:03:23]wFMCommunicate request_size=4 [15:03:23]MH_SAM_APDU [15:03:23]CAPDU: 80 11 00 00 [15:03:23]Write to MH i2c: E2 08 00 AA 64 80 11 00 00 00 00 00 00 88 [15:03:23]Write i2c OK [15:03:23]MH_I2C_Read... [15:03:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:23]Read from MH i2c: E2 [15:03:23]MH_I2C_Read... [15:03:23]Read from MH i2c: E2 17 00 [15:03:23]MH_I2C_Read... [15:03:23]Read from MH i2c: E2 17 00 AA 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E3 [15:03:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:03:23]wFMCommunicate OK [15:03:23]requested_item fd.num is exist - process it [15:03:23]SAM_PROTO_GetFieldsCounters [15:03:23]wFMCommunicate request_size=4 [15:03:23]MH_SAM_APDU [15:03:23]CAPDU: 80 13 00 00 [15:03:23]Write to MH i2c: E2 08 00 AB 64 80 13 00 00 00 00 00 00 8B [15:03:23]Write i2c OK [15:03:23]MH_I2C_Read... [15:03:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:23]Read from MH i2c: E2 [15:03:23]MH_I2C_Read... [15:03:23]Read from MH i2c: E2 62 00 [15:03:23]MH_I2C_Read... [15:03:23]Read from MH i2c: E2 62 00 AB 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 CE 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [15:03:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 CE 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:03:23]wFMCommunicate OK [15:03:23]SAM_PROTO_GetFieldsCounters done [15:03:23]requested_item shift.num is exist - process it [15:03:23]requested_item shift.opened is exist - process it [15:03:23]req_shift_opened [15:03:23]FM_GetShiftState [15:03:23]SAM_PROTO_GetShiftState [15:03:23]wFMCommunicate request_size=4 [15:03:23]MH_SAM_APDU [15:03:23]CAPDU: 80 13 01 00 [15:03:23]Write to MH i2c: E2 08 00 AC 64 80 13 01 00 00 00 00 00 8D [15:03:23]Write i2c OK [15:03:23]MH_I2C_Read... [15:03:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:23]Read from MH i2c: E2 [15:03:23]MH_I2C_Read... [15:03:23]Read from MH i2c: E2 0E 00 [15:03:23]MH_I2C_Read... [15:03:23]Read from MH i2c: E2 0E 00 AC 64 00 09 00 01 89 19 24 67 00 00 00 00 90 00 C6 [15:03:23]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:03:23]wFMCommunicate OK [15:03:23]SAM_PROTO_GetShiftState done [15:03:23]FM_GetShiftState done [15:03:23]req_shift_opened done [15:03:23]requested_item shift.open_date is exist - process it [15:03:23]req_shift_open_date [15:03:23]req_shift_open_date done [15:03:23]produce_requested_data done [15:03:23]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139982,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [15:03:23]process_action_free close_receipt [15:03:23]json_value_free [15:03:23]json_value_free done [15:03:23]process_json_proto returns [15:03:23]Send response to host [15:03:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139982,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [15:03:23]free response buf [15:03:23]execute_script done [15:03:23]execute_script returns [15:03:23]free content buf [15:03:23]Sock 7.Close socket [15:03:23]Sock 7.Thread stoped [15:03:27]OFD Sender: No OFD packet to send [15:03:32]OFD Sender: No OFD packet to send [15:03:37]OFD Sender: No OFD packet to send [15:03:42]OFD Sender: No OFD packet to send [15:03:47]OFD Sender: No OFD packet to send [15:03:52]OFD Sender: No OFD packet to send [15:03:57]OFD Sender: No OFD packet to send [15:04:02]OFD Sender: No OFD packet to send [15:04:07]OFD Sender: No OFD packet to send [15:04:12]OFD Sender: No OFD packet to send [15:04:17]OFD Sender: No OFD packet to send [15:04:22]OFD Sender: No OFD packet to send [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:38]accept exits with 9 [15:06:38]New connection [15:06:38]New thread 3066510692 created [15:06:38]Thread 3066654052 joined [15:06:38]Waiting for new connection... [15:06:38] Sock 9.Parse request [15:06:38]Sock 9.Check first char [15:06:38]Sock 9.First char is OK [15:06:38]request: POST /json_proto HTTP/1.0 [15:06:38]Method: POST [15:06:38]URL: /json_proto [15:06:38]Method is POST - this is cgi request [15:06:38]url: /json_proto [15:06:38]query_string will be loaded in cgi processing [15:06:38]execute_cgi json_proto POST (null) [15:06:38]execute_cgi path=json_proto method=POST [15:06:38]POST find Content-Length [15:06:38]Host: 172.17.50.196:8080 [15:06:38]Content-Length: 628 [15:06:38]Content-Type: application/json [15:06:38] [15:06:38]POST finish read [15:06:38]Found Content-Length = 628 [15:06:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335798", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:38]execute_script... [15:06: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)335798", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:38]POST & json_proto [15:06:38]process_json_proto [15:06:38]json parsed OK: [15:06:38]protocol is kg_v1.0 [15:06:38]action value=close_receipt [15:06:38]process_action close_receipt [15:06:38]cmd_close_receipt [15:06:38]MH_GetDate [15:06:38]Write to MH i2c: F0 00 00 AD 64 00 [15:06:38]Write i2c OK [15:06:38]MH_I2C_Read... [15:06:38]Read from MH i2c: F0 [15:06:38]MH_I2C_Read... [15:06:38]Read from MH i2c: F0 09 00 [15:06:38]MH_I2C_Read... [15:06:38]Read from MH i2c: F0 09 00 AD 64 00 85 EE 24 67 72 0D 1C 67 09 [15:06:38]GetLastDocTimeStamp 1730473406 [15:06:38]current date 1730473605 [15:06:38]FM_GetShiftState [15:06:38]SAM_PROTO_GetShiftState [15:06:38]wFMCommunicate request_size=4 [15:06:38]MH_SAM_APDU [15:06:38]CAPDU: 80 13 01 00 [15:06:38]Write to MH i2c: E2 08 00 AE 64 80 13 01 00 00 00 00 00 8F [15:06:38]Write i2c OK [15:06:38]MH_I2C_Read... [15:06:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:39]Read from MH i2c: E2 [15:06:39]MH_I2C_Read... [15:06:39]Read from MH i2c: E2 0E 00 [15:06:39]MH_I2C_Read... [15:06:39]Read from MH i2c: E2 0E 00 AE 64 00 09 00 01 89 19 24 67 00 00 00 00 90 00 C8 [15:06:39]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:06:39]wFMCommunicate OK [15:06:39]SAM_PROTO_GetShiftState done [15:06:39]FM_GetShiftState done [15:06:39]opened in 1730419081 [15:06:39]opened+sec_in_day 1730505481 [15:06:39]quantity*price = 13000 [15:06:39]sum+1 = 13001 [15:06:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 164 01.11.2024 15:06 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139983 ФПД: 160469103176941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T150645&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139983&fm=160469103176941&tin=02508201610067®Number=0000000000091631&sum=13000 0 [15:06:40]StoreToDocumentArchive [15:06:40]shift 558 fd 139983 [15:06:40]save to /storage/0558/doc_00139983 [15:06:40]save last doc name /storage/0558/doc_00139983 to /storage/kkm_last_doc_name [15:06:40]save OK [15:06:40]Clear old archive folders... [15:06:40]ProcessDocumentItem done err = 0, tmpTLVsize=276 [15:06:40]tlvbuf is 00BE3000 [15:06:40]SAM_PROTO_ClearQueue [15:06:40]wFMCommunicate request_size=4 [15:06:40]MH_SAM_APDU [15:06:40]CAPDU: 80 09 00 00 [15:06:40]Write to MH i2c: E2 08 00 BB 64 80 09 00 00 00 00 00 00 91 [15:06:40]Write i2c OK [15:06:40]MH_I2C_Read... [15:06:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:40]Read from MH i2c: E2 [15:06:40]MH_I2C_Read... [15:06:40]Read from MH i2c: E2 03 00 [15:06:40]MH_I2C_Read... [15:06:40]Read from MH i2c: E2 03 00 BB 64 00 90 00 93 [15:06:40]RAPDU: 90 00 [15:06:40]wFMCommunicate OK [15:06:40]SAM_PROTO_ClearQueue done [15:06:40]KKMCreateOFDPacket [15:06:40]OFDProtocolAddRootSTLVToBuf [15:06:40]FM_MakeSignedData [15:06:40]FM_MakeSignedData [15:06:40]SAM_PROTO_SignData [15:06:40]wFMCommunicate request_size=4 [15:06:40]MH_SAM_APDU [15:06:40]CAPDU: 80 0D 01 02 [15:06:40]Write to MH i2c: E2 08 00 BC 64 80 0D 01 02 00 00 00 00 99 [15:06:40]Write i2c OK [15:06:40]MH_I2C_Read... [15:06:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:40]Read from MH i2c: E2 [15:06:40]MH_I2C_Read... [15:06:40]Read from MH i2c: E2 03 00 [15:06:40]MH_I2C_Read... [15:06:40]Read from MH i2c: E2 03 00 BC 64 00 90 00 94 [15:06:40]RAPDU: 90 00 [15:06:40]wFMCommunicate OK [15:06:40]wFMCommunicate request_size=255 [15:06:40]MH_SAM_APDU [15:06:40]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 85 EE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 [15:06:40]Write to MH i2c: E2 02 01 BD 64 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 85 EE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 00 00 81 [15:06:40]Write i2c OK [15:06:40]MH_I2C_Read... [15:06:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:40]Read from MH i2c: E2 [15:06:40]MH_I2C_Read... [15:06:40]Read from MH i2c: E2 03 00 [15:06:40]MH_I2C_Read... [15:06:40]Read from MH i2c: E2 03 00 BD 64 00 90 00 95 [15:06:40]RAPDU: 90 00 [15:06:40]wFMCommunicate OK [15:06:40]wFMCommunicate request_size=35 [15:06:40]MH_SAM_APDU [15:06:40]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CF 22 02 00 35 04 06 00 91 F2 1F E4 6C ED [15:06:40]Write to MH i2c: E2 26 00 BE 64 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CF 22 02 00 35 04 06 00 91 F2 1F E4 6C ED 00 00 69 [15:06:40]Write i2c OK [15:06:40]MH_I2C_Read... [15:06:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:40]Read from MH i2c: E2 [15:06:40]MH_I2C_Read... [15:06:40]Read from MH i2c: E2 03 00 [15:06:40]MH_I2C_Read... [15:06:40]Read from MH i2c: E2 03 00 BE 64 00 90 00 96 [15:06:40]RAPDU: 90 00 [15:06:40]wFMCommunicate OK [15:06:40]wFMCommunicate request_size=4 [15:06:40]MH_SAM_APDU [15:06:40]CAPDU: 80 0D 03 02 [15:06:40]Write to MH i2c: E2 08 00 BF 64 80 0D 03 02 00 00 00 00 9E [15:06:40]Write i2c OK [15:06:40]MH_I2C_Read... [15:06:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:40]Read from MH i2c: E2 [15:06:40]MH_I2C_Read... [15:06:40]Read from MH i2c: E2 0B 00 [15:06:40]MH_I2C_Read... [15:06:40]Read from MH i2c: E2 0B 00 BF 64 00 1D 4F AB 46 5D E4 3F 48 90 00 C4 [15:06:40]RAPDU: 1D 4F AB 46 5D E4 3F 48 90 00 [15:06:40]wFMCommunicate OK [15:06:40]SAM_PROTO_SignData done [15:06:40]FM_MakeSignedData done [15:06:40]CreateOFDProtocolMessage [15:06:40]wFMCommunicate request_size=4 [15:06:40]MH_SAM_APDU [15:06:40]CAPDU: 80 11 00 00 [15:06:40]Write to MH i2c: E2 08 00 C0 64 80 11 00 00 00 00 00 00 9E [15:06:40]Write i2c OK [15:06:40]MH_I2C_Read... [15:06:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:40]Read from MH i2c: E2 [15:06:40]MH_I2C_Read... [15:06:40]Read from MH i2c: E2 17 00 [15:06:40]MH_I2C_Read... [15:06:40]Read from MH i2c: E2 17 00 C0 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F9 [15:06:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:06:40]wFMCommunicate OK [15:06:40]CreateOFDProtocolMessage done [15:06:40]OFDSenderStorePacket 139983 [15:06:40]StoreOFDPacket docnum=139983 [15:06:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 28 01 00 00 F6 46 20 01 53 8D 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 85 EE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CF 22 02 00 35 04 06 00 91 F2 1F E4 6C ED 1D 4F AB 46 5D E4 3F 48 [15:06:40]CheckFolder [15:06:40]dirname=/storage/ofd_packets [15:06:40]CheckFolder done [15:06:40]ProducePacketName [15:06:40]name=ofd_packets/00139983 [15:06:40]NVStorageSaveData ofd_packets/00139983 [15:06:40]File name is /storage/ofd_packets/00139983 [15:06:40]Write 326 bytes [15:06:40]NVStorageSaveData done [15:06:40]OFDSenderStorePacket done [15:06:40]KKMCreateOFDPacket done [15:06:40]NVStorageSaveData kkm_last_timestamp [15:06:40]File name is /storage/kkm_last_timestamp [15:06:40]Write 4 bytes [15:06:40]NVStorageSaveData done [15:06:40]ExternCall_PrintAddStr [15:06:40]wPrintStart [15:06:40]Write to MH i2c: 01 00 00 C1 64 25 [15:06:40]Write i2c OK [15:06:40]MH_I2C_Read... [15:06:40]Read from MH i2c: 01 [15:06:40]MH_I2C_Read... [15:06:40]Read from MH i2c: 01 07 00 [15:06:40]MH_I2C_Read... [15:06:40]Read from MH i2c: 01 07 00 C1 64 00 00 00 00 00 FF 0F 3A [15:06:40]RasterBufferAndPrint [15:06:40]line Счет N : (3)335798 [15:06:40]line ИНН: 02508201610067 [15:06:40]line Контрольно-Кассовый Чек [15:06:40]line ПРОДАЖА [15:06:40]line Товар: 2000036230011 [15:06:40]line Кофе Латте XL(GABB TRADE) [15:06:40]line 1.000 * 130.00 [15:06:40]line = 130.00 [15:06:40]line НДС 12% НСП 1% [15:06:40]line > о реализуемом товаре [15:06:40]line ИТОГО: 130.00 [15:06:40]line НСП 1% : 1.15 [15:06:40]line НДС 12% : 13.80 [15:06:40]line Наличными: 130.00 [15:06:40]line Безнал.: 0.00 [15:06:40]line Место: АЗС № 101 "Партнер Нефть" [15:06:40]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:06:40]line СНО: Общий режим [15:06:40]line Чек 164 01.11.2024 15:06 [15:06:40]line Смена: 558 ФФД: 1.0 [15:06:40]line ЗНМ: 0300000081 [15:06:40]line РНМ: 0000000000091631 [15:06:40]line Версия ККМ: 001 [15:06:40]line ФМ: 0000000000874669 [15:06:40]line ФД: 139983 [15:06:40]line ФПД: 160469103176941 [15:06:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T150645&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139983&fm=160469103176941&tin=02508201610067®Number=0000000000091631&sum=13000 [15:06:41]OFD Sender: Processing packet 139983 [packets to send 34, broken 33] [15:06:41]ProducePacketName [15:06:41]name=ofd_packets/00139983 [15:06:41]OFD Sender: To server: pG, [15:06:41]CommunicateWithHost lk.salyk.kg:30040 [15:06:41]ConnectInit lk.salyk.kg [15:06:41]line 0 [15:06:41]written 0, free lines is 4095 [15:06:41]Connected sock=10 [15:06:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 28 01 00 00 F6 46 20 01 53 8D 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 85 EE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CF 22 02 00 35 04 06 00 91 F2 1F E4 6C ED 1D 4F AB 46 5D E4 3F 48 [15:06:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 B5 BE 47 00 8A 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CF 22 02 00 F4 03 04 00 2F 9A 24 67 B6 04 01 00 00 82 0C 13 92 4F 8B A8 CF [15:06:41]CommunicateWithHost err = 0 [15:06:41]CheckOFDResponse [15:06:41]1017 (14) - 77093643461234 [15:06:41]1041 (16) - 0000000000874669 [15:06:41]1040 (4) - 139983 [15:06:41]1012 (4) - 01.11.2024 09:06 [15:06:41]1206 (1) - 0 [15:06:41]OFD Sender: Remove packet 139983 [15:06:41]ProducePacketName [15:06:41]name=ofd_packets/00139983 [15:06:41]NVStorageDeleteData [15:06:41]Write to MH i2c: 01 00 00 E9 64 4D [15:06:41]Write i2c OK [15:06:41]MH_I2C_Read... [15:06:41]Read from MH i2c: 01 [15:06:41]MH_I2C_Read... [15:06:41]Read from MH i2c: 01 07 00 [15:06:41]MH_I2C_Read... [15:06:41]Read from MH i2c: 01 07 00 E9 64 00 00 00 00 00 24 0D 85 [15:06:41]RasterBufferAndPrint [15:06:41]line [15:06:41]line [15:06:41]line [15:06:41]line [15:06:41]line [15:06:41]written 0, free lines is 3370 [15:06:41]MH_Cut [15:06:41]Write to MH i2c: D1 01 00 F0 64 01 26 [15:06:41]Write i2c OK [15:06:41]MH_I2C_Read... [15:06:41]Read from MH i2c: D1 [15:06:41]MH_I2C_Read... [15:06:41]Read from MH i2c: D1 01 00 [15:06:41]MH_I2C_Read... [15:06:41]Read from MH i2c: D1 01 00 F0 64 00 25 [15:06:41]Write to MH i2c: 01 00 00 F1 64 55 [15:06:41]Write i2c OK [15:06:41]MH_I2C_Read... [15:06:41]OFD Sender: No OFD packet to send [15:06:42]*** Cut start [15:06:42]*** Partial cut [15:06:42]*** CUTSNS_PIN = 1 [15:06:42]*** CUTSNS_PIN = 0 [15:06:42]*** Brake cut motor [15:06:42]Read from MH i2c: 01 [15:06:42]MH_I2C_Read... [15:06:42]*** Stop cut motor [15:06:42]*** Cut end [15:06:42]Read from MH i2c: 01 07 00 [15:06:42]MH_I2C_Read... [15:06:42]Read from MH i2c: 01 07 00 F1 64 00 00 00 00 00 FF 0F 6A [15:06:42]process_action close_receipt done [15:06:42]requested_data is exist [15:06:42]produce_requested_data [15:06:42]requested_item fm.sn is exist - process it [15:06:42]wFMCommunicate request_size=4 [15:06:42]MH_SAM_APDU [15:06:42]CAPDU: 80 11 00 00 [15:06:42]Write to MH i2c: E2 08 00 F2 64 80 11 00 00 00 00 00 00 D0 [15:06:42]Write i2c OK [15:06:42]MH_I2C_Read... [15:06:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:42]Read from MH i2c: E2 [15:06:42]MH_I2C_Read... [15:06:42]Read from MH i2c: E2 17 00 [15:06:42]MH_I2C_Read... [15:06:42]Read from MH i2c: E2 17 00 F2 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2B [15:06:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:06:42]wFMCommunicate OK [15:06:42]requested_item fd.num is exist - process it [15:06:42]SAM_PROTO_GetFieldsCounters [15:06:42]wFMCommunicate request_size=4 [15:06:42]MH_SAM_APDU [15:06:42]CAPDU: 80 13 00 00 [15:06:42]Write to MH i2c: E2 08 00 F3 64 80 13 00 00 00 00 00 00 D3 [15:06:42]Write i2c OK [15:06:42]MH_I2C_Read... [15:06:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:42]Read from MH i2c: E2 [15:06:42]MH_I2C_Read... [15:06:42]Read from MH i2c: E2 62 00 [15:06:42]MH_I2C_Read... [15:06:42]Read from MH i2c: E2 62 00 F3 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 CF 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [15:06: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 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 CF 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:06:42]wFMCommunicate OK [15:06:42]SAM_PROTO_GetFieldsCounters done [15:06:42]requested_item shift.num is exist - process it [15:06:42]requested_item shift.opened is exist - process it [15:06:42]req_shift_opened [15:06:42]FM_GetShiftState [15:06:42]SAM_PROTO_GetShiftState [15:06:42]wFMCommunicate request_size=4 [15:06:42]MH_SAM_APDU [15:06:42]CAPDU: 80 13 01 00 [15:06:42]Write to MH i2c: E2 08 00 F4 64 80 13 01 00 00 00 00 00 D5 [15:06:42]Write i2c OK [15:06:42]MH_I2C_Read... [15:06:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:42]Read from MH i2c: E2 [15:06:42]MH_I2C_Read... [15:06:42]Read from MH i2c: E2 0E 00 [15:06:42]MH_I2C_Read... [15:06:42]Read from MH i2c: E2 0E 00 F4 64 00 09 00 01 89 19 24 67 00 00 00 00 90 00 0E [15:06:42]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:06:42]wFMCommunicate OK [15:06:42]SAM_PROTO_GetShiftState done [15:06:42]FM_GetShiftState done [15:06:42]req_shift_opened done [15:06:42]requested_item shift.open_date is exist - process it [15:06:42]req_shift_open_date [15:06:42]req_shift_open_date done [15:06:42]produce_requested_data done [15:06:42]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139983,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [15:06:42]process_action_free close_receipt [15:06:42]json_value_free [15:06:42]json_value_free done [15:06:42]process_json_proto returns [15:06:42]Send response to host [15:06:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139983,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [15:06:42]free response buf [15:06:42]execute_script done [15:06:42]execute_script returns [15:06:42]free content buf [15:06:42]Sock 9.Close socket [15:06:42]Sock 9.Thread stoped [15:06:46]OFD Sender: No OFD packet to send [15:06:51]OFD Sender: No OFD packet to send [15:06:56]OFD Sender: No OFD packet to send [15:07:01]OFD Sender: No OFD packet to send [15:07:06]OFD Sender: No OFD packet to send [15:07:11]OFD Sender: No OFD packet to send [15:07:16]OFD Sender: No OFD packet to send [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:29]accept exits with 7 [15:07:29]New connection [15:07:29]New thread 3066654052 created [15:07:29]Thread 3066510692 joined [15:07:29]Waiting for new connection... [15:07:29] Sock 7.Parse request [15:07:29]Sock 7.Check first char [15:07:29]Sock 7.First char is OK [15:07:29]request: POST /json_proto HTTP/1.0 [15:07:29]Method: POST [15:07:29]URL: /json_proto [15:07:29]Method is POST - this is cgi request [15:07:29]url: /json_proto [15:07:29]query_string will be loaded in cgi processing [15:07:29]execute_cgi json_proto POST (null) [15:07:29]execute_cgi path=json_proto method=POST [15:07:29]POST find Content-Length [15:07:29]Host: 172.17.50.196:8080 [15:07:29]Content-Length: 789 [15:07:29]Content-Type: application/json [15:07:29] [15:07:29]POST finish read [15:07:29]Found Content-Length = 789 [15:07:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335799", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:29]execute_script... [15:07: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)335799", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:29]POST & json_proto [15:07:29]process_json_proto [15:07:29]json parsed OK: [15:07:29]protocol is kg_v1.0 [15:07:29]action value=close_receipt [15:07:29]process_action close_receipt [15:07:29]cmd_close_receipt [15:07:29]MH_GetDate [15:07:29]Write to MH i2c: F0 00 00 F5 64 48 [15:07:29]Write i2c OK [15:07:29]MH_I2C_Read... [15:07:29]Read from MH i2c: F0 [15:07:29]MH_I2C_Read... [15:07:29]Read from MH i2c: F0 09 00 [15:07:29]MH_I2C_Read... [15:07:29]Read from MH i2c: F0 09 00 F5 64 00 B8 EE 24 67 72 0D 1C 67 84 [15:07:30]GetLastDocTimeStamp 1730473605 [15:07:30]current date 1730473656 [15:07:30]FM_GetShiftState [15:07:30]SAM_PROTO_GetShiftState [15:07:30]wFMCommunicate request_size=4 [15:07:30]MH_SAM_APDU [15:07:30]CAPDU: 80 13 01 00 [15:07:30]Write to MH i2c: E2 08 00 F6 64 80 13 01 00 00 00 00 00 D7 [15:07:30]Write i2c OK [15:07:30]MH_I2C_Read... [15:07:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:30]Read from MH i2c: E2 [15:07:30]MH_I2C_Read... [15:07:30]Read from MH i2c: E2 0E 00 [15:07:30]MH_I2C_Read... [15:07:30]Read from MH i2c: E2 0E 00 F6 64 00 09 00 01 89 19 24 67 00 00 00 00 90 00 10 [15:07:30]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:07:30]wFMCommunicate OK [15:07:30]SAM_PROTO_GetShiftState done [15:07:30]FM_GetShiftState done [15:07:30]opened in 1730419081 [15:07:30]opened+sec_in_day 1730505481 [15:07:30]quantity*price = 13000 [15:07:30]sum+1 = 13001 [15:07:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 165 01.11.2024 15:07 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874669 ФД: 139984 ФПД: 210067064679300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T150736&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139984&fm=210067064679300&tin=02508201610067®Number=0000000000091631&sum=13000 0 [15:07:31]StoreToDocumentArchive [15:07:31]shift 558 fd 139984 [15:07:31]save to /storage/0558/doc_00139984 [15:07:31]save last doc name /storage/0558/doc_00139984 to /storage/kkm_last_doc_name [15:07:31]save OK [15:07:31]Clear old archive folders... [15:07:31]ProcessDocumentItem done err = 0, tmpTLVsize=276 [15:07:31]tlvbuf is 00A17D70 [15:07:31]SAM_PROTO_ClearQueue [15:07:31]wFMCommunicate request_size=4 [15:07:31]MH_SAM_APDU [15:07:31]CAPDU: 80 09 00 00 [15:07:31]Write to MH i2c: E2 08 00 03 65 80 09 00 00 00 00 00 00 DA [15:07:31]Write i2c OK [15:07:31]MH_I2C_Read... [15:07:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:31]Read from MH i2c: E2 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: E2 03 00 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: E2 03 00 03 65 00 90 00 DC [15:07:31]RAPDU: 90 00 [15:07:31]wFMCommunicate OK [15:07:31]SAM_PROTO_ClearQueue done [15:07:31]KKMCreateOFDPacket [15:07:31]OFDProtocolAddRootSTLVToBuf [15:07:31]FM_MakeSignedData [15:07:31]FM_MakeSignedData [15:07:31]SAM_PROTO_SignData [15:07:31]wFMCommunicate request_size=4 [15:07:31]MH_SAM_APDU [15:07:31]CAPDU: 80 0D 01 02 [15:07:31]Write to MH i2c: E2 08 00 04 65 80 0D 01 02 00 00 00 00 E2 [15:07:31]Write i2c OK [15:07:31]MH_I2C_Read... [15:07:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:31]Read from MH i2c: E2 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: E2 03 00 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: E2 03 00 04 65 00 90 00 DD [15:07:31]RAPDU: 90 00 [15:07:31]wFMCommunicate OK [15:07:31]wFMCommunicate request_size=255 [15:07:31]MH_SAM_APDU [15:07:31]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 A5 00 00 00 F4 03 04 00 B8 EE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 [15:07:31]Write to MH i2c: E2 02 01 05 65 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 A5 00 00 00 F4 03 04 00 B8 EE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 00 00 FE [15:07:31]Write i2c OK [15:07:31]MH_I2C_Read... [15:07:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:31]Read from MH i2c: E2 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: E2 03 00 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: E2 03 00 05 65 00 90 00 DE [15:07:31]RAPDU: 90 00 [15:07:31]wFMCommunicate OK [15:07:31]wFMCommunicate request_size=35 [15:07:31]MH_SAM_APDU [15:07:31]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D0 22 02 00 35 04 06 00 BF 0E 0C C4 EB 84 [15:07:31]Write to MH i2c: E2 26 00 06 65 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D0 22 02 00 35 04 06 00 BF 0E 0C C4 EB 84 00 00 E0 [15:07:31]Write i2c OK [15:07:31]MH_I2C_Read... [15:07:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:31]Read from MH i2c: E2 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: E2 03 00 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: E2 03 00 06 65 00 90 00 DF [15:07:31]RAPDU: 90 00 [15:07:31]wFMCommunicate OK [15:07:31]wFMCommunicate request_size=4 [15:07:31]MH_SAM_APDU [15:07:31]CAPDU: 80 0D 03 02 [15:07:31]Write to MH i2c: E2 08 00 07 65 80 0D 03 02 00 00 00 00 E7 [15:07:31]Write i2c OK [15:07:31]MH_I2C_Read... [15:07:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:31]Read from MH i2c: E2 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: E2 0B 00 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: E2 0B 00 07 65 00 2B 08 37 A8 E2 E4 A9 E1 90 00 4A [15:07:31]RAPDU: 2B 08 37 A8 E2 E4 A9 E1 90 00 [15:07:31]wFMCommunicate OK [15:07:31]SAM_PROTO_SignData done [15:07:31]FM_MakeSignedData done [15:07:31]CreateOFDProtocolMessage [15:07:31]wFMCommunicate request_size=4 [15:07:31]MH_SAM_APDU [15:07:31]CAPDU: 80 11 00 00 [15:07:31]Write to MH i2c: E2 08 00 08 65 80 11 00 00 00 00 00 00 E7 [15:07:31]Write i2c OK [15:07:31]MH_I2C_Read... [15:07:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:31]Read from MH i2c: E2 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: E2 17 00 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: E2 17 00 08 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 42 [15:07:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:07:31]wFMCommunicate OK [15:07:31]CreateOFDProtocolMessage done [15:07:31]OFDSenderStorePacket 139984 [15:07:31]StoreOFDPacket docnum=139984 [15:07:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 28 01 00 00 BC 36 20 01 9D 85 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 A5 00 00 00 F4 03 04 00 B8 EE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D0 22 02 00 35 04 06 00 BF 0E 0C C4 EB 84 2B 08 37 A8 E2 E4 A9 E1 [15:07:31]CheckFolder [15:07:31]dirname=/storage/ofd_packets [15:07:31]CheckFolder done [15:07:31]ProducePacketName [15:07:31]name=ofd_packets/00139984 [15:07:31]NVStorageSaveData ofd_packets/00139984 [15:07:31]File name is /storage/ofd_packets/00139984 [15:07:31]Write 326 bytes [15:07:31]NVStorageSaveData done [15:07:31]OFDSenderStorePacket done [15:07:31]KKMCreateOFDPacket done [15:07:31]NVStorageSaveData kkm_last_timestamp [15:07:31]File name is /storage/kkm_last_timestamp [15:07:31]Write 4 bytes [15:07:31]NVStorageSaveData done [15:07:31]ExternCall_PrintAddStr [15:07:31]wPrintStart [15:07:31]Write to MH i2c: 01 00 00 09 65 6E [15:07:31]OFD Sender: Processing packet 139984 [packets to send 34, broken 33] [15:07:31]ProducePacketName [15:07:31]name=ofd_packets/00139984 [15:07:31]OFD Sender: To server: pG, [15:07:31]CommunicateWithHost lk.salyk.kg:30040 [15:07:31]ConnectInit lk.salyk.kg [15:07:31]Write i2c OK [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: 01 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: 01 07 00 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: 01 07 00 09 65 00 00 00 00 00 FF 0F 83 [15:07:31]RasterBufferAndPrint [15:07:31]line Счет N : (3)335799 [15:07:31]line ИНН: 02508201610067 [15:07:31]line Контрольно-Кассовый Чек [15:07:31]line ПРОДАЖА [15:07:31]line Товар: 2000036230011 [15:07:31]line Кофе Латте XL(GABB TRADE) [15:07:31]line 1.000 * 130.00 [15:07:31]line = 130.00 [15:07:31]line НДС 12% НСП 1% [15:07:31]line > о реализуемом товаре [15:07:31]line ИТОГО: 130.00 [15:07:31]line НСП 1% : 1.15 [15:07:31]line НДС 12% : 13.80 [15:07:31]line Наличными: 0.00 [15:07:31]line Безнал.: 130.00 [15:07:31]line Место: АЗС № 101 "Партнер Нефть" [15:07:31]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:07:31]line СНО: Общий режим [15:07:31]line Чек 165 01.11.2024 15:07 [15:07:31]line Смена: 558 ФФД: 1.0 [15:07:31]line ЗНМ: 0300000081 [15:07:31]line РНМ: 0000000000091631 [15:07:31]line Версия ККМ: 001 [15:07:31]line Платежная система: O! деньги [15:07:31]line ФМ: 0000000000874669 [15:07:31]line ФД: 139984 [15:07:31]line ФПД: 210067064679300 [15:07:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T150736&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139984&fm=210067064679300&tin=02508201610067®Number=0000000000091631&sum=13000 [15:07:32]line 0 [15:07:32]Connected sock=9 [15:07:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 28 01 00 00 BC 36 20 01 9D 85 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 A5 00 00 00 F4 03 04 00 B8 EE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D0 22 02 00 35 04 06 00 BF 0E 0C C4 EB 84 2B 08 37 A8 E2 E4 A9 E1 [15:07:32]written 0, free lines is 4095 [15:07:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 8B D3 47 00 12 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D0 22 02 00 F4 03 04 00 62 9A 24 67 B6 04 01 00 00 E3 55 F4 B4 48 9E 32 A2 [15:07:32]CommunicateWithHost err = 0 [15:07:32]CheckOFDResponse [15:07:32]1017 (14) - 77093643461234 [15:07:32]1041 (16) - 0000000000874669 [15:07:32]1040 (4) - 139984 [15:07:32]1012 (4) - 01.11.2024 09:07 [15:07:32]1206 (1) - 0 [15:07:32]OFD Sender: Remove packet 139984 [15:07:32]ProducePacketName [15:07:32]name=ofd_packets/00139984 [15:07:32]NVStorageDeleteData [15:07:32]Write to MH i2c: 01 00 00 33 65 98 [15:07:32]Write i2c OK [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: 01 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: 01 07 00 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: 01 07 00 33 65 00 00 00 00 00 07 0D B3 [15:07:32]RasterBufferAndPrint [15:07:32]line [15:07:32]line [15:07:32]line [15:07:32]line [15:07:32]line [15:07:32]written 0, free lines is 3341 [15:07:32]MH_Cut [15:07:32]Write to MH i2c: D1 01 00 3A 65 01 71 [15:07:32]Write i2c OK [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: D1 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: D1 01 00 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: D1 01 00 3A 65 00 70 [15:07:32]Write to MH i2c: 01 00 00 3B 65 A0 [15:07:32]Write i2c OK [15:07:32]MH_I2C_Read... [15:07:32]OFD Sender: No OFD packet to send [15:07:33]*** Cut start [15:07:33]*** Partial cut [15:07:33]*** CUTSNS_PIN = 1 [15:07:33]*** CUTSNS_PIN = 0 [15:07:33]*** Brake cut motor [15:07:33]Read from MH i2c: 01 [15:07:33]MH_I2C_Read... [15:07:33]*** Stop cut motor [15:07:33]*** Cut end [15:07:33]Read from MH i2c: 01 07 00 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: 01 07 00 3B 65 00 00 00 00 00 FF 0F B5 [15:07:33]process_action close_receipt done [15:07:33]requested_data is exist [15:07:33]produce_requested_data [15:07:33]requested_item fm.sn is exist - process it [15:07:33]wFMCommunicate request_size=4 [15:07:33]MH_SAM_APDU [15:07:33]CAPDU: 80 11 00 00 [15:07:33]Write to MH i2c: E2 08 00 3C 65 80 11 00 00 00 00 00 00 1B [15:07:33]Write i2c OK [15:07:33]MH_I2C_Read... [15:07:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:33]Read from MH i2c: E2 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: E2 17 00 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: E2 17 00 3C 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 76 [15:07:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:07:33]wFMCommunicate OK [15:07:33]requested_item fd.num is exist - process it [15:07:33]SAM_PROTO_GetFieldsCounters [15:07:33]wFMCommunicate request_size=4 [15:07:33]MH_SAM_APDU [15:07:33]CAPDU: 80 13 00 00 [15:07:33]Write to MH i2c: E2 08 00 3D 65 80 13 00 00 00 00 00 00 1E [15:07:33]Write i2c OK [15:07:33]MH_I2C_Read... [15:07:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:34]Read from MH i2c: E2 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: E2 62 00 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: E2 62 00 3D 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D0 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [15:07:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D0 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:34]wFMCommunicate OK [15:07:34]SAM_PROTO_GetFieldsCounters done [15:07:34]requested_item shift.num is exist - process it [15:07:34]requested_item shift.opened is exist - process it [15:07:34]req_shift_opened [15:07:34]FM_GetShiftState [15:07:34]SAM_PROTO_GetShiftState [15:07:34]wFMCommunicate request_size=4 [15:07:34]MH_SAM_APDU [15:07:34]CAPDU: 80 13 01 00 [15:07:34]Write to MH i2c: E2 08 00 3E 65 80 13 01 00 00 00 00 00 20 [15:07:34]Write i2c OK [15:07:34]MH_I2C_Read... [15:07:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:34]Read from MH i2c: E2 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: E2 0E 00 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: E2 0E 00 3E 65 00 09 00 01 89 19 24 67 00 00 00 00 90 00 59 [15:07:34]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:07:34]wFMCommunicate OK [15:07:34]SAM_PROTO_GetShiftState done [15:07:34]FM_GetShiftState done [15:07:34]req_shift_opened done [15:07:34]requested_item shift.open_date is exist - process it [15:07:34]req_shift_open_date [15:07:34]req_shift_open_date done [15:07:34]produce_requested_data done [15:07:34]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139984,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [15:07:34]process_action_free close_receipt [15:07:34]json_value_free [15:07:34]json_value_free done [15:07:34]process_json_proto returns [15:07:34]Send response to host [15:07:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139984,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [15:07:34]free response buf [15:07:34]execute_script done [15:07:34]execute_script returns [15:07:34]free content buf [15:07:34]Sock 7.Close socket [15:07:34]Sock 7.Thread stoped [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:53]accept exits with 10 [15:08:53]New connection [15:08:53]New thread 3066510692 created [15:08:53]Thread 3066654052 joined [15:08:53]Waiting for new connection... [15:08:53] Sock 10.Parse request [15:08:53]Sock 10.Check first char [15:08:53]Sock 10.First char is OK [15:08:53]request: POST /json_proto HTTP/1.0 [15:08:53]Method: POST [15:08:53]URL: /json_proto [15:08:53]Method is POST - this is cgi request [15:08:53]url: /json_proto [15:08:53]query_string will be loaded in cgi processing [15:08:53]execute_cgi json_proto POST (null) [15:08:53]execute_cgi path=json_proto method=POST [15:08:53]POST find Content-Length [15:08:53]Host: 172.17.50.196:8080 [15:08:53]Content-Length: 972 [15:08:53]Content-Type: application/json [15:08:53] [15:08:53]POST finish read [15:08:53]Found Content-Length = 972 [15:08:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335800", "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": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:53]execute_script... [15:08: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)335800", "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": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:53]POST & json_proto [15:08:53]process_json_proto [15:08:53]json parsed OK: [15:08:53]protocol is kg_v1.0 [15:08:53]action value=close_receipt [15:08:53]process_action close_receipt [15:08:53]cmd_close_receipt [15:08:53]MH_GetDate [15:08:53]Write to MH i2c: F0 00 00 3F 65 93 [15:08:53]Write i2c OK [15:08:53]MH_I2C_Read... [15:08:53]Read from MH i2c: F0 [15:08:53]MH_I2C_Read... [15:08:53]Read from MH i2c: F0 09 00 [15:08:53]MH_I2C_Read... [15:08:53]Read from MH i2c: F0 09 00 3F 65 00 0B EF 24 67 72 0D 1C 67 23 [15:08:53]GetLastDocTimeStamp 1730473656 [15:08:53]current date 1730473739 [15:08:53]FM_GetShiftState [15:08:53]SAM_PROTO_GetShiftState [15:08:53]wFMCommunicate request_size=4 [15:08:53]MH_SAM_APDU [15:08:53]CAPDU: 80 13 01 00 [15:08:53]Write to MH i2c: E2 08 00 40 65 80 13 01 00 00 00 00 00 22 [15:08:53]Write i2c OK [15:08:53]MH_I2C_Read... [15:08:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:53]Read from MH i2c: E2 [15:08:53]MH_I2C_Read... [15:08:53]Read from MH i2c: E2 0E 00 [15:08:53]MH_I2C_Read... [15:08:53]Read from MH i2c: E2 0E 00 40 65 00 09 00 01 89 19 24 67 00 00 00 00 90 00 5B [15:08:53]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:08:53]wFMCommunicate OK [15:08:53]SAM_PROTO_GetShiftState done [15:08:53]FM_GetShiftState done [15:08:53]opened in 1730419081 [15:08:53]opened+sec_in_day 1730505481 [15:08:53]quantity*price = 7500 [15:08:53]sum+1 = 7501 [15:08:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.76 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 166 01.11.2024 15:08 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139985 ФПД: 195677343948741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T150859&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139985&fm=195677343948741&tin=02508201610067®Number=0000000000091631&sum=20500 0 [15:08:54]StoreToDocumentArchive [15:08:54]shift 558 fd 139985 [15:08:54]save to /storage/0558/doc_00139985 [15:08:54]save last doc name /storage/0558/doc_00139985 to /storage/kkm_last_doc_name [15:08:54]save OK [15:08:54]Clear old archive folders... [15:08:54]ProcessDocumentItem done err = 0, tmpTLVsize=416 [15:08:54]tlvbuf is 00C5D8A0 [15:08:54]SAM_PROTO_ClearQueue [15:08:54]wFMCommunicate request_size=4 [15:08:54]MH_SAM_APDU [15:08:54]CAPDU: 80 09 00 00 [15:08:54]Write to MH i2c: E2 08 00 4D 65 80 09 00 00 00 00 00 00 24 [15:08:54]Write i2c OK [15:08:54]MH_I2C_Read... [15:08:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:54]Read from MH i2c: E2 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: E2 03 00 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: E2 03 00 4D 65 00 90 00 26 [15:08:54]RAPDU: 90 00 [15:08:54]wFMCommunicate OK [15:08:54]SAM_PROTO_ClearQueue done [15:08:54]KKMCreateOFDPacket [15:08:54]OFDProtocolAddRootSTLVToBuf [15:08:54]FM_MakeSignedData [15:08:54]FM_MakeSignedData [15:08:54]SAM_PROTO_SignData [15:08:54]wFMCommunicate request_size=4 [15:08:54]MH_SAM_APDU [15:08:54]CAPDU: 80 0D 01 02 [15:08:54]Write to MH i2c: E2 08 00 4E 65 80 0D 01 02 00 00 00 00 2C [15:08:54]Write i2c OK [15:08:54]MH_I2C_Read... [15:08:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:54]Read from MH i2c: E2 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: E2 03 00 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: E2 03 00 4E 65 00 90 00 27 [15:08:54]RAPDU: 90 00 [15:08:54]wFMCommunicate OK [15:08:54]wFMCommunicate request_size=255 [15:08:54]MH_SAM_APDU [15:08:54]CAPDU: 80 0D 02 02 FA 03 00 A0 01 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 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 [15:08:54]Write to MH i2c: E2 02 01 4F 65 80 0D 02 02 FA 00 03 00 A0 01 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 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 00 00 4A [15:08:54]Write i2c OK [15:08:54]MH_I2C_Read... [15:08:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:54]Read from MH i2c: E2 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: E2 03 00 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: E2 03 00 4F 65 00 90 00 28 [15:08:54]RAPDU: 90 00 [15:08:54]wFMCommunicate OK [15:08:54]wFMCommunicate request_size=175 [15:08:54]MH_SAM_APDU [15:08:54]CAPDU: 80 0D 02 02 AA BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 0B EF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D1 22 02 00 35 04 06 00 B1 F7 AE 93 9F C5 [15:08:54]Write to MH i2c: E2 B2 00 50 65 80 0D 02 02 AA 00 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 0B EF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D1 22 02 00 35 04 06 00 B1 F7 AE 93 9F C5 00 00 2C [15:08:54]Write i2c OK [15:08:54]MH_I2C_Read... [15:08:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:54]Read from MH i2c: E2 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: E2 03 00 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: E2 03 00 50 65 00 90 00 29 [15:08:54]RAPDU: 90 00 [15:08:54]wFMCommunicate OK [15:08:54]wFMCommunicate request_size=4 [15:08:54]MH_SAM_APDU [15:08:54]CAPDU: 80 0D 03 02 [15:08:54]Write to MH i2c: E2 08 00 51 65 80 0D 03 02 00 00 00 00 31 [15:08:54]Write i2c OK [15:08:54]MH_I2C_Read... [15:08:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:54]Read from MH i2c: E2 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: E2 0B 00 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: E2 0B 00 51 65 00 35 A1 07 E5 9F FA 7C 7E 90 00 87 [15:08:54]RAPDU: 35 A1 07 E5 9F FA 7C 7E 90 00 [15:08:54]wFMCommunicate OK [15:08:54]SAM_PROTO_SignData done [15:08:54]FM_MakeSignedData done [15:08:54]CreateOFDProtocolMessage [15:08:54]wFMCommunicate request_size=4 [15:08:54]MH_SAM_APDU [15:08:54]CAPDU: 80 11 00 00 [15:08:54]Write to MH i2c: E2 08 00 52 65 80 11 00 00 00 00 00 00 31 [15:08:54]Write i2c OK [15:08:54]MH_I2C_Read... [15:08:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:54]Read from MH i2c: E2 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: E2 17 00 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: E2 17 00 52 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8C [15:08:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:08:54]wFMCommunicate OK [15:08:54]CreateOFDProtocolMessage done [15:08:54]OFDSenderStorePacket 139985 [15:08:54]StoreOFDPacket docnum=139985 [15:08:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B4 01 00 00 73 69 AC 01 D5 CA 5A 03 01 00 03 00 A0 01 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 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 0B EF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D1 22 02 00 35 04 06 00 B1 F7 AE 93 9F C5 35 A1 07 E5 9F FA 7C 7E [15:08:54]CheckFolder [15:08:54]dirname=/storage/ofd_packets [15:08:54]CheckFolder done [15:08:54]ProducePacketName [15:08:54]name=ofd_packets/00139985 [15:08:54]NVStorageSaveData ofd_packets/00139985 [15:08:54]File name is /storage/ofd_packets/00139985 [15:08:54]Write 466 bytes [15:08:54]NVStorageSaveData done [15:08:54]OFDSenderStorePacket done [15:08:54]KKMCreateOFDPacket done [15:08:54]NVStorageSaveData kkm_last_timestamp [15:08:54]File name is /storage/kkm_last_timestamp [15:08:54]Write 4 bytes [15:08:54]NVStorageSaveData done [15:08:54]ExternCall_PrintAddStr [15:08:54]wPrintStart [15:08:54]Write to MH i2c: 01 00 00 53 65 B8 [15:08:54]Write i2c OK [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: 01 [15:08:55]MH_I2C_Read... [15:08:55]OFD Sender: Processing packet 139985 [packets to send 34, broken 33] [15:08:55]ProducePacketName [15:08:55]name=ofd_packets/00139985 [15:08:55]OFD Sender: To server: pG, [15:08:55]CommunicateWithHost lk.salyk.kg:30040 [15:08:55]ConnectInit lk.salyk.kg [15:08:55]Read from MH i2c: 01 07 00 [15:08:55]MH_I2C_Read... [15:08:55]Read from MH i2c: 01 07 00 53 65 00 00 00 00 00 FF 0F CD [15:08:55]RasterBufferAndPrint [15:08:55]line Счет N : (3)335800 [15:08:55]line ИНН: 02508201610067 [15:08:55]line Контрольно-Кассовый Чек [15:08:55]line ПРОДАЖА [15:08:55]line Товар: 4870112003956 [15:08:55]line Шок батончик ALBENI SUPER Альбени Супер [15:08:55]line 1.000 * 75.00 [15:08:55]line = 75.00 [15:08:55]line НДС 12% НСП 1% [15:08:55]line > о реализуемом товаре [15:08:55]line Товар: 2000036220012 [15:08:55]line Кофе Капучино XL(GABB TRADE) [15:08:55]line 1.000 * 130.00 [15:08:55]line = 130.00 [15:08:55]line НДС 12% НСП 1% [15:08:55]line > о реализуемом товаре [15:08:55]line ИТОГО: 205.00 [15:08:55]line НСП 1% : 1.81 [15:08:55]line НДС 12% : 21.76 [15:08:55]line Наличными: 205.00 [15:08:55]line Безнал.: 0.00 [15:08:55]line Место: АЗС № 101 "Партнер Нефть" [15:08:55]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:08:55]line СНО: Общий режим [15:08:55]line Чек 166 01.11.2024 15:08 [15:08:55]line Смена: 558 ФФД: 1.0 [15:08:55]line ЗНМ: 0300000081 [15:08:55]line РНМ: 0000000000091631 [15:08:55]line Версия ККМ: 001 [15:08:55]line ФМ: 0000000000874669 [15:08:55]line ФД: 139985 [15:08:55]line ФПД: 195677343948741 [15:08:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T150859&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139985&fm=195677343948741&tin=02508201610067®Number=0000000000091631&sum=20500 [15:08:55]line 0 [15:08:55]written 0, free lines is 4095 [15:08:55]Connected sock=9 [15:08:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B4 01 00 00 73 69 AC 01 D5 CA 5A 03 01 00 03 00 A0 01 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 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 0B EF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D1 22 02 00 35 04 06 00 B1 F7 AE 93 9F C5 35 A1 07 E5 9F FA 7C 7E [15:08:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 CF B9 47 00 E4 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D1 22 02 00 F4 03 04 00 B6 9A 24 67 B6 04 01 00 00 7F 35 40 D1 E7 50 A1 43 [15:08:55]CommunicateWithHost err = 0 [15:08:55]CheckOFDResponse [15:08:55]1017 (14) - 77093643461234 [15:08:55]1041 (16) - 0000000000874669 [15:08:55]1040 (4) - 139985 [15:08:55]1012 (4) - 01.11.2024 09:09 [15:08:55]1206 (1) - 0 [15:08:55]OFD Sender: Remove packet 139985 [15:08:55]ProducePacketName [15:08:55]name=ofd_packets/00139985 [15:08:55]NVStorageDeleteData [15:08:55]Write to MH i2c: 01 00 00 83 65 E8 [15:08:55]Write i2c OK [15:08:55]MH_I2C_Read... [15:08:55]Read from MH i2c: 01 [15:08:55]MH_I2C_Read... [15:08:55]Read from MH i2c: 01 07 00 [15:08:55]MH_I2C_Read... [15:08:55]Read from MH i2c: 01 07 00 83 65 00 00 00 00 00 B3 0C AE [15:08:55]RasterBufferAndPrint [15:08:55]line [15:08:55]line [15:08:55]line [15:08:55]line [15:08:55]line [15:08:55]written 0, free lines is 3258 [15:08:55]MH_Cut [15:08:55]Write to MH i2c: D1 01 00 8A 65 01 C1 [15:08:55]Write i2c OK [15:08:55]MH_I2C_Read... [15:08:55]Read from MH i2c: D1 [15:08:55]MH_I2C_Read... [15:08:55]Read from MH i2c: D1 01 00 [15:08:55]MH_I2C_Read... [15:08:55]Read from MH i2c: D1 01 00 8A 65 00 C0 [15:08:55]Write to MH i2c: 01 00 00 8B 65 F0 [15:08:55]Write i2c OK [15:08:55]MH_I2C_Read... [15:08:56]OFD Sender: No OFD packet to send [15:08:56]*** Cut start [15:08:56]*** Partial cut [15:08:56]*** CUTSNS_PIN = 1 [15:08:56]*** CUTSNS_PIN = 0 [15:08:56]*** Brake cut motor [15:08:57]Read from MH i2c: 01 [15:08:57]MH_I2C_Read... [15:08:57]*** Stop cut motor [15:08:57]*** Cut end [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 8B 65 00 00 00 00 00 FF 0F 05 [15:08:57]process_action close_receipt done [15:08:57]requested_data is exist [15:08:57]produce_requested_data [15:08:57]requested_item fm.sn is exist - process it [15:08:57]wFMCommunicate request_size=4 [15:08:57]MH_SAM_APDU [15:08:57]CAPDU: 80 11 00 00 [15:08:57]Write to MH i2c: E2 08 00 8C 65 80 11 00 00 00 00 00 00 6B [15:08:57]Write i2c OK [15:08:57]MH_I2C_Read... [15:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:57]Read from MH i2c: E2 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: E2 17 00 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: E2 17 00 8C 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C6 [15:08:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:08:57]wFMCommunicate OK [15:08:57]requested_item fd.num is exist - process it [15:08:57]SAM_PROTO_GetFieldsCounters [15:08:57]wFMCommunicate request_size=4 [15:08:57]MH_SAM_APDU [15:08:57]CAPDU: 80 13 00 00 [15:08:57]Write to MH i2c: E2 08 00 8D 65 80 13 00 00 00 00 00 00 6E [15:08:57]Write i2c OK [15:08:57]MH_I2C_Read... [15:08:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:57]Read from MH i2c: E2 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: E2 62 00 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: E2 62 00 8D 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D1 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [15:08:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D1 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:08:57]wFMCommunicate OK [15:08:57]SAM_PROTO_GetFieldsCounters done [15:08:57]requested_item shift.num is exist - process it [15:08:57]requested_item shift.opened is exist - process it [15:08:57]req_shift_opened [15:08:57]FM_GetShiftState [15:08:57]SAM_PROTO_GetShiftState [15:08:57]wFMCommunicate request_size=4 [15:08:57]MH_SAM_APDU [15:08:57]CAPDU: 80 13 01 00 [15:08:57]Write to MH i2c: E2 08 00 8E 65 80 13 01 00 00 00 00 00 70 [15:08:57]Write i2c OK [15:08:57]MH_I2C_Read... [15:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:57]Read from MH i2c: E2 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: E2 0E 00 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: E2 0E 00 8E 65 00 09 00 01 89 19 24 67 00 00 00 00 90 00 A9 [15:08:57]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:08:57]wFMCommunicate OK [15:08:57]SAM_PROTO_GetShiftState done [15:08:57]FM_GetShiftState done [15:08:57]req_shift_opened done [15:08:57]requested_item shift.open_date is exist - process it [15:08:57]req_shift_open_date [15:08:57]req_shift_open_date done [15:08:57]produce_requested_data done [15:08:57]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139985,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [15:08:57]process_action_free close_receipt [15:08:57]json_value_free [15:08:57]json_value_free done [15:08:57]process_json_proto returns [15:08:57]Send response to host [15:08:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139985,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [15:08:57]free response buf [15:08:57]execute_script done [15:08:57]execute_script returns [15:08:57]free content buf [15:08:57]Sock 10.Close socket [15:08:57]Sock 10.Thread stoped [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:11]OFD Sender: No OFD packet to send [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [15:09:46]OFD Sender: No OFD packet to send [15:09:51]OFD Sender: No OFD packet to send [15:09:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:32]accept exits with 7 [15:10:32]New connection [15:10:32]New thread 3066654052 created [15:10:32]Thread 3066510692 joined [15:10:32]Waiting for new connection... [15:10:32] Sock 7.Parse request [15:10:32]Sock 7.Check first char [15:10:32]Sock 7.First char is OK [15:10:32]request: POST /json_proto HTTP/1.0 [15:10:32]Method: POST [15:10:32]URL: /json_proto [15:10:32]Method is POST - this is cgi request [15:10:32]url: /json_proto [15:10:32]query_string will be loaded in cgi processing [15:10:32]execute_cgi json_proto POST (null) [15:10:32]execute_cgi path=json_proto method=POST [15:10:32]POST find Content-Length [15:10:32]Host: 172.17.50.196:8080 [15:10:32]Content-Length: 1444 [15:10:32]Content-Type: application/json [15:10:32] [15:10:32]POST finish read [15:10:32]Found Content-Length = 1444 [15:10:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335801", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:32]execute_script... [15:10: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)335801", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:32]POST & json_proto [15:10:32]process_json_proto [15:10:32]json parsed OK: [15:10:32]protocol is kg_v1.0 [15:10:32]action value=close_receipt [15:10:32]process_action close_receipt [15:10:32]cmd_close_receipt [15:10:32]MH_GetDate [15:10:32]Write to MH i2c: F0 00 00 8F 65 E3 [15:10:32]Write i2c OK [15:10:32]MH_I2C_Read... [15:10:32]Read from MH i2c: F0 [15:10:32]MH_I2C_Read... [15:10:32]Read from MH i2c: F0 09 00 [15:10:32]MH_I2C_Read... [15:10:32]Read from MH i2c: F0 09 00 8F 65 00 6E EF 24 67 72 0D 1C 67 D6 [15:10:32]GetLastDocTimeStamp 1730473739 [15:10:32]current date 1730473838 [15:10:32]FM_GetShiftState [15:10:32]SAM_PROTO_GetShiftState [15:10:32]wFMCommunicate request_size=4 [15:10:32]MH_SAM_APDU [15:10:32]CAPDU: 80 13 01 00 [15:10:32]Write to MH i2c: E2 08 00 90 65 80 13 01 00 00 00 00 00 72 [15:10:32]Write i2c OK [15:10:32]MH_I2C_Read... [15:10:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:32]Read from MH i2c: E2 [15:10:32]MH_I2C_Read... [15:10:32]Read from MH i2c: E2 0E 00 [15:10:32]MH_I2C_Read... [15:10:32]Read from MH i2c: E2 0E 00 90 65 00 09 00 01 89 19 24 67 00 00 00 00 90 00 AB [15:10:32]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:10:32]wFMCommunicate OK [15:10:32]SAM_PROTO_GetShiftState done [15:10:32]FM_GetShiftState done [15:10:32]opened in 1730419081 [15:10:32]opened+sec_in_day 1730505481 [15:10:32]quantity*price = 7000 [15:10:32]sum+1 = 7001 [15:10:32]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032760017 Слойка DC треугольная мясо110г 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000189356 Холодный чай Fuse манго ананас 1л 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.25 НДС 12% : 27.07 Наличными: 0.00 Безнал.: 255.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 167 01.11.2024 15:10 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139986 ФПД: 97183315567947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T151038&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139986&fm=97183315567947&tin=02508201610067®Number=0000000000091631&sum=25500 0 [15:10:33]StoreToDocumentArchive [15:10:33]shift 558 fd 139986 [15:10:33]save to /storage/0558/doc_00139986 [15:10:33]save last doc name /storage/0558/doc_00139986 to /storage/kkm_last_doc_name [15:10:33]save OK [15:10:33]Clear old archive folders... [15:10:33]ProcessDocumentItem done err = 0, tmpTLVsize=545 [15:10:33]tlvbuf is 00C6EC60 [15:10:33]SAM_PROTO_ClearQueue [15:10:33]wFMCommunicate request_size=4 [15:10:33]MH_SAM_APDU [15:10:33]CAPDU: 80 09 00 00 [15:10:33]Write to MH i2c: E2 08 00 9D 65 80 09 00 00 00 00 00 00 74 [15:10:33]Write i2c OK [15:10:33]MH_I2C_Read... [15:10:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:33]Read from MH i2c: E2 [15:10:33]MH_I2C_Read... [15:10:33]Read from MH i2c: E2 03 00 [15:10:33]MH_I2C_Read... [15:10:33]Read from MH i2c: E2 03 00 9D 65 00 90 00 76 [15:10:33]RAPDU: 90 00 [15:10:33]wFMCommunicate OK [15:10:33]SAM_PROTO_ClearQueue done [15:10:33]KKMCreateOFDPacket [15:10:33]OFDProtocolAddRootSTLVToBuf [15:10:33]FM_MakeSignedData [15:10:33]FM_MakeSignedData [15:10:33]SAM_PROTO_SignData [15:10:33]wFMCommunicate request_size=4 [15:10:33]MH_SAM_APDU [15:10:33]CAPDU: 80 0D 01 02 [15:10:33]Write to MH i2c: E2 08 00 9E 65 80 0D 01 02 00 00 00 00 7C [15:10:33]Write i2c OK [15:10:33]MH_I2C_Read... [15:10:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:33]Read from MH i2c: E2 [15:10:33]MH_I2C_Read... [15:10:33]Read from MH i2c: E2 03 00 [15:10:33]MH_I2C_Read... [15:10:33]Read from MH i2c: E2 03 00 9E 65 00 90 00 77 [15:10:33]RAPDU: 90 00 [15:10:33]wFMCommunicate OK [15:10:33]wFMCommunicate request_size=255 [15:10:33]MH_SAM_APDU [15:10:33]CAPDU: 80 0D 02 02 FA 03 00 21 02 1E 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 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 [15:10:33]Write to MH i2c: E2 02 01 9F 65 80 0D 02 02 FA 00 03 00 21 02 1E 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 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 00 0E [15:10:33]Write i2c OK [15:10:33]MH_I2C_Read... [15:10:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:34]Read from MH i2c: E2 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: E2 03 00 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: E2 03 00 9F 65 00 90 00 78 [15:10:34]RAPDU: 90 00 [15:10:34]wFMCommunicate OK [15:10:34]wFMCommunicate request_size=255 [15:10:34]MH_SAM_APDU [15:10:34]CAPDU: 80 0D 02 02 FA 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 63 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 6E EF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [15:10:34]Write to MH i2c: E2 02 01 A0 65 80 0D 02 02 FA 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 63 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 6E EF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 33 [15:10:34]Write i2c OK [15:10:34]MH_I2C_Read... [15:10:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:34]Read from MH i2c: E2 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: E2 03 00 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: E2 03 00 A0 65 00 90 00 79 [15:10:34]RAPDU: 90 00 [15:10:34]wFMCommunicate OK [15:10:34]wFMCommunicate request_size=54 [15:10:34]MH_SAM_APDU [15:10:34]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D2 22 02 00 35 04 06 00 58 63 41 00 A5 4B [15:10:34]Write to MH i2c: E2 39 00 A1 65 80 0D 02 02 31 00 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D2 22 02 00 35 04 06 00 58 63 41 00 A5 4B 00 00 8C [15:10:34]Write i2c OK [15:10:34]MH_I2C_Read... [15:10:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:34]Read from MH i2c: E2 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: E2 03 00 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: E2 03 00 A1 65 00 90 00 7A [15:10:34]RAPDU: 90 00 [15:10:34]wFMCommunicate OK [15:10:34]wFMCommunicate request_size=4 [15:10:34]MH_SAM_APDU [15:10:34]CAPDU: 80 0D 03 02 [15:10:34]Write to MH i2c: E2 08 00 A2 65 80 0D 03 02 00 00 00 00 82 [15:10:34]Write i2c OK [15:10:34]MH_I2C_Read... [15:10:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:34]Read from MH i2c: E2 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: E2 0B 00 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: E2 0B 00 A2 65 00 F3 13 BC 0D 1D 47 FC DD 90 00 8F [15:10:34]RAPDU: F3 13 BC 0D 1D 47 FC DD 90 00 [15:10:34]wFMCommunicate OK [15:10:34]SAM_PROTO_SignData done [15:10:34]FM_MakeSignedData done [15:10:34]CreateOFDProtocolMessage [15:10:34]wFMCommunicate request_size=4 [15:10:34]MH_SAM_APDU [15:10:34]CAPDU: 80 11 00 00 [15:10:34]Write to MH i2c: E2 08 00 A3 65 80 11 00 00 00 00 00 00 82 [15:10:34]Write i2c OK [15:10:34]MH_I2C_Read... [15:10:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:34]Read from MH i2c: E2 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: E2 17 00 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: E2 17 00 A3 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DD [15:10:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:10:34]wFMCommunicate OK [15:10:34]CreateOFDProtocolMessage done [15:10:34]OFDSenderStorePacket 139986 [15:10:34]StoreOFDPacket docnum=139986 [15:10:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 35 02 00 00 7B 68 2D 02 C5 BD 5A 03 01 00 03 00 21 02 1E 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 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 63 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 6E EF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D2 22 02 00 35 04 06 00 58 63 41 00 A5 4B F3 13 BC 0D 1D 47 FC DD [15:10:34]CheckFolder [15:10:34]dirname=/storage/ofd_packets [15:10:34]CheckFolder done [15:10:34]ProducePacketName [15:10:34]name=ofd_packets/00139986 [15:10:34]NVStorageSaveData ofd_packets/00139986 [15:10:34]File name is /storage/ofd_packets/00139986 [15:10:34]Write 595 bytes [15:10:34]NVStorageSaveData done [15:10:34]OFDSenderStorePacket done [15:10:34]KKMCreateOFDPacket done [15:10:34]NVStorageSaveData kkm_last_timestamp [15:10:34]File name is /storage/kkm_last_timestamp [15:10:34]Write 4 bytes [15:10:34]NVStorageSaveData done [15:10:34]ExternCall_PrintAddStr [15:10:34]wPrintStart [15:10:34]Write to MH i2c: 01 00 00 A4 65 09 [15:10:34]Write i2c OK [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: 01 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: 01 07 00 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: 01 07 00 A4 65 00 00 00 00 00 FF 0F 1E [15:10:34]RasterBufferAndPrint [15:10:34]line Счет N : (3)335801 [15:10:34]line ИНН: 02508201610067 [15:10:34]line Контрольно-Кассовый Чек [15:10:34]line ПРОДАЖА [15:10:34]line Товар: 4870202521148 [15:10:34]line Напиток MAXI чай зел лимон 0.45л [15:10:34]line 1.000 * 70.00 [15:10:34]line = 70.00 [15:10:34]line НДС 12% НСП 1% [15:10:34]line > о реализуемом товаре [15:10:34]line Товар: 2000032760017 [15:10:34]line Слойка DC треугольная мясо110г [15:10:34]line 1.000 * 65.00 [15:10:34]line = 65.00 [15:10:34]line НДС 12% НСП 1% [15:10:34]line > о реализуемом товаре [15:10:34]line Товар: 5449000189356 [15:10:34]line Холодный чай Fuse манго ананас 1л [15:10:34]line 1.000 * 120.00 [15:10:34]line = 120.00 [15:10:34]line НДС 12% НСП 1% [15:10:34]line > о реализуемом товаре [15:10:34]line ИТОГО: 255.00 [15:10:34]line НСП 1% : 2.25 [15:10:34]line НДС 12% : 27.07 [15:10:34]line Наличными: 0.00 [15:10:34]line Безнал.: 255.00 [15:10:34]line Место: АЗС № 101 "Партнер Нефть" [15:10:34]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:10:34]line СНО: Общий режим [15:10:34]line Чек 167 01.11.2024 15:10 [15:10:34]line Смена: 558 ФФД: 1.0 [15:10:34]line ЗНМ: 0300000081 [15:10:34]line РНМ: 0000000000091631 [15:10:34]line Версия ККМ: 001 [15:10:34]line Платежная система: Mbank [15:10:34]line ФМ: 0000000000874669 [15:10:34]line ФД: 139986 [15:10:34]line ФПД: 97183315567947 [15:10:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T151038&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139986&fm=97183315567947&tin=02508201610067®Number=0000000000091631&sum=25500 [15:10:34]OFD Sender: Processing packet 139986 [packets to send 34, broken 33] [15:10:34]ProducePacketName [15:10:34]name=ofd_packets/00139986 [15:10:34]OFD Sender: To server: pG, [15:10:34]CommunicateWithHost lk.salyk.kg:30040 [15:10:34]ConnectInit lk.salyk.kg [15:10:34]line 0 [15:10:34]written 0, free lines is 4095 [15:10:35]Connected sock=10 [15:10:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 35 02 00 00 7B 68 2D 02 C5 BD 5A 03 01 00 03 00 21 02 1E 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 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 63 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 6E EF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D2 22 02 00 35 04 06 00 58 63 41 00 A5 4B F3 13 BC 0D 1D 47 FC DD [15:10:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 F0 BA 47 00 3D 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D2 22 02 00 F4 03 04 00 19 9B 24 67 B6 04 01 00 00 62 CA 8C 52 CE F8 FB 75 [15:10:35]CommunicateWithHost err = 0 [15:10:35]CheckOFDResponse [15:10:35]1017 (14) - 77093643461234 [15:10:35]1041 (16) - 0000000000874669 [15:10:35]1040 (4) - 139986 [15:10:35]1012 (4) - 01.11.2024 09:10 [15:10:35]1206 (1) - 0 [15:10:35]OFD Sender: Remove packet 139986 [15:10:35]ProducePacketName [15:10:35]name=ofd_packets/00139986 [15:10:35]NVStorageDeleteData [15:10:35]Write to MH i2c: 01 00 00 DC 65 41 [15:10:35]Write i2c OK [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: 01 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: 01 07 00 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: 01 07 00 DC 65 00 00 00 00 00 33 0C 87 [15:10:35]RasterBufferAndPrint [15:10:35]line [15:10:35]line [15:10:35]line [15:10:35]line [15:10:35]line [15:10:35]written 0, free lines is 3132 [15:10:35]MH_Cut [15:10:35]Write to MH i2c: D1 01 00 E3 65 01 1A [15:10:35]Write i2c OK [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: D1 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: D1 01 00 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: D1 01 00 E3 65 00 19 [15:10:35]Write to MH i2c: 01 00 00 E4 65 49 [15:10:35]Write i2c OK [15:10:35]MH_I2C_Read... [15:10:35]OFD Sender: No OFD packet to send [15:10:36]*** Cut start [15:10:36]*** Partial cut [15:10:36]*** CUTSNS_PIN = 1 [15:10:36]*** CUTSNS_PIN = 0 [15:10:36]*** Brake cut motor [15:10:36]Read from MH i2c: 01 [15:10:36]MH_I2C_Read... [15:10:36]*** Stop cut motor [15:10:36]*** Cut end [15:10:36]Read from MH i2c: 01 07 00 [15:10:36]MH_I2C_Read... [15:10:36]Read from MH i2c: 01 07 00 E4 65 00 00 00 00 00 FF 0F 5E [15:10:36]process_action close_receipt done [15:10:36]requested_data is exist [15:10:36]produce_requested_data [15:10:36]requested_item fm.sn is exist - process it [15:10:36]wFMCommunicate request_size=4 [15:10:36]MH_SAM_APDU [15:10:36]CAPDU: 80 11 00 00 [15:10:36]Write to MH i2c: E2 08 00 E5 65 80 11 00 00 00 00 00 00 C4 [15:10:36]Write i2c OK [15:10:36]MH_I2C_Read... [15:10:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:37]Read from MH i2c: E2 [15:10:37]MH_I2C_Read... [15:10:37]Read from MH i2c: E2 17 00 [15:10:37]MH_I2C_Read... [15:10:37]Read from MH i2c: E2 17 00 E5 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1F [15:10:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:10:37]wFMCommunicate OK [15:10:37]requested_item fd.num is exist - process it [15:10:37]SAM_PROTO_GetFieldsCounters [15:10:37]wFMCommunicate request_size=4 [15:10:37]MH_SAM_APDU [15:10:37]CAPDU: 80 13 00 00 [15:10:37]Write to MH i2c: E2 08 00 E6 65 80 13 00 00 00 00 00 00 C7 [15:10:37]Write i2c OK [15:10:37]MH_I2C_Read... [15:10:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:37]Read from MH i2c: E2 [15:10:37]MH_I2C_Read... [15:10:37]Read from MH i2c: E2 62 00 [15:10:37]MH_I2C_Read... [15:10:37]Read from MH i2c: E2 62 00 E6 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D2 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [15:10:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D2 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:37]wFMCommunicate OK [15:10:37]SAM_PROTO_GetFieldsCounters done [15:10:37]requested_item shift.num is exist - process it [15:10:37]requested_item shift.opened is exist - process it [15:10:37]req_shift_opened [15:10:37]FM_GetShiftState [15:10:37]SAM_PROTO_GetShiftState [15:10:37]wFMCommunicate request_size=4 [15:10:37]MH_SAM_APDU [15:10:37]CAPDU: 80 13 01 00 [15:10:37]Write to MH i2c: E2 08 00 E7 65 80 13 01 00 00 00 00 00 C9 [15:10:37]Write i2c OK [15:10:37]MH_I2C_Read... [15:10:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:37]Read from MH i2c: E2 [15:10:37]MH_I2C_Read... [15:10:37]Read from MH i2c: E2 0E 00 [15:10:37]MH_I2C_Read... [15:10:37]Read from MH i2c: E2 0E 00 E7 65 00 09 00 01 89 19 24 67 00 00 00 00 90 00 02 [15:10:37]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:10:37]wFMCommunicate OK [15:10:37]SAM_PROTO_GetShiftState done [15:10:37]FM_GetShiftState done [15:10:37]req_shift_opened done [15:10:37]requested_item shift.open_date is exist - process it [15:10:37]req_shift_open_date [15:10:37]req_shift_open_date done [15:10:37]produce_requested_data done [15:10:37]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139986,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [15:10:37]process_action_free close_receipt [15:10:37]json_value_free [15:10:37]json_value_free done [15:10:37]process_json_proto returns [15:10:37]Send response to host [15:10:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139986,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [15:10:37]free response buf [15:10:37]execute_script done [15:10:37]execute_script returns [15:10:37]free content buf [15:10:37]Sock 7.Close socket [15:10:37]Sock 7.Thread stoped [15:10:40]OFD Sender: No OFD packet to send [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:55]OFD Sender: No OFD packet to send [15:11:00]OFD Sender: No OFD packet to send [15:11:05]OFD Sender: No OFD packet to send [15:11:10]OFD Sender: No OFD packet to send [15:11:15]OFD Sender: No OFD packet to send [15:11:16]accept exits with 9 [15:11:16]New connection [15:11:16]New thread 3066510692 created [15:11:16]Thread 3066654052 joined [15:11:16]Waiting for new connection... [15:11:16] Sock 9.Parse request [15:11:16]Sock 9.Check first char [15:11:16]Sock 9.First char is OK [15:11:16]request: POST /json_proto HTTP/1.0 [15:11:16]Method: POST [15:11:16]URL: /json_proto [15:11:16]Method is POST - this is cgi request [15:11:16]url: /json_proto [15:11:16]query_string will be loaded in cgi processing [15:11:16]execute_cgi json_proto POST (null) [15:11:16]execute_cgi path=json_proto method=POST [15:11:16]POST find Content-Length [15:11:16]Host: 172.17.50.196:8080 [15:11:16]Content-Length: 1187 [15:11:16]Content-Type: application/json [15:11:16] [15:11:16]POST finish read [15:11:16]Found Content-Length = 1187 [15:11:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335802", "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": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 269.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:16]execute_script... [15:11:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335802", "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": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 269.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:16]POST & json_proto [15:11:16]process_json_proto [15:11:16]json parsed OK: [15:11:16]protocol is kg_v1.0 [15:11:16]action value=close_receipt [15:11:16]process_action close_receipt [15:11:16]cmd_close_receipt [15:11:16]MH_GetDate [15:11:16]Write to MH i2c: F0 00 00 E8 65 3C [15:11:16]Write i2c OK [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: F0 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: F0 09 00 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: F0 09 00 E8 65 00 9A EF 24 67 72 0D 1C 67 5B [15:11:16]GetLastDocTimeStamp 1730473838 [15:11:16]current date 1730473882 [15:11:16]FM_GetShiftState [15:11:16]SAM_PROTO_GetShiftState [15:11:16]wFMCommunicate request_size=4 [15:11:16]MH_SAM_APDU [15:11:16]CAPDU: 80 13 01 00 [15:11:16]Write to MH i2c: E2 08 00 E9 65 80 13 01 00 00 00 00 00 CB [15:11:16]Write i2c OK [15:11:16]MH_I2C_Read... [15:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:16]Read from MH i2c: E2 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: E2 0E 00 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: E2 0E 00 E9 65 00 09 00 01 89 19 24 67 00 00 00 00 90 00 04 [15:11:16]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:11:16]wFMCommunicate OK [15:11:16]SAM_PROTO_GetShiftState done [15:11:16]FM_GetShiftState done [15:11:16]opened in 1730419081 [15:11:16]opened+sec_in_day 1730505481 [15:11:16]quantity*price = 5000 [15:11:16]sum+1 = 5001 [15:11:16]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5000159381178 Шок Батончик Баунти Трио 82,5г 1.000 * 89.00 = 89.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 269.00 НСП 1% : 2.38 НДС 12% : 28.56 Наличными: 269.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 168 01.11.2024 15:11 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139987 ФПД: 180325781550242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T151122&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139987&fm=180325781550242&tin=02508201610067®Number=0000000000091631&sum=26900 0 [15:11:17]StoreToDocumentArchive [15:11:17]shift 558 fd 139987 [15:11:17]save to /storage/0558/doc_00139987 [15:11:17]save last doc name /storage/0558/doc_00139987 to /storage/kkm_last_doc_name [15:11:17]save OK [15:11:17]Clear old archive folders... [15:11:17]ProcessDocumentItem done err = 0, tmpTLVsize=499 [15:11:17]tlvbuf is 00B0DAC0 [15:11:17]SAM_PROTO_ClearQueue [15:11:17]wFMCommunicate request_size=4 [15:11:17]MH_SAM_APDU [15:11:17]CAPDU: 80 09 00 00 [15:11:17]Write to MH i2c: E2 08 00 F6 65 80 09 00 00 00 00 00 00 CD [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:17]Read from MH i2c: E2 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 03 00 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 03 00 F6 65 00 90 00 CF [15:11:17]RAPDU: 90 00 [15:11:17]wFMCommunicate OK [15:11:17]SAM_PROTO_ClearQueue done [15:11:17]KKMCreateOFDPacket [15:11:17]OFDProtocolAddRootSTLVToBuf [15:11:17]FM_MakeSignedData [15:11:17]FM_MakeSignedData [15:11:17]SAM_PROTO_SignData [15:11:17]wFMCommunicate request_size=4 [15:11:17]MH_SAM_APDU [15:11:17]CAPDU: 80 0D 01 02 [15:11:17]Write to MH i2c: E2 08 00 F7 65 80 0D 01 02 00 00 00 00 D5 [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:17]Read from MH i2c: E2 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 03 00 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 03 00 F7 65 00 90 00 D0 [15:11:17]RAPDU: 90 00 [15:11:17]wFMCommunicate OK [15:11:17]wFMCommunicate request_size=255 [15:11:17]MH_SAM_APDU [15:11:17]CAPDU: 80 0D 02 02 FA 03 00 F3 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 [15:11:17]Write to MH i2c: E2 02 01 F8 65 80 0D 02 02 FA 00 03 00 F3 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 00 00 0B [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:18]Read from MH i2c: E2 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: E2 03 00 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: E2 03 00 F8 65 00 90 00 D1 [15:11:18]RAPDU: 90 00 [15:11:18]wFMCommunicate OK [15:11:18]wFMCommunicate request_size=255 [15:11:18]MH_SAM_APDU [15:11:18]CAPDU: 80 0D 02 02 FA 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 14 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 14 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 A8 00 00 00 F4 03 04 00 9A EF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D3 22 02 00 35 04 06 00 A4 01 5E [15:11:18]Write to MH i2c: E2 02 01 F9 65 80 0D 02 02 FA 00 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 14 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 14 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 A8 00 00 00 F4 03 04 00 9A EF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D3 22 02 00 35 04 06 00 A4 01 5E 00 00 88 [15:11:18]Write i2c OK [15:11:18]MH_I2C_Read... [15:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:18]Read from MH i2c: E2 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: E2 03 00 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: E2 03 00 F9 65 00 90 00 D2 [15:11:18]RAPDU: 90 00 [15:11:18]wFMCommunicate OK [15:11:18]wFMCommunicate request_size=8 [15:11:18]MH_SAM_APDU [15:11:18]CAPDU: 80 0D 02 02 03 27 34 A2 [15:11:18]Write to MH i2c: E2 0B 00 FA 65 80 0D 02 02 03 00 27 34 A2 00 00 DC [15:11:18]Write i2c OK [15:11:18]MH_I2C_Read... [15:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:18]Read from MH i2c: E2 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: E2 03 00 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: E2 03 00 FA 65 00 90 00 D3 [15:11:18]RAPDU: 90 00 [15:11:18]wFMCommunicate OK [15:11:18]wFMCommunicate request_size=4 [15:11:18]MH_SAM_APDU [15:11:18]CAPDU: 80 0D 03 02 [15:11:18]Write to MH i2c: E2 08 00 FB 65 80 0D 03 02 00 00 00 00 DB [15:11:18]Write i2c OK [15:11:18]MH_I2C_Read... [15:11:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:18]Read from MH i2c: E2 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: E2 0B 00 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: E2 0B 00 FB 65 00 52 45 E2 32 6B D1 CA AF 90 00 3C [15:11:18]RAPDU: 52 45 E2 32 6B D1 CA AF 90 00 [15:11:18]wFMCommunicate OK [15:11:18]SAM_PROTO_SignData done [15:11:18]FM_MakeSignedData done [15:11:18]CreateOFDProtocolMessage [15:11:18]wFMCommunicate request_size=4 [15:11:18]MH_SAM_APDU [15:11:18]CAPDU: 80 11 00 00 [15:11:18]Write to MH i2c: E2 08 00 FC 65 80 11 00 00 00 00 00 00 DB [15:11:18]Write i2c OK [15:11:18]MH_I2C_Read... [15:11:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:18]Read from MH i2c: E2 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: E2 17 00 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: E2 17 00 FC 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 36 [15:11:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:11:18]wFMCommunicate OK [15:11:18]CreateOFDProtocolMessage done [15:11:18]OFDSenderStorePacket 139987 [15:11:18]StoreOFDPacket docnum=139987 [15:11:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 07 02 00 00 00 4B FF 01 22 CD 5A 03 01 00 03 00 F3 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 14 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 14 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 A8 00 00 00 F4 03 04 00 9A EF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D3 22 02 00 35 04 06 00 A4 01 5E 27 34 A2 52 45 E2 32 6B D1 CA AF [15:11:18]CheckFolder [15:11:18]dirname=/storage/ofd_packets [15:11:18]CheckFolder done [15:11:18]ProducePacketName [15:11:18]name=ofd_packets/00139987 [15:11:18]NVStorageSaveData ofd_packets/00139987 [15:11:18]File name is /storage/ofd_packets/00139987 [15:11:18]Write 549 bytes [15:11:18]NVStorageSaveData done [15:11:18]OFDSenderStorePacket done [15:11:18]KKMCreateOFDPacket done [15:11:18]NVStorageSaveData kkm_last_timestamp [15:11:18]File name is /storage/kkm_last_timestamp [15:11:18]Write 4 bytes [15:11:18]NVStorageSaveData done [15:11:18]ExternCall_PrintAddStr [15:11:18]wPrintStart [15:11:18]Write to MH i2c: 01 00 00 FD 65 62 [15:11:18]Write i2c OK [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: 01 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: 01 07 00 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: 01 07 00 FD 65 00 00 00 00 00 FF 0F 77 [15:11:18]RasterBufferAndPrint [15:11:18]line Счет N : (3)335802 [15:11:18]line ИНН: 02508201610067 [15:11:18]line Контрольно-Кассовый Чек [15:11:18]line ПРОДАЖА [15:11:18]line Товар: 4700000160358 [15:11:18]line Вода Легенда 1л [15:11:18]line 1.000 * 50.00 [15:11:18]line = 50.00 [15:11:18]line НДС 12% НСП 1% [15:11:18]line > о реализуемом товаре [15:11:18]line Товар: 5000159381178 [15:11:18]line Шок Батончик Баунти Трио 82,5г [15:11:18]line 1.000 * 89.00 [15:11:18]line = 89.00 [15:11:18]line НДС 12% НСП 1% [15:11:18]line > о реализуемом товаре [15:11:18]line Товар: 2000036230011 [15:11:18]line Кофе Латте XL(GABB TRADE) [15:11:18]line 1.000 * 130.00 [15:11:18]line = 130.00 [15:11:18]line НДС 12% НСП 1% [15:11:18]line > о реализуемом товаре [15:11:18]line ИТОГО: 269.00 [15:11:18]line НСП 1% : 2.38 [15:11:18]line НДС 12% : 28.56 [15:11:18]line Наличными: 269.00 [15:11:18]line Безнал.: 0.00 [15:11:18]line Место: АЗС № 101 "Партнер Нефть" [15:11:18]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:11:18]line СНО: Общий режим [15:11:18]line Чек 168 01.11.2024 15:11 [15:11:18]line Смена: 558 ФФД: 1.0 [15:11:18]line ЗНМ: 0300000081 [15:11:18]line РНМ: 0000000000091631 [15:11:18]line Версия ККМ: 001 [15:11:18]line ФМ: 0000000000874669 [15:11:18]line ФД: 139987 [15:11:18]line ФПД: 180325781550242 [15:11:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T151122&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139987&fm=180325781550242&tin=02508201610067®Number=0000000000091631&sum=26900 [15:11:18]line 0 [15:11:18]OFD Sender: Processing packet 139987 [packets to send 34, broken 33] [15:11:18]ProducePacketName [15:11:18]name=ofd_packets/00139987 [15:11:18]OFD Sender: To server: pG, [15:11:18]CommunicateWithHost lk.salyk.kg:30040 [15:11:18]ConnectInit lk.salyk.kg [15:11:18]written 0, free lines is 4095 [15:11:19]Connected sock=7 [15:11:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 07 02 00 00 00 4B FF 01 22 CD 5A 03 01 00 03 00 F3 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 14 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 14 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 A8 00 00 00 F4 03 04 00 9A EF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D3 22 02 00 35 04 06 00 A4 01 5E 27 34 A2 52 45 E2 32 6B D1 CA AF [15:11:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 FF 75 47 00 32 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D3 22 02 00 F4 03 04 00 45 9B 24 67 B6 04 01 00 00 21 D0 54 72 D1 62 4E 69 [15:11:19]CommunicateWithHost err = 0 [15:11:19]CheckOFDResponse [15:11:19]1017 (14) - 77093643461234 [15:11:19]1041 (16) - 0000000000874669 [15:11:19]1040 (4) - 139987 [15:11:19]1012 (4) - 01.11.2024 09:11 [15:11:19]1206 (1) - 0 [15:11:19]OFD Sender: Remove packet 139987 [15:11:19]ProducePacketName [15:11:19]name=ofd_packets/00139987 [15:11:19]NVStorageDeleteData [15:11:19]Write to MH i2c: 01 00 00 32 66 98 [15:11:19]Write i2c OK [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: 01 [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: 01 07 00 [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: 01 07 00 32 66 00 00 00 00 00 84 0C 2F [15:11:19]RasterBufferAndPrint [15:11:19]line [15:11:19]line [15:11:19]line [15:11:19]line [15:11:19]line [15:11:19]written 0, free lines is 3213 [15:11:19]MH_Cut [15:11:19]Write to MH i2c: D1 01 00 39 66 01 71 [15:11:19]Write i2c OK [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: D1 [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: D1 01 00 [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: D1 01 00 39 66 00 70 [15:11:19]Write to MH i2c: 01 00 00 3A 66 A0 [15:11:19]Write i2c OK [15:11:19]MH_I2C_Read... [15:11:19]OFD Sender: No OFD packet to send [15:11:20]*** Cut start [15:11:20]*** Partial cut [15:11:20]*** CUTSNS_PIN = 1 [15:11:20]*** CUTSNS_PIN = 0 [15:11:20]*** Brake cut motor [15:11:20]Read from MH i2c: 01 [15:11:20]MH_I2C_Read... [15:11:20]*** Stop cut motor [15:11:20]*** Cut end [15:11:20]Read from MH i2c: 01 07 00 [15:11:20]MH_I2C_Read... [15:11:20]Read from MH i2c: 01 07 00 3A 66 00 00 00 00 00 FF 0F B5 [15:11:20]process_action close_receipt done [15:11:20]requested_data is exist [15:11:20]produce_requested_data [15:11:20]requested_item fm.sn is exist - process it [15:11:20]wFMCommunicate request_size=4 [15:11:20]MH_SAM_APDU [15:11:20]CAPDU: 80 11 00 00 [15:11:20]Write to MH i2c: E2 08 00 3B 66 80 11 00 00 00 00 00 00 1B [15:11:20]Write i2c OK [15:11:20]MH_I2C_Read... [15:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:20]Read from MH i2c: E2 [15:11:20]MH_I2C_Read... [15:11:20]Read from MH i2c: E2 17 00 [15:11:20]MH_I2C_Read... [15:11:20]Read from MH i2c: E2 17 00 3B 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 76 [15:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:11:20]wFMCommunicate OK [15:11:20]requested_item fd.num is exist - process it [15:11:20]SAM_PROTO_GetFieldsCounters [15:11:20]wFMCommunicate request_size=4 [15:11:20]MH_SAM_APDU [15:11:20]CAPDU: 80 13 00 00 [15:11:20]Write to MH i2c: E2 08 00 3C 66 80 13 00 00 00 00 00 00 1E [15:11:20]Write i2c OK [15:11:20]MH_I2C_Read... [15:11:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:21]Read from MH i2c: E2 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: E2 62 00 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: E2 62 00 3C 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D3 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [15:11:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D3 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:21]wFMCommunicate OK [15:11:21]SAM_PROTO_GetFieldsCounters done [15:11:21]requested_item shift.num is exist - process it [15:11:21]requested_item shift.opened is exist - process it [15:11:21]req_shift_opened [15:11:21]FM_GetShiftState [15:11:21]SAM_PROTO_GetShiftState [15:11:21]wFMCommunicate request_size=4 [15:11:21]MH_SAM_APDU [15:11:21]CAPDU: 80 13 01 00 [15:11:21]Write to MH i2c: E2 08 00 3D 66 80 13 01 00 00 00 00 00 20 [15:11:21]Write i2c OK [15:11:21]MH_I2C_Read... [15:11:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:21]Read from MH i2c: E2 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: E2 0E 00 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: E2 0E 00 3D 66 00 09 00 01 89 19 24 67 00 00 00 00 90 00 59 [15:11:21]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:11:21]wFMCommunicate OK [15:11:21]SAM_PROTO_GetShiftState done [15:11:21]FM_GetShiftState done [15:11:21]req_shift_opened done [15:11:21]requested_item shift.open_date is exist - process it [15:11:21]req_shift_open_date [15:11:21]req_shift_open_date done [15:11:21]produce_requested_data done [15:11:21]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139987,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [15:11:21]process_action_free close_receipt [15:11:21]json_value_free [15:11:21]json_value_free done [15:11:21]process_json_proto returns [15:11:21]Send response to host [15:11:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139987,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [15:11:21]free response buf [15:11:21]execute_script done [15:11:21]execute_script returns [15:11:21]free content buf [15:11:21]Sock 9.Close socket [15:11:21]Sock 9.Thread stoped [15:11:24]OFD Sender: No OFD packet to send [15:11:29]OFD Sender: No OFD packet to send [15:11:34]OFD Sender: No OFD packet to send [15:11:39]OFD Sender: No OFD packet to send [15:11:44]OFD Sender: No OFD packet to send [15:11:49]OFD Sender: No OFD packet to send [15:11:52]accept exits with 10 [15:11:52]New connection [15:11:52]New thread 3066654052 created [15:11:52]Thread 3066510692 joined [15:11:52]Waiting for new connection... [15:11:52] Sock 10.Parse request [15:11:52]Sock 10.Check first char [15:11:52]Sock 10.First char is OK [15:11:52]request: POST /json_proto HTTP/1.0 [15:11:52]Method: POST [15:11:52]URL: /json_proto [15:11:52]Method is POST - this is cgi request [15:11:52]url: /json_proto [15:11:52]query_string will be loaded in cgi processing [15:11:52]execute_cgi json_proto POST (null) [15:11:52]execute_cgi path=json_proto method=POST [15:11:52]POST find Content-Length [15:11:52]Host: 172.17.50.196:8080 [15:11:52]Content-Length: 622 [15:11:52]Content-Type: application/json [15:11:52] [15:11:52]POST finish read [15:11:52]Found Content-Length = 622 [15:11:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335803", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:52]execute_script... [15:11: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)335803", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:52]POST & json_proto [15:11:52]process_json_proto [15:11:52]json parsed OK: [15:11:52]protocol is kg_v1.0 [15:11:52]action value=close_receipt [15:11:52]process_action close_receipt [15:11:52]cmd_close_receipt [15:11:52]MH_GetDate [15:11:52]Write to MH i2c: F0 00 00 3E 66 93 [15:11:52]Write i2c OK [15:11:52]MH_I2C_Read... [15:11:52]Read from MH i2c: F0 [15:11:52]MH_I2C_Read... [15:11:52]Read from MH i2c: F0 09 00 [15:11:52]MH_I2C_Read... [15:11:52]Read from MH i2c: F0 09 00 3E 66 00 BF EF 24 67 72 0D 1C 67 D7 [15:11:52]GetLastDocTimeStamp 1730473882 [15:11:52]current date 1730473919 [15:11:52]FM_GetShiftState [15:11:52]SAM_PROTO_GetShiftState [15:11:52]wFMCommunicate request_size=4 [15:11:52]MH_SAM_APDU [15:11:52]CAPDU: 80 13 01 00 [15:11:52]Write to MH i2c: E2 08 00 3F 66 80 13 01 00 00 00 00 00 22 [15:11:52]Write i2c OK [15:11:52]MH_I2C_Read... [15:11:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:52]Read from MH i2c: E2 [15:11:52]MH_I2C_Read... [15:11:52]Read from MH i2c: E2 0E 00 [15:11:52]MH_I2C_Read... [15:11:52]Read from MH i2c: E2 0E 00 3F 66 00 09 00 01 89 19 24 67 00 00 00 00 90 00 5B [15:11:52]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:11:52]wFMCommunicate OK [15:11:52]SAM_PROTO_GetShiftState done [15:11:52]FM_GetShiftState done [15:11:52]opened in 1730419081 [15:11:52]opened+sec_in_day 1730505481 [15:11:52]quantity*price = 16000 [15:11:52]sum+1 = 16001 [15:11:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 169 01.11.2024 15:11 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139988 ФПД: 74246693376888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T151159&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139988&fm=74246693376888&tin=02508201610067®Number=0000000000091631&sum=16000 0 [15:11:54]StoreToDocumentArchive [15:11:54]shift 558 fd 139988 [15:11:54]save to /storage/0558/doc_00139988 [15:11:54]save last doc name /storage/0558/doc_00139988 to /storage/kkm_last_doc_name [15:11:54]save OK [15:11:54]Clear old archive folders... [15:11:54]ProcessDocumentItem done err = 0, tmpTLVsize=274 [15:11:54]tlvbuf is 00C483F0 [15:11:54]SAM_PROTO_ClearQueue [15:11:54]wFMCommunicate request_size=4 [15:11:54]MH_SAM_APDU [15:11:54]CAPDU: 80 09 00 00 [15:11:54]Write to MH i2c: E2 08 00 4C 66 80 09 00 00 00 00 00 00 24 [15:11:54]Write i2c OK [15:11:54]MH_I2C_Read... [15:11:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:54]Read from MH i2c: E2 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: E2 03 00 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: E2 03 00 4C 66 00 90 00 26 [15:11:54]RAPDU: 90 00 [15:11:54]wFMCommunicate OK [15:11:54]SAM_PROTO_ClearQueue done [15:11:54]KKMCreateOFDPacket [15:11:54]OFDProtocolAddRootSTLVToBuf [15:11:54]FM_MakeSignedData [15:11:54]FM_MakeSignedData [15:11:54]SAM_PROTO_SignData [15:11:54]wFMCommunicate request_size=4 [15:11:54]MH_SAM_APDU [15:11:54]CAPDU: 80 0D 01 02 [15:11:54]Write to MH i2c: E2 08 00 4D 66 80 0D 01 02 00 00 00 00 2C [15:11:54]Write i2c OK [15:11:54]MH_I2C_Read... [15:11:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:54]Read from MH i2c: E2 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: E2 03 00 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: E2 03 00 4D 66 00 90 00 27 [15:11:54]RAPDU: 90 00 [15:11:54]wFMCommunicate OK [15:11:54]wFMCommunicate request_size=255 [15:11:54]MH_SAM_APDU [15:11:54]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 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 BF EF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 [15:11:54]Write to MH i2c: E2 02 01 4E 66 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 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 BF EF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 00 00 8A [15:11:54]Write i2c OK [15:11:54]MH_I2C_Read... [15:11:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:54]Read from MH i2c: E2 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: E2 03 00 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: E2 03 00 4E 66 00 90 00 28 [15:11:54]RAPDU: 90 00 [15:11:54]wFMCommunicate OK [15:11:54]wFMCommunicate request_size=33 [15:11:54]MH_SAM_APDU [15:11:54]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D4 22 02 00 35 04 06 00 43 86 E7 C8 D3 78 [15:11:54]Write to MH i2c: E2 24 00 4F 66 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D4 22 02 00 35 04 06 00 43 86 E7 C8 D3 78 00 00 81 [15:11:54]Write i2c OK [15:11:54]MH_I2C_Read... [15:11:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:54]Read from MH i2c: E2 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: E2 03 00 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: E2 03 00 4F 66 00 90 00 29 [15:11:54]RAPDU: 90 00 [15:11:54]wFMCommunicate OK [15:11:54]wFMCommunicate request_size=4 [15:11:54]MH_SAM_APDU [15:11:54]CAPDU: 80 0D 03 02 [15:11:54]Write to MH i2c: E2 08 00 50 66 80 0D 03 02 00 00 00 00 31 [15:11:54]Write i2c OK [15:11:54]MH_I2C_Read... [15:11:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:54]Read from MH i2c: E2 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: E2 0B 00 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: E2 0B 00 50 66 00 F6 BB 94 5C 34 EA 86 80 90 00 F7 [15:11:54]RAPDU: F6 BB 94 5C 34 EA 86 80 90 00 [15:11:54]wFMCommunicate OK [15:11:54]SAM_PROTO_SignData done [15:11:54]FM_MakeSignedData done [15:11:54]CreateOFDProtocolMessage [15:11:54]wFMCommunicate request_size=4 [15:11:54]MH_SAM_APDU [15:11:54]CAPDU: 80 11 00 00 [15:11:54]Write to MH i2c: E2 08 00 51 66 80 11 00 00 00 00 00 00 31 [15:11:54]Write i2c OK [15:11:54]MH_I2C_Read... [15:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:54]Read from MH i2c: E2 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: E2 17 00 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: E2 17 00 51 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8C [15:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:11:54]wFMCommunicate OK [15:11:54]CreateOFDProtocolMessage done [15:11:54]OFDSenderStorePacket 139988 [15:11:54]StoreOFDPacket docnum=139988 [15:11:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 26 01 00 00 1A 6E 1E 01 A0 AA 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 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 BF EF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D4 22 02 00 35 04 06 00 43 86 E7 C8 D3 78 F6 BB 94 5C 34 EA 86 80 [15:11:54]CheckFolder [15:11:54]dirname=/storage/ofd_packets [15:11:54]CheckFolder done [15:11:54]ProducePacketName [15:11:54]name=ofd_packets/00139988 [15:11:54]NVStorageSaveData ofd_packets/00139988 [15:11:54]File name is /storage/ofd_packets/00139988 [15:11:54]Write 324 bytes [15:11:54]NVStorageSaveData done [15:11:54]OFDSenderStorePacket done [15:11:54]KKMCreateOFDPacket done [15:11:54]NVStorageSaveData kkm_last_timestamp [15:11:54]File name is /storage/kkm_last_timestamp [15:11:54]Write 4 bytes [15:11:54]NVStorageSaveData done [15:11:54]ExternCall_PrintAddStr [15:11:54]wPrintStart [15:11:54]Write to MH i2c: 01 00 00 52 66 B8 [15:11:54]Write i2c OK [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: 01 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: 01 07 00 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: 01 07 00 52 66 00 00 00 00 00 FF 0F CD [15:11:54]RasterBufferAndPrint [15:11:54]line Счет N : (3)335803 [15:11:54]line ИНН: 02508201610067 [15:11:54]line Контрольно-Кассовый Чек [15:11:54]line ПРОДАЖА [15:11:54]line Товар: 48741958 [15:11:54]line Сигареты Parliament Aqua Blue [15:11:54]line 1.000 * 160.00 [15:11:54]line = 160.00 [15:11:54]line НДС 12% НСП 1% [15:11:54]line > о реализуемом товаре [15:11:54]line ИТОГО: 160.00 [15:11:54]line НСП 1% : 1.42 [15:11:54]line НДС 12% : 16.99 [15:11:54]line Наличными: 160.00 [15:11:54]line Безнал.: 0.00 [15:11:54]line Место: АЗС № 101 "Партнер Нефть" [15:11:54]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:11:54]line СНО: Общий режим [15:11:54]line Чек 169 01.11.2024 15:11 [15:11:54]line Смена: 558 ФФД: 1.0 [15:11:54]line ЗНМ: 0300000081 [15:11:54]line РНМ: 0000000000091631 [15:11:54]line Версия ККМ: 001 [15:11:54]line ФМ: 0000000000874669 [15:11:54]line ФД: 139988 [15:11:54]line ФПД: 74246693376888 [15:11:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T151159&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139988&fm=74246693376888&tin=02508201610067®Number=0000000000091631&sum=16000 [15:11:54]OFD Sender: Processing packet 139988 [packets to send 34, broken 33] [15:11:54]ProducePacketName [15:11:54]name=ofd_packets/00139988 [15:11:54]OFD Sender: To server: pG, [15:11:54]CommunicateWithHost lk.salyk.kg:30040 [15:11:54]ConnectInit lk.salyk.kg [15:11:54]line 0 [15:11:54]written 0, free lines is 4095 [15:11:55]Connected sock=9 [15:11:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 26 01 00 00 1A 6E 1E 01 A0 AA 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 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 BF EF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D4 22 02 00 35 04 06 00 43 86 E7 C8 D3 78 F6 BB 94 5C 34 EA 86 80 [15:11:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 06 86 47 00 04 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D4 22 02 00 F4 03 04 00 69 9B 24 67 B6 04 01 00 00 F5 22 BE 40 60 28 A0 D3 [15:11:55]CommunicateWithHost err = 0 [15:11:55]CheckOFDResponse [15:11:55]1017 (14) - 77093643461234 [15:11:55]1041 (16) - 0000000000874669 [15:11:55]1040 (4) - 139988 [15:11:55]1012 (4) - 01.11.2024 09:12 [15:11:55]1206 (1) - 0 [15:11:55]OFD Sender: Remove packet 139988 [15:11:55]ProducePacketName [15:11:55]name=ofd_packets/00139988 [15:11:55]NVStorageDeleteData [15:11:55]Write to MH i2c: 01 00 00 7B 66 E1 [15:11:55]Write i2c OK [15:11:55]MH_I2C_Read... [15:11:55]Read from MH i2c: 01 [15:11:55]MH_I2C_Read... [15:11:55]Read from MH i2c: 01 07 00 [15:11:55]MH_I2C_Read... [15:11:55]Read from MH i2c: 01 07 00 7B 66 00 00 00 00 00 0F 0D 04 [15:11:55]RasterBufferAndPrint [15:11:55]line [15:11:55]line [15:11:55]line [15:11:55]line [15:11:55]line [15:11:55]written 0, free lines is 3349 [15:11:55]MH_Cut [15:11:55]Write to MH i2c: D1 01 00 82 66 01 BA [15:11:55]Write i2c OK [15:11:55]MH_I2C_Read... [15:11:55]Read from MH i2c: D1 [15:11:55]MH_I2C_Read... [15:11:55]Read from MH i2c: D1 01 00 [15:11:55]MH_I2C_Read... [15:11:55]Read from MH i2c: D1 01 00 82 66 00 B9 [15:11:55]Write to MH i2c: 01 00 00 83 66 E9 [15:11:55]Write i2c OK [15:11:55]MH_I2C_Read... [15:11:55]OFD Sender: No OFD packet to send [15:11:56]*** Cut start [15:11:56]*** Partial cut [15:11:56]*** CUTSNS_PIN = 1 [15:11:56]*** CUTSNS_PIN = 0 [15:11:56]*** Brake cut motor [15:11:56]Read from MH i2c: 01 [15:11:56]MH_I2C_Read... [15:11:56]*** Stop cut motor [15:11:56]*** Cut end [15:11:56]Read from MH i2c: 01 07 00 [15:11:56]MH_I2C_Read... [15:11:56]Read from MH i2c: 01 07 00 83 66 00 00 00 00 00 FF 0F FE [15:11:56]process_action close_receipt done [15:11:56]requested_data is exist [15:11:56]produce_requested_data [15:11:56]requested_item fm.sn is exist - process it [15:11:56]wFMCommunicate request_size=4 [15:11:56]MH_SAM_APDU [15:11:56]CAPDU: 80 11 00 00 [15:11:56]Write to MH i2c: E2 08 00 84 66 80 11 00 00 00 00 00 00 64 [15:11:56]Write i2c OK [15:11:56]MH_I2C_Read... [15:11:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:56]Read from MH i2c: E2 [15:11:56]MH_I2C_Read... [15:11:56]Read from MH i2c: E2 17 00 [15:11:56]MH_I2C_Read... [15:11:56]Read from MH i2c: E2 17 00 84 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BF [15:11:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:11:56]wFMCommunicate OK [15:11:56]requested_item fd.num is exist - process it [15:11:56]SAM_PROTO_GetFieldsCounters [15:11:56]wFMCommunicate request_size=4 [15:11:56]MH_SAM_APDU [15:11:56]CAPDU: 80 13 00 00 [15:11:56]Write to MH i2c: E2 08 00 85 66 80 13 00 00 00 00 00 00 67 [15:11:56]Write i2c OK [15:11:56]MH_I2C_Read... [15:11:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:56]Read from MH i2c: E2 [15:11:56]MH_I2C_Read... [15:11:56]Read from MH i2c: E2 62 00 [15:11:56]MH_I2C_Read... [15:11:56]Read from MH i2c: E2 62 00 85 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D4 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [15:11:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D4 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:56]wFMCommunicate OK [15:11:56]SAM_PROTO_GetFieldsCounters done [15:11:56]requested_item shift.num is exist - process it [15:11:56]requested_item shift.opened is exist - process it [15:11:56]req_shift_opened [15:11:56]FM_GetShiftState [15:11:56]SAM_PROTO_GetShiftState [15:11:56]wFMCommunicate request_size=4 [15:11:56]MH_SAM_APDU [15:11:56]CAPDU: 80 13 01 00 [15:11:56]Write to MH i2c: E2 08 00 86 66 80 13 01 00 00 00 00 00 69 [15:11:56]Write i2c OK [15:11:56]MH_I2C_Read... [15:11:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:56]Read from MH i2c: E2 [15:11:56]MH_I2C_Read... [15:11:56]Read from MH i2c: E2 0E 00 [15:11:56]MH_I2C_Read... [15:11:56]Read from MH i2c: E2 0E 00 86 66 00 09 00 01 89 19 24 67 00 00 00 00 90 00 A2 [15:11:56]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:11:56]wFMCommunicate OK [15:11:56]SAM_PROTO_GetShiftState done [15:11:56]FM_GetShiftState done [15:11:56]req_shift_opened done [15:11:56]requested_item shift.open_date is exist - process it [15:11:56]req_shift_open_date [15:11:56]req_shift_open_date done [15:11:56]produce_requested_data done [15:11:56]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139988,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [15:11:56]process_action_free close_receipt [15:11:56]json_value_free [15:11:56]json_value_free done [15:11:56]process_json_proto returns [15:11:56]Send response to host [15:11:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139988,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [15:11:56]free response buf [15:11:56]execute_script done [15:11:56]execute_script returns [15:11:56]free content buf [15:11:56]Sock 10.Close socket [15:11:56]Sock 10.Thread stoped [15:12:00]OFD Sender: No OFD packet to send [15:12:05]OFD Sender: No OFD packet to send [15:12:10]OFD Sender: No OFD packet to send [15:12:15]OFD Sender: No OFD packet to send [15:12:20]OFD Sender: No OFD packet to send [15:12:25]OFD Sender: No OFD packet to send [15:12:30]OFD Sender: No OFD packet to send [15:12:35]OFD Sender: No OFD packet to send [15:12:40]OFD Sender: No OFD packet to send [15:12:45]OFD Sender: No OFD packet to send [15:12:50]OFD Sender: No OFD packet to send [15:12:55]OFD Sender: No OFD packet to send [15:13:00]OFD Sender: No OFD packet to send [15:13:05]OFD Sender: No OFD packet to send [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:20]OFD Sender: No OFD packet to send [15:13:25]OFD Sender: No OFD packet to send [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:40]OFD Sender: No OFD packet to send [15:13:45]OFD Sender: No OFD packet to send [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:22]accept exits with 7 [15:14:22]New connection [15:14:22]New thread 3066510692 created [15:14:22]Thread 3066654052 joined [15:14:22]Waiting for new connection... [15:14:22] Sock 7.Parse request [15:14:22]Sock 7.Check first char [15:14:22]Sock 7.First char is OK [15:14:22]request: POST /json_proto HTTP/1.0 [15:14:22]Method: POST [15:14:22]URL: /json_proto [15:14:22]Method is POST - this is cgi request [15:14:22]url: /json_proto [15:14:22]query_string will be loaded in cgi processing [15:14:22]execute_cgi json_proto POST (null) [15:14:22]execute_cgi path=json_proto method=POST [15:14:22]POST find Content-Length [15:14:22]Host: 172.17.50.196:8080 [15:14:22]Content-Length: 628 [15:14:22]Content-Type: application/json [15:14:22] [15:14:22]POST finish read [15:14:22]Found Content-Length = 628 [15:14:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335804", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:22]execute_script... [15:14: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)335804", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:22]POST & json_proto [15:14:22]process_json_proto [15:14:22]json parsed OK: [15:14:22]protocol is kg_v1.0 [15:14:22]action value=close_receipt [15:14:22]process_action close_receipt [15:14:22]cmd_close_receipt [15:14:22]MH_GetDate [15:14:22]Write to MH i2c: F0 00 00 87 66 DC [15:14:22]Write i2c OK [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: F0 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: F0 09 00 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: F0 09 00 87 66 00 54 F0 24 67 72 0D 1C 67 B6 [15:14:22]GetLastDocTimeStamp 1730473919 [15:14:22]current date 1730474068 [15:14:22]FM_GetShiftState [15:14:22]SAM_PROTO_GetShiftState [15:14:22]wFMCommunicate request_size=4 [15:14:22]MH_SAM_APDU [15:14:22]CAPDU: 80 13 01 00 [15:14:22]Write to MH i2c: E2 08 00 88 66 80 13 01 00 00 00 00 00 6B [15:14:22]Write i2c OK [15:14:22]MH_I2C_Read... [15:14:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:22]Read from MH i2c: E2 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: E2 0E 00 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: E2 0E 00 88 66 00 09 00 01 89 19 24 67 00 00 00 00 90 00 A4 [15:14:22]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:14:22]wFMCommunicate OK [15:14:22]SAM_PROTO_GetShiftState done [15:14:22]FM_GetShiftState done [15:14:22]opened in 1730419081 [15:14:22]opened+sec_in_day 1730505481 [15:14:22]quantity*price = 13000 [15:14:22]sum+1 = 13001 [15:14:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 170 01.11.2024 15:14 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139989 ФПД: 88951586436429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T151429&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139989&fm=88951586436429&tin=02508201610067®Number=0000000000091631&sum=13000 0 [15:14:23]StoreToDocumentArchive [15:14:23]shift 558 fd 139989 [15:14:23]save to /storage/0558/doc_00139989 [15:14:23]save last doc name /storage/0558/doc_00139989 to /storage/kkm_last_doc_name [15:14:23]save OK [15:14:23]Clear old archive folders... [15:14:23]ProcessDocumentItem done err = 0, tmpTLVsize=276 [15:14:23]tlvbuf is 00BE2970 [15:14:23]SAM_PROTO_ClearQueue [15:14:23]wFMCommunicate request_size=4 [15:14:23]MH_SAM_APDU [15:14:23]CAPDU: 80 09 00 00 [15:14:23]Write to MH i2c: E2 08 00 95 66 80 09 00 00 00 00 00 00 6D [15:14:23]Write i2c OK [15:14:23]MH_I2C_Read... [15:14:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:24]Read from MH i2c: E2 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 03 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 03 00 95 66 00 90 00 6F [15:14:24]RAPDU: 90 00 [15:14:24]wFMCommunicate OK [15:14:24]SAM_PROTO_ClearQueue done [15:14:24]KKMCreateOFDPacket [15:14:24]OFDProtocolAddRootSTLVToBuf [15:14:24]FM_MakeSignedData [15:14:24]FM_MakeSignedData [15:14:24]SAM_PROTO_SignData [15:14:24]wFMCommunicate request_size=4 [15:14:24]MH_SAM_APDU [15:14:24]CAPDU: 80 0D 01 02 [15:14:24]Write to MH i2c: E2 08 00 96 66 80 0D 01 02 00 00 00 00 75 [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:24]Read from MH i2c: E2 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 03 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 03 00 96 66 00 90 00 70 [15:14:24]RAPDU: 90 00 [15:14:24]wFMCommunicate OK [15:14:24]wFMCommunicate request_size=255 [15:14:24]MH_SAM_APDU [15:14:24]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 55 F0 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 [15:14:24]Write to MH i2c: E2 02 01 97 66 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 55 F0 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 00 00 35 [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:24]Read from MH i2c: E2 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 03 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 03 00 97 66 00 90 00 71 [15:14:24]RAPDU: 90 00 [15:14:24]wFMCommunicate OK [15:14:24]wFMCommunicate request_size=35 [15:14:24]MH_SAM_APDU [15:14:24]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D5 22 02 00 35 04 06 00 50 E6 A7 B6 35 4D [15:14:24]Write to MH i2c: E2 26 00 98 66 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D5 22 02 00 35 04 06 00 50 E6 A7 B6 35 4D 00 00 81 [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:24]Read from MH i2c: E2 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 03 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 03 00 98 66 00 90 00 72 [15:14:24]RAPDU: 90 00 [15:14:24]wFMCommunicate OK [15:14:24]wFMCommunicate request_size=4 [15:14:24]MH_SAM_APDU [15:14:24]CAPDU: 80 0D 03 02 [15:14:24]Write to MH i2c: E2 08 00 99 66 80 0D 03 02 00 00 00 00 7A [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:24]Read from MH i2c: E2 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 0B 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 0B 00 99 66 00 11 C9 CB 55 B9 25 A6 A9 90 00 A2 [15:14:24]RAPDU: 11 C9 CB 55 B9 25 A6 A9 90 00 [15:14:24]wFMCommunicate OK [15:14:24]SAM_PROTO_SignData done [15:14:24]FM_MakeSignedData done [15:14:24]CreateOFDProtocolMessage [15:14:24]wFMCommunicate request_size=4 [15:14:24]MH_SAM_APDU [15:14:24]CAPDU: 80 11 00 00 [15:14:24]Write to MH i2c: E2 08 00 9A 66 80 11 00 00 00 00 00 00 7A [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:24]Read from MH i2c: E2 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 17 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 17 00 9A 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D5 [15:14:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:14:24]wFMCommunicate OK [15:14:24]CreateOFDProtocolMessage done [15:14:24]OFDSenderStorePacket 139989 [15:14:24]StoreOFDPacket docnum=139989 [15:14:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 28 01 00 00 76 22 20 01 F1 9D 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 55 F0 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D5 22 02 00 35 04 06 00 50 E6 A7 B6 35 4D 11 C9 CB 55 B9 25 A6 A9 [15:14:24]CheckFolder [15:14:24]dirname=/storage/ofd_packets [15:14:24]CheckFolder done [15:14:24]ProducePacketName [15:14:24]name=ofd_packets/00139989 [15:14:24]NVStorageSaveData ofd_packets/00139989 [15:14:24]File name is /storage/ofd_packets/00139989 [15:14:24]Write 326 bytes [15:14:24]NVStorageSaveData done [15:14:24]OFDSenderStorePacket done [15:14:24]KKMCreateOFDPacket done [15:14:24]NVStorageSaveData kkm_last_timestamp [15:14:24]File name is /storage/kkm_last_timestamp [15:14:24]Write 4 bytes [15:14:24]NVStorageSaveData done [15:14:24]ExternCall_PrintAddStr [15:14:24]wPrintStart [15:14:24]Write to MH i2c: 01 00 00 9B 66 01 [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: 01 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: 01 07 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: 01 07 00 9B 66 00 00 00 00 00 FF 0F 16 [15:14:24]RasterBufferAndPrint [15:14:24]line Счет N : (3)335804 [15:14:24]line ИНН: 02508201610067 [15:14:24]line Контрольно-Кассовый Чек [15:14:24]line ПРОДАЖА [15:14:24]line Товар: 2000036230011 [15:14:24]line Кофе Латте XL(GABB TRADE) [15:14:24]line 1.000 * 130.00 [15:14:24]line = 130.00 [15:14:24]line НДС 12% НСП 1% [15:14:24]line > о реализуемом товаре [15:14:24]line ИТОГО: 130.00 [15:14:24]line НСП 1% : 1.15 [15:14:24]line НДС 12% : 13.80 [15:14:24]line Наличными: 130.00 [15:14:24]line Безнал.: 0.00 [15:14:24]line Место: АЗС № 101 "Партнер Нефть" [15:14:24]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:14:24]line СНО: Общий режим [15:14:24]line Чек 170 01.11.2024 15:14 [15:14:24]line Смена: 558 ФФД: 1.0 [15:14:24]line ЗНМ: 0300000081 [15:14:24]line РНМ: 0000000000091631 [15:14:24]line Версия ККМ: 001 [15:14:24]line ФМ: 0000000000874669 [15:14:24]line ФД: 139989 [15:14:24]line ФПД: 88951586436429 [15:14:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T151429&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139989&fm=88951586436429&tin=02508201610067®Number=0000000000091631&sum=13000 [15:14:24]OFD Sender: Processing packet 139989 [packets to send 34, broken 33] [15:14:24]ProducePacketName [15:14:24]name=ofd_packets/00139989 [15:14:24]OFD Sender: To server: pG, [15:14:24]CommunicateWithHost lk.salyk.kg:30040 [15:14:24]ConnectInit lk.salyk.kg [15:14:24]line 0 [15:14:24]written 0, free lines is 4095 [15:14:24]Connected sock=10 [15:14:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 28 01 00 00 76 22 20 01 F1 9D 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 55 F0 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D5 22 02 00 35 04 06 00 50 E6 A7 B6 35 4D 11 C9 CB 55 B9 25 A6 A9 [15:14:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 15 E7 47 00 B9 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 34 36 36 39 10 04 04 00 D5 22 02 00 F4 03 04 00 FF 9B 24 67 B6 04 01 00 00 60 AE 19 0C 9C 2B 95 E0 [15:14:25]CommunicateWithHost err = 0 [15:14:25]CheckOFDResponse [15:14:25]1017 (14) - 77093643461234 [15:14:25]1041 (16) - 0000000000874669 [15:14:25]1040 (4) - 139989 [15:14:25]1012 (4) - 01.11.2024 09:14 [15:14:25]1206 (1) - 0 [15:14:25]OFD Sender: Remove packet 139989 [15:14:25]ProducePacketName [15:14:25]name=ofd_packets/00139989 [15:14:25]NVStorageDeleteData [15:14:25]Write to MH i2c: 01 00 00 C3 66 29 [15:14:25]Write i2c OK [15:14:25]MH_I2C_Read... [15:14:25]Read from MH i2c: 01 [15:14:25]MH_I2C_Read... [15:14:25]Read from MH i2c: 01 07 00 [15:14:25]MH_I2C_Read... [15:14:25]Read from MH i2c: 01 07 00 C3 66 00 00 00 00 00 1F 0D 5C [15:14:25]RasterBufferAndPrint [15:14:25]line [15:14:25]line [15:14:25]line [15:14:25]line [15:14:25]line [15:14:25]written 0, free lines is 3368 [15:14:25]MH_Cut [15:14:25]Write to MH i2c: D1 01 00 CA 66 01 02 [15:14:25]Write i2c OK [15:14:25]MH_I2C_Read... [15:14:25]Read from MH i2c: D1 [15:14:25]MH_I2C_Read... [15:14:25]Read from MH i2c: D1 01 00 [15:14:25]MH_I2C_Read... [15:14:25]Read from MH i2c: D1 01 00 CA 66 00 01 [15:14:25]Write to MH i2c: 01 00 00 CB 66 31 [15:14:25]Write i2c OK [15:14:25]MH_I2C_Read... [15:14:25]OFD Sender: No OFD packet to send [15:14:25]*** Cut start [15:14:25]*** Partial cut [15:14:25]*** CUTSNS_PIN = 1 [15:14:26]*** CUTSNS_PIN = 0 [15:14:26]*** Brake cut motor [15:14:26]Read from MH i2c: 01 [15:14:26]MH_I2C_Read... [15:14:26]*** Stop cut motor [15:14:26]*** Cut end [15:14:26]Read from MH i2c: 01 07 00 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: 01 07 00 CB 66 00 00 00 00 00 FF 0F 46 [15:14:26]process_action close_receipt done [15:14:26]requested_data is exist [15:14:26]produce_requested_data [15:14:26]requested_item fm.sn is exist - process it [15:14:26]wFMCommunicate request_size=4 [15:14:26]MH_SAM_APDU [15:14:26]CAPDU: 80 11 00 00 [15:14:26]Write to MH i2c: E2 08 00 CC 66 80 11 00 00 00 00 00 00 AC [15:14:26]Write i2c OK [15:14:26]MH_I2C_Read... [15:14:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:26]Read from MH i2c: E2 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: E2 17 00 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: E2 17 00 CC 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 07 [15:14:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:14:26]wFMCommunicate OK [15:14:26]requested_item fd.num is exist - process it [15:14:26]SAM_PROTO_GetFieldsCounters [15:14:26]wFMCommunicate request_size=4 [15:14:26]MH_SAM_APDU [15:14:26]CAPDU: 80 13 00 00 [15:14:26]Write to MH i2c: E2 08 00 CD 66 80 13 00 00 00 00 00 00 AF [15:14:26]Write i2c OK [15:14:26]MH_I2C_Read... [15:14:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:26]Read from MH i2c: E2 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: E2 62 00 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: E2 62 00 CD 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D5 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [15:14:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D5 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:26]wFMCommunicate OK [15:14:26]SAM_PROTO_GetFieldsCounters done [15:14:26]requested_item shift.num is exist - process it [15:14:26]requested_item shift.opened is exist - process it [15:14:26]req_shift_opened [15:14:26]FM_GetShiftState [15:14:26]SAM_PROTO_GetShiftState [15:14:26]wFMCommunicate request_size=4 [15:14:26]MH_SAM_APDU [15:14:26]CAPDU: 80 13 01 00 [15:14:26]Write to MH i2c: E2 08 00 CE 66 80 13 01 00 00 00 00 00 B1 [15:14:26]Write i2c OK [15:14:26]MH_I2C_Read... [15:14:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:26]Read from MH i2c: E2 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: E2 0E 00 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: E2 0E 00 CE 66 00 09 00 01 89 19 24 67 00 00 00 00 90 00 EA [15:14:26]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:14:26]wFMCommunicate OK [15:14:26]SAM_PROTO_GetShiftState done [15:14:26]FM_GetShiftState done [15:14:26]req_shift_opened done [15:14:26]requested_item shift.open_date is exist - process it [15:14:26]req_shift_open_date [15:14:26]req_shift_open_date done [15:14:26]produce_requested_data done [15:14:26]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139989,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [15:14:26]process_action_free close_receipt [15:14:26]json_value_free [15:14:26]json_value_free done [15:14:26]process_json_proto returns [15:14:26]Send response to host [15:14:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139989,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [15:14:26]free response buf [15:14:26]execute_script done [15:14:26]execute_script returns [15:14:26]free content buf [15:14:26]Sock 7.Close socket [15:14:26]Sock 7.Thread stoped [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:47]accept exits with 9 [15:15:47]New connection [15:15:47]New thread 3066654052 created [15:15:47]Thread 3066510692 joined [15:15:47]Waiting for new connection... [15:15:47] Sock 9.Parse request [15:15:47]Sock 9.Check first char [15:15:47]Sock 9.First char is OK [15:15:47]request: POST /json_proto HTTP/1.0 [15:15:47]Method: POST [15:15:47]URL: /json_proto [15:15:47]Method is POST - this is cgi request [15:15:47]url: /json_proto [15:15:47]query_string will be loaded in cgi processing [15:15:47]execute_cgi json_proto POST (null) [15:15:47]execute_cgi path=json_proto method=POST [15:15:47]POST find Content-Length [15:15:47]Host: 172.17.50.196:8080 [15:15:47]Content-Length: 724 [15:15:47]Content-Type: application/json [15:15:47] [15:15:47]POST finish read [15:15:47]Found Content-Length = 724 [15:15:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335805", "tax_sys" : 0, "items" : [ { "code": "8901086040022", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0441\u0442\u0435\u043A\u043B\u043E\u043E\u043C\u044B\u0432\u0430\u044E\u0449\u0430\u044F \u041F\u041D -20 4,5\u043B", "price" : 285.00, "quantity" : 1.000, "sum" : 285.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" ] } } [15:15:47]execute_script... [15: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)335805", "tax_sys" : 0, "items" : [ { "code": "8901086040022", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0441\u0442\u0435\u043A\u043B\u043E\u043E\u043C\u044B\u0432\u0430\u044E\u0449\u0430\u044F \u041F\u041D -20 4,5\u043B", "price" : 285.00, "quantity" : 1.000, "sum" : 285.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" ] } } [15:15:47]POST & json_proto [15:15:47]process_json_proto [15:15:47]json parsed OK: [15:15:47]protocol is kg_v1.0 [15:15:47]action value=close_receipt [15:15:47]process_action close_receipt [15:15:47]cmd_close_receipt [15:15:47]MH_GetDate [15:15:47]Write to MH i2c: F0 00 00 CF 66 24 [15:15:47]Write i2c OK [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: F0 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: F0 09 00 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: F0 09 00 CF 66 00 AA F0 24 67 72 0D 1C 67 54 [15:15:47]GetLastDocTimeStamp 1730474069 [15:15:47]current date 1730474154 [15:15:47]FM_GetShiftState [15:15:47]SAM_PROTO_GetShiftState [15:15:47]wFMCommunicate request_size=4 [15:15:47]MH_SAM_APDU [15:15:47]CAPDU: 80 13 01 00 [15:15:47]Write to MH i2c: E2 08 00 D0 66 80 13 01 00 00 00 00 00 B3 [15:15:47]Write i2c OK [15:15:47]MH_I2C_Read... [15:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:47]Read from MH i2c: E2 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: E2 0E 00 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: E2 0E 00 D0 66 00 09 00 01 89 19 24 67 00 00 00 00 90 00 EC [15:15:47]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:15:47]wFMCommunicate OK [15:15:47]SAM_PROTO_GetShiftState done [15:15:47]FM_GetShiftState done [15:15:47]opened in 1730419081 [15:15:47]opened+sec_in_day 1730505481 [15:15:47]quantity*price = 28500 [15:15:47]sum+1 = 28501 [15:15:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.52 НДС 12% : 30.26 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 171 01.11.2024 15:15 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139990 ФПД: 275383599707663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T151554&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139990&fm=275383599707663&tin=02508201610067®Number=0000000000091631&sum=28500 0 [15:15:48]StoreToDocumentArchive [15:15:48]shift 558 fd 139990 [15:15:48]save to /storage/0558/doc_00139990 [15:15:48]save last doc name /storage/0558/doc_00139990 to /storage/kkm_last_doc_name [15:15:48]save OK [15:15:48]Clear old archive folders... [15:15:49]ProcessDocumentItem done err = 0, tmpTLVsize=304 [15:15:49]tlvbuf is 00BC4B20 [15:15:49]SAM_PROTO_ClearQueue [15:15:49]wFMCommunicate request_size=4 [15:15:49]MH_SAM_APDU [15:15:49]CAPDU: 80 09 00 00 [15:15:49]Write to MH i2c: E2 08 00 DD 66 80 09 00 00 00 00 00 00 B5 [15:15:49]Write i2c OK [15:15:49]MH_I2C_Read... [15:15:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:49]Read from MH i2c: E2 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 03 00 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 03 00 DD 66 00 90 00 B7 [15:15:49]RAPDU: 90 00 [15:15:49]wFMCommunicate OK [15:15:49]SAM_PROTO_ClearQueue done [15:15:49]KKMCreateOFDPacket [15:15:49]OFDProtocolAddRootSTLVToBuf [15:15:49]FM_MakeSignedData [15:15:49]FM_MakeSignedData [15:15:49]SAM_PROTO_SignData [15:15:49]wFMCommunicate request_size=4 [15:15:49]MH_SAM_APDU [15:15:49]CAPDU: 80 0D 01 02 [15:15:49]Write to MH i2c: E2 08 00 DE 66 80 0D 01 02 00 00 00 00 BD [15:15:49]Write i2c OK [15:15:49]MH_I2C_Read... [15:15:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:49]Read from MH i2c: E2 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 03 00 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 03 00 DE 66 00 90 00 B8 [15:15:49]RAPDU: 90 00 [15:15:49]wFMCommunicate OK [15:15:49]wFMCommunicate request_size=255 [15:15:49]MH_SAM_APDU [15:15:49]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 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 D2 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 AB 00 00 00 F4 03 04 00 AA F0 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 [15:15:49]Write to MH i2c: E2 02 01 DF 66 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 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 D2 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 AB 00 00 00 F4 03 04 00 AA F0 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 00 00 00 [15:15:49]Write i2c OK [15:15:49]MH_I2C_Read... [15:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:49]Read from MH i2c: E2 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 03 00 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 03 00 DF 66 00 90 00 B9 [15:15:49]RAPDU: 90 00 [15:15:49]wFMCommunicate OK [15:15:49]wFMCommunicate request_size=63 [15:15:49]MH_SAM_APDU [15:15:49]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D6 22 02 00 35 04 06 00 FA 75 BD A3 36 0F [15:15:49]Write to MH i2c: E2 42 00 E0 66 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D6 22 02 00 35 04 06 00 FA 75 BD A3 36 0F 00 00 1B [15:15:49]Write i2c OK [15:15:49]MH_I2C_Read... [15:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:49]Read from MH i2c: E2 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 03 00 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 03 00 E0 66 00 90 00 BA [15:15:49]RAPDU: 90 00 [15:15:49]wFMCommunicate OK [15:15:49]wFMCommunicate request_size=4 [15:15:49]MH_SAM_APDU [15:15:49]CAPDU: 80 0D 03 02 [15:15:49]Write to MH i2c: E2 08 00 E1 66 80 0D 03 02 00 00 00 00 C2 [15:15:49]Write i2c OK [15:15:49]MH_I2C_Read... [15:15:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:49]Read from MH i2c: E2 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 0B 00 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 0B 00 E1 66 00 90 37 DB F2 F4 FF 34 89 90 00 07 [15:15:49]RAPDU: 90 37 DB F2 F4 FF 34 89 90 00 [15:15:49]wFMCommunicate OK [15:15:49]SAM_PROTO_SignData done [15:15:49]FM_MakeSignedData done [15:15:49]CreateOFDProtocolMessage [15:15:49]wFMCommunicate request_size=4 [15:15:49]MH_SAM_APDU [15:15:49]CAPDU: 80 11 00 00 [15:15:49]Write to MH i2c: E2 08 00 E2 66 80 11 00 00 00 00 00 00 C2 [15:15:49]Write i2c OK [15:15:49]MH_I2C_Read... [15:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:49]Read from MH i2c: E2 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 17 00 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 17 00 E2 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1D [15:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:15:49]wFMCommunicate OK [15:15:49]CreateOFDProtocolMessage done [15:15:49]OFDSenderStorePacket 139990 [15:15:49]StoreOFDPacket docnum=139990 [15:15:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 44 01 00 00 6F 6E 3C 01 EB 98 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 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 D2 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 AB 00 00 00 F4 03 04 00 AA F0 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D6 22 02 00 35 04 06 00 FA 75 BD A3 36 0F 90 37 DB F2 F4 FF 34 89 [15:15:49]CheckFolder [15:15:49]dirname=/storage/ofd_packets [15:15:49]CheckFolder done [15:15:49]ProducePacketName [15:15:49]name=ofd_packets/00139990 [15:15:49]NVStorageSaveData ofd_packets/00139990 [15:15:49]File name is /storage/ofd_packets/00139990 [15:15:49]Write 354 bytes [15:15:49]NVStorageSaveData done [15:15:49]OFDSenderStorePacket done [15:15:49]KKMCreateOFDPacket done [15:15:49]NVStorageSaveData kkm_last_timestamp [15:15:49]File name is /storage/kkm_last_timestamp [15:15:49]Write 4 bytes [15:15:49]NVStorageSaveData done [15:15:49]ExternCall_PrintAddStr [15:15:49]wPrintStart [15:15:49]Write to MH i2c: 01 00 00 E3 66 49 [15:15:49]Write i2c OK [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: 01 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: 01 07 00 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: 01 07 00 E3 66 00 00 00 00 00 FF 0F 5E [15:15:49]RasterBufferAndPrint [15:15:49]line Счет N : (3)335805 [15:15:49]line ИНН: 02508201610067 [15:15:49]line Контрольно-Кассовый Чек [15:15:49]line ПРОДАЖА [15:15:49]line Товар: 8901086040022 [15:15:49]line Жидкость стеклоомывающая ПН -20 4,5л [15:15:49]line 1.000 * 285.00 [15:15:49]line = 285.00 [15:15:49]line НДС 12% НСП 1% [15:15:49]line > о реализуемом товаре [15:15:49]line ИТОГО: 285.00 [15:15:49]line НСП 1% : 2.52 [15:15:49]line НДС 12% : 30.26 [15:15:49]line Наличными: 285.00 [15:15:49]line Безнал.: 0.00 [15:15:49]line Место: АЗС № 101 "Партнер Нефть" [15:15:49]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:15:49]line СНО: Общий режим [15:15:49]line Чек 171 01.11.2024 15:15 [15:15:49]line Смена: 558 ФФД: 1.0 [15:15:49]line ЗНМ: 0300000081 [15:15:49]line РНМ: 0000000000091631 [15:15:49]line Версия ККМ: 001 [15:15:49]line ФМ: 0000000000874669 [15:15:49]line ФД: 139990 [15:15:49]line ФПД: 275383599707663 [15:15:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T151554&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139990&fm=275383599707663&tin=02508201610067®Number=0000000000091631&sum=28500 [15:15:49]line 0 [15:15:49]OFD Sender: Processing packet 139990 [packets to send 34, broken 33] [15:15:49]ProducePacketName [15:15:49]name=ofd_packets/00139990 [15:15:49]OFD Sender: To server: pG, [15:15:49]CommunicateWithHost lk.salyk.kg:30040 [15:15:49]ConnectInit lk.salyk.kg [15:15:49]written 0, free lines is 4095 [15:15:50]Connected sock=11 [15: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 34 36 36 39 44 01 00 00 6F 6E 3C 01 EB 98 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 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 D2 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 AB 00 00 00 F4 03 04 00 AA F0 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D6 22 02 00 35 04 06 00 FA 75 BD A3 36 0F 90 37 DB F2 F4 FF 34 89 [15:15:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 56 34 47 00 0C 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D6 22 02 00 F4 03 04 00 54 9C 24 67 B6 04 01 00 00 9F AB A2 2C B0 00 92 28 [15:15:50]CommunicateWithHost err = 0 [15:15:50]CheckOFDResponse [15:15:50]1017 (14) - 77093643461234 [15:15:50]1041 (16) - 0000000000874669 [15:15:50]1040 (4) - 139990 [15:15:50]1012 (4) - 01.11.2024 09:16 [15:15:50]1206 (1) - 0 [15:15:50]OFD Sender: Remove packet 139990 [15:15:50]ProducePacketName [15:15:50]name=ofd_packets/00139990 [15:15:50]NVStorageDeleteData [15:15:50]Write to MH i2c: 01 00 00 0C 67 73 [15:15:50]Write i2c OK [15:15:50]MH_I2C_Read... [15:15:50]Read from MH i2c: 01 [15:15:50]MH_I2C_Read... [15:15:50]Read from MH i2c: 01 07 00 [15:15:50]MH_I2C_Read... [15:15:50]Read from MH i2c: 01 07 00 0C 67 00 00 00 00 00 FE 0C 84 [15:15:50]RasterBufferAndPrint [15:15:50]line [15:15:50]line [15:15:50]line [15:15:50]line [15:15:50]line [15:15:50]written 0, free lines is 3332 [15:15:50]MH_Cut [15:15:50]Write to MH i2c: D1 01 00 13 67 01 4C [15:15:50]Write i2c OK [15:15:50]MH_I2C_Read... [15:15:50]Read from MH i2c: D1 [15:15:50]MH_I2C_Read... [15:15:50]Read from MH i2c: D1 01 00 [15:15:50]MH_I2C_Read... [15:15:50]Read from MH i2c: D1 01 00 13 67 00 4B [15:15:50]Write to MH i2c: 01 00 00 14 67 7B [15:15:50]Write i2c OK [15:15:50]MH_I2C_Read... [15:15:50]OFD Sender: No OFD packet to send [15:15:51]*** Cut start [15:15:51]*** Partial cut [15:15:51]*** CUTSNS_PIN = 1 [15:15:51]*** CUTSNS_PIN = 0 [15:15:51]*** Brake cut motor [15:15:51]Read from MH i2c: 01 [15:15:51]MH_I2C_Read... [15:15:51]*** Stop cut motor [15:15:51]*** Cut end [15:15:51]Read from MH i2c: 01 07 00 [15:15:51]MH_I2C_Read... [15:15:51]Read from MH i2c: 01 07 00 14 67 00 00 00 00 00 FF 0F 90 [15:15:51]process_action close_receipt done [15:15:51]requested_data is exist [15:15:51]produce_requested_data [15:15:51]requested_item fm.sn is exist - process it [15:15:51]wFMCommunicate request_size=4 [15:15:51]MH_SAM_APDU [15:15:51]CAPDU: 80 11 00 00 [15:15:51]Write to MH i2c: E2 08 00 15 67 80 11 00 00 00 00 00 00 F6 [15:15:51]Write i2c OK [15:15:51]MH_I2C_Read... [15:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:51]Read from MH i2c: E2 [15:15:51]MH_I2C_Read... [15:15:51]Read from MH i2c: E2 17 00 [15:15:51]MH_I2C_Read... [15:15:51]Read from MH i2c: E2 17 00 15 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 51 [15:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:15:51]wFMCommunicate OK [15:15:51]requested_item fd.num is exist - process it [15:15:51]SAM_PROTO_GetFieldsCounters [15:15:51]wFMCommunicate request_size=4 [15:15:51]MH_SAM_APDU [15:15:51]CAPDU: 80 13 00 00 [15:15:51]Write to MH i2c: E2 08 00 16 67 80 13 00 00 00 00 00 00 F9 [15:15:51]Write i2c OK [15:15:51]MH_I2C_Read... [15:15:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:51]Read from MH i2c: E2 [15:15:51]MH_I2C_Read... [15:15:51]Read from MH i2c: E2 62 00 [15:15:51]MH_I2C_Read... [15:15:51]Read from MH i2c: E2 62 00 16 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D6 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [15:15:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D6 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:51]wFMCommunicate OK [15:15:51]SAM_PROTO_GetFieldsCounters done [15:15:51]requested_item shift.num is exist - process it [15:15:51]requested_item shift.opened is exist - process it [15:15:51]req_shift_opened [15:15:51]FM_GetShiftState [15:15:51]SAM_PROTO_GetShiftState [15:15:51]wFMCommunicate request_size=4 [15:15:51]MH_SAM_APDU [15:15:51]CAPDU: 80 13 01 00 [15:15:51]Write to MH i2c: E2 08 00 17 67 80 13 01 00 00 00 00 00 FB [15:15:51]Write i2c OK [15:15:51]MH_I2C_Read... [15:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:51]Read from MH i2c: E2 [15:15:51]MH_I2C_Read... [15:15:51]Read from MH i2c: E2 0E 00 [15:15:51]MH_I2C_Read... [15:15:51]Read from MH i2c: E2 0E 00 17 67 00 09 00 01 89 19 24 67 00 00 00 00 90 00 34 [15:15:51]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:15:51]wFMCommunicate OK [15:15:51]SAM_PROTO_GetShiftState done [15:15:51]FM_GetShiftState done [15:15:51]req_shift_opened done [15:15:51]requested_item shift.open_date is exist - process it [15:15:51]req_shift_open_date [15:15:51]req_shift_open_date done [15:15:51]produce_requested_data done [15:15:51]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139990,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [15:15:51]process_action_free close_receipt [15:15:51]json_value_free [15:15:51]json_value_free done [15:15:51]process_json_proto returns [15:15:51]Send response to host [15:15:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139990,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [15:15:51]free response buf [15:15:51]execute_script done [15:15:51]execute_script returns [15:15:51]free content buf [15:15:51]Sock 9.Close socket [15:15:51]Sock 9.Thread stoped [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:15]OFD Sender: No OFD packet to send [15:16:20]OFD Sender: No OFD packet to send [15:16:25]OFD Sender: No OFD packet to send [15:16:30]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:40]OFD Sender: No OFD packet to send [15:16:45]accept exits with 7 [15:16:45]New connection [15:16:45]New thread 3066510692 created [15:16:45]Thread 3066654052 joined [15:16:45]Waiting for new connection... [15:16:45] Sock 7.Parse request [15:16:45]Sock 7.Check first char [15:16:45]Sock 7.First char is OK [15:16:45]request: POST /json_proto HTTP/1.0 [15:16:45]Method: POST [15:16:45]URL: /json_proto [15:16:45]Method is POST - this is cgi request [15:16:45]url: /json_proto [15:16:45]query_string will be loaded in cgi processing [15:16:45]execute_cgi json_proto POST (null) [15:16:45]execute_cgi path=json_proto method=POST [15:16:45]POST find Content-Length [15:16:45]Host: 172.17.50.196:8080 [15:16:45]Content-Length: 688 [15:16:45]Content-Type: application/json [15:16:45] [15:16:45]POST finish read [15:16:45]Found Content-Length = 688 [15:16:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:45]execute_script... [15:16:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:45]POST & json_proto [15:16:45]process_json_proto [15:16:45]json parsed OK: [15:16:45]protocol is kg_v1.0 [15:16:45]action value=close_receipt [15:16:45]process_action close_receipt [15:16:45]cmd_close_receipt [15:16:45]MH_GetDate [15:16:45]Write to MH i2c: F0 00 00 18 67 6E [15:16:45]Write i2c OK [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: F0 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: F0 09 00 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: F0 09 00 18 67 00 E3 F0 24 67 72 0D 1C 67 D7 [15:16:45]GetLastDocTimeStamp 1730474154 [15:16:45]current date 1730474211 [15:16:45]FM_GetShiftState [15:16:45]SAM_PROTO_GetShiftState [15:16:45]wFMCommunicate request_size=4 [15:16:45]MH_SAM_APDU [15:16:45]CAPDU: 80 13 01 00 [15:16:45]Write to MH i2c: E2 08 00 19 67 80 13 01 00 00 00 00 00 FD [15:16:45]Write i2c OK [15:16:45]MH_I2C_Read... [15:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:45]Read from MH i2c: E2 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: E2 0E 00 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: E2 0E 00 19 67 00 09 00 01 89 19 24 67 00 00 00 00 90 00 36 [15:16:45]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:16:45]wFMCommunicate OK [15:16:45]SAM_PROTO_GetShiftState done [15:16:45]FM_GetShiftState done [15:16:45]opened in 1730419081 [15:16:45]opened+sec_in_day 1730505481 [15:16:45]quantity*price = 150037 [15:16:45]sum+1 = 150039 [15:16:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 172 01.11.2024 15:16 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139991 ФПД: 204029277403995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T151651&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139991&fm=204029277403995&tin=02508201610067®Number=0000000000091631&sum=150000 [15:16:46]StoreToDocumentArchive [15:16:46]shift 558 fd 139991 [15:16:46]save to /storage/0558/doc_00139991 [15:16:46]save last doc name /storage/0558/doc_00139991 to /storage/kkm_last_doc_name [15:16:46]save OK [15:16:46]Clear old archive folders... [15:16:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:16:46]tlvbuf is 00BE29E0 [15:16:46]SAM_PROTO_ClearQueue [15:16:46]wFMCommunicate request_size=4 [15:16:46]MH_SAM_APDU [15:16:46]CAPDU: 80 09 00 00 [15:16:46]Write to MH i2c: E2 08 00 26 67 80 09 00 00 00 00 00 00 FF [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:46]Read from MH i2c: E2 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 03 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 03 00 26 67 00 90 00 01 [15:16:46]RAPDU: 90 00 [15:16:46]wFMCommunicate OK [15:16:46]SAM_PROTO_ClearQueue done [15:16:46]KKMCreateOFDPacket [15:16:46]OFDProtocolAddRootSTLVToBuf [15:16:46]FM_MakeSignedData [15:16:46]FM_MakeSignedData [15:16:46]SAM_PROTO_SignData [15:16:46]wFMCommunicate request_size=4 [15:16:46]MH_SAM_APDU [15:16:46]CAPDU: 80 0D 01 02 [15:16:46]Write to MH i2c: E2 08 00 27 67 80 0D 01 02 00 00 00 00 07 [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:46]Read from MH i2c: E2 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 03 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 03 00 27 67 00 90 00 02 [15:16:46]RAPDU: 90 00 [15:16:46]wFMCommunicate OK [15:16:46]wFMCommunicate request_size=255 [15:16:46]MH_SAM_APDU [15:16:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 E3 F0 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D7 22 02 00 35 04 06 00 [15:16:46]Write to MH i2c: E2 02 01 28 67 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 E3 F0 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D7 22 02 00 35 04 06 00 00 00 20 [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:47]Read from MH i2c: E2 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 03 00 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 03 00 28 67 00 90 00 03 [15:16:47]RAPDU: 90 00 [15:16:47]wFMCommunicate OK [15:16:47]wFMCommunicate request_size=11 [15:16:47]MH_SAM_APDU [15:16:47]CAPDU: 80 0D 02 02 06 B9 90 44 9A 7B 5B [15:16:47]Write to MH i2c: E2 0E 00 29 67 80 0D 02 02 06 00 B9 90 44 9A 7B 5B 00 00 13 [15:16:47]Write i2c OK [15:16:47]MH_I2C_Read... [15:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:47]Read from MH i2c: E2 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 03 00 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 03 00 29 67 00 90 00 04 [15:16:47]RAPDU: 90 00 [15:16:47]wFMCommunicate OK [15:16:47]wFMCommunicate request_size=4 [15:16:47]MH_SAM_APDU [15:16:47]CAPDU: 80 0D 03 02 [15:16:47]Write to MH i2c: E2 08 00 2A 67 80 0D 03 02 00 00 00 00 0C [15:16:47]Write i2c OK [15:16:47]MH_I2C_Read... [15:16:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:47]Read from MH i2c: E2 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 0B 00 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 0B 00 2A 67 00 35 26 35 7B 55 79 F8 F4 90 00 D2 [15:16:47]RAPDU: 35 26 35 7B 55 79 F8 F4 90 00 [15:16:47]wFMCommunicate OK [15:16:47]SAM_PROTO_SignData done [15:16:47]FM_MakeSignedData done [15:16:47]CreateOFDProtocolMessage [15:16:47]wFMCommunicate request_size=4 [15:16:47]MH_SAM_APDU [15:16:47]CAPDU: 80 11 00 00 [15:16:47]Write to MH i2c: E2 08 00 2B 67 80 11 00 00 00 00 00 00 0C [15:16:47]Write i2c OK [15:16:47]MH_I2C_Read... [15:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:47]Read from MH i2c: E2 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 17 00 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 17 00 2B 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 67 [15:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:16:47]wFMCommunicate OK [15:16:47]CreateOFDProtocolMessage done [15:16:47]OFDSenderStorePacket 139991 [15:16:47]StoreOFDPacket docnum=139991 [15:16:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 9B F2 08 01 08 14 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 E3 F0 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D7 22 02 00 35 04 06 00 B9 90 44 9A 7B 5B 35 26 35 7B 55 79 F8 F4 [15:16:47]CheckFolder [15:16:47]dirname=/storage/ofd_packets [15:16:47]CheckFolder done [15:16:47]ProducePacketName [15:16:47]name=ofd_packets/00139991 [15:16:47]NVStorageSaveData ofd_packets/00139991 [15:16:47]File name is /storage/ofd_packets/00139991 [15:16:47]Write 302 bytes [15:16:47]NVStorageSaveData done [15:16:47]OFDSenderStorePacket done [15:16:47]KKMCreateOFDPacket done [15:16:47]NVStorageSaveData kkm_last_timestamp [15:16:47]File name is /storage/kkm_last_timestamp [15:16:47]Write 4 bytes [15:16:47]NVStorageSaveData done [15:16:47]ExternCall_PrintAddStr [15:16:47]wPrintStart [15:16:47]Write to MH i2c: 01 00 00 2C 67 93 [15:16:47]Write i2c OK [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: 01 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: 01 07 00 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: 01 07 00 2C 67 00 00 00 00 00 FF 0F A8 [15:16:47]RasterBufferAndPrint [15:16:47]line Счет N : (1)1096034 [15:16:47]line ИНН: 02508201610067 [15:16:47]line Контрольно-Кассовый Чек [15:16:47]line ПРОДАЖА [15:16:47]line ТРК (МРК, ГНК) : 41 [15:16:47]line Товар: 2710194210 [15:16:47]line ДТ(л)-К-2 [15:16:47]line 19.690 * 76.20 [15:16:47]line = 1500.38 [15:16:47]line НДС 12% НСП 1% [15:16:47]line > о реализуемом товаре [15:16:47]line ОКРУГЛЕНИЕ: -0.38 [15:16:47]line ИТОГО: 1500.00 [15:16:47]line Внесено: 1500.00 [15:16:47]line СДАЧА: 0.00 [15:16:47]line НСП 1% : 13.28 [15:16:47]line НДС 12% : 159.33 [15:16:47]line Наличными: 1500.00 [15:16:47]line Безнал.: 0.00 [15:16:47]line Место: АЗС № 101 "Партнер Нефть" [15:16:47]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:16:47]line СНО: Общий режим [15:16:47]line Чек 172 01.11.2024 15:16 [15:16:47]line Смена: 558 ФФД: 1.0 [15:16:47]line ЗНМ: 0300000081 [15:16:47]line РНМ: 0000000000091631 [15:16:47]line Версия ККМ: 001 [15:16:47]line ФМ: 0000000000874669 [15:16:47]line ФД: 139991 [15:16:47]line ФПД: 204029277403995 [15:16:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T151651&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139991&fm=204029277403995&tin=02508201610067®Number=0000000000091631&sum=150000 [15:16:47]OFD Sender: Processing packet 139991 [packets to send 34, broken 33] [15:16:47]ProducePacketName [15:16:47]name=ofd_packets/00139991 [15:16:47]OFD Sender: To server: pG, [15:16:47]CommunicateWithHost lk.salyk.kg:30040 [15:16:47]ConnectInit lk.salyk.kg [15:16:47]written 0, free lines is 4095 [15:16:47]Connected sock=10 [15:16:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 9B F2 08 01 08 14 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 E3 F0 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D7 22 02 00 35 04 06 00 B9 90 44 9A 7B 5B 35 26 35 7B 55 79 F8 F4 [15:16:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 26 C5 47 00 AC AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D7 22 02 00 F4 03 04 00 8E 9C 24 67 B6 04 01 00 00 40 F0 7E 43 65 68 30 93 [15:16:47]CommunicateWithHost err = 0 [15:16:47]CheckOFDResponse [15:16:47]1017 (14) - 77093643461234 [15:16:47]1041 (16) - 0000000000874669 [15:16:47]1040 (4) - 139991 [15:16:47]1012 (4) - 01.11.2024 09:17 [15:16:47]1206 (1) - 0 [15:16:47]OFD Sender: Remove packet 139991 [15:16:47]ProducePacketName [15:16:47]name=ofd_packets/00139991 [15:16:47]NVStorageDeleteData [15:16:47]Write to MH i2c: 01 00 00 57 67 BE [15:16:47]Write i2c OK [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: 01 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: 01 07 00 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: 01 07 00 57 67 00 00 00 00 00 EC 0C BD [15:16:47]RasterBufferAndPrint [15:16:47]line [15:16:47]line [15:16:47]line [15:16:47]line [15:16:47]line [15:16:47]written 0, free lines is 3315 [15:16:48]MH_Cut [15:16:48]Write to MH i2c: D1 01 00 5E 67 01 97 [15:16:48]Write i2c OK [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: D1 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: D1 01 00 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: D1 01 00 5E 67 00 96 [15:16:48]Write to MH i2c: 01 00 00 5F 67 C6 [15:16:48]Write i2c OK [15:16:48]MH_I2C_Read... [15:16:48]OFD Sender: No OFD packet to send [15:16:48]*** Cut start [15:16:48]*** Partial cut [15:16:48]*** CUTSNS_PIN = 1 [15:16:48]*** CUTSNS_PIN = 0 [15:16:48]*** Brake cut motor [15:16:49]Read from MH i2c: 01 [15:16:49]MH_I2C_Read... [15:16:49]*** Stop cut motor [15:16:49]Read from MH i2c: 01 *** Cut end [15:16:49]07 00 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: 01 07 00 5F 67 00 00 00 00 00 FF 0F DB [15:16:49]process_action close_receipt done [15:16:49]requested_data is exist [15:16:49]produce_requested_data [15:16:49]requested_item fm.sn is exist - process it [15:16:49]wFMCommunicate request_size=4 [15:16:49]MH_SAM_APDU [15:16:49]CAPDU: 80 11 00 00 [15:16:49]Write to MH i2c: E2 08 00 60 67 80 11 00 00 00 00 00 00 41 [15:16:49]Write i2c OK [15:16:49]MH_I2C_Read... [15:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:49]Read from MH i2c: E2 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 17 00 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 17 00 60 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9C [15:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:16:49]wFMCommunicate OK [15:16:49]requested_item fd.num is exist - process it [15:16:49]SAM_PROTO_GetFieldsCounters [15:16:49]wFMCommunicate request_size=4 [15:16:49]MH_SAM_APDU [15:16:49]CAPDU: 80 13 00 00 [15:16:49]Write to MH i2c: E2 08 00 61 67 80 13 00 00 00 00 00 00 44 [15:16:49]Write i2c OK [15:16:49]MH_I2C_Read... [15:16:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:49]Read from MH i2c: E2 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 62 00 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 62 00 61 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D7 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [15:16:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D7 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:49]wFMCommunicate OK [15:16:49]SAM_PROTO_GetFieldsCounters done [15:16:49]requested_item shift.num is exist - process it [15:16:49]requested_item shift.opened is exist - process it [15:16:49]req_shift_opened [15:16:49]FM_GetShiftState [15:16:49]SAM_PROTO_GetShiftState [15:16:49]wFMCommunicate request_size=4 [15:16:49]MH_SAM_APDU [15:16:49]CAPDU: 80 13 01 00 [15:16:49]Write to MH i2c: E2 08 00 62 67 80 13 01 00 00 00 00 00 46 [15:16:49]Write i2c OK [15:16:49]MH_I2C_Read... [15:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:49]Read from MH i2c: E2 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 0E 00 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 0E 00 62 67 00 09 00 01 89 19 24 67 00 00 00 00 90 00 7F [15:16:49]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:16:49]wFMCommunicate OK [15:16:49]SAM_PROTO_GetShiftState done [15:16:49]FM_GetShiftState done [15:16:49]req_shift_opened done [15:16:49]requested_item shift.open_date is exist - process it [15:16:49]req_shift_open_date [15:16:49]req_shift_open_date done [15:16:49]produce_requested_data done [15:16:49]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139991,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [15:16:49]process_action_free close_receipt [15:16:49]json_value_free [15:16:49]json_value_free done [15:16:49]process_json_proto returns [15:16:49]Send response to host [15:16:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139991,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [15:16:49]free response buf [15:16:49]execute_script done [15:16:49]execute_script returns [15:16:49]free content buf [15:16:49]Sock 7.Close socket [15:16:49]Sock 7.Thread stoped [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:58]OFD Sender: No OFD packet to send [15:20:03]OFD Sender: No OFD packet to send [15:20:08]OFD Sender: No OFD packet to send [15:20:13]OFD Sender: No OFD packet to send [15:20:18]OFD Sender: No OFD packet to send [15:20:23]OFD Sender: No OFD packet to send [15:20:28]OFD Sender: No OFD packet to send [15:20:33]OFD Sender: No OFD packet to send [15:20:38]OFD Sender: No OFD packet to send [15:20:43]OFD Sender: No OFD packet to send [15:20:48]OFD Sender: No OFD packet to send [15:20:53]OFD Sender: No OFD packet to send [15:20:58]OFD Sender: No OFD packet to send [15:21:03]OFD Sender: No OFD packet to send [15:21:08]OFD Sender: No OFD packet to send [15:21:13]OFD Sender: No OFD packet to send [15:21:18]OFD Sender: No OFD packet to send [15:21:23]OFD Sender: No OFD packet to send [15:21:28]OFD Sender: No OFD packet to send [15:21:33]OFD Sender: No OFD packet to send [15:21:38]OFD Sender: No OFD packet to send [15:21:43]OFD Sender: No OFD packet to send [15:21:48]OFD Sender: No OFD packet to send [15:21:53]OFD Sender: No OFD packet to send [15:21:58]OFD Sender: No OFD packet to send [15:22:03]OFD Sender: No OFD packet to send [15:22:08]OFD Sender: No OFD packet to send [15:22:13]OFD Sender: No OFD packet to send [15:22:18]OFD Sender: No OFD packet to send [15:22:23]OFD Sender: No OFD packet to send [15:22:28]OFD Sender: No OFD packet to send [15:22:33]OFD Sender: No OFD packet to send [15:22:38]OFD Sender: No OFD packet to send [15:22:43]OFD Sender: No OFD packet to send [15:22:48]OFD Sender: No OFD packet to send [15:22:53]OFD Sender: No OFD packet to send [15:22:58]OFD Sender: No OFD packet to send [15:23:03]OFD Sender: No OFD packet to send [15:23:08]OFD Sender: No OFD packet to send [15:23:13]OFD Sender: No OFD packet to send [15:23:18]OFD Sender: No OFD packet to send [15:23:23]OFD Sender: No OFD packet to send [15:23:28]OFD Sender: No OFD packet to send [15:23:33]OFD Sender: No OFD packet to send [15:23:38]OFD Sender: No OFD packet to send [15:23:43]OFD Sender: No OFD packet to send [15:23:48]OFD Sender: No OFD packet to send [15:23:53]OFD Sender: No OFD packet to send [15:23:58]OFD Sender: No OFD packet to send [15:24:03]OFD Sender: No OFD packet to send [15:24:08]OFD Sender: No OFD packet to send [15:24:13]OFD Sender: No OFD packet to send [15:24:18]OFD Sender: No OFD packet to send [15:24:23]OFD Sender: No OFD packet to send [15:24:28]OFD Sender: No OFD packet to send [15:24:33]OFD Sender: No OFD packet to send [15:24:38]OFD Sender: No OFD packet to send [15:24:43]OFD Sender: No OFD packet to send [15:24:48]OFD Sender: No OFD packet to send [15:24:53]OFD Sender: No OFD packet to send [15:24:58]OFD Sender: No OFD packet to send [15:25:03]OFD Sender: No OFD packet to send [15:25:08]OFD Sender: No OFD packet to send [15:25:13]OFD Sender: No OFD packet to send [15:25:18]OFD Sender: No OFD packet to send [15:25:23]OFD Sender: No OFD packet to send [15:25:28]OFD Sender: No OFD packet to send [15:25:33]OFD Sender: No OFD packet to send [15:25:38]OFD Sender: No OFD packet to send [15:25:43]OFD Sender: No OFD packet to send [15:25:48]OFD Sender: No OFD packet to send [15:25:53]OFD Sender: No OFD packet to send [15:25:58]OFD Sender: No OFD packet to send [15:26:03]OFD Sender: No OFD packet to send [15:26:08]OFD Sender: No OFD packet to send [15:26:13]OFD Sender: No OFD packet to send [15:26:18]OFD Sender: No OFD packet to send [15:26:23]OFD Sender: No OFD packet to send [15:26:28]OFD Sender: No OFD packet to send [15:26:33]OFD Sender: No OFD packet to send [15:26:38]OFD Sender: No OFD packet to send [15:26:43]OFD Sender: No OFD packet to send [15:26:48]OFD Sender: No OFD packet to send [15:26:53]OFD Sender: No OFD packet to send [15:26:58]OFD Sender: No OFD packet to send [15:27:03]OFD Sender: No OFD packet to send [15:27:08]OFD Sender: No OFD packet to send [15:27:13]OFD Sender: No OFD packet to send [15:27:18]OFD Sender: No OFD packet to send [15:27:23]OFD Sender: No OFD packet to send [15:27:28]OFD Sender: No OFD packet to send [15:27:33]OFD Sender: No OFD packet to send [15:27:38]OFD Sender: No OFD packet to send [15:27:43]OFD Sender: No OFD packet to send [15:27:48]OFD Sender: No OFD packet to send [15:27:53]OFD Sender: No OFD packet to send [15:27:58]OFD Sender: No OFD packet to send [15:28:03]OFD Sender: No OFD packet to send [15:28:08]OFD Sender: No OFD packet to send [15:28:13]OFD Sender: No OFD packet to send [15:28:18]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:39]accept exits with 9 [15:28:39]New connection [15:28:39]New thread 3066654052 created [15:28:39]Thread 3066510692 joined [15:28:39]Waiting for new connection... [15:28:39] Sock 9.Parse request [15:28:39]Sock 9.Check first char [15:28:39]Sock 9.First char is OK [15:28:39]request: POST /json_proto HTTP/1.0 [15:28:39]Method: POST [15:28:39]URL: /json_proto [15:28:39]Method is POST - this is cgi request [15:28:39]url: /json_proto [15:28:39]query_string will be loaded in cgi processing [15:28:39]execute_cgi json_proto POST (null) [15:28:39]execute_cgi path=json_proto method=POST [15:28:39]POST find Content-Length [15:28:39]Host: 172.17.50.196:8080 [15:28:39]Content-Length: 728 [15:28:39]Content-Type: application/json [15:28:39] [15:28:39]POST finish read [15:28:39]Found Content-Length = 728 [15:28:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335806", "tax_sys" : 0, "items" : [ { "code": "4870240014565", "name": "\u041D\u0430\u0433\u0440\u0435\u0432\u0430\u0435\u043C\u044B\u0435 \u0442\u0430\u0431\u0430\u0447\u043D\u044B\u0435 \u043F\u0430\u043B\u043E\u0447\u043A\u0438 IQOS TEREA ", "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" ] } } [15:28:39]execute_script... [15:28:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335806", "tax_sys" : 0, "items" : [ { "code": "4870240014565", "name": "\u041D\u0430\u0433\u0440\u0435\u0432\u0430\u0435\u043C\u044B\u0435 \u0442\u0430\u0431\u0430\u0447\u043D\u044B\u0435 \u043F\u0430\u043B\u043E\u0447\u043A\u0438 IQOS TEREA ", "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" ] } } [15:28:39]POST & json_proto [15:28:39]process_json_proto [15:28:39]json parsed OK: [15:28:39]protocol is kg_v1.0 [15:28:39]action value=close_receipt [15:28:39]process_action close_receipt [15:28:39]cmd_close_receipt [15:28:39]MH_GetDate [15:28:39]Write to MH i2c: F0 00 00 63 67 B9 [15:28:39]Write i2c OK [15:28:39]MH_I2C_Read... [15:28:39]Read from MH i2c: F0 [15:28:39]MH_I2C_Read... [15:28:39]Read from MH i2c: F0 09 00 [15:28:39]MH_I2C_Read... [15:28:39]Read from MH i2c: F0 09 00 63 67 00 AE F3 24 67 72 0D 1C 67 F0 [15:28:39]GetLastDocTimeStamp 1730474211 [15:28:39]current date 1730474926 [15:28:39]FM_GetShiftState [15:28:39]SAM_PROTO_GetShiftState [15:28:39]wFMCommunicate request_size=4 [15:28:39]MH_SAM_APDU [15:28:39]CAPDU: 80 13 01 00 [15:28:39]Write to MH i2c: E2 08 00 64 67 80 13 01 00 00 00 00 00 48 [15:28:39]Write i2c OK [15:28:39]MH_I2C_Read... [15:28:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:39]Read from MH i2c: E2 [15:28:39]MH_I2C_Read... [15:28:39]Read from MH i2c: E2 0E 00 [15:28:39]MH_I2C_Read... [15:28:39]Read from MH i2c: E2 0E 00 64 67 00 09 00 01 89 19 24 67 00 00 00 00 90 00 81 [15:28:39]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:28:39]wFMCommunicate OK [15:28:39]SAM_PROTO_GetShiftState done [15:28:39]FM_GetShiftState done [15:28:39]opened in 1730419081 [15:28:39]opened+sec_in_day 1730505481 [15:28:39]quantity*price = 15100 [15:28:39]sum+1 = 15101 [15:28:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 173 01.11.2024 15:28 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139992 ФПД: 67884302163897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T152846&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139992&fm=67884302163897&tin=02508201610067®Number=0000000000091631&sum=15100 0 [15:28:41]StoreToDocumentArchive [15:28:41]shift 558 fd 139992 [15:28:41]save to /storage/0558/doc_00139992 [15:28:41]save last doc name /storage/0558/doc_00139992 to /storage/kkm_last_doc_name [15:28:41]save OK [15:28:41]Clear old archive folders... [15:28:41]ProcessDocumentItem done err = 0, tmpTLVsize=308 [15:28:41]tlvbuf is 00BE2DC0 [15:28:41]SAM_PROTO_ClearQueue [15:28:41]wFMCommunicate request_size=4 [15:28:41]MH_SAM_APDU [15:28:41]CAPDU: 80 09 00 00 [15:28:41]Write to MH i2c: E2 08 00 71 67 80 09 00 00 00 00 00 00 4A [15:28:41]Write i2c OK [15:28:41]MH_I2C_Read... [15:28:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:41]Read from MH i2c: E2 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 03 00 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 03 00 71 67 00 90 00 4C [15:28:41]RAPDU: 90 00 [15:28:41]wFMCommunicate OK [15:28:41]SAM_PROTO_ClearQueue done [15:28:41]KKMCreateOFDPacket [15:28:41]OFDProtocolAddRootSTLVToBuf [15:28:41]FM_MakeSignedData [15:28:41]FM_MakeSignedData [15:28:41]SAM_PROTO_SignData [15:28:41]wFMCommunicate request_size=4 [15:28:41]MH_SAM_APDU [15:28:41]CAPDU: 80 0D 01 02 [15:28:41]Write to MH i2c: E2 08 00 72 67 80 0D 01 02 00 00 00 00 52 [15:28:41]Write i2c OK [15:28:41]MH_I2C_Read... [15:28:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:41]Read from MH i2c: E2 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 03 00 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 03 00 72 67 00 90 00 4D [15:28:41]RAPDU: 90 00 [15:28:41]wFMCommunicate OK [15:28:41]wFMCommunicate request_size=255 [15:28:41]MH_SAM_APDU [15:28:41]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 34 30 30 31 34 35 36 35 06 04 42 00 D0 9D D0 B0 D0 B3 D1 80 D0 B5 D0 B2 D0 B0 D0 B5 D0 BC D1 8B D0 B5 20 D1 82 D0 B0 D0 B1 D0 B0 D1 87 D0 BD D1 8B D0 B5 20 D0 BF D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 49 51 4F 53 20 54 45 52 45 41 20 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 AD 00 00 00 F4 03 04 00 AE F3 24 67 0E 04 04 00 2E 02 00 00 B9 [15:28:41]Write to MH i2c: E2 02 01 73 67 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 34 30 30 31 34 35 36 35 06 04 42 00 D0 9D D0 B0 D0 B3 D1 80 D0 B5 D0 B2 D0 B0 D0 B5 D0 BC D1 8B D0 B5 20 D1 82 D0 B0 D0 B1 D0 B0 D1 87 D0 BD D1 8B D0 B5 20 D0 BF D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 49 51 4F 53 20 54 45 52 45 41 20 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 AD 00 00 00 F4 03 04 00 AE F3 24 67 0E 04 04 00 2E 02 00 00 B9 00 00 AA [15:28:41]Write i2c OK [15:28:41]MH_I2C_Read... [15:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:41]Read from MH i2c: E2 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 03 00 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 03 00 73 67 00 90 00 4E [15:28:41]RAPDU: 90 00 [15:28:41]wFMCommunicate OK [15:28:41]wFMCommunicate request_size=67 [15:28:41]MH_SAM_APDU [15:28:41]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D8 22 02 00 35 04 06 00 3D BD 8B B7 5F B9 [15:28:41]Write to MH i2c: E2 46 00 74 67 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D8 22 02 00 35 04 06 00 3D BD 8B B7 5F B9 00 00 00 [15:28:41]Write i2c OK [15:28:41]MH_I2C_Read... [15:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:41]Read from MH i2c: E2 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 03 00 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 03 00 74 67 00 90 00 4F [15:28:41]RAPDU: 90 00 [15:28:41]wFMCommunicate OK [15:28:41]wFMCommunicate request_size=4 [15:28:41]MH_SAM_APDU [15:28:41]CAPDU: 80 0D 03 02 [15:28:41]Write to MH i2c: E2 08 00 75 67 80 0D 03 02 00 00 00 00 57 [15:28:41]Write i2c OK [15:28:41]MH_I2C_Read... [15:28:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:41]Read from MH i2c: E2 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 0B 00 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 0B 00 75 67 00 BE 08 31 D1 6E 91 13 48 90 00 7A [15:28:41]RAPDU: BE 08 31 D1 6E 91 13 48 90 00 [15:28:41]wFMCommunicate OK [15:28:41]SAM_PROTO_SignData done [15:28:41]FM_MakeSignedData done [15:28:41]CreateOFDProtocolMessage [15:28:41]wFMCommunicate request_size=4 [15:28:41]MH_SAM_APDU [15:28:41]CAPDU: 80 11 00 00 [15:28:41]Write to MH i2c: E2 08 00 76 67 80 11 00 00 00 00 00 00 57 [15:28:41]Write i2c OK [15:28:41]MH_I2C_Read... [15:28:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:41]Read from MH i2c: E2 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 17 00 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 17 00 76 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B2 [15:28:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:28:41]wFMCommunicate OK [15:28:41]CreateOFDProtocolMessage done [15:28:41]OFDSenderStorePacket 139992 [15:28:41]StoreOFDPacket docnum=139992 [15:28:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 48 01 00 00 BA 24 40 01 A3 08 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 34 30 30 31 34 35 36 35 06 04 42 00 D0 9D D0 B0 D0 B3 D1 80 D0 B5 D0 B2 D0 B0 D0 B5 D0 BC D1 8B D0 B5 20 D1 82 D0 B0 D0 B1 D0 B0 D1 87 D0 BD D1 8B D0 B5 20 D0 BF D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 49 51 4F 53 20 54 45 52 45 41 20 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 AD 00 00 00 F4 03 04 00 AE F3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D8 22 02 00 35 04 06 00 3D BD 8B B7 5F B9 BE 08 31 D1 6E 91 13 48 [15:28:41]CheckFolder [15:28:41]dirname=/storage/ofd_packets [15:28:41]CheckFolder done [15:28:41]ProducePacketName [15:28:41]name=ofd_packets/00139992 [15:28:41]NVStorageSaveData ofd_packets/00139992 [15:28:41]File name is /storage/ofd_packets/00139992 [15:28:41]Write 358 bytes [15:28:41]NVStorageSaveData done [15:28:41]OFDSenderStorePacket done [15:28:41]KKMCreateOFDPacket done [15:28:41]NVStorageSaveData kkm_last_timestamp [15:28:41]File name is /storage/kkm_last_timestamp [15:28:41]Write 4 bytes [15:28:41]NVStorageSaveData done [15:28:41]ExternCall_PrintAddStr [15:28:41]wPrintStart [15:28:41]Write to MH i2c: 01 00 00 77 67 DE [15:28:41]Write i2c OK [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: 01 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: 01 07 00 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: 01 07 00 77 67 00 00 00 00 00 FF 0F F3 [15:28:41]RasterBufferAndPrint [15:28:41]line Счет N : (3)335806 [15:28:41]line ИНН: 02508201610067 [15:28:41]line Контрольно-Кассовый Чек [15:28:41]line ПРОДАЖА [15:28:41]line Товар: 4870240014565 [15:28:41]line Нагреваемые табачные палочки IQOS TEREA [15:28:41]line 1.000 * 151.00 [15:28:41]line = 151.00 [15:28:41]line НДС 12% НСП 1% [15:28:41]line > о реализуемом товаре [15:28:41]line ИТОГО: 151.00 [15:28:41]line НСП 1% : 1.34 [15:28:41]line НДС 12% : 16.03 [15:28:41]line Наличными: 151.00 [15:28:41]line Безнал.: 0.00 [15:28:41]line Место: АЗС № 101 "Партнер Нефть" [15:28:41]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:28:41]line СНО: Общий режим [15:28:41]line Чек 173 01.11.2024 15:28 [15:28:41]line Смена: 558 ФФД: 1.0 [15:28:41]line ЗНМ: 0300000081 [15:28:41]line РНМ: 0000000000091631 [15:28:41]line Версия ККМ: 001 [15:28:41]line ФМ: 0000000000874669 [15:28:41]line ФД: 139992 [15:28:41]line ФПД: 67884302163897 [15:28:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T152846&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139992&fm=67884302163897&tin=02508201610067®Number=0000000000091631&sum=15100 [15:28:42]OFD Sender: Processing packet 139992 [packets to send 34, broken 33] [15:28:42]ProducePacketName [15:28:42]name=ofd_packets/00139992 [15:28:42]OFD Sender: To server: pG, [15:28:42]CommunicateWithHost lk.salyk.kg:30040 [15:28:42]ConnectInit lk.salyk.kg [15:28:42]line 0 [15:28:42]written 0, free lines is 4095 [15:28:42]Connected sock=10 [15:28:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 48 01 00 00 BA 24 40 01 A3 08 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 34 30 30 31 34 35 36 35 06 04 42 00 D0 9D D0 B0 D0 B3 D1 80 D0 B5 D0 B2 D0 B0 D0 B5 D0 BC D1 8B D0 B5 20 D1 82 D0 B0 D0 B1 D0 B0 D1 87 D0 BD D1 8B D0 B5 20 D0 BF D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 49 51 4F 53 20 54 45 52 45 41 20 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 AD 00 00 00 F4 03 04 00 AE F3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D8 22 02 00 35 04 06 00 3D BD 8B B7 5F B9 BE 08 31 D1 6E 91 13 48 [15:28:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 EF 82 47 00 C7 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 34 36 36 39 10 04 04 00 D8 22 02 00 F4 03 04 00 58 9F 24 67 B6 04 01 00 00 18 C6 07 CA 98 B4 A3 33 [15:28:42]CommunicateWithHost err = 0 [15:28:42]CheckOFDResponse [15:28:42]1017 (14) - 77093643461234 [15:28:42]1041 (16) - 0000000000874669 [15:28:42]1040 (4) - 139992 [15:28:42]1012 (4) - 01.11.2024 09:28 [15:28:42]1206 (1) - 0 [15:28:42]OFD Sender: Remove packet 139992 [15:28:42]ProducePacketName [15:28:42]name=ofd_packets/00139992 [15:28:42]NVStorageDeleteData [15:28:42]Write to MH i2c: 01 00 00 A0 67 07 [15:28:42]Write i2c OK [15:28:42]MH_I2C_Read... [15:28:42]Read from MH i2c: 01 [15:28:42]MH_I2C_Read... [15:28:42]Read from MH i2c: 01 07 00 [15:28:42]MH_I2C_Read... [15:28:42]Read from MH i2c: 01 07 00 A0 67 00 00 00 00 00 EC 0C 06 [15:28:42]RasterBufferAndPrint [15:28:42]line [15:28:42]line [15:28:42]line [15:28:42]line [15:28:42]line [15:28:42]written 0, free lines is 3317 [15:28:42]MH_Cut [15:28:42]Write to MH i2c: D1 01 00 A7 67 01 E0 [15:28:42]Write i2c OK [15:28:42]MH_I2C_Read... [15:28:42]Read from MH i2c: D1 [15:28:42]MH_I2C_Read... [15:28:42]Read from MH i2c: D1 01 00 [15:28:42]MH_I2C_Read... [15:28:42]Read from MH i2c: D1 01 00 A7 67 00 DF [15:28:42]Write to MH i2c: 01 00 00 A8 67 0F [15:28:42]Write i2c OK [15:28:42]MH_I2C_Read... [15:28:42]OFD Sender: No OFD packet to send [15:28:43]*** Cut start [15:28:43]*** Partial cut [15:28:43]*** CUTSNS_PIN = 1 [15:28:43]*** CUTSNS_PIN = 0 [15:28:43]*** Brake cut motor [15:28:43]Read from MH i2c: 01 [15:28:43]MH_I2C_Read... [15:28:43]*** Stop cut motor [15:28:43]*** Cut end [15:28:43]Read from MH i2c: 01 07 00 [15:28:43]MH_I2C_Read... [15:28:43]Read from MH i2c: 01 07 00 A8 67 00 00 00 00 00 FF 0F 24 [15:28:43]process_action close_receipt done [15:28:43]requested_data is exist [15:28:43]produce_requested_data [15:28:43]requested_item fm.sn is exist - process it [15:28:43]wFMCommunicate request_size=4 [15:28:43]MH_SAM_APDU [15:28:43]CAPDU: 80 11 00 00 [15:28:43]Write to MH i2c: E2 08 00 A9 67 80 11 00 00 00 00 00 00 8A [15:28:43]Write i2c OK [15:28:43]MH_I2C_Read... [15:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:43]Read from MH i2c: E2 [15:28:43]MH_I2C_Read... [15:28:43]Read from MH i2c: E2 17 00 [15:28:43]MH_I2C_Read... [15:28:43]Read from MH i2c: E2 17 00 A9 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E5 [15:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:28:43]wFMCommunicate OK [15:28:43]requested_item fd.num is exist - process it [15:28:43]SAM_PROTO_GetFieldsCounters [15:28:43]wFMCommunicate request_size=4 [15:28:43]MH_SAM_APDU [15:28:43]CAPDU: 80 13 00 00 [15:28:43]Write to MH i2c: E2 08 00 AA 67 80 13 00 00 00 00 00 00 8D [15:28:43]Write i2c OK [15:28:43]MH_I2C_Read... [15:28:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:43]Read from MH i2c: E2 [15:28:43]MH_I2C_Read... [15:28:43]Read from MH i2c: E2 62 00 [15:28:43]MH_I2C_Read... [15:28:43]Read from MH i2c: E2 62 00 AA 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D8 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [15:28:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D8 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:28:43]wFMCommunicate OK [15:28:43]SAM_PROTO_GetFieldsCounters done [15:28:43]requested_item shift.num is exist - process it [15:28:43]requested_item shift.opened is exist - process it [15:28:43]req_shift_opened [15:28:43]FM_GetShiftState [15:28:43]SAM_PROTO_GetShiftState [15:28:43]wFMCommunicate request_size=4 [15:28:43]MH_SAM_APDU [15:28:43]CAPDU: 80 13 01 00 [15:28:43]Write to MH i2c: E2 08 00 AB 67 80 13 01 00 00 00 00 00 8F [15:28:43]Write i2c OK [15:28:43]MH_I2C_Read... [15:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:43]Read from MH i2c: E2 [15:28:43]MH_I2C_Read... [15:28:43]Read from MH i2c: E2 0E 00 [15:28:43]MH_I2C_Read... [15:28:43]Read from MH i2c: E2 0E 00 AB 67 00 09 00 01 89 19 24 67 00 00 00 00 90 00 C8 [15:28:43]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:28:43]wFMCommunicate OK [15:28:43]SAM_PROTO_GetShiftState done [15:28:43]FM_GetShiftState done [15:28:43]req_shift_opened done [15:28:43]requested_item shift.open_date is exist - process it [15:28:43]req_shift_open_date [15:28:43]req_shift_open_date done [15:28:43]produce_requested_data done [15:28:43]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139992,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [15:28:43]process_action_free close_receipt [15:28:43]json_value_free [15:28:43]json_value_free done [15:28:43]process_json_proto returns [15:28:43]Send response to host [15:28:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139992,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [15:28:43]free response buf [15:28:43]execute_script done [15:28:43]execute_script returns [15:28:43]free content buf [15:28:43]Sock 9.Close socket [15:28:43]Sock 9.Thread stoped [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:28:59]accept exits with 7 [15:28:59]New connection [15:28:59]New thread 3066510692 created [15:28:59]Thread 3066654052 joined [15:28:59]Waiting for new connection... [15:28:59] Sock 7.Parse request [15:28:59]Sock 7.Check first char [15:28:59]Sock 7.First char is OK [15:28:59]request: POST /json_proto HTTP/1.0 [15:28:59]Method: POST [15:28:59]URL: /json_proto [15:28:59]Method is POST - this is cgi request [15:28:59]url: /json_proto [15:28:59]query_string will be loaded in cgi processing [15:28:59]execute_cgi json_proto POST (null) [15:28:59]execute_cgi path=json_proto method=POST [15:28:59]POST find Content-Length [15:28:59]Host: 172.17.50.196:8080 [15:28:59]Content-Length: 620 [15:28:59]Content-Type: application/json [15:28:59] [15:28:59]POST finish read [15:28:59]Found Content-Length = 620 [15:28:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335807", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:59]execute_script... [15:28:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335807", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:59]POST & json_proto [15:28:59]process_json_proto [15:28:59]json parsed OK: [15:28:59]protocol is kg_v1.0 [15:28:59]action value=close_receipt [15:28:59]process_action close_receipt [15:28:59]cmd_close_receipt [15:28:59]MH_GetDate [15:28:59]Write to MH i2c: F0 00 00 AC 67 02 [15:28:59]Write i2c OK [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: F0 [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: F0 09 00 [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: F0 09 00 AC 67 00 C2 F3 24 67 72 0D 1C 67 4D [15:28:59]GetLastDocTimeStamp 1730474926 [15:28:59]current date 1730474946 [15:28:59]FM_GetShiftState [15:28:59]SAM_PROTO_GetShiftState [15:28:59]wFMCommunicate request_size=4 [15:28:59]MH_SAM_APDU [15:28:59]CAPDU: 80 13 01 00 [15:28:59]Write to MH i2c: E2 08 00 AD 67 80 13 01 00 00 00 00 00 91 [15:28:59]Write i2c OK [15:28:59]MH_I2C_Read... [15:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:59]Read from MH i2c: E2 [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: E2 0E 00 [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: E2 0E 00 AD 67 00 09 00 01 89 19 24 67 00 00 00 00 90 00 CA [15:28:59]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:28:59]wFMCommunicate OK [15:28:59]SAM_PROTO_GetShiftState done [15:28:59]FM_GetShiftState done [15:28:59]opened in 1730419081 [15:28:59]opened+sec_in_day 1730505481 [15:28:59]quantity*price = 13900 [15:28:59]sum+1 = 13901 [15:28:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 174 01.11.2024 15:29 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139993 ФПД: 169596191383578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T152906&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139993&fm=169596191383578&tin=02508201610067®Number=0000000000091631&sum=13900 0 [15:29:01]StoreToDocumentArchive [15:29:01]shift 558 fd 139993 [15:29:01]save to /storage/0558/doc_00139993 [15:29:01]save last doc name /storage/0558/doc_00139993 to /storage/kkm_last_doc_name [15:29:01]save OK [15:29:01]Clear old archive folders... [15:29:01]ProcessDocumentItem done err = 0, tmpTLVsize=272 [15:29:01]tlvbuf is 00A59620 [15:29:01]SAM_PROTO_ClearQueue [15:29:01]wFMCommunicate request_size=4 [15:29:01]MH_SAM_APDU [15:29:01]CAPDU: 80 09 00 00 [15:29:01]Write to MH i2c: E2 08 00 BA 67 80 09 00 00 00 00 00 00 93 [15:29:01]Write i2c OK [15:29:01]MH_I2C_Read... [15:29:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:01]Read from MH i2c: E2 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 03 00 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 03 00 BA 67 00 90 00 95 [15:29:01]RAPDU: 90 00 [15:29:01]wFMCommunicate OK [15:29:01]SAM_PROTO_ClearQueue done [15:29:01]KKMCreateOFDPacket [15:29:01]OFDProtocolAddRootSTLVToBuf [15:29:01]FM_MakeSignedData [15:29:01]FM_MakeSignedData [15:29:01]SAM_PROTO_SignData [15:29:01]wFMCommunicate request_size=4 [15:29:01]MH_SAM_APDU [15:29:01]CAPDU: 80 0D 01 02 [15:29:01]Write to MH i2c: E2 08 00 BB 67 80 0D 01 02 00 00 00 00 9B [15:29:01]Write i2c OK [15:29:01]MH_I2C_Read... [15:29:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:01]Read from MH i2c: E2 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 03 00 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 03 00 BB 67 00 90 00 96 [15:29:01]RAPDU: 90 00 [15:29:01]wFMCommunicate OK [15:29:01]wFMCommunicate request_size=255 [15:29:01]MH_SAM_APDU [15:29:01]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 C2 F3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [15:29:01]Write to MH i2c: E2 02 01 BC 67 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 C2 F3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 00 00 E5 [15:29:01]Write i2c OK [15:29:01]MH_I2C_Read... [15:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:01]Read from MH i2c: E2 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 03 00 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 03 00 BC 67 00 90 00 97 [15:29:01]RAPDU: 90 00 [15:29:01]wFMCommunicate OK [15:29:01]wFMCommunicate request_size=31 [15:29:01]MH_SAM_APDU [15:29:01]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 36 39 10 04 04 00 D9 22 02 00 35 04 06 00 9A 3F 30 BE 20 1A [15:29:01]Write to MH i2c: E2 22 00 BD 67 80 0D 02 02 1A 00 30 30 38 37 34 36 36 39 10 04 04 00 D9 22 02 00 35 04 06 00 9A 3F 30 BE 20 1A 00 00 CF [15:29:01]Write i2c OK [15:29:01]MH_I2C_Read... [15:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:01]Read from MH i2c: E2 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 03 00 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 03 00 BD 67 00 90 00 98 [15:29:01]RAPDU: 90 00 [15:29:01]wFMCommunicate OK [15:29:01]wFMCommunicate request_size=4 [15:29:01]MH_SAM_APDU [15:29:01]CAPDU: 80 0D 03 02 [15:29:01]Write to MH i2c: E2 08 00 BE 67 80 0D 03 02 00 00 00 00 A0 [15:29:01]Write i2c OK [15:29:01]MH_I2C_Read... [15:29:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:01]Read from MH i2c: E2 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 0B 00 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 0B 00 BE 67 00 BD 62 5C A3 9E 5B 32 FF 90 00 E9 [15:29:01]RAPDU: BD 62 5C A3 9E 5B 32 FF 90 00 [15:29:01]wFMCommunicate OK [15:29:01]SAM_PROTO_SignData done [15:29:01]FM_MakeSignedData done [15:29:01]CreateOFDProtocolMessage [15:29:01]wFMCommunicate request_size=4 [15:29:01]MH_SAM_APDU [15:29:01]CAPDU: 80 11 00 00 [15:29:01]Write to MH i2c: E2 08 00 BF 67 80 11 00 00 00 00 00 00 A0 [15:29:01]Write i2c OK [15:29:01]MH_I2C_Read... [15:29:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:01]Read from MH i2c: E2 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 17 00 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: E2 17 00 BF 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FB [15:29:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:29:01]wFMCommunicate OK [15:29:01]CreateOFDProtocolMessage done [15:29:01]OFDSenderStorePacket 139993 [15:29:01]StoreOFDPacket docnum=139993 [15:29:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 24 01 00 00 EF 72 1C 01 8B 36 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 C2 F3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D9 22 02 00 35 04 06 00 9A 3F 30 BE 20 1A BD 62 5C A3 9E 5B 32 FF [15:29:01]CheckFolder [15:29:01]dirname=/storage/ofd_packets [15:29:01]CheckFolder done [15:29:01]ProducePacketName [15:29:01]name=ofd_packets/00139993 [15:29:01]NVStorageSaveData ofd_packets/00139993 [15:29:01]File name is /storage/ofd_packets/00139993 [15:29:01]Write 322 bytes [15:29:01]NVStorageSaveData done [15:29:01]OFDSenderStorePacket done [15:29:01]KKMCreateOFDPacket done [15:29:01]NVStorageSaveData kkm_last_timestamp [15:29:01]File name is /storage/kkm_last_timestamp [15:29:01]Write 4 bytes [15:29:01]NVStorageSaveData done [15:29:01]ExternCall_PrintAddStr [15:29:01]wPrintStart [15:29:01]Write to MH i2c: 01 00 00 C0 67 27 [15:29:01]Write i2c OK [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: 01 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: 01 07 00 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: 01 07 00 C0 67 00 00 00 00 00 FF 0F 3C [15:29:01]RasterBufferAndPrint [15:29:01]line Счет N : (3)335807 [15:29:01]line ИНН: 02508201610067 [15:29:01]line Контрольно-Кассовый Чек [15:29:01]line ПРОДАЖА [15:29:01]line Товар: 48745000 [15:29:01]line Сигареты Winston Purple Mix [15:29:01]line 1.000 * 139.00 [15:29:01]line = 139.00 [15:29:01]line НДС 12% НСП 1% [15:29:01]line > о реализуемом товаре [15:29:01]line ИТОГО: 139.00 [15:29:01]line НСП 1% : 1.23 [15:29:01]line НДС 12% : 14.76 [15:29:01]line Наличными: 139.00 [15:29:01]line Безнал.: 0.00 [15:29:01]line Место: АЗС № 101 "Партнер Нефть" [15:29:01]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:29:01]line СНО: Общий режим [15:29:01]line Чек 174 01.11.2024 15:29 [15:29:01]line Смена: 558 ФФД: 1.0 [15:29:01]line ЗНМ: 0300000081 [15:29:01]line РНМ: 0000000000091631 [15:29:01]line Версия ККМ: 001 [15:29:01]line ФМ: 0000000000874669 [15:29:01]line ФД: 139993 [15:29:01]line ФПД: 169596191383578 [15:29:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T152906&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139993&fm=169596191383578&tin=02508201610067®Number=0000000000091631&sum=13900 [15:29:01]OFD Sender: Processing packet 139993 [packets to send 34, broken 33] [15:29:01]ProducePacketName [15:29:01]name=ofd_packets/00139993 [15:29:01]OFD Sender: To server: pG, [15:29:01]CommunicateWithHost lk.salyk.kg:30040 [15:29:01]ConnectInit lk.salyk.kg [15:29:01]line 0 [15:29:01]written 0, free lines is 4095 [15:29:02]Connected sock=10 [15:29:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 24 01 00 00 EF 72 1C 01 8B 36 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 C2 F3 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D9 22 02 00 35 04 06 00 9A 3F 30 BE 20 1A BD 62 5C A3 9E 5B 32 FF [15:29:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 F9 23 47 00 26 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D9 22 02 00 F4 03 04 00 6C 9F 24 67 B6 04 01 00 00 3D 32 1E E7 E0 B2 55 5A [15:29:02]CommunicateWithHost err = 0 [15:29:02]CheckOFDResponse [15:29:02]1017 (14) - 77093643461234 [15:29:02]1041 (16) - 0000000000874669 [15:29:02]1040 (4) - 139993 [15:29:02]1012 (4) - 01.11.2024 09:29 [15:29:02]1206 (1) - 0 [15:29:02]OFD Sender: Remove packet 139993 [15:29:02]ProducePacketName [15:29:02]name=ofd_packets/00139993 [15:29:02]NVStorageDeleteData [15:29:02]Write to MH i2c: 01 00 00 E8 67 4F [15:29:02]Write i2c OK [15:29:02]MH_I2C_Read... [15:29:02]Read from MH i2c: 01 [15:29:02]MH_I2C_Read... [15:29:02]Read from MH i2c: 01 07 00 [15:29:02]MH_I2C_Read... [15:29:02]Read from MH i2c: 01 07 00 E8 67 00 00 00 00 00 0F 0D 72 [15:29:02]RasterBufferAndPrint [15:29:02]line [15:29:02]line [15:29:02]line [15:29:02]line [15:29:02]line [15:29:02]written 0, free lines is 3349 [15:29:02]MH_Cut [15:29:02]Write to MH i2c: D1 01 00 EF 67 01 28 [15:29:02]Write i2c OK [15:29:02]MH_I2C_Read... [15:29:02]Read from MH i2c: D1 [15:29:02]MH_I2C_Read... [15:29:02]Read from MH i2c: D1 01 00 [15:29:02]MH_I2C_Read... [15:29:02]Read from MH i2c: D1 01 00 EF 67 00 27 [15:29:02]Write to MH i2c: 01 00 00 F0 67 57 [15:29:02]Write i2c OK [15:29:02]MH_I2C_Read... [15:29:02]OFD Sender: No OFD packet to send [15:29:03]*** Cut start [15:29:03]*** Partial cut [15:29:03]*** CUTSNS_PIN = 1 [15:29:03]*** CUTSNS_PIN = 0 [15:29:03]*** Brake cut motor [15:29:03]Read from MH i2c: 01 [15:29:03]MH_I2C_Read... [15:29:03]*** Stop cut motor [15:29:03]*** Cut end [15:29:03]Read from MH i2c: 01 07 00 [15:29:03]MH_I2C_Read... [15:29:03]Read from MH i2c: 01 07 00 F0 67 00 00 00 00 00 FF 0F 6C [15:29:03]process_action close_receipt done [15:29:03]requested_data is exist [15:29:03]produce_requested_data [15:29:03]requested_item fm.sn is exist - process it [15:29:03]wFMCommunicate request_size=4 [15:29:03]MH_SAM_APDU [15:29:03]CAPDU: 80 11 00 00 [15:29:03]Write to MH i2c: E2 08 00 F1 67 80 11 00 00 00 00 00 00 D2 [15:29:03]Write i2c OK [15:29:03]MH_I2C_Read... [15:29:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:03]Read from MH i2c: E2 [15:29:03]MH_I2C_Read... [15:29:03]Read from MH i2c: E2 17 00 [15:29:03]MH_I2C_Read... [15:29:03]Read from MH i2c: E2 17 00 F1 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2D [15:29:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:29:03]wFMCommunicate OK [15:29:03]requested_item fd.num is exist - process it [15:29:03]SAM_PROTO_GetFieldsCounters [15:29:03]wFMCommunicate request_size=4 [15:29:03]MH_SAM_APDU [15:29:03]CAPDU: 80 13 00 00 [15:29:03]Write to MH i2c: E2 08 00 F2 67 80 13 00 00 00 00 00 00 D5 [15:29:03]Write i2c OK [15:29:03]MH_I2C_Read... [15:29:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:03]Read from MH i2c: E2 [15:29:03]MH_I2C_Read... [15:29:03]Read from MH i2c: E2 62 00 [15:29:03]MH_I2C_Read... [15:29:03]Read from MH i2c: E2 62 00 F2 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D9 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [15:29:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D9 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:29:03]wFMCommunicate OK [15:29:03]SAM_PROTO_GetFieldsCounters done [15:29:03]requested_item shift.num is exist - process it [15:29:03]requested_item shift.opened is exist - process it [15:29:03]req_shift_opened [15:29:03]FM_GetShiftState [15:29:03]SAM_PROTO_GetShiftState [15:29:03]wFMCommunicate request_size=4 [15:29:03]MH_SAM_APDU [15:29:03]CAPDU: 80 13 01 00 [15:29:03]Write to MH i2c: E2 08 00 F3 67 80 13 01 00 00 00 00 00 D7 [15:29:03]Write i2c OK [15:29:03]MH_I2C_Read... [15:29:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:03]Read from MH i2c: E2 [15:29:03]MH_I2C_Read... [15:29:03]Read from MH i2c: E2 0E 00 [15:29:03]MH_I2C_Read... [15:29:03]Read from MH i2c: E2 0E 00 F3 67 00 09 00 01 89 19 24 67 00 00 00 00 90 00 10 [15:29:03]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:29:03]wFMCommunicate OK [15:29:03]SAM_PROTO_GetShiftState done [15:29:03]FM_GetShiftState done [15:29:03]req_shift_opened done [15:29:03]requested_item shift.open_date is exist - process it [15:29:03]req_shift_open_date [15:29:03]req_shift_open_date done [15:29:03]produce_requested_data done [15:29:03]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139993,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [15:29:03]process_action_free close_receipt [15:29:03]json_value_free [15:29:03]json_value_free done [15:29:03]process_json_proto returns [15:29:03]Send response to host [15:29:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139993,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [15:29:03]free response buf [15:29:03]execute_script done [15:29:03]execute_script returns [15:29:03]free content buf [15:29:03]Sock 7.Close socket [15:29:03]Sock 7.Thread stoped [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]accept exits with 9 [15:30:47]New connection [15:30:47]New thread 3066654052 created [15:30:47]Thread 3066510692 joined [15:30:47]Waiting for new connection... [15:30:47] Sock 9.Parse request [15:30:47]Sock 9.Check first char [15:30:47]Sock 9.First char is OK [15:30:47]request: POST /json_proto HTTP/1.0 [15:30:47]Method: POST [15:30:47]URL: /json_proto [15:30:47]Method is POST - this is cgi request [15:30:47]url: /json_proto [15:30:47]query_string will be loaded in cgi processing [15:30:47]execute_cgi json_proto POST (null) [15:30:47]execute_cgi path=json_proto method=POST [15:30:47]POST find Content-Length [15:30:47]Host: 172.17.50.196:8080 [15:30:47]Content-Length: 795 [15:30:47]Content-Type: application/json [15:30:47] [15:30:47]POST finish read [15:30:47]Found Content-Length = 795 [15:30:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335808", "tax_sys" : 0, "items" : [ { "code": "4630007400655", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:47]execute_script... [15:30:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335808", "tax_sys" : 0, "items" : [ { "code": "4630007400655", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:47]POST & json_proto [15:30:47]process_json_proto [15:30:47]json parsed OK: [15:30:47]protocol is kg_v1.0 [15:30:47]action value=close_receipt [15:30:47]process_action close_receipt [15:30:47]cmd_close_receipt [15:30:47]MH_GetDate [15:30:47]Write to MH i2c: F0 00 00 F4 67 4A [15:30:47]Write i2c OK [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: F0 [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: F0 09 00 [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: F0 09 00 F4 67 00 2E F4 24 67 72 0D 1C 67 02 [15:30:47]GetLastDocTimeStamp 1730474946 [15:30:47]current date 1730475054 [15:30:47]FM_GetShiftState [15:30:47]SAM_PROTO_GetShiftState [15:30:47]wFMCommunicate request_size=4 [15:30:47]MH_SAM_APDU [15:30:47]CAPDU: 80 13 01 00 [15:30:47]Write to MH i2c: E2 08 00 F5 67 80 13 01 00 00 00 00 00 D9 [15:30:47]Write i2c OK [15:30:47]MH_I2C_Read... [15:30:47]OFD Sender: No OFD packet to send [15:30:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:47]Read from MH i2c: E2 [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: E2 0E 00 [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: E2 0E 00 F5 67 00 09 00 01 89 19 24 67 00 00 00 00 90 00 12 [15:30:47]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:30:47]wFMCommunicate OK [15:30:47]SAM_PROTO_GetShiftState done [15:30:47]FM_GetShiftState done [15:30:47]opened in 1730419081 [15:30:47]opened+sec_in_day 1730505481 [15:30:47]quantity*price = 7000 [15:30:47]sum+1 = 7001 [15:30:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 0.00 Безнал.: 70.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 175 01.11.2024 15:30 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139994 ФПД: 262004313891578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T153054&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139994&fm=262004313891578&tin=02508201610067®Number=0000000000091631&sum=7000 0 [15:30:48]StoreToDocumentArchive [15:30:48]shift 558 fd 139994 [15:30:48]save to /storage/0558/doc_00139994 [15:30:48]save last doc name /storage/0558/doc_00139994 to /storage/kkm_last_doc_name [15:30:48]save OK [15:30:48]Clear old archive folders... [15:30:48]ProcessDocumentItem done err = 0, tmpTLVsize=283 [15:30:48]tlvbuf is 00C5D090 [15:30:48]SAM_PROTO_ClearQueue [15:30:48]wFMCommunicate request_size=4 [15:30:48]MH_SAM_APDU [15:30:48]CAPDU: 80 09 00 00 [15:30:48]Write to MH i2c: E2 08 00 02 68 80 09 00 00 00 00 00 00 DC [15:30:48]Write i2c OK [15:30:48]MH_I2C_Read... [15:30:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:30:49]Read from MH i2c: E2 [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: E2 03 00 [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: E2 03 00 02 68 00 90 00 DE [15:30:49]RAPDU: 90 00 [15:30:49]wFMCommunicate OK [15:30:49]SAM_PROTO_ClearQueue done [15:30:49]KKMCreateOFDPacket [15:30:49]OFDProtocolAddRootSTLVToBuf [15:30:49]FM_MakeSignedData [15:30:49]FM_MakeSignedData [15:30:49]SAM_PROTO_SignData [15:30:49]wFMCommunicate request_size=4 [15:30:49]MH_SAM_APDU [15:30:49]CAPDU: 80 0D 01 02 [15:30:49]Write to MH i2c: E2 08 00 03 68 80 0D 01 02 00 00 00 00 E4 [15:30:49]Write i2c OK [15:30:49]MH_I2C_Read... [15:30:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:30:49]Read from MH i2c: E2 [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: E2 03 00 [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: E2 03 00 03 68 00 90 00 DF [15:30:49]RAPDU: 90 00 [15:30:49]wFMCommunicate OK [15:30:49]wFMCommunicate request_size=255 [15:30:49]MH_SAM_APDU [15:30:49]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 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 2E F4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 [15:30:49]Write to MH i2c: E2 02 01 04 68 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 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 2E F4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 00 00 92 [15:30:49]Write i2c OK [15:30:49]MH_I2C_Read... [15:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:49]Read from MH i2c: E2 [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: E2 03 00 [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: E2 03 00 04 68 00 90 00 E0 [15:30:49]RAPDU: 90 00 [15:30:49]wFMCommunicate OK [15:30:49]wFMCommunicate request_size=42 [15:30:49]MH_SAM_APDU [15:30:49]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DA 22 02 00 35 04 06 00 EE 4A A2 0F 22 FA [15:30:49]Write to MH i2c: E2 2D 00 05 68 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DA 22 02 00 35 04 06 00 EE 4A A2 0F 22 FA 00 00 C7 [15:30:49]Write i2c OK [15:30:49]MH_I2C_Read... [15:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:49]Read from MH i2c: E2 [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: E2 03 00 [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: E2 03 00 05 68 00 90 00 E1 [15:30:49]RAPDU: 90 00 [15:30:49]wFMCommunicate OK [15:30:49]wFMCommunicate request_size=4 [15:30:49]MH_SAM_APDU [15:30:49]CAPDU: 80 0D 03 02 [15:30:49]Write to MH i2c: E2 08 00 06 68 80 0D 03 02 00 00 00 00 E9 [15:30:49]Write i2c OK [15:30:49]MH_I2C_Read... [15:30:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:30:49]Read from MH i2c: E2 [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: E2 0B 00 [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: E2 0B 00 06 68 00 E1 F0 41 E5 C8 86 C5 39 90 00 2D [15:30:49]RAPDU: E1 F0 41 E5 C8 86 C5 39 90 00 [15:30:49]wFMCommunicate OK [15:30:49]SAM_PROTO_SignData done [15:30:49]FM_MakeSignedData done [15:30:49]CreateOFDProtocolMessage [15:30:49]wFMCommunicate request_size=4 [15:30:49]MH_SAM_APDU [15:30:49]CAPDU: 80 11 00 00 [15:30:49]Write to MH i2c: E2 08 00 07 68 80 11 00 00 00 00 00 00 E9 [15:30:49]Write i2c OK [15:30:49]MH_I2C_Read... [15:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:49]Read from MH i2c: E2 [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: E2 17 00 [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: E2 17 00 07 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 44 [15:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:30:49]wFMCommunicate OK [15:30:49]CreateOFDProtocolMessage done [15:30:49]OFDSenderStorePacket 139994 [15:30:49]StoreOFDPacket docnum=139994 [15:30:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2F 01 00 00 79 5B 27 01 CC 47 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 2E F4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DA 22 02 00 35 04 06 00 EE 4A A2 0F 22 FA E1 F0 41 E5 C8 86 C5 39 [15:30:49]CheckFolder [15:30:49]dirname=/storage/ofd_packets [15:30:49]CheckFolder done [15:30:49]ProducePacketName [15:30:49]name=ofd_packets/00139994 [15:30:49]NVStorageSaveData ofd_packets/00139994 [15:30:49]File name is /storage/ofd_packets/00139994 [15:30:49]Write 333 bytes [15:30:49]NVStorageSaveData done [15:30:49]OFDSenderStorePacket done [15:30:49]KKMCreateOFDPacket done [15:30:49]NVStorageSaveData kkm_last_timestamp [15:30:49]File name is /storage/kkm_last_timestamp [15:30:49]Write 4 bytes [15:30:49]NVStorageSaveData done [15:30:49]ExternCall_PrintAddStr [15:30:49]wPrintStart [15:30:49]Write to MH i2c: 01 00 00 08 68 70 [15:30:49]Write i2c OK [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: 01 [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: 01 07 00 [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: 01 07 00 08 68 00 00 00 00 00 FF 0F 85 [15:30:49]RasterBufferAndPrint [15:30:49]line Счет N : (3)335808 [15:30:49]line ИНН: 02508201610067 [15:30:49]line Контрольно-Кассовый Чек [15:30:49]line ПРОДАЖА [15:30:49]line Товар: 4630007400655 [15:30:49]line Семечки ДЖИНН 70г синий [15:30:49]line 1.000 * 70.00 [15:30:49]line = 70.00 [15:30:49]line НДС 12% НСП 1% [15:30:49]line > о реализуемом товаре [15:30:49]line ИТОГО: 70.00 [15:30:49]line НСП 1% : 0.62 [15:30:49]line НДС 12% : 7.43 [15:30:49]line Наличными: 0.00 [15:30:49]line Безнал.: 70.00 [15:30:49]line Место: АЗС № 101 "Партнер Нефть" [15:30:49]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:30:49]line СНО: Общий режим [15:30:49]line Чек 175 01.11.2024 15:30 [15:30:49]line Смена: 558 ФФД: 1.0 [15:30:49]line ЗНМ: 0300000081 [15:30:49]line РНМ: 0000000000091631 [15:30:49]line Версия ККМ: 001 [15:30:49]line Платежная система: Mbank [15:30:49]line ФМ: 0000000000874669 [15:30:49]line ФД: 139994 [15:30:49]line ФПД: 262004313891578 [15:30:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T153054&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139994&fm=262004313891578&tin=02508201610067®Number=0000000000091631&sum=7000 [15:30:49]line 0 [15:30:49]OFD Sender: Processing packet 139994 [packets to send 34, broken 33] [15:30:49]ProducePacketName [15:30:49]name=ofd_packets/00139994 [15:30:49]OFD Sender: To server: pG, [15:30:49]CommunicateWithHost lk.salyk.kg:30040 [15:30:49]ConnectInit lk.salyk.kg [15:30:49]written 0, free lines is 4095 [15:30:49]Connected sock=11 [15:30:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2F 01 00 00 79 5B 27 01 CC 47 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 2E F4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DA 22 02 00 35 04 06 00 EE 4A A2 0F 22 FA E1 F0 41 E5 C8 86 C5 39 [15:30:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 3E 60 47 00 77 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DA 22 02 00 F4 03 04 00 D8 9F 24 67 B6 04 01 00 00 BA 23 1C 3F AF 3B DD 9C [15:30:50]CommunicateWithHost err = 0 [15:30:50]CheckOFDResponse [15:30:50]1017 (14) - 77093643461234 [15:30:50]1041 (16) - 0000000000874669 [15:30:50]1040 (4) - 139994 [15:30:50]1012 (4) - 01.11.2024 09:31 [15:30:50]1206 (1) - 0 [15:30:50]OFD Sender: Remove packet 139994 [15:30:50]ProducePacketName [15:30:50]name=ofd_packets/00139994 [15:30:50]NVStorageDeleteData [15:30:50]Write to MH i2c: 01 00 00 31 68 99 [15:30:50]Write i2c OK [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: 01 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: 01 07 00 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: 01 07 00 31 68 00 00 00 00 00 04 0D B1 [15:30:50]RasterBufferAndPrint [15:30:50]line [15:30:50]line [15:30:50]line [15:30:50]line [15:30:50]line [15:30:50]written 0, free lines is 3337 [15:30:50]MH_Cut [15:30:50]Write to MH i2c: D1 01 00 38 68 01 72 [15:30:50]Write i2c OK [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: D1 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: D1 01 00 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: D1 01 00 38 68 00 71 [15:30:50]Write to MH i2c: 01 00 00 39 68 A1 [15:30:50]Write i2c OK [15:30:50]MH_I2C_Read... [15:30:50]OFD Sender: No OFD packet to send [15:30:50]*** Cut start [15:30:50]*** Partial cut [15:30:50]*** CUTSNS_PIN = 1 [15:30:51]*** CUTSNS_PIN = 0 [15:30:51]*** Brake cut motor [15:30:51]Read from MH i2c: 01 [15:30:51]MH_I2C_Read... [15:30:51]*** Stop cut motor [15:30:51]*** Cut end [15:30:51]Read from MH i2c: 01 07 00 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: 01 07 00 39 68 00 00 00 00 00 FF 0F B6 [15:30:51]process_action close_receipt done [15:30:51]requested_data is exist [15:30:51]produce_requested_data [15:30:51]requested_item fm.sn is exist - process it [15:30:51]wFMCommunicate request_size=4 [15:30:51]MH_SAM_APDU [15:30:51]CAPDU: 80 11 00 00 [15:30:51]Write to MH i2c: E2 08 00 3A 68 80 11 00 00 00 00 00 00 1C [15:30:51]Write i2c OK [15:30:51]MH_I2C_Read... [15:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:51]Read from MH i2c: E2 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 17 00 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 17 00 3A 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 77 [15:30:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:30:51]wFMCommunicate OK [15:30:51]requested_item fd.num is exist - process it [15:30:51]SAM_PROTO_GetFieldsCounters [15:30:51]wFMCommunicate request_size=4 [15:30:51]MH_SAM_APDU [15:30:51]CAPDU: 80 13 00 00 [15:30:51]Write to MH i2c: E2 08 00 3B 68 80 13 00 00 00 00 00 00 1F [15:30:51]Write i2c OK [15:30:51]MH_I2C_Read... [15:30:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:30:51]Read from MH i2c: E2 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 62 00 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 62 00 3B 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 DA 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [15:30:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 DA 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:30:51]wFMCommunicate OK [15:30:51]SAM_PROTO_GetFieldsCounters done [15:30:51]requested_item shift.num is exist - process it [15:30:51]requested_item shift.opened is exist - process it [15:30:51]req_shift_opened [15:30:51]FM_GetShiftState [15:30:51]SAM_PROTO_GetShiftState [15:30:51]wFMCommunicate request_size=4 [15:30:51]MH_SAM_APDU [15:30:51]CAPDU: 80 13 01 00 [15:30:51]Write to MH i2c: E2 08 00 3C 68 80 13 01 00 00 00 00 00 21 [15:30:51]Write i2c OK [15:30:51]MH_I2C_Read... [15:30:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:51]Read from MH i2c: E2 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 0E 00 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 0E 00 3C 68 00 09 00 01 89 19 24 67 00 00 00 00 90 00 5A [15:30:51]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:30:51]wFMCommunicate OK [15:30:51]SAM_PROTO_GetShiftState done [15:30:51]FM_GetShiftState done [15:30:51]req_shift_opened done [15:30:51]requested_item shift.open_date is exist - process it [15:30:51]req_shift_open_date [15:30:51]req_shift_open_date done [15:30:51]produce_requested_data done [15:30:51]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139994,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [15:30:51]process_action_free close_receipt [15:30:51]json_value_free [15:30:51]json_value_free done [15:30:51]process_json_proto returns [15:30:51]Send response to host [15:30:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139994,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [15:30:51]free response buf [15:30:51]execute_script done [15:30:51]execute_script returns [15:30:51]free content buf [15:30:51]Sock 9.Close socket [15:30:51]Sock 9.Thread stoped [15:30:55]OFD Sender: No OFD packet to send [15:31:00]OFD Sender: No OFD packet to send [15:31:05]OFD Sender: No OFD packet to send [15:31:10]OFD Sender: No OFD packet to send [15:31:15]OFD Sender: No OFD packet to send [15:31:20]OFD Sender: No OFD packet to send [15:31:25]OFD Sender: No OFD packet to send [15:31:30]OFD Sender: No OFD packet to send [15:31:35]OFD Sender: No OFD packet to send [15:31:40]OFD Sender: No OFD packet to send [15:31:45]OFD Sender: No OFD packet to send [15:31:50]OFD Sender: No OFD packet to send [15:31:55]OFD Sender: No OFD packet to send [15:32:00]OFD Sender: No OFD packet to send [15:32:05]OFD Sender: No OFD packet to send [15:32:10]OFD Sender: No OFD packet to send [15:32:15]OFD Sender: No OFD packet to send [15:32:20]OFD Sender: No OFD packet to send [15:32:25]OFD Sender: No OFD packet to send [15:32:29]accept exits with 7 [15:32:29]New connection [15:32:29]New thread 3066510692 created [15:32:29]Thread 3066654052 joined [15:32:29]Waiting for new connection... [15:32:29] Sock 7.Parse request [15:32:29]Sock 7.Check first char [15:32:29]Sock 7.First char is OK [15:32:29]request: POST /json_proto HTTP/1.0 [15:32:29]Method: POST [15:32:29]URL: /json_proto [15:32:29]Method is POST - this is cgi request [15:32:29]url: /json_proto [15:32:29]query_string will be loaded in cgi processing [15:32:29]execute_cgi json_proto POST (null) [15:32:29]execute_cgi path=json_proto method=POST [15:32:29]POST find Content-Length [15:32:29]Host: 172.17.50.196:8080 [15:32:29]Content-Length: 770 [15:32:29]Content-Type: application/json [15:32:29] [15:32:29]POST finish read [15:32:29]Found Content-Length = 770 [15:32:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:29]execute_script... [15:32:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:29]POST & json_proto [15:32:29]process_json_proto [15:32:29]json parsed OK: [15:32:29]protocol is kg_v1.0 [15:32:29]action value=close_receipt [15:32:29]process_action close_receipt [15:32:29]cmd_close_receipt [15:32:29]MH_GetDate [15:32:29]Write to MH i2c: F0 00 00 3D 68 94 [15:32:29]Write i2c OK [15:32:29]MH_I2C_Read... [15:32:29]Read from MH i2c: F0 [15:32:29]MH_I2C_Read... [15:32:29]Read from MH i2c: F0 09 00 [15:32:29]MH_I2C_Read... [15:32:29]Read from MH i2c: F0 09 00 3D 68 00 93 F4 24 67 72 0D 1C 67 B1 [15:32:29]GetLastDocTimeStamp 1730475054 [15:32:29]current date 1730475155 [15:32:29]FM_GetShiftState [15:32:29]SAM_PROTO_GetShiftState [15:32:29]wFMCommunicate request_size=4 [15:32:29]MH_SAM_APDU [15:32:29]CAPDU: 80 13 01 00 [15:32:29]Write to MH i2c: E2 08 00 3E 68 80 13 01 00 00 00 00 00 23 [15:32:29]Write i2c OK [15:32:29]MH_I2C_Read... [15:32:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:29]Read from MH i2c: E2 [15:32:29]MH_I2C_Read... [15:32:29]Read from MH i2c: E2 0E 00 [15:32:29]MH_I2C_Read... [15:32:29]Read from MH i2c: E2 0E 00 3E 68 00 09 00 01 89 19 24 67 00 00 00 00 90 00 5C [15:32:29]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:32:29]wFMCommunicate OK [15:32:29]SAM_PROTO_GetShiftState done [15:32:29]FM_GetShiftState done [15:32:29]opened in 1730419081 [15:32:29]opened+sec_in_day 1730505481 [15:32:29]quantity*price = 100015 [15:32:29]sum+1 = 100017 [15:32:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 176 01.11.2024 15:32 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139995 ФПД: 118274061838228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T153235&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139995&fm=118274061838228&tin=02508201610067®Number=0000000000091631&sum=100016 [15:32:30]StoreToDocumentArchive [15:32:30]shift 558 fd 139995 [15:32:30]save to /storage/0558/doc_00139995 [15:32:30]save last doc name /storage/0558/doc_00139995 to /storage/kkm_last_doc_name [15:32:30]save OK [15:32:30]Clear old archive folders... [15:32:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:32:30]tlvbuf is 00BA76D0 [15:32:30]SAM_PROTO_ClearQueue [15:32:30]wFMCommunicate request_size=4 [15:32:30]MH_SAM_APDU [15:32:30]CAPDU: 80 09 00 00 [15:32:30]Write to MH i2c: E2 08 00 4B 68 80 09 00 00 00 00 00 00 25 [15:32:30]Write i2c OK [15:32:30]MH_I2C_Read... [15:32:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:30]Read from MH i2c: E2 [15:32:30]MH_I2C_Read... [15:32:30]Read from MH i2c: E2 03 00 [15:32:30]MH_I2C_Read... [15:32:30]Read from MH i2c: E2 03 00 4B 68 00 90 00 27 [15:32:30]RAPDU: 90 00 [15:32:30]wFMCommunicate OK [15:32:30]SAM_PROTO_ClearQueue done [15:32:30]KKMCreateOFDPacket [15:32:30]OFDProtocolAddRootSTLVToBuf [15:32:30]FM_MakeSignedData [15:32:30]FM_MakeSignedData [15:32:30]SAM_PROTO_SignData [15:32:30]wFMCommunicate request_size=4 [15:32:30]MH_SAM_APDU [15:32:30]CAPDU: 80 0D 01 02 [15:32:30]Write to MH i2c: E2 08 00 4C 68 80 0D 01 02 00 00 00 00 2D [15:32:30]Write i2c OK [15:32:30]MH_I2C_Read... [15:32:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:30]Read from MH i2c: E2 [15:32:30]MH_I2C_Read... [15:32:30]Read from MH i2c: E2 03 00 [15:32:30]MH_I2C_Read... [15:32:30]Read from MH i2c: E2 03 00 4C 68 00 90 00 28 [15:32:30]RAPDU: 90 00 [15:32:30]wFMCommunicate OK [15:32:30]wFMCommunicate request_size=255 [15:32:30]MH_SAM_APDU [15:32:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 93 F4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DB 22 02 00 35 04 06 00 6B [15:32:30]Write to MH i2c: E2 02 01 4D 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 93 F4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DB 22 02 00 35 04 06 00 6B 00 00 32 [15:32:30]Write i2c OK [15:32:30]MH_I2C_Read... [15:32:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:31]Read from MH i2c: E2 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: E2 03 00 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: E2 03 00 4D 68 00 90 00 29 [15:32:31]RAPDU: 90 00 [15:32:31]wFMCommunicate OK [15:32:31]wFMCommunicate request_size=10 [15:32:31]MH_SAM_APDU [15:32:31]CAPDU: 80 0D 02 02 05 91 D3 71 27 94 [15:32:31]Write to MH i2c: E2 0D 00 4E 68 80 0D 02 02 05 00 91 D3 71 27 94 00 00 CA [15:32:31]Write i2c OK [15:32:31]MH_I2C_Read... [15:32:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:31]Read from MH i2c: E2 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: E2 03 00 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: E2 03 00 4E 68 00 90 00 2A [15:32:31]RAPDU: 90 00 [15:32:31]wFMCommunicate OK [15:32:31]wFMCommunicate request_size=4 [15:32:31]MH_SAM_APDU [15:32:31]CAPDU: 80 0D 03 02 [15:32:31]Write to MH i2c: E2 08 00 4F 68 80 0D 03 02 00 00 00 00 32 [15:32:31]Write i2c OK [15:32:31]MH_I2C_Read... [15:32:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:31]Read from MH i2c: E2 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: E2 0B 00 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: E2 0B 00 4F 68 00 27 7A 71 A9 D3 49 12 65 90 00 81 [15:32:31]RAPDU: 27 7A 71 A9 D3 49 12 65 90 00 [15:32:31]wFMCommunicate OK [15:32:31]SAM_PROTO_SignData done [15:32:31]FM_MakeSignedData done [15:32:31]CreateOFDProtocolMessage [15:32:31]wFMCommunicate request_size=4 [15:32:31]MH_SAM_APDU [15:32:31]CAPDU: 80 11 00 00 [15:32:31]Write to MH i2c: E2 08 00 50 68 80 11 00 00 00 00 00 00 32 [15:32:31]Write i2c OK [15:32:31]MH_I2C_Read... [15:32:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:31]Read from MH i2c: E2 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: E2 17 00 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: E2 17 00 50 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8D [15:32:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:32:31]wFMCommunicate OK [15:32:31]CreateOFDProtocolMessage done [15:32:31]OFDSenderStorePacket 139995 [15:32:31]StoreOFDPacket docnum=139995 [15:32:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 3E 82 07 01 43 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 93 F4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DB 22 02 00 35 04 06 00 6B 91 D3 71 27 94 27 7A 71 A9 D3 49 12 65 [15:32:31]CheckFolder [15:32:31]dirname=/storage/ofd_packets [15:32:31]CheckFolder done [15:32:31]ProducePacketName [15:32:31]name=ofd_packets/00139995 [15:32:31]NVStorageSaveData ofd_packets/00139995 [15:32:31]File name is /storage/ofd_packets/00139995 [15:32:31]Write 301 bytes [15:32:31]NVStorageSaveData done [15:32:31]OFDSenderStorePacket done [15:32:31]KKMCreateOFDPacket done [15:32:31]NVStorageSaveData kkm_last_timestamp [15:32:31]File name is /storage/kkm_last_timestamp [15:32:31]Write 4 bytes [15:32:31]NVStorageSaveData done [15:32:31]ExternCall_PrintAddStr [15:32:31]wPrintStart [15:32:31]Write to MH i2c: 01 00 00 51 68 B9 [15:32:31]Write i2c OK [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: 01 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: 01 07 00 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: 01 07 00 51 68 00 00 00 00 00 FF 0F CE [15:32:31]RasterBufferAndPrint [15:32:31]line Счет N : (1)1096043 [15:32:31]line ИНН: 02508201610067 [15:32:31]line Контрольно-Кассовый Чек [15:32:31]line ПРОДАЖА [15:32:31]line ТРК (МРК, ГНК) : 33 [15:32:31]line Товар: 2710124130 [15:32:31]line Аи-92-К-2 [15:32:31]line 14.950 * 66.90 [15:32:31]line = 1000.16 [15:32:31]line НДС 12% НСП 1% [15:32:31]line > о реализуемом товаре [15:32:31]line ИТОГО: 1000.16 [15:32:31]line НСП 1% : 8.85 [15:32:31]line НДС 12% : 106.21 [15:32:31]line Наличными: 0.00 [15:32:31]line Безнал.: 1000.16 [15:32:31]line Место: АЗС № 101 "Партнер Нефть" [15:32:31]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:32:31]line СНО: Общий режим [15:32:31]line Чек 176 01.11.2024 15:32 [15:32:31]line Смена: 558 ФФД: 1.0 [15:32:31]line ЗНМ: 0300000081 [15:32:31]line РНМ: 0000000000091631 [15:32:31]line Версия ККМ: 001 [15:32:31]line Платежная система: Mbank [15:32:31]line ФМ: 0000000000874669 [15:32:31]line ФД: 139995 [15:32:31]line ФПД: 118274061838228 [15:32:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T153235&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139995&fm=118274061838228&tin=02508201610067®Number=0000000000091631&sum=100016 [15:32:31]written 0, free lines is 4095 [15:32:31]OFD Sender: Processing packet 139995 [packets to send 34, broken 33] [15:32:31]ProducePacketName [15:32:31]name=ofd_packets/00139995 [15:32:31]OFD Sender: To server: pG, [15:32:31]CommunicateWithHost lk.salyk.kg:30040 [15:32:31]ConnectInit lk.salyk.kg [15:32:31]Connected sock=9 [15:32:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 3E 82 07 01 43 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 93 F4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DB 22 02 00 35 04 06 00 6B 91 D3 71 27 94 27 7A 71 A9 D3 49 12 65 [15:32:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 36 D0 47 00 40 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DB 22 02 00 F4 03 04 00 3E A0 24 67 B6 04 01 00 00 3C 8C AF 45 2D C5 81 C5 [15:32:32]CommunicateWithHost err = 0 [15:32:32]CheckOFDResponse [15:32:32]1017 (14) - 77093643461234 [15:32:32]1041 (16) - 0000000000874669 [15:32:32]1040 (4) - 139995 [15:32:32]1012 (4) - 01.11.2024 09:32 [15:32:32]1206 (1) - 0 [15:32:32]OFD Sender: Remove packet 139995 [15:32:32]ProducePacketName [15:32:32]name=ofd_packets/00139995 [15:32:32]NVStorageDeleteData [15:32:32]Write to MH i2c: 01 00 00 7A 68 E2 [15:32:32]Write i2c OK [15:32:32]MH_I2C_Read... [15:32:32]Read from MH i2c: 01 [15:32:32]MH_I2C_Read... [15:32:32]Read from MH i2c: 01 07 00 [15:32:32]MH_I2C_Read... [15:32:32]Read from MH i2c: 01 07 00 7A 68 00 00 00 00 00 13 0D 09 [15:32:32]RasterBufferAndPrint [15:32:32]line [15:32:32]line [15:32:32]line [15:32:32]line [15:32:32]line [15:32:32]written 0, free lines is 3354 [15:32:32]MH_Cut [15:32:32]Write to MH i2c: D1 01 00 81 68 01 BB [15:32:32]Write i2c OK [15:32:32]MH_I2C_Read... [15:32:32]Read from MH i2c: D1 [15:32:32]MH_I2C_Read... [15:32:32]Read from MH i2c: D1 01 00 [15:32:32]MH_I2C_Read... [15:32:32]Read from MH i2c: D1 01 00 81 68 00 BA [15:32:32]Write to MH i2c: 01 00 00 82 68 EA [15:32:32]Write i2c OK [15:32:32]MH_I2C_Read... [15:32:32]OFD Sender: No OFD packet to send [15:32:32]*** Cut start [15:32:32]*** Partial cut [15:32:32]*** CUTSNS_PIN = 1 [15:32:32]*** CUTSNS_PIN = 0 [15:32:33]*** Brake cut motor [15:32:33]Read from MH i2c: 01 [15:32:33]MH_I2C_Read... [15:32:33]*** Stop cut motor [15:32:33]*** Cut end [15:32:33]Read from MH i2c: 01 07 00 [15:32:33]MH_I2C_Read... [15:32:33]Read from MH i2c: 01 07 00 82 68 00 00 00 00 00 FF 0F FF [15:32:33]process_action close_receipt done [15:32:33]requested_data is exist [15:32:33]produce_requested_data [15:32:33]requested_item fm.sn is exist - process it [15:32:33]wFMCommunicate request_size=4 [15:32:33]MH_SAM_APDU [15:32:33]CAPDU: 80 11 00 00 [15:32:33]Write to MH i2c: E2 08 00 83 68 80 11 00 00 00 00 00 00 65 [15:32:33]Write i2c OK [15:32:33]MH_I2C_Read... [15:32:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:33]Read from MH i2c: E2 [15:32:33]MH_I2C_Read... [15:32:33]Read from MH i2c: E2 17 00 [15:32:33]MH_I2C_Read... [15:32:33]Read from MH i2c: E2 17 00 83 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C0 [15:32:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:32:33]wFMCommunicate OK [15:32:33]requested_item fd.num is exist - process it [15:32:33]SAM_PROTO_GetFieldsCounters [15:32:33]wFMCommunicate request_size=4 [15:32:33]MH_SAM_APDU [15:32:33]CAPDU: 80 13 00 00 [15:32:33]Write to MH i2c: E2 08 00 84 68 80 13 00 00 00 00 00 00 68 [15:32:33]Write i2c OK [15:32:33]MH_I2C_Read... [15:32:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:33]Read from MH i2c: E2 [15:32:33]MH_I2C_Read... [15:32:33]Read from MH i2c: E2 62 00 [15:32:33]MH_I2C_Read... [15:32:33]Read from MH i2c: E2 62 00 84 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 DB 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [15:32:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 DB 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:32:33]wFMCommunicate OK [15:32:33]SAM_PROTO_GetFieldsCounters done [15:32:33]requested_item shift.num is exist - process it [15:32:33]requested_item shift.opened is exist - process it [15:32:33]req_shift_opened [15:32:33]FM_GetShiftState [15:32:33]SAM_PROTO_GetShiftState [15:32:33]wFMCommunicate request_size=4 [15:32:33]MH_SAM_APDU [15:32:33]CAPDU: 80 13 01 00 [15:32:33]Write to MH i2c: E2 08 00 85 68 80 13 01 00 00 00 00 00 6A [15:32:33]Write i2c OK [15:32:33]MH_I2C_Read... [15:32:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:33]Read from MH i2c: E2 [15:32:33]MH_I2C_Read... [15:32:33]Read from MH i2c: E2 0E 00 [15:32:33]MH_I2C_Read... [15:32:33]Read from MH i2c: E2 0E 00 85 68 00 09 00 01 89 19 24 67 00 00 00 00 90 00 A3 [15:32:33]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:32:33]wFMCommunicate OK [15:32:33]SAM_PROTO_GetShiftState done [15:32:33]FM_GetShiftState done [15:32:33]req_shift_opened done [15:32:33]requested_item shift.open_date is exist - process it [15:32:33]req_shift_open_date [15:32:33]req_shift_open_date done [15:32:33]produce_requested_data done [15:32:33]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139995,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [15:32:33]process_action_free close_receipt [15:32:33]json_value_free [15:32:33]json_value_free done [15:32:33]process_json_proto returns [15:32:33]Send response to host [15:32:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139995,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [15:32:33]free response buf [15:32:33]execute_script done [15:32:33]execute_script returns [15:32:33]free content buf [15:32:33]Sock 7.Close socket [15:32:33]Sock 7.Thread stoped [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:32]accept exits with 10 [15:33:32]New connection [15:33:32]New thread 3066654052 created [15:33:32]Thread 3066510692 joined [15:33:32]Waiting for new connection... [15:33:32] Sock 10.Parse request [15:33:32]Sock 10.Check first char [15:33:32]Sock 10.First char is OK [15:33:32]request: POST /json_proto HTTP/1.0 [15:33:32]Method: POST [15:33:32]URL: /json_proto [15:33:32]Method is POST - this is cgi request [15:33:32]url: /json_proto [15:33:32]query_string will be loaded in cgi processing [15:33:32]execute_cgi json_proto POST (null) [15:33:32]execute_cgi path=json_proto method=POST [15:33:32]POST find Content-Length [15:33:32]Host: 172.17.50.196:8080 [15:33:32]Content-Length: 688 [15:33:32]Content-Type: application/json [15:33:32] [15:33:32]POST finish read [15:33:32]Found Content-Length = 688 [15:33:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:32]execute_script... [15:33:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:32]POST & json_proto [15:33:32]process_json_proto [15:33:32]json parsed OK: [15:33:32]protocol is kg_v1.0 [15:33:32]action value=close_receipt [15:33:32]process_action close_receipt [15:33:32]cmd_close_receipt [15:33:32]MH_GetDate [15:33:32]Write to MH i2c: F0 00 00 86 68 DD [15:33:32]Write i2c OK [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: F0 [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: F0 09 00 [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: F0 09 00 86 68 00 D2 F4 24 67 72 0D 1C 67 39 [15:33:32]GetLastDocTimeStamp 1730475155 [15:33:32]current date 1730475218 [15:33:32]FM_GetShiftState [15:33:32]SAM_PROTO_GetShiftState [15:33:32]wFMCommunicate request_size=4 [15:33:32]MH_SAM_APDU [15:33:32]CAPDU: 80 13 01 00 [15:33:32]Write to MH i2c: E2 08 00 87 68 80 13 01 00 00 00 00 00 6C [15:33:32]Write i2c OK [15:33:32]MH_I2C_Read... [15:33:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:32]Read from MH i2c: E2 [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: E2 0E 00 [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: E2 0E 00 87 68 00 09 00 01 89 19 24 67 00 00 00 00 90 00 A5 [15:33:32]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:33:32]wFMCommunicate OK [15:33:32]SAM_PROTO_GetShiftState done [15:33:32]FM_GetShiftState done [15:33:32]opened in 1730419081 [15:33:32]opened+sec_in_day 1730505481 [15:33:32]quantity*price = 100050 [15:33:32]sum+1 = 100052 [15:33:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 177 01.11.2024 15:33 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139996 ФПД: 244888005193674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T153338&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139996&fm=244888005193674&tin=02508201610067®Number=0000000000091631&sum=100000 [15:33:33]StoreToDocumentArchive [15:33:33]shift 558 fd 139996 [15:33:33]save to /storage/0558/doc_00139996 [15:33:33]save last doc name /storage/0558/doc_00139996 to /storage/kkm_last_doc_name [15:33:33]save OK [15:33:33]Clear old archive folders... [15:33:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:33:33]tlvbuf is 00A17F50 [15:33:33]SAM_PROTO_ClearQueue [15:33:33]wFMCommunicate request_size=4 [15:33:33]MH_SAM_APDU [15:33:33]CAPDU: 80 09 00 00 [15:33:33]Write to MH i2c: E2 08 00 94 68 80 09 00 00 00 00 00 00 6E [15:33:33]Write i2c OK [15:33:33]MH_I2C_Read... [15:33:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:33]Read from MH i2c: E2 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 03 00 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 03 00 94 68 00 90 00 70 [15:33:33]RAPDU: 90 00 [15:33:33]wFMCommunicate OK [15:33:33]SAM_PROTO_ClearQueue done [15:33:33]KKMCreateOFDPacket [15:33:33]OFDProtocolAddRootSTLVToBuf [15:33:33]FM_MakeSignedData [15:33:33]FM_MakeSignedData [15:33:33]SAM_PROTO_SignData [15:33:33]wFMCommunicate request_size=4 [15:33:33]MH_SAM_APDU [15:33:33]CAPDU: 80 0D 01 02 [15:33:33]Write to MH i2c: E2 08 00 95 68 80 0D 01 02 00 00 00 00 76 [15:33:33]Write i2c OK [15:33:33]MH_I2C_Read... [15:33:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:33]Read from MH i2c: E2 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 03 00 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 03 00 95 68 00 90 00 71 [15:33:33]RAPDU: 90 00 [15:33:33]wFMCommunicate OK [15:33:33]wFMCommunicate request_size=255 [15:33:33]MH_SAM_APDU [15:33:33]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 D2 F4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DC 22 02 00 35 04 06 00 [15:33:33]Write to MH i2c: E2 02 01 96 68 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 D2 F4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DC 22 02 00 35 04 06 00 00 00 15 [15:33:33]Write i2c OK [15:33:33]MH_I2C_Read... [15:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:34]Read from MH i2c: E2 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 03 00 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 03 00 96 68 00 90 00 72 [15:33:34]RAPDU: 90 00 [15:33:34]wFMCommunicate OK [15:33:34]wFMCommunicate request_size=11 [15:33:34]MH_SAM_APDU [15:33:34]CAPDU: 80 0D 02 02 06 DE B9 6E 8F 2F CA [15:33:34]Write to MH i2c: E2 0E 00 97 68 80 0D 02 02 06 00 DE B9 6E 8F 2F CA 00 00 12 [15:33:34]Write i2c OK [15:33:34]MH_I2C_Read... [15:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:34]Read from MH i2c: E2 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 03 00 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 03 00 97 68 00 90 00 73 [15:33:34]RAPDU: 90 00 [15:33:34]wFMCommunicate OK [15:33:34]wFMCommunicate request_size=4 [15:33:34]MH_SAM_APDU [15:33:34]CAPDU: 80 0D 03 02 [15:33:34]Write to MH i2c: E2 08 00 98 68 80 0D 03 02 00 00 00 00 7B [15:33:34]Write i2c OK [15:33:34]MH_I2C_Read... [15:33:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:34]Read from MH i2c: E2 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 0B 00 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 0B 00 98 68 00 FB CF 54 A6 51 28 5D 69 90 00 7F [15:33:34]RAPDU: FB CF 54 A6 51 28 5D 69 90 00 [15:33:34]wFMCommunicate OK [15:33:34]SAM_PROTO_SignData done [15:33:34]FM_MakeSignedData done [15:33:34]CreateOFDProtocolMessage [15:33:34]wFMCommunicate request_size=4 [15:33:34]MH_SAM_APDU [15:33:34]CAPDU: 80 11 00 00 [15:33:34]Write to MH i2c: E2 08 00 99 68 80 11 00 00 00 00 00 00 7B [15:33:34]Write i2c OK [15:33:34]MH_I2C_Read... [15:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:34]Read from MH i2c: E2 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 17 00 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 17 00 99 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D6 [15:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:33:34]wFMCommunicate OK [15:33:34]CreateOFDProtocolMessage done [15:33:34]OFDSenderStorePacket 139996 [15:33:34]StoreOFDPacket docnum=139996 [15:33:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 05 E2 08 01 53 52 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 D2 F4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DC 22 02 00 35 04 06 00 DE B9 6E 8F 2F CA FB CF 54 A6 51 28 5D 69 [15:33:34]CheckFolder [15:33:34]dirname=/storage/ofd_packets [15:33:34]CheckFolder done [15:33:34]ProducePacketName [15:33:34]name=ofd_packets/00139996 [15:33:34]NVStorageSaveData ofd_packets/00139996 [15:33:34]File name is /storage/ofd_packets/00139996 [15:33:34]Write 302 bytes [15:33:34]NVStorageSaveData done [15:33:34]OFDSenderStorePacket done [15:33:34]KKMCreateOFDPacket done [15:33:34]NVStorageSaveData kkm_last_timestamp [15:33:34]File name is /storage/kkm_last_timestamp [15:33:34]Write 4 bytes [15:33:34]NVStorageSaveData done [15:33:34]ExternCall_PrintAddStr [15:33:34]wPrintStart [15:33:34]Write to MH i2c: 01 00 00 9A 68 02 [15:33:34]OFD Sender: Processing packet 139996 [packets to send 34, broken 33] [15:33:34]ProducePacketName [15:33:34]name=ofd_packets/00139996 [15:33:34]OFD Sender: To server: pG, [15:33:34]CommunicateWithHost lk.salyk.kg:30040 [15:33:34]ConnectInit lk.salyk.kg [15:33:34]Write i2c OK [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: 01 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: 01 07 00 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: 01 07 00 9A 68 00 00 00 00 00 FF 0F 17 [15:33:34]RasterBufferAndPrint [15:33:34]line Счет N : (1)1096044 [15:33:34]line ИНН: 02508201610067 [15:33:34]line Контрольно-Кассовый Чек [15:33:34]line ПРОДАЖА [15:33:34]line ТРК (МРК, ГНК) : 51 [15:33:34]line Товар: 2710194210 [15:33:34]line ДТ(л)-К-2 [15:33:34]line 13.130 * 76.20 [15:33:34]line = 1000.51 [15:33:34]line НДС 12% НСП 1% [15:33:34]line > о реализуемом товаре [15:33:34]line ОКРУГЛЕНИЕ: -0.51 [15:33:34]line ИТОГО: 1000.00 [15:33:34]line Внесено: 1000.00 [15:33:34]line СДАЧА: 0.00 [15:33:34]line НСП 1% : 8.85 [15:33:34]line НДС 12% : 106.25 [15:33:34]line Наличными: 1000.00 [15:33:34]line Безнал.: 0.00 [15:33:34]line Место: АЗС № 101 "Партнер Нефть" [15:33:34]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:33:34]line СНО: Общий режим [15:33:34]line Чек 177 01.11.2024 15:33 [15:33:34]line Смена: 558 ФФД: 1.0 [15:33:34]line ЗНМ: 0300000081 [15:33:34]line РНМ: 0000000000091631 [15:33:34]line Версия ККМ: 001 [15:33:34]line ФМ: 0000000000874669 [15:33:34]line ФД: 139996 [15:33:34]line ФПД: 244888005193674 [15:33:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T153338&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139996&fm=244888005193674&tin=02508201610067®Number=0000000000091631&sum=100000 [15:33:34]Connected sock=9 [15:33:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 05 E2 08 01 53 52 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 D2 F4 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DC 22 02 00 35 04 06 00 DE B9 6E 8F 2F CA FB CF 54 A6 51 28 5D 69 [15:33:34]written 0, free lines is 4095 [15:33:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 60 D9 47 00 CF 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DC 22 02 00 F4 03 04 00 7D A0 24 67 B6 04 01 00 00 3E CF 69 0C 6A 56 18 2D [15:33:34]CommunicateWithHost err = 0 [15:33:34]CheckOFDResponse [15:33:34]1017 (14) - 77093643461234 [15:33:34]1041 (16) - 0000000000874669 [15:33:34]1040 (4) - 139996 [15:33:34]1012 (4) - 01.11.2024 09:33 [15:33:34]1206 (1) - 0 [15:33:34]OFD Sender: Remove packet 139996 [15:33:34]ProducePacketName [15:33:34]name=ofd_packets/00139996 [15:33:34]NVStorageDeleteData [15:33:35]Write to MH i2c: 01 00 00 C5 68 2D [15:33:35]Write i2c OK [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: 01 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: 01 07 00 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: 01 07 00 C5 68 00 00 00 00 00 E4 0C 24 [15:33:35]RasterBufferAndPrint [15:33:35]line [15:33:35]line [15:33:35]line [15:33:35]line [15:33:35]line [15:33:35]written 0, free lines is 3306 [15:33:35]MH_Cut [15:33:35]Write to MH i2c: D1 01 00 CC 68 01 06 [15:33:35]Write i2c OK [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: D1 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: D1 01 00 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: D1 01 00 CC 68 00 05 [15:33:35]Write to MH i2c: 01 00 00 CD 68 35 [15:33:35]Write i2c OK [15:33:35]MH_I2C_Read... [15:33:35]OFD Sender: No OFD packet to send [15:33:35]*** Cut start [15:33:35]*** Partial cut [15:33:35]*** CUTSNS_PIN = 1 [15:33:35]*** CUTSNS_PIN = 0 [15:33:36]*** Brake cut motor [15:33:36]Read from MH i2c: 01 [15:33:36]MH_I2C_Read... [15:33:36]*** Stop cut motor [15:33:36]*** Cut end [15:33:36]Read from MH i2c: 01 07 00 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: 01 07 00 CD 68 00 00 00 00 00 FF 0F 4A [15:33:36]process_action close_receipt done [15:33:36]requested_data is exist [15:33:36]produce_requested_data [15:33:36]requested_item fm.sn is exist - process it [15:33:36]wFMCommunicate request_size=4 [15:33:36]MH_SAM_APDU [15:33:36]CAPDU: 80 11 00 00 [15:33:36]Write to MH i2c: E2 08 00 CE 68 80 11 00 00 00 00 00 00 B0 [15:33:36]Write i2c OK [15:33:36]MH_I2C_Read... [15:33:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:36]Read from MH i2c: E2 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: E2 17 00 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: E2 17 00 CE 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0B [15:33:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:33:36]wFMCommunicate OK [15:33:36]requested_item fd.num is exist - process it [15:33:36]SAM_PROTO_GetFieldsCounters [15:33:36]wFMCommunicate request_size=4 [15:33:36]MH_SAM_APDU [15:33:36]CAPDU: 80 13 00 00 [15:33:36]Write to MH i2c: E2 08 00 CF 68 80 13 00 00 00 00 00 00 B3 [15:33:36]Write i2c OK [15:33:36]MH_I2C_Read... [15:33:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:36]Read from MH i2c: E2 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: E2 62 00 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: E2 62 00 CF 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 DC 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [15:33:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 DC 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:36]wFMCommunicate OK [15:33:36]SAM_PROTO_GetFieldsCounters done [15:33:36]requested_item shift.num is exist - process it [15:33:36]requested_item shift.opened is exist - process it [15:33:36]req_shift_opened [15:33:36]FM_GetShiftState [15:33:36]SAM_PROTO_GetShiftState [15:33:36]wFMCommunicate request_size=4 [15:33:36]MH_SAM_APDU [15:33:36]CAPDU: 80 13 01 00 [15:33:36]Write to MH i2c: E2 08 00 D0 68 80 13 01 00 00 00 00 00 B5 [15:33:36]Write i2c OK [15:33:36]MH_I2C_Read... [15:33:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:36]Read from MH i2c: E2 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: E2 0E 00 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: E2 0E 00 D0 68 00 09 00 01 89 19 24 67 00 00 00 00 90 00 EE [15:33:36]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:33:36]wFMCommunicate OK [15:33:36]SAM_PROTO_GetShiftState done [15:33:36]FM_GetShiftState done [15:33:36]req_shift_opened done [15:33:36]requested_item shift.open_date is exist - process it [15:33:36]req_shift_open_date [15:33:36]req_shift_open_date done [15:33:36]produce_requested_data done [15:33:36]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139996,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [15:33:36]process_action_free close_receipt [15:33:36]json_value_free [15:33:36]json_value_free done [15:33:36]process_json_proto returns [15:33:36]Send response to host [15:33:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139996,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [15:33:36]free response buf [15:33:36]execute_script done [15:33:36]execute_script returns [15:33:36]free content buf [15:33:36]Sock 10.Close socket [15:33:36]Sock 10.Thread stoped [15:33:40]OFD Sender: No OFD packet to send [15:33:45]OFD Sender: No OFD packet to send [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:34:00]OFD Sender: No OFD packet to send [15:34:05]OFD Sender: No OFD packet to send [15:34:10]OFD Sender: No OFD packet to send [15:34:15]OFD Sender: No OFD packet to send [15:34:20]OFD Sender: No OFD packet to send [15:34:25]OFD Sender: No OFD packet to send [15:34:30]OFD Sender: No OFD packet to send [15:34:35]OFD Sender: No OFD packet to send [15:34:40]OFD Sender: No OFD packet to send [15:34:45]OFD Sender: No OFD packet to send [15:34:50]OFD Sender: No OFD packet to send [15:34:55]OFD Sender: No OFD packet to send [15:35:00]OFD Sender: No OFD packet to send [15:35:05]OFD Sender: No OFD packet to send [15:35:10]OFD Sender: No OFD packet to send [15:35:15]OFD Sender: No OFD packet to send [15:35:20]OFD Sender: No OFD packet to send [15:35:25]OFD Sender: No OFD packet to send [15:35:30]OFD Sender: No OFD packet to send [15:35:35]OFD Sender: No OFD packet to send [15:35:40]OFD Sender: No OFD packet to send [15:35:45]OFD Sender: No OFD packet to send [15:35:50]OFD Sender: No OFD packet to send [15:35:55]OFD Sender: No OFD packet to send [15:36:00]OFD Sender: No OFD packet to send [15:36:05]OFD Sender: No OFD packet to send [15:36:10]OFD Sender: No OFD packet to send [15:36:15]OFD Sender: No OFD packet to send [15:36:20]OFD Sender: No OFD packet to send [15:36:25]OFD Sender: No OFD packet to send [15:36:30]OFD Sender: No OFD packet to send [15:36:35]OFD Sender: No OFD packet to send [15:36:40]OFD Sender: No OFD packet to send [15:36:45]OFD Sender: No OFD packet to send [15:36:50]OFD Sender: No OFD packet to send [15:36:52]accept exits with 7 [15:36:52]New connection [15:36:52]New thread 3066510692 created [15:36:52]Thread 3066654052 joined [15:36:52]Waiting for new connection... [15:36:52] Sock 7.Parse request [15:36:52]Sock 7.Check first char [15:36:52]Sock 7.First char is OK [15:36:52]request: POST /json_proto HTTP/1.0 [15:36:52]Method: POST [15:36:52]URL: /json_proto [15:36:52]Method is POST - this is cgi request [15:36:52]url: /json_proto [15:36:52]query_string will be loaded in cgi processing [15:36:52]execute_cgi json_proto POST (null) [15:36:52]execute_cgi path=json_proto method=POST [15:36:52]POST find Content-Length [15:36:52]Host: 172.17.50.196:8080 [15:36:52]Content-Length: 678 [15:36:52]Content-Type: application/json [15:36:52] [15:36:52]POST finish read [15:36:52]Found Content-Length = 678 [15:36:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.640, "sum" : 310.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:52]execute_script... [15:36:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.640, "sum" : 310.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:52]POST & json_proto [15:36:52]process_json_proto [15:36:52]json parsed OK: [15:36:52]protocol is kg_v1.0 [15:36:52]action value=close_receipt [15:36:52]process_action close_receipt [15:36:52]cmd_close_receipt [15:36:52]MH_GetDate [15:36:52]Write to MH i2c: F0 00 00 D1 68 28 [15:36:52]Write i2c OK [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: F0 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: F0 09 00 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: F0 09 00 D1 68 00 9A F5 24 67 72 0D 1C 67 4D [15:36:52]GetLastDocTimeStamp 1730475218 [15:36:52]current date 1730475418 [15:36:52]FM_GetShiftState [15:36:52]SAM_PROTO_GetShiftState [15:36:52]wFMCommunicate request_size=4 [15:36:52]MH_SAM_APDU [15:36:52]CAPDU: 80 13 01 00 [15:36:52]Write to MH i2c: E2 08 00 D2 68 80 13 01 00 00 00 00 00 B7 [15:36:52]Write i2c OK [15:36:52]MH_I2C_Read... [15:36:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:52]Read from MH i2c: E2 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 0E 00 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 0E 00 D2 68 00 09 00 01 89 19 24 67 00 00 00 00 90 00 F0 [15:36:52]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:36:52]wFMCommunicate OK [15:36:52]SAM_PROTO_GetShiftState done [15:36:52]FM_GetShiftState done [15:36:52]opened in 1730419081 [15:36:52]opened+sec_in_day 1730505481 [15:36:52]quantity*price = 31041 [15:36:52]sum+1 = 31043 [15:36:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.75 НДС 12% : 32.96 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 178 01.11.2024 15:36 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139997 ФПД: 41755841444833 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T153658&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139997&fm=41755841444833&tin=02508201610067®Number=0000000000091631&sum=31000 [15:36:53]StoreToDocumentArchive [15:36:53]shift 558 fd 139997 [15:36:53]save to /storage/0558/doc_00139997 [15:36:53]save last doc name /storage/0558/doc_00139997 to /storage/kkm_last_doc_name [15:36:53]save OK [15:36:53]Clear old archive folders... [15:36:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:36:53]tlvbuf is 00C026B0 [15:36:53]SAM_PROTO_ClearQueue [15:36:53]wFMCommunicate request_size=4 [15:36:53]MH_SAM_APDU [15:36:53]CAPDU: 80 09 00 00 [15:36:53]Write to MH i2c: E2 08 00 DF 68 80 09 00 00 00 00 00 00 B9 [15:36:53]Write i2c OK [15:36:53]MH_I2C_Read... [15:36:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:53]Read from MH i2c: E2 [15:36:53]MH_I2C_Read... [15:36:53]Read from MH i2c: E2 03 00 [15:36:53]MH_I2C_Read... [15:36:53]Read from MH i2c: E2 03 00 DF 68 00 90 00 BB [15:36:53]RAPDU: 90 00 [15:36:53]wFMCommunicate OK [15:36:53]SAM_PROTO_ClearQueue done [15:36:53]KKMCreateOFDPacket [15:36:53]OFDProtocolAddRootSTLVToBuf [15:36:53]FM_MakeSignedData [15:36:53]FM_MakeSignedData [15:36:53]SAM_PROTO_SignData [15:36:53]wFMCommunicate request_size=4 [15:36:53]MH_SAM_APDU [15:36:53]CAPDU: 80 0D 01 02 [15:36:53]Write to MH i2c: E2 08 00 E0 68 80 0D 01 02 00 00 00 00 C1 [15:36:53]Write i2c OK [15:36:53]MH_I2C_Read... [15:36:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:53]Read from MH i2c: E2 [15:36:53]MH_I2C_Read... [15:36:53]Read from MH i2c: E2 03 00 [15:36:53]MH_I2C_Read... [15:36:53]Read from MH i2c: E2 03 00 E0 68 00 90 00 BC [15:36:53]RAPDU: 90 00 [15:36:53]wFMCommunicate OK [15:36:53]wFMCommunicate request_size=255 [15:36:53]MH_SAM_APDU [15:36:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 9A F5 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DD 22 02 00 35 04 06 00 25 [15:36:53]Write to MH i2c: E2 02 01 E1 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 9A F5 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DD 22 02 00 35 04 06 00 25 00 00 38 [15:36:53]Write i2c OK [15:36:53]MH_I2C_Read... [15:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:53]Read from MH i2c: E2 [15:36:53]MH_I2C_Read... [15:36:53]Read from MH i2c: E2 03 00 [15:36:53]MH_I2C_Read... [15:36:53]Read from MH i2c: E2 03 00 E1 68 00 90 00 BD [15:36:53]RAPDU: 90 00 [15:36:53]wFMCommunicate OK [15:36:53]wFMCommunicate request_size=10 [15:36:53]MH_SAM_APDU [15:36:53]CAPDU: 80 0D 02 02 05 FA 0A 18 BB E1 [15:36:53]Write to MH i2c: E2 0D 00 E2 68 80 0D 02 02 05 00 FA 0A 18 BB E1 00 00 86 [15:36:53]Write i2c OK [15:36:53]MH_I2C_Read... [15:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:53]Read from MH i2c: E2 [15:36:53]MH_I2C_Read... [15:36:53]Read from MH i2c: E2 03 00 [15:36:53]MH_I2C_Read... [15:36:53]Read from MH i2c: E2 03 00 E2 68 00 90 00 BE [15:36:53]RAPDU: 90 00 [15:36:53]wFMCommunicate OK [15:36:53]wFMCommunicate request_size=4 [15:36:53]MH_SAM_APDU [15:36:53]CAPDU: 80 0D 03 02 [15:36:53]Write to MH i2c: E2 08 00 E3 68 80 0D 03 02 00 00 00 00 C6 [15:36:53]Write i2c OK [15:36:53]MH_I2C_Read... [15:36:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:53]Read from MH i2c: E2 [15:36:53]MH_I2C_Read... [15:36:53]Read from MH i2c: E2 0B 00 [15:36:53]MH_I2C_Read... [15:36:53]Read from MH i2c: E2 0B 00 E3 68 00 4F E8 BD 24 D9 C5 D9 E6 90 00 3C [15:36:53]RAPDU: 4F E8 BD 24 D9 C5 D9 E6 90 00 [15:36:53]wFMCommunicate OK [15:36:53]SAM_PROTO_SignData done [15:36:53]FM_MakeSignedData done [15:36:53]CreateOFDProtocolMessage [15:36:53]wFMCommunicate request_size=4 [15:36:53]MH_SAM_APDU [15:36:53]CAPDU: 80 11 00 00 [15:36:53]Write to MH i2c: E2 08 00 E4 68 80 11 00 00 00 00 00 00 C6 [15:36:53]Write i2c OK [15:36:53]MH_I2C_Read... [15:36:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:53]Read from MH i2c: E2 [15:36:53]MH_I2C_Read... [15:36:53]Read from MH i2c: E2 17 00 [15:36:53]MH_I2C_Read... [15:36:53]Read from MH i2c: E2 17 00 E4 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 21 [15:36:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:36:54]wFMCommunicate OK [15:36:54]CreateOFDProtocolMessage done [15:36:54]OFDSenderStorePacket 139997 [15:36:54]StoreOFDPacket docnum=139997 [15:36:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 9D 87 07 01 E1 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 9A F5 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DD 22 02 00 35 04 06 00 25 FA 0A 18 BB E1 4F E8 BD 24 D9 C5 D9 E6 [15:36:54]CheckFolder [15:36:54]dirname=/storage/ofd_packets [15:36:54]CheckFolder done [15:36:54]ProducePacketName [15:36:54]name=ofd_packets/00139997 [15:36:54]NVStorageSaveData ofd_packets/00139997 [15:36:54]File name is /storage/ofd_packets/00139997 [15:36:54]Write 301 bytes [15:36:54]NVStorageSaveData done [15:36:54]OFDSenderStorePacket done [15:36:54]KKMCreateOFDPacket done [15:36:54]NVStorageSaveData kkm_last_timestamp [15:36:54]File name is /storage/kkm_last_timestamp [15:36:54]Write 4 bytes [15:36:54]NVStorageSaveData done [15:36:54]ExternCall_PrintAddStr [15:36:54]wPrintStart [15:36:54]Write to MH i2c: 01 00 00 E5 68 4D [15:36:54]Write i2c OK [15:36:54]MH_I2C_Read... [15:36:54]Read from MH i2c: 01 [15:36:54]MH_I2C_Read... [15:36:54]Read from MH i2c: 01 07 00 [15:36:54]MH_I2C_Read... [15:36:54]Read from MH i2c: 01 07 00 E5 68 00 00 00 00 00 FF 0F 62 [15:36:54]RasterBufferAndPrint [15:36:54]line Счет N : (1)1096047 [15:36:54]line ИНН: 02508201610067 [15:36:54]line Контрольно-Кассовый Чек [15:36:54]line ПРОДАЖА [15:36:54]line ТРК (МРК, ГНК) : 43 [15:36:54]line Товар: 2710124130 [15:36:54]line Аи-92-К-2 [15:36:54]line 4.640 * 66.90 [15:36:54]line = 310.42 [15:36:54]line НДС 12% НСП 1% [15:36:54]line > о реализуемом товаре [15:36:54]line ОКРУГЛЕНИЕ: -0.42 [15:36:54]line ИТОГО: 310.00 [15:36:54]line Внесено: 310.00 [15:36:54]line СДАЧА: 0.00 [15:36:54]line НСП 1% : 2.75 [15:36:54]line НДС 12% : 32.96 [15:36:54]line Наличными: 310.00 [15:36:54]line Безнал.: 0.00 [15:36:54]line Место: АЗС № 101 "Партнер Нефть" [15:36:54]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:36:54]line СНО: Общий режим [15:36:54]line Чек 178 01.11.2024 15:36 [15:36:54]line Смена: 558 ФФД: 1.0 [15:36:54]line ЗНМ: 0300000081 [15:36:54]line РНМ: 0000000000091631 [15:36:54]line Версия ККМ: 001 [15:36:54]line ФМ: 0000000000874669 [15:36:54]line ФД: 139997 [15:36:54]line ФПД: 41755841444833 [15:36:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T153658&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139997&fm=41755841444833&tin=02508201610067®Number=0000000000091631&sum=31000 [15:36:54]OFD Sender: Processing packet 139997 [packets to send 34, broken 33] [15:36:54]ProducePacketName [15:36:54]name=ofd_packets/00139997 [15:36:54]OFD Sender: To server: pG, [15:36:54]CommunicateWithHost lk.salyk.kg:30040 [15:36:54]ConnectInit lk.salyk.kg [15:36:54]written 0, free lines is 4095 [15:36:54]Connected sock=10 [15:36:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 9D 87 07 01 E1 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 9A F5 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DD 22 02 00 35 04 06 00 25 FA 0A 18 BB E1 4F E8 BD 24 D9 C5 D9 E6 [15:36:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 7A 36 47 00 D5 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DD 22 02 00 F4 03 04 00 45 A1 24 67 B6 04 01 00 00 A5 6F 07 D8 9A 79 D3 80 [15:36:54]CommunicateWithHost err = 0 [15:36:54]CheckOFDResponse [15:36:54]1017 (14) - 77093643461234 [15:36:54]1041 (16) - 0000000000874669 [15:36:54]1040 (4) - 139997 [15:36:54]1012 (4) - 01.11.2024 09:37 [15:36:54]1206 (1) - 0 [15:36:54]OFD Sender: Remove packet 139997 [15:36:54]ProducePacketName [15:36:54]name=ofd_packets/00139997 [15:36:54]NVStorageDeleteData [15:36:54]Write to MH i2c: 01 00 00 10 69 79 [15:36:54]Write i2c OK [15:36:54]MH_I2C_Read... [15:36:54]Read from MH i2c: 01 [15:36:54]MH_I2C_Read... [15:36:54]Read from MH i2c: 01 07 00 [15:36:54]MH_I2C_Read... [15:36:54]Read from MH i2c: 01 07 00 10 69 00 00 00 00 00 DD 0C 69 [15:36:54]RasterBufferAndPrint [15:36:54]line [15:36:54]line [15:36:54]line [15:36:54]line [15:36:54]line [15:36:54]written 0, free lines is 3299 [15:36:54]MH_Cut [15:36:54]Write to MH i2c: D1 01 00 17 69 01 52 [15:36:54]Write i2c OK [15:36:54]MH_I2C_Read... [15:36:54]Read from MH i2c: D1 [15:36:54]MH_I2C_Read... [15:36:54]Read from MH i2c: D1 01 00 [15:36:54]MH_I2C_Read... [15:36:54]Read from MH i2c: D1 01 00 17 69 00 51 [15:36:54]Write to MH i2c: 01 00 00 18 69 81 [15:36:54]Write i2c OK [15:36:54]MH_I2C_Read... [15:36:55]OFD Sender: No OFD packet to send [15:36:55]*** Cut start [15:36:55]*** Partial cut [15:36:55]*** CUTSNS_PIN = 1 [15:36:55]*** CUTSNS_PIN = 0 [15:36:55]*** Brake cut motor [15:36:56]Read from MH i2c: 01 [15:36:56]MH_I2C_Read... [15:36:56]*** Stop cut motor [15:36:56]*** Cut end [15:36:56]Read from MH i2c: 01 07 00 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: 01 07 00 18 69 00 00 00 00 00 FF 0F 96 [15:36:56]process_action close_receipt done [15:36:56]requested_data is exist [15:36:56]produce_requested_data [15:36:56]requested_item fm.sn is exist - process it [15:36:56]wFMCommunicate request_size=4 [15:36:56]MH_SAM_APDU [15:36:56]CAPDU: 80 11 00 00 [15:36:56]Write to MH i2c: E2 08 00 19 69 80 11 00 00 00 00 00 00 FC [15:36:56]Write i2c OK [15:36:56]MH_I2C_Read... [15:36:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:56]Read from MH i2c: E2 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: E2 17 00 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: E2 17 00 19 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 57 [15:36:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:36:56]wFMCommunicate OK [15:36:56]requested_item fd.num is exist - process it [15:36:56]SAM_PROTO_GetFieldsCounters [15:36:56]wFMCommunicate request_size=4 [15:36:56]MH_SAM_APDU [15:36:56]CAPDU: 80 13 00 00 [15:36:56]Write to MH i2c: E2 08 00 1A 69 80 13 00 00 00 00 00 00 FF [15:36:56]Write i2c OK [15:36:56]MH_I2C_Read... [15:36:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:56]Read from MH i2c: E2 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: E2 62 00 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: E2 62 00 1A 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 DD 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [15:36:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 DD 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:56]wFMCommunicate OK [15:36:56]SAM_PROTO_GetFieldsCounters done [15:36:56]requested_item shift.num is exist - process it [15:36:56]requested_item shift.opened is exist - process it [15:36:56]req_shift_opened [15:36:56]FM_GetShiftState [15:36:56]SAM_PROTO_GetShiftState [15:36:56]wFMCommunicate request_size=4 [15:36:56]MH_SAM_APDU [15:36:56]CAPDU: 80 13 01 00 [15:36:56]Write to MH i2c: E2 08 00 1B 69 80 13 01 00 00 00 00 00 01 [15:36:56]Write i2c OK [15:36:56]MH_I2C_Read... [15:36:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:56]Read from MH i2c: E2 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: E2 0E 00 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: E2 0E 00 1B 69 00 09 00 01 89 19 24 67 00 00 00 00 90 00 3A [15:36:56]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:36:56]wFMCommunicate OK [15:36:56]SAM_PROTO_GetShiftState done [15:36:56]FM_GetShiftState done [15:36:56]req_shift_opened done [15:36:56]requested_item shift.open_date is exist - process it [15:36:56]req_shift_open_date [15:36:56]req_shift_open_date done [15:36:56]produce_requested_data done [15:36:56]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139997,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [15:36:56]process_action_free close_receipt [15:36:56]json_value_free [15:36:56]json_value_free done [15:36:56]process_json_proto returns [15:36:56]Send response to host [15:36:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139997,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [15:36:56]free response buf [15:36:56]execute_script done [15:36:56]execute_script returns [15:36:56]free content buf [15:36:56]Sock 7.Close socket [15:36:56]Sock 7.Thread stoped [15:37:00]OFD Sender: No OFD packet to send [15:37:05]OFD Sender: No OFD packet to send [15:37:10]OFD Sender: No OFD packet to send [15:37:15]OFD Sender: No OFD packet to send [15:37:20]OFD Sender: No OFD packet to send [15:37:25]accept exits with 9 [15:37:25]New connection [15:37:25]New thread 3066654052 created [15:37:25]Thread 3066510692 joined [15:37:25]Waiting for new connection... [15:37:25] Sock 9.Parse request [15:37:25]Sock 9.Check first char [15:37:25]Sock 9.First char is OK [15:37:25]request: POST /json_proto HTTP/1.0 [15:37:25]Method: POST [15:37:25]URL: /json_proto [15:37:25]Method is POST - this is cgi request [15:37:25]url: /json_proto [15:37:25]query_string will be loaded in cgi processing [15:37:25]execute_cgi json_proto POST (null) [15:37:25]execute_cgi path=json_proto method=POST [15:37:25]POST find Content-Length [15:37:25]Host: 172.17.50.196:8080 [15:37:25]Content-Length: 879 [15:37:25]Content-Type: application/json [15:37:25] [15:37:25]POST finish read [15:37:25]Found Content-Length = 879 [15:37:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335809", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:25]execute_script... [15:37: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)335809", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:25]POST & json_proto [15:37:25]process_json_proto [15:37:25]json parsed OK: [15:37:25]protocol is kg_v1.0 [15:37:25]action value=close_receipt [15:37:25]process_action close_receipt [15:37:25]cmd_close_receipt [15:37:25]MH_GetDate [15:37:25]Write to MH i2c: F0 00 00 1C 69 74 [15:37:25]Write i2c OK [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: F0 [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: F0 09 00 [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: F0 09 00 1C 69 00 BB F5 24 67 72 0D 1C 67 BA [15:37:25]GetLastDocTimeStamp 1730475418 [15:37:25]current date 1730475451 [15:37:25]FM_GetShiftState [15:37:25]SAM_PROTO_GetShiftState [15:37:25]wFMCommunicate request_size=4 [15:37:25]MH_SAM_APDU [15:37:25]CAPDU: 80 13 01 00 [15:37:25]Write to MH i2c: E2 08 00 1D 69 80 13 01 00 00 00 00 00 03 [15:37:25]Write i2c OK [15:37:25]MH_I2C_Read... [15:37:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:25]Read from MH i2c: E2 [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: E2 0E 00 [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: E2 0E 00 1D 69 00 09 00 01 89 19 24 67 00 00 00 00 90 00 3C [15:37:25]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:37:25]wFMCommunicate OK [15:37:25]SAM_PROTO_GetShiftState done [15:37:25]FM_GetShiftState done [15:37:25]opened in 1730419081 [15:37:25]opened+sec_in_day 1730505481 [15:37:25]quantity*price = 4000 [15:37:25]sum+1 = 4001 [15:37:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.79 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 179 01.11.2024 15:37 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139998 ФПД: 272677382648213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T153731&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139998&fm=272677382648213&tin=02508201610067®Number=0000000000091631&sum=9000 0 [15:37:26]StoreToDocumentArchive [15:37:26]shift 558 fd 139998 [15:37:26]save to /storage/0558/doc_00139998 [15:37:26]save last doc name /storage/0558/doc_00139998 to /storage/kkm_last_doc_name [15:37:26]save OK [15:37:26]Clear old archive folders... [15:37:26]ProcessDocumentItem done err = 0, tmpTLVsize=370 [15:37:26]tlvbuf is 00C8B4D0 [15:37:26]SAM_PROTO_ClearQueue [15:37:26]wFMCommunicate request_size=4 [15:37:26]MH_SAM_APDU [15:37:26]CAPDU: 80 09 00 00 [15:37:26]Write to MH i2c: E2 08 00 2A 69 80 09 00 00 00 00 00 00 05 [15:37:26]Write i2c OK [15:37:26]MH_I2C_Read... [15:37:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:26]Read from MH i2c: E2 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: E2 03 00 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: E2 03 00 2A 69 00 90 00 07 [15:37:26]RAPDU: 90 00 [15:37:26]wFMCommunicate OK [15:37:26]SAM_PROTO_ClearQueue done [15:37:26]KKMCreateOFDPacket [15:37:26]OFDProtocolAddRootSTLVToBuf [15:37:26]FM_MakeSignedData [15:37:26]FM_MakeSignedData [15:37:26]SAM_PROTO_SignData [15:37:26]wFMCommunicate request_size=4 [15:37:26]MH_SAM_APDU [15:37:26]CAPDU: 80 0D 01 02 [15:37:26]Write to MH i2c: E2 08 00 2B 69 80 0D 01 02 00 00 00 00 0D [15:37:26]Write i2c OK [15:37:26]MH_I2C_Read... [15:37:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:26]Read from MH i2c: E2 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: E2 03 00 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: E2 03 00 2B 69 00 90 00 08 [15:37:26]RAPDU: 90 00 [15:37:26]wFMCommunicate OK [15:37:26]wFMCommunicate request_size=255 [15:37:26]MH_SAM_APDU [15:37:26]CAPDU: 80 0D 02 02 FA 03 00 72 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 [15:37:26]Write to MH i2c: E2 02 01 2C 69 80 0D 02 02 FA 00 03 00 72 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 00 00 E5 [15:37:26]Write i2c OK [15:37:26]MH_I2C_Read... [15:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:26]Read from MH i2c: E2 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: E2 03 00 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: E2 03 00 2C 69 00 90 00 09 [15:37:26]RAPDU: 90 00 [15:37:26]wFMCommunicate OK [15:37:26]wFMCommunicate request_size=129 [15:37:26]MH_SAM_APDU [15:37:26]CAPDU: 80 0D 02 02 7C 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 B3 00 00 00 F4 03 04 00 BB F5 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DE 22 02 00 35 04 06 00 F7 FF A6 87 F1 95 [15:37:26]Write to MH i2c: E2 84 00 2D 69 80 0D 02 02 7C 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 B3 00 00 00 F4 03 04 00 BB F5 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DE 22 02 00 35 04 06 00 F7 FF A6 87 F1 95 00 00 15 [15:37:26]Write i2c OK [15:37:26]MH_I2C_Read... [15:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:26]Read from MH i2c: E2 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: E2 03 00 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: E2 03 00 2D 69 00 90 00 0A [15:37:26]RAPDU: 90 00 [15:37:26]wFMCommunicate OK [15:37:26]wFMCommunicate request_size=4 [15:37:26]MH_SAM_APDU [15:37:26]CAPDU: 80 0D 03 02 [15:37:26]Write to MH i2c: E2 08 00 2E 69 80 0D 03 02 00 00 00 00 12 [15:37:26]Write i2c OK [15:37:26]MH_I2C_Read... [15:37:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:26]Read from MH i2c: E2 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: E2 0B 00 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: E2 0B 00 2E 69 00 D5 32 B6 98 F7 35 0F 96 90 00 39 [15:37:26]RAPDU: D5 32 B6 98 F7 35 0F 96 90 00 [15:37:26]wFMCommunicate OK [15:37:26]SAM_PROTO_SignData done [15:37:26]FM_MakeSignedData done [15:37:26]CreateOFDProtocolMessage [15:37:26]wFMCommunicate request_size=4 [15:37:26]MH_SAM_APDU [15:37:26]CAPDU: 80 11 00 00 [15:37:26]Write to MH i2c: E2 08 00 2F 69 80 11 00 00 00 00 00 00 12 [15:37:26]Write i2c OK [15:37:26]MH_I2C_Read... [15:37:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:26]Read from MH i2c: E2 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: E2 17 00 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: E2 17 00 2F 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6D [15:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:37:26]wFMCommunicate OK [15:37:26]CreateOFDProtocolMessage done [15:37:26]OFDSenderStorePacket 139998 [15:37:26]StoreOFDPacket docnum=139998 [15:37:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 86 01 00 00 02 08 7E 01 E0 97 5A 03 01 00 03 00 72 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 B3 00 00 00 F4 03 04 00 BB F5 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DE 22 02 00 35 04 06 00 F7 FF A6 87 F1 95 D5 32 B6 98 F7 35 0F 96 [15:37:26]CheckFolder [15:37:26]dirname=/storage/ofd_packets [15:37:26]CheckFolder done [15:37:26]ProducePacketName [15:37:26]name=ofd_packets/00139998 [15:37:26]NVStorageSaveData ofd_packets/00139998 [15:37:26]File name is /storage/ofd_packets/00139998 [15:37:26]Write 420 bytes [15:37:26]NVStorageSaveData done [15:37:26]OFDSenderStorePacket done [15:37:26]KKMCreateOFDPacket done [15:37:26]NVStorageSaveData kkm_last_timestamp [15:37:26]File name is /storage/kkm_last_timestamp [15:37:26]Write 4 bytes [15:37:26]NVStorageSaveData done [15:37:26]ExternCall_PrintAddStr [15:37:26]wPrintStart [15:37:26]Write to MH i2c: 01 00 00 30 69 99 [15:37:26]Write i2c OK [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: 01 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: 01 07 00 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: 01 07 00 30 69 00 00 00 00 00 FF 0F AE [15:37:26]RasterBufferAndPrint [15:37:26]line Счет N : (3)335809 [15:37:26]line ИНН: 02508201610067 [15:37:26]line Контрольно-Кассовый Чек [15:37:26]line ПРОДАЖА [15:37:26]line Товар: 4700000160211 [15:37:26]line Вода Легенда 0,5л [15:37:26]line 1.000 * 40.00 [15:37:26]line = 40.00 [15:37:26]line НДС 12% НСП 1% [15:37:26]line > о реализуемом товаре [15:37:27]line Товар: 4700000160358 [15:37:27]line Вода Легенда 1л [15:37:27]line 1.000 * 50.00 [15:37:27]line = 50.00 [15:37:27]line НДС 12% НСП 1% [15:37:27]line > о реализуемом товаре [15:37:27]line ИТОГО: 90.00 [15:37:27]line НСП 1% : 0.79 [15:37:27]line НДС 12% : 9.56 [15:37:27]line Наличными: 90.00 [15:37:27]line Безнал.: 0.00 [15:37:27]line Место: АЗС № 101 "Партнер Нефть" [15:37:27]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:37:27]line СНО: Общий режим [15:37:27]line Чек 179 01.11.2024 15:37 [15:37:27]line Смена: 558 ФФД: 1.0 [15:37:27]line ЗНМ: 0300000081 [15:37:27]line РНМ: 0000000000091631 [15:37:27]line Версия ККМ: 001 [15:37:27]line ФМ: 0000000000874669 [15:37:27]line ФД: 139998 [15:37:27]line ФПД: 272677382648213 [15:37:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T153731&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139998&fm=272677382648213&tin=02508201610067®Number=0000000000091631&sum=9000 [15:37:27]line 0 [15:37:27]OFD Sender: Processing packet 139998 [packets to send 34, broken 33] [15:37:27]ProducePacketName [15:37:27]name=ofd_packets/00139998 [15:37:27]OFD Sender: To server: pG, [15:37:27]CommunicateWithHost lk.salyk.kg:30040 [15:37:27]ConnectInit lk.salyk.kg [15:37:27]written 0, free lines is 4095 [15:37:27]Connected sock=10 [15:37:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 86 01 00 00 02 08 7E 01 E0 97 5A 03 01 00 03 00 72 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 B3 00 00 00 F4 03 04 00 BB F5 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DE 22 02 00 35 04 06 00 F7 FF A6 87 F1 95 D5 32 B6 98 F7 35 0F 96 [15:37:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 C9 6D 47 00 12 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 34 36 36 39 10 04 04 00 DE 22 02 00 F4 03 04 00 66 A1 24 67 B6 04 01 00 00 4B AC 28 87 41 BC 71 2D [15:37:27]CommunicateWithHost err = 0 [15:37:27]CheckOFDResponse [15:37:27]1017 (14) - 77093643461234 [15:37:27]1041 (16) - 0000000000874669 [15:37:27]1040 (4) - 139998 [15:37:27]1012 (4) - 01.11.2024 09:37 [15:37:27]1206 (1) - 0 [15:37:27]OFD Sender: Remove packet 139998 [15:37:27]ProducePacketName [15:37:27]name=ofd_packets/00139998 [15:37:27]NVStorageDeleteData [15:37:27]Write to MH i2c: 01 00 00 5E 69 C7 [15:37:27]Write i2c OK [15:37:27]MH_I2C_Read... [15:37:27]Read from MH i2c: 01 [15:37:27]MH_I2C_Read... [15:37:27]Read from MH i2c: 01 07 00 [15:37:27]MH_I2C_Read... [15:37:27]Read from MH i2c: 01 07 00 5E 69 00 00 00 00 00 C5 0C 9F [15:37:27]RasterBufferAndPrint [15:37:27]line [15:37:27]line [15:37:27]line [15:37:27]line [15:37:27]line [15:37:27]written 0, free lines is 3277 [15:37:27]MH_Cut [15:37:27]Write to MH i2c: D1 01 00 65 69 01 A0 [15:37:27]Write i2c OK [15:37:27]MH_I2C_Read... [15:37:27]Read from MH i2c: D1 [15:37:27]MH_I2C_Read... [15:37:27]Read from MH i2c: D1 01 00 [15:37:27]MH_I2C_Read... [15:37:27]Read from MH i2c: D1 01 00 65 69 00 9F [15:37:27]Write to MH i2c: 01 00 00 66 69 CF [15:37:27]Write i2c OK [15:37:27]MH_I2C_Read... [15:37:28]OFD Sender: No OFD packet to send [15:37:28]*** Cut start [15:37:28]*** Partial cut [15:37:28]*** CUTSNS_PIN = 1 [15:37:28]*** CUTSNS_PIN = 0 [15:37:28]*** Brake cut motor [15:37:29]Read from MH i2c: 01 [15:37:29]MH_I2C_Read... [15:37:29]*** Stop cut motor [15:37:29]*** Cut end [15:37:29]Read from MH i2c: 01 07 00 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: 01 07 00 66 69 00 00 00 00 00 FF 0F E4 [15:37:29]process_action close_receipt done [15:37:29]requested_data is exist [15:37:29]produce_requested_data [15:37:29]requested_item fm.sn is exist - process it [15:37:29]wFMCommunicate request_size=4 [15:37:29]MH_SAM_APDU [15:37:29]CAPDU: 80 11 00 00 [15:37:29]Write to MH i2c: E2 08 00 67 69 80 11 00 00 00 00 00 00 4A [15:37:29]Write i2c OK [15:37:29]MH_I2C_Read... [15:37:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:29]Read from MH i2c: E2 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 17 00 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 17 00 67 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A5 [15:37:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:37:29]wFMCommunicate OK [15:37:29]requested_item fd.num is exist - process it [15:37:29]SAM_PROTO_GetFieldsCounters [15:37:29]wFMCommunicate request_size=4 [15:37:29]MH_SAM_APDU [15:37:29]CAPDU: 80 13 00 00 [15:37:29]Write to MH i2c: E2 08 00 68 69 80 13 00 00 00 00 00 00 4D [15:37:29]Write i2c OK [15:37:29]MH_I2C_Read... [15:37:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:29]Read from MH i2c: E2 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 62 00 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 62 00 68 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 DE 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [15:37:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 DE 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:37:29]wFMCommunicate OK [15:37:29]SAM_PROTO_GetFieldsCounters done [15:37:29]requested_item shift.num is exist - process it [15:37:29]requested_item shift.opened is exist - process it [15:37:29]req_shift_opened [15:37:29]FM_GetShiftState [15:37:29]SAM_PROTO_GetShiftState [15:37:29]wFMCommunicate request_size=4 [15:37:29]MH_SAM_APDU [15:37:29]CAPDU: 80 13 01 00 [15:37:29]Write to MH i2c: E2 08 00 69 69 80 13 01 00 00 00 00 00 4F [15:37:29]Write i2c OK [15:37:29]MH_I2C_Read... [15:37:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:29]Read from MH i2c: E2 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 0E 00 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 0E 00 69 69 00 09 00 01 89 19 24 67 00 00 00 00 90 00 88 [15:37:29]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:37:29]wFMCommunicate OK [15:37:29]SAM_PROTO_GetShiftState done [15:37:29]FM_GetShiftState done [15:37:29]req_shift_opened done [15:37:29]requested_item shift.open_date is exist - process it [15:37:29]req_shift_open_date [15:37:29]req_shift_open_date done [15:37:29]produce_requested_data done [15:37:29]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139998,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [15:37:29]process_action_free close_receipt [15:37:29]json_value_free [15:37:29]json_value_free done [15:37:29]process_json_proto returns [15:37:29]Send response to host [15:37:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139998,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [15:37:29]free response buf [15:37:29]execute_script done [15:37:29]execute_script returns [15:37:29]free content buf [15:37:29]Sock 9.Close socket [15:37:29]Sock 9.Thread stoped [15:37:33]OFD Sender: No OFD packet to send [15:37:38]OFD Sender: No OFD packet to send [15:37:43]OFD Sender: No OFD packet to send [15:37:48]OFD Sender: No OFD packet to send [15:37:53]OFD Sender: No OFD packet to send [15:37:54]accept exits with 7 [15:37:54]New connection [15:37:54]New thread 3066510692 created [15:37:54]Thread 3066654052 joined [15:37:54]Waiting for new connection... [15:37:54] Sock 7.Parse request [15:37:54]Sock 7.Check first char [15:37:54]Sock 7.First char is OK [15:37:54]request: POST /json_proto HTTP/1.0 [15:37:54]Method: POST [15:37:54]URL: /json_proto [15:37:54]Method is POST - this is cgi request [15:37:54]url: /json_proto [15:37:54]query_string will be loaded in cgi processing [15:37:54]execute_cgi json_proto POST (null) [15:37:54]execute_cgi path=json_proto method=POST [15:37:54]POST find Content-Length [15:37:54]Host: 172.17.50.196:8080 [15:37:54]Content-Length: 683 [15:37:54]Content-Type: application/json [15:37:54] [15:37:54]POST finish read [15:37:54]Found Content-Length = 683 [15:37:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 62.630, "sum" : 4189.95, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4189.00, "payments": [ { "type": 0, "sum" : 4189.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:54]execute_script... [15:37:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 62.630, "sum" : 4189.95, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4189.00, "payments": [ { "type": 0, "sum" : 4189.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:54]POST & json_proto [15:37:54]process_json_proto [15:37:54]json parsed OK: [15:37:54]protocol is kg_v1.0 [15:37:54]action value=close_receipt [15:37:54]process_action close_receipt [15:37:54]cmd_close_receipt [15:37:54]MH_GetDate [15:37:54]Write to MH i2c: F0 00 00 6A 69 C2 [15:37:54]Write i2c OK [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: F0 [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: F0 09 00 [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: F0 09 00 6A 69 00 D8 F5 24 67 72 0D 1C 67 25 [15:37:54]GetLastDocTimeStamp 1730475451 [15:37:54]current date 1730475480 [15:37:54]FM_GetShiftState [15:37:54]SAM_PROTO_GetShiftState [15:37:54]wFMCommunicate request_size=4 [15:37:54]MH_SAM_APDU [15:37:54]CAPDU: 80 13 01 00 [15:37:54]Write to MH i2c: E2 08 00 6B 69 80 13 01 00 00 00 00 00 51 [15:37:54]Write i2c OK [15:37:54]MH_I2C_Read... [15:37:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:54]Read from MH i2c: E2 [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: E2 0E 00 [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: E2 0E 00 6B 69 00 09 00 01 89 19 24 67 00 00 00 00 90 00 8A [15:37:54]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:37:54]wFMCommunicate OK [15:37:54]SAM_PROTO_GetShiftState done [15:37:54]FM_GetShiftState done [15:37:54]opened in 1730419081 [15:37:54]opened+sec_in_day 1730505481 [15:37:54]quantity*price = 418994 [15:37:54]sum+1 = 418996 [15:37:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.95 ИТОГО: 4189.00 Внесено: 5000.00 СДАЧА: 811.00 НСП 1% : 37.08 НДС 12% : 444.95 Наличными: 4189.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 180 01.11.2024 15:38 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139999 ФПД: 56281718159579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T153800&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139999&fm=56281718159579&tin=02508201610067®Number=0000000000091631&sum=418900 [15:37:55]StoreToDocumentArchive [15:37:55]shift 558 fd 139999 [15:37:55]save to /storage/0558/doc_00139999 [15:37:55]save last doc name /storage/0558/doc_00139999 to /storage/kkm_last_doc_name [15:37:55]save OK [15:37:55]Clear old archive folders... [15:37:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:55]tlvbuf is 00A18070 [15:37:55]SAM_PROTO_ClearQueue [15:37:55]wFMCommunicate request_size=4 [15:37:55]MH_SAM_APDU [15:37:55]CAPDU: 80 09 00 00 [15:37:55]Write to MH i2c: E2 08 00 78 69 80 09 00 00 00 00 00 00 53 [15:37:55]Write i2c OK [15:37:55]MH_I2C_Read... [15:37:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:55]Read from MH i2c: E2 [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: E2 03 00 [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: E2 03 00 78 69 00 90 00 55 [15:37:55]RAPDU: 90 00 [15:37:55]wFMCommunicate OK [15:37:55]SAM_PROTO_ClearQueue done [15:37:55]KKMCreateOFDPacket [15:37:55]OFDProtocolAddRootSTLVToBuf [15:37:55]FM_MakeSignedData [15:37:55]FM_MakeSignedData [15:37:55]SAM_PROTO_SignData [15:37:55]wFMCommunicate request_size=4 [15:37:55]MH_SAM_APDU [15:37:55]CAPDU: 80 0D 01 02 [15:37:55]Write to MH i2c: E2 08 00 79 69 80 0D 01 02 00 00 00 00 5B [15:37:55]Write i2c OK [15:37:55]MH_I2C_Read... [15:37:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:55]Read from MH i2c: E2 [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: E2 03 00 [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: E2 03 00 79 69 00 90 00 56 [15:37:55]RAPDU: 90 00 [15:37:55]wFMCommunicate OK [15:37:55]wFMCommunicate request_size=255 [15:37:55]MH_SAM_APDU [15:37:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A6 F4 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B3 64 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 64 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF AD 00 00 00 00 07 04 06 00 54 64 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 D8 F5 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DF 22 02 00 35 04 06 00 33 [15:37:55]Write to MH i2c: E2 02 01 7A 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A6 F4 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B3 64 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 64 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF AD 00 00 00 00 07 04 06 00 54 64 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 D8 F5 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DF 22 02 00 35 04 06 00 33 00 00 4C [15:37:55]Write i2c OK [15:37:55]MH_I2C_Read... [15:37:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:55]Read from MH i2c: E2 [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: E2 03 00 [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: E2 03 00 7A 69 00 90 00 57 [15:37:55]RAPDU: 90 00 [15:37:55]wFMCommunicate OK [15:37:55]wFMCommunicate request_size=10 [15:37:55]MH_SAM_APDU [15:37:55]CAPDU: 80 0D 02 02 05 30 1B D1 78 DB [15:37:55]Write to MH i2c: E2 0D 00 7B 69 80 0D 02 02 05 00 30 1B D1 78 DB 00 00 D7 [15:37:55]Write i2c OK [15:37:55]MH_I2C_Read... [15:37:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:55]Read from MH i2c: E2 [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: E2 03 00 [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: E2 03 00 7B 69 00 90 00 58 [15:37:55]RAPDU: 90 00 [15:37:55]wFMCommunicate OK [15:37:55]wFMCommunicate request_size=4 [15:37:55]MH_SAM_APDU [15:37:55]CAPDU: 80 0D 03 02 [15:37:55]Write to MH i2c: E2 08 00 7C 69 80 0D 03 02 00 00 00 00 60 [15:37:55]Write i2c OK [15:37:55]MH_I2C_Read... [15:37:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:55]Read from MH i2c: E2 [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: E2 0B 00 [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: E2 0B 00 7C 69 00 8D 9F 4E 62 D8 BE 7A 54 90 00 A1 [15:37:55]RAPDU: 8D 9F 4E 62 D8 BE 7A 54 90 00 [15:37:55]wFMCommunicate OK [15:37:55]SAM_PROTO_SignData done [15:37:55]FM_MakeSignedData done [15:37:55]CreateOFDProtocolMessage [15:37:55]wFMCommunicate request_size=4 [15:37:55]MH_SAM_APDU [15:37:55]CAPDU: 80 11 00 00 [15:37:55]Write to MH i2c: E2 08 00 7D 69 80 11 00 00 00 00 00 00 60 [15:37:55]Write i2c OK [15:37:55]MH_I2C_Read... [15:37:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:55]Read from MH i2c: E2 [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: E2 17 00 [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: E2 17 00 7D 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BB [15:37:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:37:55]wFMCommunicate OK [15:37:55]CreateOFDProtocolMessage done [15:37:55]OFDSenderStorePacket 139999 [15:37:55]StoreOFDPacket docnum=139999 [15:37:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 7F 2B 07 01 AF BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A6 F4 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B3 64 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 64 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF AD 00 00 00 00 07 04 06 00 54 64 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 D8 F5 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DF 22 02 00 35 04 06 00 33 30 1B D1 78 DB 8D 9F 4E 62 D8 BE 7A 54 [15:37:55]CheckFolder [15:37:55]dirname=/storage/ofd_packets [15:37:55]CheckFolder done [15:37:55]ProducePacketName [15:37:55]name=ofd_packets/00139999 [15:37:55]NVStorageSaveData ofd_packets/00139999 [15:37:55]File name is /storage/ofd_packets/00139999 [15:37:55]Write 301 bytes [15:37:55]NVStorageSaveData done [15:37:55]OFDSenderStorePacket done [15:37:55]KKMCreateOFDPacket done [15:37:55]NVStorageSaveData kkm_last_timestamp [15:37:55]File name is /storage/kkm_last_timestamp [15:37:55]Write 4 bytes [15:37:55]NVStorageSaveData done [15:37:55]ExternCall_PrintAddStr [15:37:55]wPrintStart [15:37:55]Write to MH i2c: 01 00 00 7E 69 E7 [15:37:55]Write i2c OK [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: 01 [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: 01 07 00 [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: 01 07 00 7E 69 00 00 00 00 00 FF 0F FC [15:37:55]RasterBufferAndPrint [15:37:55]line Счет N : (1)1096045 [15:37:55]line ИНН: 02508201610067 [15:37:55]line Контрольно-Кассовый Чек [15:37:55]line ПРОДАЖА [15:37:55]line ТРК (МРК, ГНК) : 33 [15:37:55]line Товар: 2710124130 [15:37:55]line Аи-92-К-2 [15:37:55]line 62.630 * 66.90 [15:37:55]line = 4189.95 [15:37:55]line НДС 12% НСП 1% [15:37:55]line > о реализуемом товаре [15:37:55]line ОКРУГЛЕНИЕ: -0.95 [15:37:55]line ИТОГО: 4189.00 [15:37:55]line Внесено: 5000.00 [15:37:55]line СДАЧА: 811.00 [15:37:55]line НСП 1% : 37.08 [15:37:55]line НДС 12% : 444.95 [15:37:55]line Наличными: 4189.00 [15:37:55]line Безнал.: 0.00 [15:37:55]line Место: АЗС № 101 "Партнер Нефть" [15:37:55]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:37:55]line СНО: Общий режим [15:37:55]line Чек 180 01.11.2024 15:38 [15:37:55]line Смена: 558 ФФД: 1.0 [15:37:55]line ЗНМ: 0300000081 [15:37:55]line РНМ: 0000000000091631 [15:37:55]line Версия ККМ: 001 [15:37:55]line ФМ: 0000000000874669 [15:37:55]line ФД: 139999 [15:37:55]line ФПД: 56281718159579 [15:37:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T153800&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139999&fm=56281718159579&tin=02508201610067®Number=0000000000091631&sum=418900 [15:37:56]OFD Sender: Processing packet 139999 [packets to send 34, broken 33] [15:37:56]ProducePacketName [15:37:56]name=ofd_packets/00139999 [15:37:56]OFD Sender: To server: pG, [15:37:56]CommunicateWithHost lk.salyk.kg:30040 [15:37:56]ConnectInit lk.salyk.kg [15:37:56]written 0, free lines is 4095 [15:37:56]Connected sock=10 [15:37:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 7F 2B 07 01 AF BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A6 F4 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B3 64 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 64 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF AD 00 00 00 00 07 04 06 00 54 64 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 D8 F5 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DF 22 02 00 35 04 06 00 33 30 1B D1 78 DB 8D 9F 4E 62 D8 BE 7A 54 [15:37:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 FD DD 47 00 EA 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DF 22 02 00 F4 03 04 00 83 A1 24 67 B6 04 01 00 00 D9 D0 BC F7 90 71 C3 ED [15:37:56]CommunicateWithHost err = 0 [15:37:56]CheckOFDResponse [15:37:56]1017 (14) - 77093643461234 [15:37:56]1041 (16) - 0000000000874669 [15:37:56]1040 (4) - 139999 [15:37:56]1012 (4) - 01.11.2024 09:38 [15:37:56]1206 (1) - 0 [15:37:56]OFD Sender: Remove packet 139999 [15:37:56]ProducePacketName [15:37:56]name=ofd_packets/00139999 [15:37:56]NVStorageDeleteData [15:37:56]Write to MH i2c: 01 00 00 A9 69 12 [15:37:56]Write i2c OK [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: 01 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: 01 07 00 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: 01 07 00 A9 69 00 00 00 00 00 E6 0C 0B [15:37:56]RasterBufferAndPrint [15:37:56]line [15:37:56]line [15:37:56]line [15:37:56]line [15:37:56]line [15:37:56]written 0, free lines is 3309 [15:37:56]MH_Cut [15:37:56]Write to MH i2c: D1 01 00 B0 69 01 EB [15:37:56]Write i2c OK [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: D1 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: D1 01 00 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: D1 01 00 B0 69 00 EA [15:37:56]Write to MH i2c: 01 00 00 B1 69 1A [15:37:56]Write i2c OK [15:37:56]MH_I2C_Read... [15:37:57]OFD Sender: No OFD packet to send [15:37:57]*** Cut start [15:37:57]*** Partial cut [15:37:57]*** CUTSNS_PIN = 1 [15:37:57]*** CUTSNS_PIN = 0 [15:37:57]*** Brake cut motor [15:37:58]Read from MH i2c: 01 [15:37:58]MH_I2C_Read... [15:37:58]*** Stop cut motor [15:37:58]*** Cut end [15:37:58]Read from MH i2c: 01 07 00 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: 01 07 00 B1 69 00 00 00 00 00 FF 0F 2F [15:37:58]process_action close_receipt done [15:37:58]requested_data is exist [15:37:58]produce_requested_data [15:37:58]requested_item fm.sn is exist - process it [15:37:58]wFMCommunicate request_size=4 [15:37:58]MH_SAM_APDU [15:37:58]CAPDU: 80 11 00 00 [15:37:58]Write to MH i2c: E2 08 00 B2 69 80 11 00 00 00 00 00 00 95 [15:37:58]Write i2c OK [15:37:58]MH_I2C_Read... [15:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:58]Read from MH i2c: E2 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 17 00 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 17 00 B2 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F0 [15:37:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:37:58]wFMCommunicate OK [15:37:58]requested_item fd.num is exist - process it [15:37:58]SAM_PROTO_GetFieldsCounters [15:37:58]wFMCommunicate request_size=4 [15:37:58]MH_SAM_APDU [15:37:58]CAPDU: 80 13 00 00 [15:37:58]Write to MH i2c: E2 08 00 B3 69 80 13 00 00 00 00 00 00 98 [15:37:58]Write i2c OK [15:37:58]MH_I2C_Read... [15:37:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:58]Read from MH i2c: E2 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 62 00 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 62 00 B3 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 DF 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [15:37:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 DF 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:37:58]wFMCommunicate OK [15:37:58]SAM_PROTO_GetFieldsCounters done [15:37:58]requested_item shift.num is exist - process it [15:37:58]requested_item shift.opened is exist - process it [15:37:58]req_shift_opened [15:37:58]FM_GetShiftState [15:37:58]SAM_PROTO_GetShiftState [15:37:58]wFMCommunicate request_size=4 [15:37:58]MH_SAM_APDU [15:37:58]CAPDU: 80 13 01 00 [15:37:58]Write to MH i2c: E2 08 00 B4 69 80 13 01 00 00 00 00 00 9A [15:37:58]Write i2c OK [15:37:58]MH_I2C_Read... [15:37:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:58]Read from MH i2c: E2 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 0E 00 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 0E 00 B4 69 00 09 00 01 89 19 24 67 00 00 00 00 90 00 D3 [15:37:58]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:37:58]wFMCommunicate OK [15:37:58]SAM_PROTO_GetShiftState done [15:37:58]FM_GetShiftState done [15:37:58]req_shift_opened done [15:37:58]requested_item shift.open_date is exist - process it [15:37:58]req_shift_open_date [15:37:58]req_shift_open_date done [15:37:58]produce_requested_data done [15:37:58]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139999,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [15:37:58]process_action_free close_receipt [15:37:58]json_value_free [15:37:58]json_value_free done [15:37:58]process_json_proto returns [15:37:58]Send response to host [15:37:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139999,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [15:37:58]free response buf [15:37:58]execute_script done [15:37:58]execute_script returns [15:37:58]free content buf [15:37:58]Sock 7.Close socket [15:37:58]Sock 7.Thread stoped [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:12]OFD Sender: No OFD packet to send [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:49]accept exits with 9 [15:38:49]New connection [15:38:49]New thread 3066654052 created [15:38:49]Thread 3066510692 joined [15:38:49]Waiting for new connection... [15:38:49] Sock 9.Parse request [15:38:49]Sock 9.Check first char [15:38:49]Sock 9.First char is OK [15:38:49]request: POST /json_proto HTTP/1.0 [15:38:49]Method: POST [15:38:49]URL: /json_proto [15:38:49]Method is POST - this is cgi request [15:38:49]url: /json_proto [15:38:49]query_string will be loaded in cgi processing [15:38:49]execute_cgi json_proto POST (null) [15:38:49]execute_cgi path=json_proto method=POST [15:38:49]POST find Content-Length [15:38:49]Host: 172.17.50.196:8080 [15:38:49]Content-Length: 695 [15:38:49]Content-Type: application/json [15:38:49] [15:38:49]POST finish read [15:38:49]Found Content-Length = 695 [15:38:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335810", "tax_sys" : 0, "items" : [ { "code": "4700000160884", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 4.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" ] } } [15:38:49]execute_script... [15:38: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)335810", "tax_sys" : 0, "items" : [ { "code": "4700000160884", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 4.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" ] } } [15:38:49]POST & json_proto [15:38:49]process_json_proto [15:38:49]json parsed OK: [15:38:49]protocol is kg_v1.0 [15:38:49]action value=close_receipt [15:38:49]process_action close_receipt [15:38:49]cmd_close_receipt [15:38:49]MH_GetDate [15:38:49]Write to MH i2c: F0 00 00 B5 69 0D [15:38:49]Write i2c OK [15:38:49]MH_I2C_Read... [15:38:49]Read from MH i2c: F0 [15:38:49]MH_I2C_Read... [15:38:49]Read from MH i2c: F0 09 00 [15:38:49]MH_I2C_Read... [15:38:49]Read from MH i2c: F0 09 00 B5 69 00 0F F6 24 67 72 0D 1C 67 A8 [15:38:49]GetLastDocTimeStamp 1730475480 [15:38:49]current date 1730475535 [15:38:49]FM_GetShiftState [15:38:49]SAM_PROTO_GetShiftState [15:38:49]wFMCommunicate request_size=4 [15:38:49]MH_SAM_APDU [15:38:49]CAPDU: 80 13 01 00 [15:38:49]Write to MH i2c: E2 08 00 B6 69 80 13 01 00 00 00 00 00 9C [15:38:49]Write i2c OK [15:38:49]MH_I2C_Read... [15:38:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:49]Read from MH i2c: E2 [15:38:49]MH_I2C_Read... [15:38:49]Read from MH i2c: E2 0E 00 [15:38:49]MH_I2C_Read... [15:38:49]Read from MH i2c: E2 0E 00 B6 69 00 09 00 01 89 19 24 67 00 00 00 00 90 00 D5 [15:38:49]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:38:49]wFMCommunicate OK [15:38:49]SAM_PROTO_GetShiftState done [15:38:49]FM_GetShiftState done [15:38:49]opened in 1730419081 [15:38:49]opened+sec_in_day 1730505481 [15:38:49]quantity*price = 6000 [15:38:49]sum+1 = 6001 [15:38:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 181 01.11.2024 15:38 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 140000 ФПД: 251692065989317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T153855&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140000&fm=251692065989317&tin=02508201610067®Number=0000000000091631&sum=6000 0 [15:38:50]StoreToDocumentArchive [15:38:50]shift 558 fd 140000 [15:38:50]save to /storage/0558/doc_00140000 [15:38:50]save last doc name /storage/0558/doc_00140000 to /storage/kkm_last_doc_name [15:38:50]save OK [15:38:50]Clear old archive folders... [15:38:50]ProcessDocumentItem done err = 0, tmpTLVsize=290 [15:38:50]tlvbuf is 00C5AE00 [15:38:50]SAM_PROTO_ClearQueue [15:38:50]wFMCommunicate request_size=4 [15:38:50]MH_SAM_APDU [15:38:50]CAPDU: 80 09 00 00 [15:38:50]Write to MH i2c: E2 08 00 C3 69 80 09 00 00 00 00 00 00 9E [15:38:50]Write i2c OK [15:38:50]MH_I2C_Read... [15:38:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:50]Read from MH i2c: E2 [15:38:50]MH_I2C_Read... [15:38:50]Read from MH i2c: E2 03 00 [15:38:50]MH_I2C_Read... [15:38:50]Read from MH i2c: E2 03 00 C3 69 00 90 00 A0 [15:38:50]RAPDU: 90 00 [15:38:50]wFMCommunicate OK [15:38:50]SAM_PROTO_ClearQueue done [15:38:50]KKMCreateOFDPacket [15:38:50]OFDProtocolAddRootSTLVToBuf [15:38:50]FM_MakeSignedData [15:38:50]FM_MakeSignedData [15:38:50]SAM_PROTO_SignData [15:38:50]wFMCommunicate request_size=4 [15:38:50]MH_SAM_APDU [15:38:50]CAPDU: 80 0D 01 02 [15:38:50]Write to MH i2c: E2 08 00 C4 69 80 0D 01 02 00 00 00 00 A6 [15:38:50]Write i2c OK [15:38:50]MH_I2C_Read... [15:38:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:50]Read from MH i2c: E2 [15:38:50]MH_I2C_Read... [15:38:50]Read from MH i2c: E2 03 00 [15:38:50]MH_I2C_Read... [15:38:50]Read from MH i2c: E2 03 00 C4 69 00 90 00 A1 [15:38:50]RAPDU: 90 00 [15:38:50]wFMCommunicate OK [15:38:50]wFMCommunicate request_size=255 [15:38:50]MH_SAM_APDU [15:38:50]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 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 DC 05 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 B5 00 00 00 F4 03 04 00 0F F6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [15:38:50]Write to MH i2c: E2 02 01 C5 69 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 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 DC 05 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 B5 00 00 00 F4 03 04 00 0F F6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 A7 [15:38:51]Write i2c OK [15:38:51]MH_I2C_Read... [15:38:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:51]Read from MH i2c: E2 [15:38:51]MH_I2C_Read... [15:38:51]Read from MH i2c: E2 03 00 [15:38:51]MH_I2C_Read... [15:38:51]Read from MH i2c: E2 03 00 C5 69 00 90 00 A2 [15:38:51]RAPDU: 90 00 [15:38:51]wFMCommunicate OK [15:38:51]wFMCommunicate request_size=49 [15:38:51]MH_SAM_APDU [15:38:51]CAPDU: 80 0D 02 02 2C 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E0 22 02 00 35 04 06 00 E4 E9 A0 2F A2 C5 [15:38:51]Write to MH i2c: E2 34 00 C6 69 80 0D 02 02 2C 00 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E0 22 02 00 35 04 06 00 E4 E9 A0 2F A2 C5 00 00 E0 [15:38:51]Write i2c OK [15:38:51]MH_I2C_Read... [15:38:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:51]Read from MH i2c: E2 [15:38:51]MH_I2C_Read... [15:38:51]Read from MH i2c: E2 03 00 [15:38:51]MH_I2C_Read... [15:38:51]Read from MH i2c: E2 03 00 C6 69 00 90 00 A3 [15:38:51]RAPDU: 90 00 [15:38:51]wFMCommunicate OK [15:38:51]wFMCommunicate request_size=4 [15:38:51]MH_SAM_APDU [15:38:51]CAPDU: 80 0D 03 02 [15:38:51]Write to MH i2c: E2 08 00 C7 69 80 0D 03 02 00 00 00 00 AB [15:38:51]Write i2c OK [15:38:51]MH_I2C_Read... [15:38:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:51]Read from MH i2c: E2 [15:38:51]MH_I2C_Read... [15:38:51]Read from MH i2c: E2 0B 00 [15:38:51]MH_I2C_Read... [15:38:51]Read from MH i2c: E2 0B 00 C7 69 00 72 F3 61 6B 41 72 2E 14 90 00 D2 [15:38:51]RAPDU: 72 F3 61 6B 41 72 2E 14 90 00 [15:38:51]wFMCommunicate OK [15:38:51]SAM_PROTO_SignData done [15:38:51]FM_MakeSignedData done [15:38:51]CreateOFDProtocolMessage [15:38:51]wFMCommunicate request_size=4 [15:38:51]MH_SAM_APDU [15:38:51]CAPDU: 80 11 00 00 [15:38:51]Write to MH i2c: E2 08 00 C8 69 80 11 00 00 00 00 00 00 AB [15:38:51]Write i2c OK [15:38:51]MH_I2C_Read... [15:38:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:51]Read from MH i2c: E2 [15:38:51]MH_I2C_Read... [15:38:51]Read from MH i2c: E2 17 00 [15:38:51]MH_I2C_Read... [15:38:51]Read from MH i2c: E2 17 00 C8 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 06 [15:38:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:38:51]wFMCommunicate OK [15:38:51]CreateOFDProtocolMessage done [15:38:51]OFDSenderStorePacket 140000 [15:38:51]StoreOFDPacket docnum=140000 [15:38:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 36 01 00 00 DD E6 2E 01 B0 DD 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 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 DC 05 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 B5 00 00 00 F4 03 04 00 0F F6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E0 22 02 00 35 04 06 00 E4 E9 A0 2F A2 C5 72 F3 61 6B 41 72 2E 14 [15:38:51]CheckFolder [15:38:51]dirname=/storage/ofd_packets [15:38:51]CheckFolder done [15:38:51]ProducePacketName [15:38:51]name=ofd_packets/00140000 [15:38:51]NVStorageSaveData ofd_packets/00140000 [15:38:51]File name is /storage/ofd_packets/00140000 [15:38:51]Write 340 bytes [15:38:51]NVStorageSaveData done [15:38:51]OFDSenderStorePacket done [15:38:51]KKMCreateOFDPacket done [15:38:51]NVStorageSaveData kkm_last_timestamp [15:38:51]File name is /storage/kkm_last_timestamp [15:38:51]Write 4 bytes [15:38:51]NVStorageSaveData done [15:38:51]ExternCall_PrintAddStr [15:38:51]wPrintStart [15:38:51]Write to MH i2c: 01 00 00 C9 69 32 [15:38:51]Write i2c OK [15:38:51]MH_I2C_Read... [15:38:51]Read from MH i2c: 01 [15:38:51]MH_I2C_Read... [15:38:51]Read from MH i2c: 01 07 00 [15:38:51]MH_I2C_Read... [15:38:51]Read from MH i2c: 01 07 00 C9 69 00 00 00 00 00 FF 0F 47 [15:38:51]RasterBufferAndPrint [15:38:51]line Счет N : (3)335810 [15:38:51]line ИНН: 02508201610067 [15:38:51]line Контрольно-Кассовый Чек [15:38:51]line ПРОДАЖА [15:38:51]line Товар: 4700000160884 [15:38:51]line Снек Курут индивидуальный [15:38:51]line 4.000 * 15.00 [15:38:51]line = 60.00 [15:38:51]line НДС 12% НСП 1% [15:38:51]line > о реализуемом товаре [15:38:51]line ИТОГО: 60.00 [15:38:51]line НСП 1% : 0.53 [15:38:51]line НДС 12% : 6.37 [15:38:51]line Наличными: 60.00 [15:38:51]line Безнал.: 0.00 [15:38:51]line Место: АЗС № 101 "Партнер Нефть" [15:38:51]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:38:51]line СНО: Общий режим [15:38:51]line Чек 181 01.11.2024 15:38 [15:38:51]line Смена: 558 ФФД: 1.0 [15:38:51]line ЗНМ: 0300000081 [15:38:51]line РНМ: 0000000000091631 [15:38:51]line Версия ККМ: 001 [15:38:51]line ФМ: 0000000000874669 [15:38:51]line ФД: 140000 [15:38:51]line ФПД: 251692065989317 [15:38:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T153855&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140000&fm=251692065989317&tin=02508201610067®Number=0000000000091631&sum=6000 [15:38:51]line 0 [15:38:51]OFD Sender: Processing packet 140000 [packets to send 34, broken 33] [15:38:51]ProducePacketName [15:38:51]name=ofd_packets/00140000 [15:38:51]OFD Sender: To server: pG, [15:38:51]CommunicateWithHost lk.salyk.kg:30040 [15:38:51]ConnectInit lk.salyk.kg [15:38:51]written 0, free lines is 4095 [15:38:51]Connected sock=10 [15:38:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 36 01 00 00 DD E6 2E 01 B0 DD 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 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 DC 05 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 B5 00 00 00 F4 03 04 00 0F F6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E0 22 02 00 35 04 06 00 E4 E9 A0 2F A2 C5 72 F3 61 6B 41 72 2E 14 [15:38:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 C8 C5 47 00 28 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E0 22 02 00 F4 03 04 00 BA A1 24 67 B6 04 01 00 00 25 36 0E 0B 18 12 8C E2 [15:38:52]CommunicateWithHost err = 0 [15:38:52]CheckOFDResponse [15:38:52]1017 (14) - 77093643461234 [15:38:52]1041 (16) - 0000000000874669 [15:38:52]1040 (4) - 140000 [15:38:52]1012 (4) - 01.11.2024 09:39 [15:38:52]1206 (1) - 0 [15:38:52]OFD Sender: Remove packet 140000 [15:38:52]ProducePacketName [15:38:52]name=ofd_packets/00140000 [15:38:52]NVStorageDeleteData [15:38:52]Write to MH i2c: 01 00 00 F1 69 5A [15:38:52]Write i2c OK [15:38:52]MH_I2C_Read... [15:38:52]Read from MH i2c: 01 [15:38:52]MH_I2C_Read... [15:38:52]Read from MH i2c: 01 07 00 [15:38:52]MH_I2C_Read... [15:38:52]Read from MH i2c: 01 07 00 F1 69 00 00 00 00 00 12 0D 80 [15:38:52]RasterBufferAndPrint [15:38:52]line [15:38:52]line [15:38:52]line [15:38:52]line [15:38:52]line [15:38:52]written 0, free lines is 3352 [15:38:52]MH_Cut [15:38:52]Write to MH i2c: D1 01 00 F8 69 01 33 [15:38:52]Write i2c OK [15:38:52]MH_I2C_Read... [15:38:52]Read from MH i2c: D1 [15:38:52]MH_I2C_Read... [15:38:52]Read from MH i2c: D1 01 00 [15:38:52]MH_I2C_Read... [15:38:52]Read from MH i2c: D1 01 00 F8 69 00 32 [15:38:52]Write to MH i2c: 01 00 00 F9 69 62 [15:38:52]Write i2c OK [15:38:52]MH_I2C_Read... [15:38:52]OFD Sender: No OFD packet to send [15:38:52]*** Cut start [15:38:52]*** Partial cut [15:38:52]*** CUTSNS_PIN = 1 [15:38:52]*** CUTSNS_PIN = 0 [15:38:53]*** Brake cut motor [15:38:53]Read from MH i2c: 01 [15:38:53]MH_I2C_Read... [15:38:53]*** Stop cut motor [15:38:53]*** Cut end [15:38:53]Read from MH i2c: 01 07 00 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: 01 07 00 F9 69 00 00 00 00 00 FF 0F 77 [15:38:53]process_action close_receipt done [15:38:53]requested_data is exist [15:38:53]produce_requested_data [15:38:53]requested_item fm.sn is exist - process it [15:38:53]wFMCommunicate request_size=4 [15:38:53]MH_SAM_APDU [15:38:53]CAPDU: 80 11 00 00 [15:38:53]Write to MH i2c: E2 08 00 FA 69 80 11 00 00 00 00 00 00 DD [15:38:53]Write i2c OK [15:38:53]MH_I2C_Read... [15:38:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:53]Read from MH i2c: E2 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: E2 17 00 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: E2 17 00 FA 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 38 [15:38:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:38:53]wFMCommunicate OK [15:38:53]requested_item fd.num is exist - process it [15:38:53]SAM_PROTO_GetFieldsCounters [15:38:53]wFMCommunicate request_size=4 [15:38:53]MH_SAM_APDU [15:38:53]CAPDU: 80 13 00 00 [15:38:53]Write to MH i2c: E2 08 00 FB 69 80 13 00 00 00 00 00 00 E0 [15:38:53]Write i2c OK [15:38:53]MH_I2C_Read... [15:38:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:53]Read from MH i2c: E2 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: E2 62 00 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: E2 62 00 FB 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E0 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [15:38:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E0 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:38:53]wFMCommunicate OK [15:38:53]SAM_PROTO_GetFieldsCounters done [15:38:53]requested_item shift.num is exist - process it [15:38:53]requested_item shift.opened is exist - process it [15:38:53]req_shift_opened [15:38:53]FM_GetShiftState [15:38:53]SAM_PROTO_GetShiftState [15:38:53]wFMCommunicate request_size=4 [15:38:53]MH_SAM_APDU [15:38:53]CAPDU: 80 13 01 00 [15:38:53]Write to MH i2c: E2 08 00 FC 69 80 13 01 00 00 00 00 00 E2 [15:38:53]Write i2c OK [15:38:53]MH_I2C_Read... [15:38:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:53]Read from MH i2c: E2 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: E2 0E 00 [15:38:53]MH_I2C_Read... [15:38:53]Read from MH i2c: E2 0E 00 FC 69 00 09 00 01 89 19 24 67 00 00 00 00 90 00 1B [15:38:53]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:38:53]wFMCommunicate OK [15:38:53]SAM_PROTO_GetShiftState done [15:38:53]FM_GetShiftState done [15:38:53]req_shift_opened done [15:38:53]requested_item shift.open_date is exist - process it [15:38:53]req_shift_open_date [15:38:53]req_shift_open_date done [15:38:53]produce_requested_data done [15:38:53]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":140000,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [15:38:53]process_action_free close_receipt [15:38:53]json_value_free [15:38:53]json_value_free done [15:38:53]process_json_proto returns [15:38:53]Send response to host [15:38:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":140000,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [15:38:53]free response buf [15:38:53]execute_script done [15:38:53]execute_script returns [15:38:53]free content buf [15:38:53]Sock 9.Close socket [15:38:53]Sock 9.Thread stoped [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:08]accept exits with 7 [15:41:08]New connection [15:41:08]New thread 3066510692 created [15:41:08]Thread 3066654052 joined [15:41:08]Waiting for new connection... [15:41:08] Sock 7.Parse request [15:41:08]Sock 7.Check first char [15:41:08]Sock 7.First char is OK [15:41:08]request: POST /json_proto HTTP/1.0 [15:41:08]Method: POST [15:41:08]URL: /json_proto [15:41:08]Method is POST - this is cgi request [15:41:08]url: /json_proto [15:41:08]query_string will be loaded in cgi processing [15:41:08]execute_cgi json_proto POST (null) [15:41:08]execute_cgi path=json_proto method=POST [15:41:08]POST find Content-Length [15:41:08]Host: 172.17.50.196:8080 [15:41:08]Content-Length: 670 [15:41:08]Content-Type: application/json [15:41:08] [15:41:08]POST finish read [15:41:08]Found Content-Length = 670 [15:41:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335811", "tax_sys" : 0, "items" : [ { "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\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" ] } } [15:41:08]execute_script... [15:41:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335811", "tax_sys" : 0, "items" : [ { "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\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" ] } } [15:41:08]POST & json_proto [15:41:08]process_json_proto [15:41:08]json parsed OK: [15:41:08]protocol is kg_v1.0 [15:41:08]action value=close_receipt [15:41:08]process_action close_receipt [15:41:08]cmd_close_receipt [15:41:08]MH_GetDate [15:41:08]Write to MH i2c: F0 00 00 FD 69 55 [15:41:08]Write i2c OK [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: F0 [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: F0 09 00 [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: F0 09 00 FD 69 00 9A F6 24 67 72 0D 1C 67 7B [15:41:08]GetLastDocTimeStamp 1730475535 [15:41:08]current date 1730475674 [15:41:08]FM_GetShiftState [15:41:08]SAM_PROTO_GetShiftState [15:41:08]wFMCommunicate request_size=4 [15:41:08]MH_SAM_APDU [15:41:08]CAPDU: 80 13 01 00 [15:41:08]Write to MH i2c: E2 08 00 FE 69 80 13 01 00 00 00 00 00 E4 [15:41:08]Write i2c OK [15:41:08]MH_I2C_Read... [15:41:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:08]Read from MH i2c: E2 [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: E2 0E 00 [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: E2 0E 00 FE 69 00 09 00 01 89 19 24 67 00 00 00 00 90 00 1D [15:41:08]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:41:08]wFMCommunicate OK [15:41:08]SAM_PROTO_GetShiftState done [15:41:08]FM_GetShiftState done [15:41:08]opened in 1730419081 [15:41:08]opened+sec_in_day 1730505481 [15:41:08]quantity*price = 9500 [15:41:08]sum+1 = 9501 [15:41:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 182 01.11.2024 15:41 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 140001 ФПД: 152446025438446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T154115&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140001&fm=152446025438446&tin=02508201610067®Number=0000000000091631&sum=9500 0 [15:41:09]StoreToDocumentArchive [15:41:09]shift 558 fd 140001 [15:41:09]save to /storage/0558/doc_00140001 [15:41:09]save last doc name /storage/0558/doc_00140001 to /storage/kkm_last_doc_name [15:41:09]save OK [15:41:09]Clear old archive folders... [15:41:09]ProcessDocumentItem done err = 0, tmpTLVsize=293 [15:41:09]tlvbuf is 00BA7A50 [15:41:09]SAM_PROTO_ClearQueue [15:41:09]wFMCommunicate request_size=4 [15:41:09]MH_SAM_APDU [15:41:09]CAPDU: 80 09 00 00 [15:41:09]Write to MH i2c: E2 08 00 0B 6A 80 09 00 00 00 00 00 00 E7 [15:41:09]Write i2c OK [15:41:09]MH_I2C_Read... [15:41:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:09]Read from MH i2c: E2 [15:41:09]MH_I2C_Read... [15:41:09]Read from MH i2c: E2 03 00 [15:41:09]MH_I2C_Read... [15:41:09]Read from MH i2c: E2 03 00 0B 6A 00 90 00 E9 [15:41:09]RAPDU: 90 00 [15:41:09]wFMCommunicate OK [15:41:09]SAM_PROTO_ClearQueue done [15:41:09]KKMCreateOFDPacket [15:41:09]OFDProtocolAddRootSTLVToBuf [15:41:09]FM_MakeSignedData [15:41:09]FM_MakeSignedData [15:41:09]SAM_PROTO_SignData [15:41:09]wFMCommunicate request_size=4 [15:41:09]MH_SAM_APDU [15:41:09]CAPDU: 80 0D 01 02 [15:41:09]Write to MH i2c: E2 08 00 0C 6A 80 0D 01 02 00 00 00 00 EF [15:41:09]Write i2c OK [15:41:09]MH_I2C_Read... [15:41:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:09]Read from MH i2c: E2 [15:41:09]MH_I2C_Read... [15:41:09]Read from MH i2c: E2 03 00 [15:41:09]MH_I2C_Read... [15:41:09]Read from MH i2c: E2 03 00 0C 6A 00 90 00 EA [15:41:09]RAPDU: 90 00 [15:41:09]wFMCommunicate OK [15:41:09]wFMCommunicate request_size=255 [15:41:09]MH_SAM_APDU [15:41:09]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 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 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 B6 00 00 00 F4 03 04 00 9B F6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [15:41:09]Write to MH i2c: E2 02 01 0D 6A 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 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 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 B6 00 00 00 F4 03 04 00 9B F6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 E9 [15:41:09]Write i2c OK [15:41:09]MH_I2C_Read... [15:41:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:10]Read from MH i2c: E2 [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: E2 03 00 [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: E2 03 00 0D 6A 00 90 00 EB [15:41:10]RAPDU: 90 00 [15:41:10]wFMCommunicate OK [15:41:10]wFMCommunicate request_size=52 [15:41:10]MH_SAM_APDU [15:41:10]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E1 22 02 00 35 04 06 00 8A A6 1B 31 94 EE [15:41:10]Write to MH i2c: E2 37 00 0E 6A 80 0D 02 02 2F 00 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E1 22 02 00 35 04 06 00 8A A6 1B 31 94 EE 00 00 BB [15:41:10]Write i2c OK [15:41:10]MH_I2C_Read... [15:41:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:10]Read from MH i2c: E2 [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: E2 03 00 [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: E2 03 00 0E 6A 00 90 00 EC [15:41:10]RAPDU: 90 00 [15:41:10]wFMCommunicate OK [15:41:10]wFMCommunicate request_size=4 [15:41:10]MH_SAM_APDU [15:41:10]CAPDU: 80 0D 03 02 [15:41:10]Write to MH i2c: E2 08 00 0F 6A 80 0D 03 02 00 00 00 00 F4 [15:41:10]Write i2c OK [15:41:10]MH_I2C_Read... [15:41:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:10]Read from MH i2c: E2 [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: E2 0B 00 [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: E2 0B 00 0F 6A 00 A8 B7 BD C6 EE 1D 89 10 90 00 7B [15:41:10]RAPDU: A8 B7 BD C6 EE 1D 89 10 90 00 [15:41:10]wFMCommunicate OK [15:41:10]SAM_PROTO_SignData done [15:41:10]FM_MakeSignedData done [15:41:10]CreateOFDProtocolMessage [15:41:10]wFMCommunicate request_size=4 [15:41:10]MH_SAM_APDU [15:41:10]CAPDU: 80 11 00 00 [15:41:10]Write to MH i2c: E2 08 00 10 6A 80 11 00 00 00 00 00 00 F4 [15:41:10]Write i2c OK [15:41:10]MH_I2C_Read... [15:41:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:10]Read from MH i2c: E2 [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: E2 17 00 [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: E2 17 00 10 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4F [15:41:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:41:10]wFMCommunicate OK [15:41:10]CreateOFDProtocolMessage done [15:41:10]OFDSenderStorePacket 140001 [15:41:10]StoreOFDPacket docnum=140001 [15:41:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 39 01 00 00 D5 47 31 01 AA 70 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 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 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 B6 00 00 00 F4 03 04 00 9B F6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E1 22 02 00 35 04 06 00 8A A6 1B 31 94 EE A8 B7 BD C6 EE 1D 89 10 [15:41:10]CheckFolder [15:41:10]dirname=/storage/ofd_packets [15:41:10]CheckFolder done [15:41:10]ProducePacketName [15:41:10]name=ofd_packets/00140001 [15:41:10]NVStorageSaveData ofd_packets/00140001 [15:41:10]File name is /storage/ofd_packets/00140001 [15:41:10]Write 343 bytes [15:41:10]NVStorageSaveData done [15:41:10]OFDSenderStorePacket done [15:41:10]KKMCreateOFDPacket done [15:41:10]NVStorageSaveData kkm_last_timestamp [15:41:10]File name is /storage/kkm_last_timestamp [15:41:10]Write 4 bytes [15:41:10]NVStorageSaveData done [15:41:10]ExternCall_PrintAddStr [15:41:10]wPrintStart [15:41:10]Write to MH i2c: 01 00 00 11 6A 7B [15:41:10]Write i2c OK [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: 01 [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: 01 07 00 [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: 01 07 00 11 6A 00 00 00 00 00 FF 0F 90 [15:41:10]RasterBufferAndPrint [15:41:10]line Счет N : (3)335811 [15:41:10]line ИНН: 02508201610067 [15:41:10]line Контрольно-Кассовый Чек [15:41:10]line ПРОДАЖА [15:41:10]line Товар: 4700003010056 [15:41:10]line Чай хол Let`s Go! зел лим ПЭТ 1,25л [15:41:10]line 1.000 * 95.00 [15:41:10]line = 95.00 [15:41:10]line НДС 12% НСП 1% [15:41:10]line > о реализуемом товаре [15:41:10]line ИТОГО: 95.00 [15:41:10]line НСП 1% : 0.84 [15:41:10]line НДС 12% : 10.09 [15:41:10]line Наличными: 95.00 [15:41:10]line Безнал.: 0.00 [15:41:10]line Место: АЗС № 101 "Партнер Нефть" [15:41:10]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:41:10]line СНО: Общий режим [15:41:10]line Чек 182 01.11.2024 15:41 [15:41:10]line Смена: 558 ФФД: 1.0 [15:41:10]line ЗНМ: 0300000081 [15:41:10]line РНМ: 0000000000091631 [15:41:10]line Версия ККМ: 001 [15:41:10]line ФМ: 0000000000874669 [15:41:10]line ФД: 140001 [15:41:10]line ФПД: 152446025438446 [15:41:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T154115&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140001&fm=152446025438446&tin=02508201610067®Number=0000000000091631&sum=9500 [15:41:10]line 0 [15:41:10]OFD Sender: Processing packet 140001 [packets to send 34, broken 33] [15:41:10]ProducePacketName [15:41:10]name=ofd_packets/00140001 [15:41:10]OFD Sender: To server: pG, [15:41:10]CommunicateWithHost lk.salyk.kg:30040 [15:41:10]ConnectInit lk.salyk.kg [15:41:10]written 0, free lines is 4095 [15:41:10]Connected sock=10 [15:41:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 39 01 00 00 D5 47 31 01 AA 70 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 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 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 B6 00 00 00 F4 03 04 00 9B F6 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E1 22 02 00 35 04 06 00 8A A6 1B 31 94 EE A8 B7 BD C6 EE 1D 89 10 [15:41:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 1C 84 47 00 AE 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 34 36 36 39 10 04 04 00 E1 22 02 00 F4 03 04 00 45 A2 24 67 B6 04 01 00 00 71 09 6A 26 6A 88 BC C4 [15:41:11]CommunicateWithHost err = 0 [15:41:11]CheckOFDResponse [15:41:11]1017 (14) - 77093643461234 [15:41:11]1041 (16) - 0000000000874669 [15:41:11]1040 (4) - 140001 [15:41:11]1012 (4) - 01.11.2024 09:41 [15:41:11]1206 (1) - 0 [15:41:11]OFD Sender: Remove packet 140001 [15:41:11]ProducePacketName [15:41:11]name=ofd_packets/00140001 [15:41:11]NVStorageDeleteData [15:41:11]Write to MH i2c: 01 00 00 3A 6A A4 [15:41:11]Write i2c OK [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: 01 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: 01 07 00 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: 01 07 00 3A 6A 00 00 00 00 00 FA 0C B1 [15:41:11]RasterBufferAndPrint [15:41:11]line [15:41:11]line [15:41:11]line [15:41:11]line [15:41:11]line [15:41:11]written 0, free lines is 3329 [15:41:11]MH_Cut [15:41:11]Write to MH i2c: D1 01 00 41 6A 01 7D [15:41:11]Write i2c OK [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: D1 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: D1 01 00 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: D1 01 00 41 6A 00 7C [15:41:11]Write to MH i2c: 01 00 00 42 6A AC [15:41:11]Write i2c OK [15:41:11]MH_I2C_Read... [15:41:11]OFD Sender: No OFD packet to send [15:41:11]*** Cut start [15:41:11]*** Partial cut [15:41:11]*** CUTSNS_PIN = 1 [15:41:11]*** CUTSNS_PIN = 0 [15:41:12]*** Brake cut motor [15:41:12]Read from MH i2c: 01 [15:41:12]MH_I2C_Read... [15:41:12]*** Stop cut motor [15:41:12]*** Cut end [15:41:12]Read from MH i2c: 01 07 00 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: 01 07 00 42 6A 00 00 00 00 00 FF 0F C1 [15:41:12]process_action close_receipt done [15:41:12]requested_data is exist [15:41:12]produce_requested_data [15:41:12]requested_item fm.sn is exist - process it [15:41:12]wFMCommunicate request_size=4 [15:41:12]MH_SAM_APDU [15:41:12]CAPDU: 80 11 00 00 [15:41:12]Write to MH i2c: E2 08 00 43 6A 80 11 00 00 00 00 00 00 27 [15:41:12]Write i2c OK [15:41:12]MH_I2C_Read... [15:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:12]Read from MH i2c: E2 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 17 00 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 17 00 43 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 82 [15:41:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:41:12]wFMCommunicate OK [15:41:12]requested_item fd.num is exist - process it [15:41:12]SAM_PROTO_GetFieldsCounters [15:41:12]wFMCommunicate request_size=4 [15:41:12]MH_SAM_APDU [15:41:12]CAPDU: 80 13 00 00 [15:41:12]Write to MH i2c: E2 08 00 44 6A 80 13 00 00 00 00 00 00 2A [15:41:12]Write i2c OK [15:41:12]MH_I2C_Read... [15:41:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:12]Read from MH i2c: E2 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 62 00 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 62 00 44 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E1 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [15:41:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E1 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:12]wFMCommunicate OK [15:41:12]SAM_PROTO_GetFieldsCounters done [15:41:12]requested_item shift.num is exist - process it [15:41:12]requested_item shift.opened is exist - process it [15:41:12]req_shift_opened [15:41:12]FM_GetShiftState [15:41:12]SAM_PROTO_GetShiftState [15:41:12]wFMCommunicate request_size=4 [15:41:12]MH_SAM_APDU [15:41:12]CAPDU: 80 13 01 00 [15:41:12]Write to MH i2c: E2 08 00 45 6A 80 13 01 00 00 00 00 00 2C [15:41:12]Write i2c OK [15:41:12]MH_I2C_Read... [15:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:12]Read from MH i2c: E2 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 0E 00 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 0E 00 45 6A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 65 [15:41:12]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:41:12]wFMCommunicate OK [15:41:12]SAM_PROTO_GetShiftState done [15:41:12]FM_GetShiftState done [15:41:12]req_shift_opened done [15:41:12]requested_item shift.open_date is exist - process it [15:41:12]req_shift_open_date [15:41:12]req_shift_open_date done [15:41:12]produce_requested_data done [15:41:12]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":140001,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [15:41:12]process_action_free close_receipt [15:41:12]json_value_free [15:41:12]json_value_free done [15:41:12]process_json_proto returns [15:41:12]Send response to host [15:41:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":140001,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [15:41:12]free response buf [15:41:12]execute_script done [15:41:12]execute_script returns [15:41:12]free content buf [15:41:12]Sock 7.Close socket [15:41:12]Sock 7.Thread stoped [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:42:01]OFD Sender: No OFD packet to send [15:42:06]OFD Sender: No OFD packet to send [15:42:11]OFD Sender: No OFD packet to send [15:42:16]OFD Sender: No OFD packet to send [15:42:21]OFD Sender: No OFD packet to send [15:42:26]OFD Sender: No OFD packet to send [15:42:31]OFD Sender: No OFD packet to send [15:42:36]OFD Sender: No OFD packet to send [15:42:41]OFD Sender: No OFD packet to send [15:42:46]OFD Sender: No OFD packet to send [15:42:51]OFD Sender: No OFD packet to send [15:42:56]OFD Sender: No OFD packet to send [15:43:01]OFD Sender: No OFD packet to send [15:43:06]OFD Sender: No OFD packet to send [15:43:11]OFD Sender: No OFD packet to send [15:43:16]OFD Sender: No OFD packet to send [15:43:21]OFD Sender: No OFD packet to send [15:43:26]OFD Sender: No OFD packet to send [15:43:31]OFD Sender: No OFD packet to send [15:43:36]OFD Sender: No OFD packet to send [15:43:41]OFD Sender: No OFD packet to send [15:43:46]OFD Sender: No OFD packet to send [15:43:51]OFD Sender: No OFD packet to send [15:43:56]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:48:01]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:17]OFD Sender: No OFD packet to send [15:51:22]OFD Sender: No OFD packet to send [15:51:27]OFD Sender: No OFD packet to send [15:51:32]OFD Sender: No OFD packet to send [15:51:37]OFD Sender: No OFD packet to send [15:51:42]OFD Sender: No OFD packet to send [15:51:47]OFD Sender: No OFD packet to send [15:51:52]OFD Sender: No OFD packet to send [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:07]OFD Sender: No OFD packet to send [15:52:12]OFD Sender: No OFD packet to send [15:52:17]OFD Sender: No OFD packet to send [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:47]OFD Sender: No OFD packet to send [15:52:52]OFD Sender: No OFD packet to send [15:52:57]OFD Sender: No OFD packet to send [15:53:02]OFD Sender: No OFD packet to send [15:53:07]OFD Sender: No OFD packet to send [15:53:12]OFD Sender: No OFD packet to send [15:53:17]OFD Sender: No OFD packet to send [15:53:22]OFD Sender: No OFD packet to send [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:22]accept exits with 9 [15:55:22]New connection [15:55:22]New thread 3066654052 created [15:55:22]Thread 3066510692 joined [15:55:22]Waiting for new connection... [15:55:22] Sock 9.Parse request [15:55:22]Sock 9.Check first char [15:55:22]Sock 9.First char is OK [15:55:22]request: POST /json_proto HTTP/1.0 [15:55:22]Method: POST [15:55:22]URL: /json_proto [15:55:22]Method is POST - this is cgi request [15:55:22]url: /json_proto [15:55:22]query_string will be loaded in cgi processing [15:55:22]execute_cgi json_proto POST (null) [15:55:22]execute_cgi path=json_proto method=POST [15:55:22]POST find Content-Length [15:55:22]Host: 172.17.50.196:8080 [15:55:22]Content-Length: 650 [15:55:22]Content-Type: application/json [15:55:22] [15:55:22]POST finish read [15:55:22]Found Content-Length = 650 [15:55:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335812", "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" : 3.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:22]execute_script... [15: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)335812", "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" : 3.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:22]POST & json_proto [15:55:22]process_json_proto [15:55:22]json parsed OK: [15:55:22]protocol is kg_v1.0 [15:55:22]action value=close_receipt [15:55:22]process_action close_receipt [15:55:22]cmd_close_receipt [15:55:22]MH_GetDate [15:55:22]Write to MH i2c: F0 00 00 46 6A 9F [15:55:22]Write i2c OK [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: F0 [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: F0 09 00 [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: F0 09 00 46 6A 00 F1 F9 24 67 72 0D 1C 67 1F [15:55:22]GetLastDocTimeStamp 1730475675 [15:55:22]current date 1730476529 [15:55:22]FM_GetShiftState [15:55:22]SAM_PROTO_GetShiftState [15:55:22]wFMCommunicate request_size=4 [15:55:22]MH_SAM_APDU [15:55:22]CAPDU: 80 13 01 00 [15:55:22]Write to MH i2c: E2 08 00 47 6A 80 13 01 00 00 00 00 00 2E [15:55:22]Write i2c OK [15:55:22]MH_I2C_Read... [15:55:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:22]Read from MH i2c: E2 [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: E2 0E 00 [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: E2 0E 00 47 6A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 67 [15:55:22]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:55:22]wFMCommunicate OK [15:55:22]SAM_PROTO_GetShiftState done [15:55:22]FM_GetShiftState done [15:55:22]opened in 1730419081 [15:55:22]opened+sec_in_day 1730505481 [15:55:22]quantity*price = 18000 [15:55:22]sum+1 = 18001 [15:55:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 183 01.11.2024 15:55 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 140002 ФПД: 105813573807387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T155529&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140002&fm=105813573807387&tin=02508201610067®Number=0000000000091631&sum=18000 0 [15:55:23]StoreToDocumentArchive [15:55:23]shift 558 fd 140002 [15:55:23]save to /storage/0558/doc_00140002 [15:55:23]save last doc name /storage/0558/doc_00140002 to /storage/kkm_last_doc_name [15:55:23]save OK [15:55:23]Clear old archive folders... [15:55:23]ProcessDocumentItem done err = 0, tmpTLVsize=279 [15:55:23]tlvbuf is 00BA78B0 [15:55:23]SAM_PROTO_ClearQueue [15:55:23]wFMCommunicate request_size=4 [15:55:23]MH_SAM_APDU [15:55:23]CAPDU: 80 09 00 00 [15:55:23]Write to MH i2c: E2 08 00 54 6A 80 09 00 00 00 00 00 00 30 [15:55:23]Write i2c OK [15:55:23]MH_I2C_Read... [15:55:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:23]Read from MH i2c: E2 [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: E2 03 00 [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: E2 03 00 54 6A 00 90 00 32 [15:55:23]RAPDU: 90 00 [15:55:23]wFMCommunicate OK [15:55:23]SAM_PROTO_ClearQueue done [15:55:23]KKMCreateOFDPacket [15:55:23]OFDProtocolAddRootSTLVToBuf [15:55:23]FM_MakeSignedData [15:55:23]FM_MakeSignedData [15:55:23]SAM_PROTO_SignData [15:55:23]wFMCommunicate request_size=4 [15:55:23]MH_SAM_APDU [15:55:23]CAPDU: 80 0D 01 02 [15:55:23]Write to MH i2c: E2 08 00 55 6A 80 0D 01 02 00 00 00 00 38 [15:55:23]Write i2c OK [15:55:23]MH_I2C_Read... [15:55:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:24]Read from MH i2c: E2 [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: E2 03 00 [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: E2 03 00 55 6A 00 90 00 33 [15:55:24]RAPDU: 90 00 [15:55:24]wFMCommunicate OK [15:55:24]wFMCommunicate request_size=255 [15:55:24]MH_SAM_APDU [15:55:24]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 F1 F9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 [15:55:24]Write to MH i2c: E2 02 01 56 6A 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 F1 F9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 00 00 C4 [15:55:24]Write i2c OK [15:55:24]MH_I2C_Read... [15:55:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:24]Read from MH i2c: E2 [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: E2 03 00 [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: E2 03 00 56 6A 00 90 00 34 [15:55:24]RAPDU: 90 00 [15:55:24]wFMCommunicate OK [15:55:24]wFMCommunicate request_size=38 [15:55:24]MH_SAM_APDU [15:55:24]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E2 22 02 00 35 04 06 00 60 3C A4 7A AD 1B [15:55:24]Write to MH i2c: E2 29 00 57 6A 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E2 22 02 00 35 04 06 00 60 3C A4 7A AD 1B 00 00 54 [15:55:24]Write i2c OK [15:55:24]MH_I2C_Read... [15:55:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:24]Read from MH i2c: E2 [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: E2 03 00 [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: E2 03 00 57 6A 00 90 00 35 [15:55:24]RAPDU: 90 00 [15:55:24]wFMCommunicate OK [15:55:24]wFMCommunicate request_size=4 [15:55:24]MH_SAM_APDU [15:55:24]CAPDU: 80 0D 03 02 [15:55:24]Write to MH i2c: E2 08 00 58 6A 80 0D 03 02 00 00 00 00 3D [15:55:24]Write i2c OK [15:55:24]MH_I2C_Read... [15:55:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:24]Read from MH i2c: E2 [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: E2 0B 00 [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: E2 0B 00 58 6A 00 F0 EB 32 13 55 65 7D 8C 90 00 21 [15:55:24]RAPDU: F0 EB 32 13 55 65 7D 8C 90 00 [15:55:24]wFMCommunicate OK [15:55:24]SAM_PROTO_SignData done [15:55:24]FM_MakeSignedData done [15:55:24]CreateOFDProtocolMessage [15:55:24]wFMCommunicate request_size=4 [15:55:24]MH_SAM_APDU [15:55:24]CAPDU: 80 11 00 00 [15:55:24]Write to MH i2c: E2 08 00 59 6A 80 11 00 00 00 00 00 00 3D [15:55:24]Write i2c OK [15:55:24]MH_I2C_Read... [15:55:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:24]Read from MH i2c: E2 [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: E2 17 00 [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: E2 17 00 59 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 98 [15:55:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:55:24]wFMCommunicate OK [15:55:24]CreateOFDProtocolMessage done [15:55:24]OFDSenderStorePacket 140002 [15:55:24]StoreOFDPacket docnum=140002 [15:55:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2B 01 00 00 94 77 23 01 19 6C 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 F1 F9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E2 22 02 00 35 04 06 00 60 3C A4 7A AD 1B F0 EB 32 13 55 65 7D 8C [15:55:24]CheckFolder [15:55:24]dirname=/storage/ofd_packets [15:55:24]CheckFolder done [15:55:24]ProducePacketName [15:55:24]name=ofd_packets/00140002 [15:55:24]NVStorageSaveData ofd_packets/00140002 [15:55:24]File name is /storage/ofd_packets/00140002 [15:55:24]Write 329 bytes [15:55:24]NVStorageSaveData done [15:55:24]OFDSenderStorePacket done [15:55:24]KKMCreateOFDPacket done [15:55:24]NVStorageSaveData kkm_last_timestamp [15:55:24]File name is /storage/kkm_last_timestamp [15:55:24]Write 4 bytes [15:55:24]NVStorageSaveData done [15:55:24]ExternCall_PrintAddStr [15:55:24]wPrintStart [15:55:24]Write to MH i2c: 01 00 00 5A 6A C4 [15:55:24]Write i2c OK [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: 01 [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: 01 07 00 [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: 01 07 00 5A 6A 00 00 00 00 00 FF 0F D9 [15:55:24]RasterBufferAndPrint [15:55:24]line Счет N : (3)335812 [15:55:24]line ИНН: 02508201610067 [15:55:24]line Контрольно-Кассовый Чек [15:55:24]line ПРОДАЖА [15:55:24]line Товар: 2000032780025 [15:55:24]line Сосиска в тесте DC 110г [15:55:24]line 3.000 * 60.00 [15:55:24]line = 180.00 [15:55:24]line НДС 12% НСП 1% [15:55:24]line > о реализуемом товаре [15:55:24]line ИТОГО: 180.00 [15:55:24]line НСП 1% : 1.59 [15:55:24]line НДС 12% : 19.11 [15:55:24]line Наличными: 180.00 [15:55:24]line Безнал.: 0.00 [15:55:24]line Место: АЗС № 101 "Партнер Нефть" [15:55:24]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:55:24]line СНО: Общий режим [15:55:24]line Чек 183 01.11.2024 15:55 [15:55:24]line Смена: 558 ФФД: 1.0 [15:55:24]line ЗНМ: 0300000081 [15:55:24]line РНМ: 0000000000091631 [15:55:24]line Версия ККМ: 001 [15:55:24]line ФМ: 0000000000874669 [15:55:24]line ФД: 140002 [15:55:24]line ФПД: 105813573807387 [15:55:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T155529&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140002&fm=105813573807387&tin=02508201610067®Number=0000000000091631&sum=18000 [15:55:24]line 0 [15:55:24]OFD Sender: Processing packet 140002 [packets to send 34, broken 33] [15:55:24]ProducePacketName [15:55:24]name=ofd_packets/00140002 [15:55:24]OFD Sender: To server: pG, [15:55:24]CommunicateWithHost lk.salyk.kg:30040 [15:55:24]ConnectInit lk.salyk.kg [15:55:24]written 0, free lines is 4095 [15:55:24]Connected sock=10 [15: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 34 36 36 39 2B 01 00 00 94 77 23 01 19 6C 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 F1 F9 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E2 22 02 00 35 04 06 00 60 3C A4 7A AD 1B F0 EB 32 13 55 65 7D 8C [15:55:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 9C C1 47 00 0B FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E2 22 02 00 F4 03 04 00 9B A5 24 67 B6 04 01 00 00 DF D2 2C 3C 7B 96 58 40 [15:55:25]CommunicateWithHost err = 0 [15:55:25]CheckOFDResponse [15:55:25]1017 (14) - 77093643461234 [15:55:25]1041 (16) - 0000000000874669 [15:55:25]1040 (4) - 140002 [15:55:25]1012 (4) - 01.11.2024 09:55 [15:55:25]1206 (1) - 0 [15:55:25]OFD Sender: Remove packet 140002 [15:55:25]ProducePacketName [15:55:25]name=ofd_packets/00140002 [15:55:25]NVStorageDeleteData [15:55:25]Write to MH i2c: 01 00 00 82 6A EC [15:55:25]Write i2c OK [15:55:25]MH_I2C_Read... [15:55:25]Read from MH i2c: 01 [15:55:25]MH_I2C_Read... [15:55:25]Read from MH i2c: 01 07 00 [15:55:25]MH_I2C_Read... [15:55:25]Read from MH i2c: 01 07 00 82 6A 00 00 00 00 00 0C 0D 0C [15:55:25]RasterBufferAndPrint [15:55:25]line [15:55:25]line [15:55:25]line [15:55:25]line [15:55:25]line [15:55:25]written 0, free lines is 3346 [15:55:25]MH_Cut [15:55:25]Write to MH i2c: D1 01 00 89 6A 01 C5 [15:55:25]Write i2c OK [15:55:25]MH_I2C_Read... [15:55:25]Read from MH i2c: D1 [15:55:25]MH_I2C_Read... [15:55:25]Read from MH i2c: D1 01 00 [15:55:25]MH_I2C_Read... [15:55:25]Read from MH i2c: D1 01 00 89 6A 00 C4 [15:55:25]Write to MH i2c: 01 00 00 8A 6A F4 [15:55:25]Write i2c OK [15:55:25]MH_I2C_Read... [15:55:25]OFD Sender: No OFD packet to send [15:55:25]*** Cut start [15:55:25]*** Partial cut [15:55:25]*** CUTSNS_PIN = 1 [15:55:25]*** CUTSNS_PIN = 0 [15:55:26]*** Brake cut motor [15:55:26]Read from MH i2c: 01 [15:55:26]MH_I2C_Read... [15:55:26]*** Stop cut motor [15:55:26]*** Cut end [15:55:26]Read from MH i2c: 01 07 00 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: 01 07 00 8A 6A 00 00 00 00 00 FF 0F 09 [15:55:26]process_action close_receipt done [15:55:26]requested_data is exist [15:55:26]produce_requested_data [15:55:26]requested_item fm.sn is exist - process it [15:55:26]wFMCommunicate request_size=4 [15:55:26]MH_SAM_APDU [15:55:26]CAPDU: 80 11 00 00 [15:55:26]Write to MH i2c: E2 08 00 8B 6A 80 11 00 00 00 00 00 00 6F [15:55:26]Write i2c OK [15:55:26]MH_I2C_Read... [15:55:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:26]Read from MH i2c: E2 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: E2 17 00 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: E2 17 00 8B 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CA [15:55:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:55:26]wFMCommunicate OK [15:55:26]requested_item fd.num is exist - process it [15:55:26]SAM_PROTO_GetFieldsCounters [15:55:26]wFMCommunicate request_size=4 [15:55:26]MH_SAM_APDU [15:55:26]CAPDU: 80 13 00 00 [15:55:26]Write to MH i2c: E2 08 00 8C 6A 80 13 00 00 00 00 00 00 72 [15:55:26]Write i2c OK [15:55:26]MH_I2C_Read... [15:55:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:26]Read from MH i2c: E2 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: E2 62 00 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: E2 62 00 8C 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E2 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [15: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 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E2 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:55:26]wFMCommunicate OK [15:55:26]SAM_PROTO_GetFieldsCounters done [15:55:26]requested_item shift.num is exist - process it [15:55:26]requested_item shift.opened is exist - process it [15:55:26]req_shift_opened [15:55:26]FM_GetShiftState [15:55:26]SAM_PROTO_GetShiftState [15:55:26]wFMCommunicate request_size=4 [15:55:26]MH_SAM_APDU [15:55:26]CAPDU: 80 13 01 00 [15:55:26]Write to MH i2c: E2 08 00 8D 6A 80 13 01 00 00 00 00 00 74 [15:55:26]Write i2c OK [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: E2 [15:55:26]MH_I2C_Read... [15:55:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:26]Read from MH i2c: E2 0E 00 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: E2 0E 00 8D 6A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 AD [15:55:26]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [15:55:26]wFMCommunicate OK [15:55:26]SAM_PROTO_GetShiftState done [15:55:26]FM_GetShiftState done [15:55:26]req_shift_opened done [15:55:26]requested_item shift.open_date is exist - process it [15:55:26]req_shift_open_date [15:55:26]req_shift_open_date done [15:55:26]produce_requested_data done [15:55:26]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":140002,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [15:55:26]process_action_free close_receipt [15:55:26]json_value_free [15:55:26]json_value_free done [15:55:26]process_json_proto returns [15:55:26]Send response to host [15:55:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":140002,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [15:55:26]free response buf [15:55:26]execute_script done [15:55:26]execute_script returns [15:55:26]free content buf [15:55:26]Sock 9.Close socket [15:55:26]Sock 9.Thread stoped [15:55:30]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:55]OFD Sender: No OFD packet to send [15:56:00]OFD Sender: No OFD packet to send [15:56:05]OFD Sender: No OFD packet to send [15:56:10]OFD Sender: No OFD packet to send [15:56:15]OFD Sender: No OFD packet to send [15:56:20]OFD Sender: No OFD packet to send [15:56:25]OFD Sender: No OFD packet to send [15:56:30]OFD Sender: No OFD packet to send [15:56:35]OFD Sender: No OFD packet to send [15:56:40]OFD Sender: No OFD packet to send [15:56:45]OFD Sender: No OFD packet to send [15:56:50]OFD Sender: No OFD packet to send [15:56:55]OFD Sender: No OFD packet to send [15:57:00]OFD Sender: No OFD packet to send [15:57:05]OFD Sender: No OFD packet to send [15:57:10]OFD Sender: No OFD packet to send [15:57:15]OFD Sender: No OFD packet to send [15:57:20]OFD Sender: No OFD packet to send [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:45]OFD Sender: No OFD packet to send [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:35]OFD Sender: No OFD packet to send [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:50]OFD Sender: No OFD packet to send [15:58:55]OFD Sender: No OFD packet to send [15:59:00]OFD Sender: No OFD packet to send [15:59:05]OFD Sender: No OFD packet to send [15:59:10]OFD Sender: No OFD packet to send [15:59:15]OFD Sender: No OFD packet to send [15:59:20]OFD Sender: No OFD packet to send [15:59:25]OFD Sender: No OFD packet to send [15:59:30]OFD Sender: No OFD packet to send [15:59:35]OFD Sender: No OFD packet to send [15:59:40]OFD Sender: No OFD packet to send [15:59:45]OFD Sender: No OFD packet to send [15:59:50]OFD Sender: No OFD packet to send [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:35]OFD Sender: No OFD packet to send [16:00:40]OFD Sender: No OFD packet to send [16:00:45]OFD Sender: No OFD packet to send [16:00:50]OFD Sender: No OFD packet to send [16:00:55]OFD Sender: No OFD packet to send [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:20]OFD Sender: No OFD packet to send [16:01:25]OFD Sender: No OFD packet to send [16:01:30]OFD Sender: No OFD packet to send [16:01:35]OFD Sender: No OFD packet to send [16:01:40]OFD Sender: No OFD packet to send [16:01:45]OFD Sender: No OFD packet to send [16:01:50]OFD Sender: No OFD packet to send [16:01:55]OFD Sender: No OFD packet to send [16:02:00]OFD Sender: No OFD packet to send [16:02:05]OFD Sender: No OFD packet to send [16:02:10]OFD Sender: No OFD packet to send [16:02:15]OFD Sender: No OFD packet to send [16:02:20]OFD Sender: No OFD packet to send [16:02:25]OFD Sender: No OFD packet to send [16:02:30]OFD Sender: No OFD packet to send [16:02:35]OFD Sender: No OFD packet to send [16:02:41]OFD Sender: No OFD packet to send [16:02:46]OFD Sender: No OFD packet to send [16:02:51]OFD Sender: No OFD packet to send [16:02:56]OFD Sender: No OFD packet to send [16:03:01]OFD Sender: No OFD packet to send [16:03:06]OFD Sender: No OFD packet to send [16:03:11]OFD Sender: No OFD packet to send [16:03:16]OFD Sender: No OFD packet to send [16:03:21]OFD Sender: No OFD packet to send [16:03:26]OFD Sender: No OFD packet to send [16:03:31]OFD Sender: No OFD packet to send [16:03:36]OFD Sender: No OFD packet to send [16:03:41]OFD Sender: No OFD packet to send [16:03:46]OFD Sender: No OFD packet to send [16:03:51]OFD Sender: No OFD packet to send [16:03:56]OFD Sender: No OFD packet to send [16:04:01]OFD Sender: No OFD packet to send [16:04:06]OFD Sender: No OFD packet to send [16:04:11]OFD Sender: No OFD packet to send [16:04:16]OFD Sender: No OFD packet to send [16:04:21]OFD Sender: No OFD packet to send [16:04:26]OFD Sender: No OFD packet to send [16:04:31]OFD Sender: No OFD packet to send [16:04:36]OFD Sender: No OFD packet to send [16:04:41]OFD Sender: No OFD packet to send [16:04:46]OFD Sender: No OFD packet to send [16:04:51]OFD Sender: No OFD packet to send [16:04:56]OFD Sender: No OFD packet to send [16:05:01]OFD Sender: No OFD packet to send [16:05:06]OFD Sender: No OFD packet to send [16:05:11]OFD Sender: No OFD packet to send [16:05:16]OFD Sender: No OFD packet to send [16:05:21]OFD Sender: No OFD packet to send [16:05:26]OFD Sender: No OFD packet to send [16:05:31]OFD Sender: No OFD packet to send [16:05:36]OFD Sender: No OFD packet to send [16:05:41]OFD Sender: No OFD packet to send [16:05:46]OFD Sender: No OFD packet to send [16:05:51]OFD Sender: No OFD packet to send [16:05:56]OFD Sender: No OFD packet to send [16:06:01]OFD Sender: No OFD packet to send [16:06:06]OFD Sender: No OFD packet to send [16:06:11]OFD Sender: No OFD packet to send [16:06:16]OFD Sender: No OFD packet to send [16:06:21]OFD Sender: No OFD packet to send [16:06:26]OFD Sender: No OFD packet to send [16:06:31]OFD Sender: No OFD packet to send [16:06:36]OFD Sender: No OFD packet to send [16:06:41]OFD Sender: No OFD packet to send [16:06:46]OFD Sender: No OFD packet to send [16:06:51]OFD Sender: No OFD packet to send [16:06:56]OFD Sender: No OFD packet to send [16:07:01]OFD Sender: No OFD packet to send [16:07:06]OFD Sender: No OFD packet to send [16:07:11]OFD Sender: No OFD packet to send [16:07:16]OFD Sender: No OFD packet to send [16:07:21]OFD Sender: No OFD packet to send [16:07:26]OFD Sender: No OFD packet to send [16:07:31]OFD Sender: No OFD packet to send [16:07:36]OFD Sender: No OFD packet to send [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:19]accept exits with 7 [16:08:19]New connection [16:08:19]New thread 3066510692 created [16:08:19]Thread 3066654052 joined [16:08:19]Waiting for new connection... [16:08:19] Sock 7.Parse request [16:08:19]Sock 7.Check first char [16:08:19]Sock 7.First char is OK [16:08:19]request: POST /json_proto HTTP/1.0 [16:08:19]Method: POST [16:08:19]URL: /json_proto [16:08:19]Method is POST - this is cgi request [16:08:19]url: /json_proto [16:08:19]query_string will be loaded in cgi processing [16:08:19]execute_cgi json_proto POST (null) [16:08:19]execute_cgi path=json_proto method=POST [16:08:19]POST find Content-Length [16:08:19]Host: 172.17.50.196:8080 [16:08:19]Content-Length: 658 [16:08:19]Content-Type: application/json [16:08:19] [16:08:19]POST finish read [16:08:19]Found Content-Length = 658 [16:08:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335813", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 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" ] } } [16:08:19]execute_script... [16:08:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335813", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 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" ] } } [16:08:19]POST & json_proto [16:08:19]process_json_proto [16:08:19]json parsed OK: [16:08:19]protocol is kg_v1.0 [16:08:19]action value=close_receipt [16:08:19]process_action close_receipt [16:08:19]cmd_close_receipt [16:08:19]MH_GetDate [16:08:19]Write to MH i2c: F0 00 00 8E 6A E7 [16:08:19]Write i2c OK [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: F0 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: F0 09 00 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: F0 09 00 8E 6A 00 FA FC 24 67 72 0D 1C 67 73 [16:08:19]GetLastDocTimeStamp 1730476529 [16:08:19]current date 1730477306 [16:08:19]FM_GetShiftState [16:08:19]SAM_PROTO_GetShiftState [16:08:19]wFMCommunicate request_size=4 [16:08:19]MH_SAM_APDU [16:08:19]CAPDU: 80 13 01 00 [16:08:19]Write to MH i2c: E2 08 00 8F 6A 80 13 01 00 00 00 00 00 76 [16:08:19]Write i2c OK [16:08:19]MH_I2C_Read... [16:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:19]Read from MH i2c: E2 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: E2 0E 00 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: E2 0E 00 8F 6A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 AF [16:08:19]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:08:19]wFMCommunicate OK [16:08:19]SAM_PROTO_GetShiftState done [16:08:19]FM_GetShiftState done [16:08:19]opened in 1730419081 [16:08:19]opened+sec_in_day 1730505481 [16:08:19]quantity*price = 8500 [16:08:19]sum+1 = 8501 [16:08:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 184 01.11.2024 16:08 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 140003 ФПД: 47192997923248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T160826&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140003&fm=47192997923248&tin=02508201610067®Number=0000000000091631&sum=8500 0 [16:08:20]StoreToDocumentArchive [16:08:20]shift 558 fd 140003 [16:08:20]save to /storage/0558/doc_00140003 [16:08:20]save last doc name /storage/0558/doc_00140003 to /storage/kkm_last_doc_name [16:08:20]save OK [16:08:20]Clear old archive folders... [16:08:20]ProcessDocumentItem done err = 0, tmpTLVsize=281 [16:08:20]tlvbuf is 00BE2DA0 [16:08:20]SAM_PROTO_ClearQueue [16:08:20]wFMCommunicate request_size=4 [16:08:20]MH_SAM_APDU [16:08:20]CAPDU: 80 09 00 00 [16:08:20]Write to MH i2c: E2 08 00 9C 6A 80 09 00 00 00 00 00 00 78 [16:08:20]Write i2c OK [16:08:20]MH_I2C_Read... [16:08:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:20]Read from MH i2c: E2 [16:08:20]MH_I2C_Read... [16:08:20]Read from MH i2c: E2 03 00 [16:08:20]MH_I2C_Read... [16:08:20]Read from MH i2c: E2 03 00 9C 6A 00 90 00 7A [16:08:20]RAPDU: 90 00 [16:08:20]wFMCommunicate OK [16:08:20]SAM_PROTO_ClearQueue done [16:08:20]KKMCreateOFDPacket [16:08:20]OFDProtocolAddRootSTLVToBuf [16:08:20]FM_MakeSignedData [16:08:20]FM_MakeSignedData [16:08:20]SAM_PROTO_SignData [16:08:20]wFMCommunicate request_size=4 [16:08:20]MH_SAM_APDU [16:08:20]CAPDU: 80 0D 01 02 [16:08:20]Write to MH i2c: E2 08 00 9D 6A 80 0D 01 02 00 00 00 00 80 [16:08:20]Write i2c OK [16:08:20]MH_I2C_Read... [16:08:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:20]Read from MH i2c: E2 [16:08:20]MH_I2C_Read... [16:08:20]Read from MH i2c: E2 03 00 [16:08:20]MH_I2C_Read... [16:08:20]Read from MH i2c: E2 03 00 9D 6A 00 90 00 7B [16:08:20]RAPDU: 90 00 [16:08:20]wFMCommunicate OK [16:08:20]wFMCommunicate request_size=255 [16:08:20]MH_SAM_APDU [16:08:20]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 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 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 B8 00 00 00 F4 03 04 00 FA FC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 [16:08:20]Write to MH i2c: E2 02 01 9E 6A 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 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 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 B8 00 00 00 F4 03 04 00 FA FC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 00 44 [16:08:21]Write i2c OK [16:08:21]MH_I2C_Read... [16:08:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:21]Read from MH i2c: E2 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: E2 03 00 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: E2 03 00 9E 6A 00 90 00 7C [16:08:21]RAPDU: 90 00 [16:08:21]wFMCommunicate OK [16:08:21]wFMCommunicate request_size=40 [16:08:21]MH_SAM_APDU [16:08:21]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E3 22 02 00 35 04 06 00 2A EB F9 E0 89 B0 [16:08:21]Write to MH i2c: E2 2B 00 9F 6A 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E3 22 02 00 35 04 06 00 2A EB F9 E0 89 B0 00 00 76 [16:08:21]Write i2c OK [16:08:21]MH_I2C_Read... [16:08:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:21]Read from MH i2c: E2 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: E2 03 00 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: E2 03 00 9F 6A 00 90 00 7D [16:08:21]RAPDU: 90 00 [16:08:21]wFMCommunicate OK [16:08:21]wFMCommunicate request_size=4 [16:08:21]MH_SAM_APDU [16:08:21]CAPDU: 80 0D 03 02 [16:08:21]Write to MH i2c: E2 08 00 A0 6A 80 0D 03 02 00 00 00 00 85 [16:08:21]OFD Sender: No OFD packet to send [16:08:21]Write i2c OK [16:08:21]MH_I2C_Read... [16:08:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:21]Read from MH i2c: E2 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: E2 0B 00 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: E2 0B 00 A0 6A 00 CC 25 AD 20 8D 8F 6D B1 90 00 7E [16:08:21]RAPDU: CC 25 AD 20 8D 8F 6D B1 90 00 [16:08:21]wFMCommunicate OK [16:08:21]SAM_PROTO_SignData done [16:08:21]FM_MakeSignedData done [16:08:21]CreateOFDProtocolMessage [16:08:21]wFMCommunicate request_size=4 [16:08:21]MH_SAM_APDU [16:08:21]CAPDU: 80 11 00 00 [16:08:21]Write to MH i2c: E2 08 00 A1 6A 80 11 00 00 00 00 00 00 85 [16:08:21]Write i2c OK [16:08:21]MH_I2C_Read... [16:08:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:21]Read from MH i2c: E2 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: E2 17 00 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: E2 17 00 A1 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E0 [16:08:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:08:21]wFMCommunicate OK [16:08:21]CreateOFDProtocolMessage done [16:08:21]OFDSenderStorePacket 140003 [16:08:21]StoreOFDPacket docnum=140003 [16:08:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2D 01 00 00 75 27 25 01 DF 18 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 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 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 B8 00 00 00 F4 03 04 00 FA FC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E3 22 02 00 35 04 06 00 2A EB F9 E0 89 B0 CC 25 AD 20 8D 8F 6D B1 [16:08:21]CheckFolder [16:08:21]dirname=/storage/ofd_packets [16:08:21]CheckFolder done [16:08:21]ProducePacketName [16:08:21]name=ofd_packets/00140003 [16:08:21]NVStorageSaveData ofd_packets/00140003 [16:08:21]File name is /storage/ofd_packets/00140003 [16:08:21]Write 331 bytes [16:08:21]NVStorageSaveData done [16:08:21]OFDSenderStorePacket done [16:08:21]KKMCreateOFDPacket done [16:08:21]NVStorageSaveData kkm_last_timestamp [16:08:21]File name is /storage/kkm_last_timestamp [16:08:21]Write 4 bytes [16:08:21]NVStorageSaveData done [16:08:21]OFD Sender: Processing packet 140003 [packets to send 34, broken 33] [16:08:21]ProducePacketName [16:08:21]name=ofd_packets/00140003 [16:08:21]OFD Sender: To server: pG, [16:08:21]CommunicateWithHost lk.salyk.kg:30040 [16:08:21]ConnectInit lk.salyk.kg [16:08:21]ExternCall_PrintAddStr [16:08:21]wPrintStart [16:08:21]Write to MH i2c: 01 00 00 A2 6A 0C [16:08:21]Write i2c OK [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: 01 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: 01 07 00 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: 01 07 00 A2 6A 00 00 00 00 00 FF 0F 21 [16:08:21]RasterBufferAndPrint [16:08:21]line Счет N : (3)335813 [16:08:21]line ИНН: 02508201610067 [16:08:21]line Контрольно-Кассовый Чек [16:08:21]line ПРОДАЖА [16:08:21]line Товар: 5449000000996 [16:08:21]line Напиток Кока-Кола 0,33л [16:08:21]line 1.000 * 85.00 [16:08:21]line = 85.00 [16:08:21]line НДС 12% НСП 1% [16:08:21]line > о реализуемом товаре [16:08:21]line ИТОГО: 85.00 [16:08:21]line НСП 1% : 0.75 [16:08:21]line НДС 12% : 9.03 [16:08:21]line Наличными: 85.00 [16:08:21]line Безнал.: 0.00 [16:08:21]line Место: АЗС № 101 "Партнер Нефть" [16:08:21]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:08:21]line СНО: Общий режим [16:08:21]line Чек 184 01.11.2024 16:08 [16:08:21]line Смена: 558 ФФД: 1.0 [16:08:21]line ЗНМ: 0300000081 [16:08:21]line РНМ: 0000000000091631 [16:08:21]line Версия ККМ: 001 [16:08:21]line ФМ: 0000000000874669 [16:08:21]line ФД: 140003 [16:08:21]line ФПД: 47192997923248 [16:08:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T160826&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140003&fm=47192997923248&tin=02508201610067®Number=0000000000091631&sum=8500 [16:08:21]line 0 [16:08:21]Connected sock=11 [16:08:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2D 01 00 00 75 27 25 01 DF 18 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 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 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 B8 00 00 00 F4 03 04 00 FA FC 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E3 22 02 00 35 04 06 00 2A EB F9 E0 89 B0 CC 25 AD 20 8D 8F 6D B1 [16:08:21]written 0, free lines is 4095 [16:08:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 A8 BB 47 00 B0 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E3 22 02 00 F4 03 04 00 A4 A8 24 67 B6 04 01 00 00 57 C6 87 81 7D A4 BE C9 [16:08:21]CommunicateWithHost err = 0 [16:08:21]CheckOFDResponse [16:08:21]1017 (14) - 77093643461234 [16:08:21]1041 (16) - 0000000000874669 [16:08:21]1040 (4) - 140003 [16:08:21]1012 (4) - 01.11.2024 10:08 [16:08:21]1206 (1) - 0 [16:08:21]OFD Sender: Remove packet 140003 [16:08:21]ProducePacketName [16:08:21]name=ofd_packets/00140003 [16:08:21]NVStorageDeleteData [16:08:22]Write to MH i2c: 01 00 00 CA 6A 34 [16:08:22]Write i2c OK [16:08:22]MH_I2C_Read... [16:08:22]Read from MH i2c: 01 [16:08:22]MH_I2C_Read... [16:08:22]Read from MH i2c: 01 07 00 [16:08:22]MH_I2C_Read... [16:08:22]Read from MH i2c: 01 07 00 CA 6A 00 00 00 00 00 0C 0D 54 [16:08:22]RasterBufferAndPrint [16:08:22]line [16:08:22]line [16:08:22]line [16:08:22]line [16:08:22]line [16:08:22]written 0, free lines is 3346 [16:08:22]MH_Cut [16:08:22]Write to MH i2c: D1 01 00 D1 6A 01 0D [16:08:22]Write i2c OK [16:08:22]MH_I2C_Read... [16:08:22]Read from MH i2c: D1 [16:08:22]MH_I2C_Read... [16:08:22]Read from MH i2c: D1 01 00 [16:08:22]MH_I2C_Read... [16:08:22]Read from MH i2c: D1 01 00 D1 6A 00 0C [16:08:22]Write to MH i2c: 01 00 00 D2 6A 3C [16:08:22]Write i2c OK [16:08:22]MH_I2C_Read... [16:08:22]OFD Sender: No OFD packet to send [16:08:22]*** Cut start [16:08:22]*** Partial cut [16:08:22]*** CUTSNS_PIN = 1 [16:08:22]*** CUTSNS_PIN = 0 [16:08:23]*** Brake cut motor [16:08:23]Read from MH i2c: 01 [16:08:23]MH_I2C_Read... [16:08:23]*** Stop cut motor [16:08:23]*** Cut end [16:08:23]Read from MH i2c: 01 07 00 [16:08:23]MH_I2C_Read... [16:08:23]Read from MH i2c: 01 07 00 D2 6A 00 00 00 00 00 FF 0F 51 [16:08:23]process_action close_receipt done [16:08:23]requested_data is exist [16:08:23]produce_requested_data [16:08:23]requested_item fm.sn is exist - process it [16:08:23]wFMCommunicate request_size=4 [16:08:23]MH_SAM_APDU [16:08:23]CAPDU: 80 11 00 00 [16:08:23]Write to MH i2c: E2 08 00 D3 6A 80 11 00 00 00 00 00 00 B7 [16:08:23]Write i2c OK [16:08:23]MH_I2C_Read... [16:08:23]Read from MH i2c: E2 [16:08:23]MH_I2C_Read... [16:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:23]Read from MH i2c: E2 17 00 [16:08:23]MH_I2C_Read... [16:08:23]Read from MH i2c: E2 17 00 D3 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 12 [16:08:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:08:23]wFMCommunicate OK [16:08:23]requested_item fd.num is exist - process it [16:08:23]SAM_PROTO_GetFieldsCounters [16:08:23]wFMCommunicate request_size=4 [16:08:23]MH_SAM_APDU [16:08:23]CAPDU: 80 13 00 00 [16:08:23]Write to MH i2c: E2 08 00 D4 6A 80 13 00 00 00 00 00 00 BA [16:08:23]Write i2c OK [16:08:23]MH_I2C_Read... [16:08:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:23]Read from MH i2c: E2 [16:08:23]MH_I2C_Read... [16:08:23]Read from MH i2c: E2 62 00 [16:08:23]MH_I2C_Read... [16:08:23]Read from MH i2c: E2 62 00 D4 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E3 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [16:08:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E3 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:23]wFMCommunicate OK [16:08:23]SAM_PROTO_GetFieldsCounters done [16:08:23]requested_item shift.num is exist - process it [16:08:23]requested_item shift.opened is exist - process it [16:08:23]req_shift_opened [16:08:23]FM_GetShiftState [16:08:23]SAM_PROTO_GetShiftState [16:08:23]wFMCommunicate request_size=4 [16:08:23]MH_SAM_APDU [16:08:23]CAPDU: 80 13 01 00 [16:08:23]Write to MH i2c: E2 08 00 D5 6A 80 13 01 00 00 00 00 00 BC [16:08:23]Write i2c OK [16:08:23]MH_I2C_Read... [16:08:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:23]Read from MH i2c: E2 [16:08:23]MH_I2C_Read... [16:08:23]Read from MH i2c: E2 0E 00 [16:08:23]MH_I2C_Read... [16:08:23]Read from MH i2c: E2 0E 00 D5 6A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 F5 [16:08:23]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:08:23]wFMCommunicate OK [16:08:23]SAM_PROTO_GetShiftState done [16:08:23]FM_GetShiftState done [16:08:23]req_shift_opened done [16:08:23]requested_item shift.open_date is exist - process it [16:08:23]req_shift_open_date [16:08:23]req_shift_open_date done [16:08:23]produce_requested_data done [16:08:23]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":140003,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [16:08:23]process_action_free close_receipt [16:08:23]json_value_free [16:08:23]json_value_free done [16:08:23]process_json_proto returns [16:08:23]Send response to host [16:08:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":140003,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [16:08:23]free response buf [16:08:23]execute_script done [16:08:23]execute_script returns [16:08:23]free content buf [16:08:23]Sock 7.Close socket [16:08:23]Sock 7.Thread stoped [16:08:27]OFD Sender: No OFD packet to send [16:08:32]OFD Sender: No OFD packet to send [16:08:37]OFD Sender: No OFD packet to send [16:08:42]OFD Sender: No OFD packet to send [16:08:47]OFD Sender: No OFD packet to send [16:08:52]OFD Sender: No OFD packet to send [16:08:57]OFD Sender: No OFD packet to send [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:07]accept exits with 9 [16:12:07]New connection [16:12:07]New thread 3066654052 created [16:12:07]Thread 3066510692 joined [16:12:07]Waiting for new connection... [16:12:07] Sock 9.Parse request [16:12:07]Sock 9.Check first char [16:12:07]Sock 9.First char is OK [16:12:07]request: POST /json_proto HTTP/1.0 [16:12:07]Method: POST [16:12:07]URL: /json_proto [16:12:07]Method is POST - this is cgi request [16:12:07]url: /json_proto [16:12:07]query_string will be loaded in cgi processing [16:12:07]execute_cgi json_proto POST (null) [16:12:07]execute_cgi path=json_proto method=POST [16:12:07]POST find Content-Length [16:12:07]Host: 172.17.50.196:8080 [16:12:07]Content-Length: 215 [16:12:07]Content-Type: application/json [16:12:07] [16:12:07]POST finish read [16:12:07]Found Content-Length = 215 [16:12:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:07]execute_script... [16:12:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:07]POST & json_proto [16:12:07]process_json_proto [16:12:07]json parsed OK: [16:12:07]protocol is kg_v1.0 [16:12:07]action value=get_value [16:12:07]process_action get_value [16:12:07]cmd_get_value [16:12:07]process_action get_value done [16:12:07]requested_data is exist [16:12:07]produce_requested_data [16:12:07]requested_item kkm.sn is exist - process it [16:12:07]requested_item kkm.ver is exist - process it [16:12:07]requested_item fm.sn is exist - process it [16:12:07]wFMCommunicate request_size=4 [16:12:07]MH_SAM_APDU [16:12:07]CAPDU: 80 11 00 00 [16:12:07]Write to MH i2c: E2 08 00 D6 6A 80 11 00 00 00 00 00 00 BA [16:12:07]Write i2c OK [16:12:07]MH_I2C_Read... [16:12:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:07]Read from MH i2c: E2 [16:12:07]MH_I2C_Read... [16:12:07]Read from MH i2c: E2 17 00 [16:12:07]MH_I2C_Read... [16:12:07]Read from MH i2c: E2 17 00 D6 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 15 [16:12:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:12:07]wFMCommunicate OK [16:12:07]requested_item fd.num is exist - process it [16:12:07]SAM_PROTO_GetFieldsCounters [16:12:07]wFMCommunicate request_size=4 [16:12:07]MH_SAM_APDU [16:12:07]CAPDU: 80 13 00 00 [16:12:07]Write to MH i2c: E2 08 00 D7 6A 80 13 00 00 00 00 00 00 BD [16:12:07]Write i2c OK [16:12:07]MH_I2C_Read... [16:12:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:07]Read from MH i2c: E2 [16:12:07]MH_I2C_Read... [16:12:07]Read from MH i2c: E2 62 00 [16:12:07]MH_I2C_Read... [16:12:07]Read from MH i2c: E2 62 00 D7 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E3 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [16:12:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E3 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:12:07]wFMCommunicate OK [16:12:07]SAM_PROTO_GetFieldsCounters done [16:12:07]requested_item shift.num is exist - process it [16:12:07]requested_item shift.opened is exist - process it [16:12:07]req_shift_opened [16:12:07]FM_GetShiftState [16:12:07]SAM_PROTO_GetShiftState [16:12:07]wFMCommunicate request_size=4 [16:12:07]MH_SAM_APDU [16:12:07]CAPDU: 80 13 01 00 [16:12:07]Write to MH i2c: E2 08 00 D8 6A 80 13 01 00 00 00 00 00 BF [16:12:07]Write i2c OK [16:12:07]MH_I2C_Read... [16:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:07]Read from MH i2c: E2 [16:12:07]MH_I2C_Read... [16:12:07]Read from MH i2c: E2 0E 00 [16:12:07]MH_I2C_Read... [16:12:07]Read from MH i2c: E2 0E 00 D8 6A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 F8 [16:12:07]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:12:07]wFMCommunicate OK [16:12:07]SAM_PROTO_GetShiftState done [16:12:07]FM_GetShiftState done [16:12:07]req_shift_opened done [16:12:07]requested_item shift.open_date is exist - process it [16:12:07]req_shift_open_date [16:12:07]req_shift_open_date done [16:12:07]produce_requested_data done [16:12:07]produce_requested_data return {"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":140003,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [16:12:07]process_action_free get_value [16:12:07]json_value_free [16:12:07]json_value_free done [16:12:07]process_json_proto returns [16:12:07]Send response to host [16:12:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":140003,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [16:12:07]free response buf [16:12:07]execute_script done [16:12:07]execute_script returns [16:12:07]free content buf [16:12:07]Sock 9.Close socket [16:12:07]Sock 9.Thread stoped [16:12:07]accept exits with 7 [16:12:07]New connection [16:12:07]New thread 3066510692 created [16:12:07]Thread 3066654052 joined [16:12:07]Waiting for new connection... [16:12:07] Sock 7.Parse request [16:12:07]Sock 7.Check first char [16:12:07]Sock 7.First char is OK [16:12:07]request: POST /json_proto HTTP/1.0 [16:12:07]Method: POST [16:12:07]URL: /json_proto [16:12:07]Method is POST - this is cgi request [16:12:07]url: /json_proto [16:12:07]query_string will be loaded in cgi processing [16:12:07]execute_cgi json_proto POST (null) [16:12:07]execute_cgi path=json_proto method=POST [16:12:07]POST find Content-Length [16:12:07]Host: 172.17.50.196:8080 [16:12:07]Content-Length: 331 [16:12:07]Content-Type: application/json [16:12:07] [16:12:07]POST finish read [16:12:07]Found Content-Length = 331 [16:12: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" ] } } [16:12:07]execute_script... [16:12: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" ] } } [16:12:08]POST & json_proto [16:12:08]process_json_proto [16:12:08]json parsed OK: [16:12:08]protocol is kg_v1.0 [16:12:08]action value=get_value [16:12:08]process_action get_value [16:12:08]cmd_get_value [16:12:08]process_action get_value done [16:12:08]requested_data is exist [16:12:08]produce_requested_data [16:12:08]requested_item fm.sale.total is exist - process it [16:12:08]SAM_PROTO_GetFMData [16:12:08]wFMCommunicate request_size=4 [16:12:08]MH_SAM_APDU [16:12:08]CAPDU: 80 13 03 00 [16:12:08]Write to MH i2c: E2 08 00 D9 6A 80 13 03 00 00 00 00 00 C2 [16:12:08]Write i2c OK [16:12:08]MH_I2C_Read... [16:12:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:12:08]Read from MH i2c: E2 [16:12:08]MH_I2C_Read... [16:12:08]Read from MH i2c: E2 FD 00 [16:12:08]MH_I2C_Read... [16:12:08]Read from MH i2c: E2 FD 00 D9 6A 00 C7 04 85 04 C3 04 6E 04 04 00 87 1E 02 00 69 04 A3 00 6F 04 04 00 37 1C 02 00 B1 04 05 00 B9 BC D9 53 01 70 04 05 00 68 F9 20 04 01 72 04 04 00 51 C3 B8 4F 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 7B D9 17 24 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 F6 B9 01 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 50 02 00 00 B1 04 04 00 68 65 0B 09 70 04 04 00 A4 39 E7 08 72 04 03 00 C4 2B 24 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 ED E5 F5 EF 90 00 3A [16:12:08]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 87 1E 02 00 69 04 A3 00 6F 04 04 00 37 1C 02 00 B1 04 05 00 B9 BC D9 53 01 70 04 05 00 68 F9 20 04 01 72 04 04 00 51 C3 B8 4F 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 7B D9 17 24 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 F6 B9 01 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 50 02 00 00 B1 04 04 00 68 65 0B 09 70 04 04 00 A4 39 E7 08 72 04 03 00 C4 2B 24 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 ED E5 F5 EF 90 00 [16:12:08]wFMCommunicate OK [16:12:08]wFMCommunicate request_size=4 [16:12:08]MH_SAM_APDU [16:12:08]CAPDU: 80 17 00 00 [16:12:08]Write to MH i2c: E2 08 00 DA 6A 80 17 00 00 00 00 00 00 C4 [16:12:08]Write i2c OK [16:12:08]MH_I2C_Read... [16:12:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:12:08]Read from MH i2c: E2 [16:12:08]MH_I2C_Read... [16:12:08]Read from MH i2c: E2 FD 00 [16:12:08]MH_I2C_Read... [16:12:08]Read from MH i2c: E2 FD 00 DA 6A 00 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 95 7D 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 F7 [16:12:08]RAPDU: 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 95 7D 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 [16:12:08]wFMCommunicate OK [16:12:08]wFMCommunicate request_size=4 [16:12:08]MH_SAM_APDU [16:12:08]CAPDU: 80 17 00 00 [16:12:08]Write to MH i2c: E2 08 00 DB 6A 80 17 00 00 00 00 00 00 C5 [16:12:08]Write i2c OK [16:12:08]MH_I2C_Read... [16:12:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:12:09]Read from MH i2c: E2 [16:12:09]MH_I2C_Read... [16:12:09]Read from MH i2c: E2 FD 00 [16:12:09]MH_I2C_Read... [16:12:09]Read from MH i2c: E2 FD 00 DB 6A 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 9D [16:12:09]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [16:12:09]wFMCommunicate OK [16:12:09]wFMCommunicate request_size=4 [16:12:09]MH_SAM_APDU [16:12:09]CAPDU: 80 17 00 00 [16:12:09]Write to MH i2c: E2 08 00 DC 6A 80 17 00 00 00 00 00 00 C6 [16:12:09]Write i2c OK [16:12:09]MH_I2C_Read... [16:12:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:12:09]Read from MH i2c: E2 [16:12:09]MH_I2C_Read... [16:12:09]Read from MH i2c: E2 FD 00 [16:12:09]MH_I2C_Read... [16:12:09]Read from MH i2c: E2 FD 00 DC 6A 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 41 [16:12:09]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:12:09]wFMCommunicate OK [16:12:09]wFMCommunicate request_size=4 [16:12:09]MH_SAM_APDU [16:12:09]CAPDU: 80 17 00 00 [16:12:09]Write to MH i2c: E2 08 00 DD 6A 80 17 00 00 00 00 00 00 C7 [16:12:09]Write i2c OK [16:12:09]MH_I2C_Read... [16:12:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [16:12:09]Read from MH i2c: E2 [16:12:09]MH_I2C_Read... [16:12:09]Read from MH i2c: E2 E4 00 [16:12:09]MH_I2C_Read... [16:12:09]Read from MH i2c: E2 E4 00 DD 6A 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A7 [16:12:09]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:12:09]wFMCommunicate OK [16:12:09]SAM_PROTO_GetFMData done [16:12:09]requested_item fm.sale_refund.total is exist - process it [16:12:09]requested_item fm.buy.total is exist - process it [16:12:09]requested_item shift.sale.total is exist - process it [16:12:09]SAM_PROTO_GetShiftData [16:12:09]wFMCommunicate request_size=4 [16:12:09]MH_SAM_APDU [16:12:09]CAPDU: 80 13 02 00 [16:12:09]Write to MH i2c: E2 08 00 DE 6A 80 13 02 00 00 00 00 00 C6 [16:12:09]Write i2c OK [16:12:09]MH_I2C_Read... [16:12:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:12:10]Read from MH i2c: E2 [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: E2 FD 00 [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: E2 FD 00 DE 6A 00 B6 04 AA 04 B2 04 6E 04 04 00 B8 00 00 00 69 04 9C 00 6F 04 04 00 B7 00 00 00 B1 04 03 00 78 8A A0 70 04 03 00 D4 74 61 72 04 03 00 A4 15 3F 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 AB 0C 11 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 AA 6B 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 4C 36 70 04 02 00 4C 36 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C4 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 1A [16:12:10]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 B8 00 00 00 69 04 9C 00 6F 04 04 00 B7 00 00 00 B1 04 03 00 78 8A A0 70 04 03 00 D4 74 61 72 04 03 00 A4 15 3F 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 AB 0C 11 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 AA 6B 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 4C 36 70 04 02 00 4C 36 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C4 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 [16:12:10]wFMCommunicate OK [16:12:10]wFMCommunicate request_size=4 [16:12:10]MH_SAM_APDU [16:12:10]CAPDU: 80 17 00 00 [16:12:10]Write to MH i2c: E2 08 00 DF 6A 80 17 00 00 00 00 00 00 C9 [16:12:10]Write i2c OK [16:12:10]MH_I2C_Read... [16:12:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:12:10]Read from MH i2c: E2 [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: E2 FD 00 [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: E2 FD 00 DF 6A 00 00 F6 03 01 00 01 F7 03 01 00 7B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 57 [16:12:10]RAPDU: 00 F6 03 01 00 01 F7 03 01 00 7B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 [16:12:10]wFMCommunicate OK [16:12:10]wFMCommunicate request_size=4 [16:12:10]MH_SAM_APDU [16:12:10]CAPDU: 80 17 00 00 [16:12:10]Write to MH i2c: E2 08 00 E0 6A 80 17 00 00 00 00 00 00 CA [16:12:10]Write i2c OK [16:12:10]MH_I2C_Read... [16:12:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:12:10]Read from MH i2c: E2 [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: E2 FD 00 [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: E2 FD 00 E0 6A 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 8A [16:12:10]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 [16:12:10]wFMCommunicate OK [16:12:10]wFMCommunicate request_size=4 [16:12:10]MH_SAM_APDU [16:12:10]CAPDU: 80 17 00 00 [16:12:10]Write to MH i2c: E2 08 00 E1 6A 80 17 00 00 00 00 00 00 CB [16:12:10]Write i2c OK [16:12:10]MH_I2C_Read... [16:12:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:12:11]Read from MH i2c: E2 [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: E2 FD 00 [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: E2 FD 00 E1 6A 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 3A [16:12:11]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 [16:12:11]wFMCommunicate OK [16:12:11]wFMCommunicate request_size=4 [16:12:11]MH_SAM_APDU [16:12:11]CAPDU: 80 17 00 00 [16:12:11]Write to MH i2c: E2 08 00 E2 6A 80 17 00 00 00 00 00 00 CC [16:12:11]Write i2c OK [16:12:11]MH_I2C_Read... [16:12:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [16:12:11]Read from MH i2c: E2 [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: E2 D3 00 [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: E2 D3 00 E2 6A 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 B9 [16:12:11]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 [16:12:11]wFMCommunicate OK [16:12:11]SAM_PROTO_GetShiftData done [16:12:11]requested_item shift.sale.total_cash is exist - process it [16:12:11]requested_item shift.sale_refund.total is exist - process it [16:12:11]requested_item shift.sale_refund.total_cash is exist - process it [16:12:11]requested_item shift.buy.total is exist - process it [16:12:11]requested_item shift.buy.total_cash is exist - process it [16:12:11]produce_requested_data done [16:12:11]produce_requested_data return {"fm.sale.total":57017458.49,"fm.sale_refund.total":1517418.00,"fm.buy.total":0.00,"shift.sale.total":105212.08,"shift.sale.total_cash":63869.00,"shift.sale_refund.total":139.00,"shift.sale_refund.total_cash":139.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:12:11]process_action_free get_value [16:12:11]json_value_free [16:12:11]json_value_free done [16:12:11]process_json_proto returns [16:12:11]Send response to host [16:12:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":57017458.49,"fm.sale_refund.total":1517418.00,"fm.buy.total":0.00,"shift.sale.total":105212.08,"shift.sale.total_cash":63869.00,"shift.sale_refund.total":139.00,"shift.sale_refund.total_cash":139.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:12:11]free response buf [16:12:11]execute_script done [16:12:11]execute_script returns [16:12:11]free content buf [16:12:11]Sock 7.Close socket [16:12:11]Sock 7.Thread stoped [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:12:59]accept exits with 9 [16:12:59]New connection [16:12:59]New thread 3066654052 created [16:12:59]Thread 3066510692 joined [16:12:59]Waiting for new connection... [16:12:59] Sock 9.Parse request [16:12:59]Sock 9.Check first char [16:12:59]Sock 9.First char is OK [16:12:59]request: POST /json_proto HTTP/1.0 [16:12:59]Method: POST [16:12:59]URL: /json_proto [16:12:59]Method is POST - this is cgi request [16:12:59]url: /json_proto [16:12:59]query_string will be loaded in cgi processing [16:12:59]execute_cgi json_proto POST (null) [16:12:59]execute_cgi path=json_proto method=POST [16:12:59]POST find Content-Length [16:12:59]Host: 172.17.50.196:8080 [16:12:59]Content-Length: 683 [16:12:59]Content-Type: application/json [16:12:59] [16:12:59]POST finish read [16:12:59]Found Content-Length = 683 [16:12:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:59]execute_script... [16:12:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:59]POST & json_proto [16:12:59]process_json_proto [16:12:59]json parsed OK: [16:12:59]protocol is kg_v1.0 [16:12:59]action value=close_receipt [16:12:59]process_action close_receipt [16:12:59]cmd_close_receipt [16:12:59]MH_GetDate [16:12:59]Write to MH i2c: F0 00 00 E3 6A 3C [16:12:59]Write i2c OK [16:12:59]MH_I2C_Read... [16:12:59]Read from MH i2c: F0 [16:12:59]MH_I2C_Read... [16:12:59]Read from MH i2c: F0 09 00 [16:12:59]MH_I2C_Read... [16:12:59]Read from MH i2c: F0 09 00 E3 6A 00 11 FE 24 67 72 0D 1C 67 E1 [16:12:59]GetLastDocTimeStamp 1730477306 [16:12:59]current date 1730477585 [16:12:59]FM_GetShiftState [16:12:59]SAM_PROTO_GetShiftState [16:12:59]wFMCommunicate request_size=4 [16:12:59]MH_SAM_APDU [16:12:59]CAPDU: 80 13 01 00 [16:12:59]Write to MH i2c: E2 08 00 E4 6A 80 13 01 00 00 00 00 00 CB [16:12:59]Write i2c OK [16:12:59]MH_I2C_Read... [16:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:59]Read from MH i2c: E2 [16:12:59]MH_I2C_Read... [16:12:59]Read from MH i2c: E2 0E 00 [16:12:59]MH_I2C_Read... [16:12:59]Read from MH i2c: E2 0E 00 E4 6A 00 09 00 01 89 19 24 67 00 00 00 00 90 00 04 [16:12:59]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:12:59]wFMCommunicate OK [16:12:59]SAM_PROTO_GetShiftState done [16:12:59]FM_GetShiftState done [16:12:59]opened in 1730419081 [16:12:59]opened+sec_in_day 1730505481 [16:12:59]quantity*price = 100021 [16:12:59]sum+1 = 100023 [16:12:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 185 01.11.2024 16:13 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 140004 ФПД: 75349123359217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T161305&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140004&fm=75349123359217&tin=02508201610067®Number=0000000000091631&sum=100000 [16:13:00]StoreToDocumentArchive [16:13:00]shift 558 fd 140004 [16:13:00]save to /storage/0558/doc_00140004 [16:13:00]save last doc name /storage/0558/doc_00140004 to /storage/kkm_last_doc_name [16:13:00]save OK [16:13:00]Clear old archive folders... [16:13:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:13:00]tlvbuf is 00BE2A50 [16:13:00]SAM_PROTO_ClearQueue [16:13:00]wFMCommunicate request_size=4 [16:13:00]MH_SAM_APDU [16:13:00]CAPDU: 80 09 00 00 [16:13:00]Write to MH i2c: E2 08 00 F1 6A 80 09 00 00 00 00 00 00 CD [16:13:00]Write i2c OK [16:13:00]MH_I2C_Read... [16:13:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:00]Read from MH i2c: E2 [16:13:00]MH_I2C_Read... [16:13:00]Read from MH i2c: E2 03 00 [16:13:00]MH_I2C_Read... [16:13:00]Read from MH i2c: E2 03 00 F1 6A 00 90 00 CF [16:13:00]RAPDU: 90 00 [16:13:00]wFMCommunicate OK [16:13:00]SAM_PROTO_ClearQueue done [16:13:00]KKMCreateOFDPacket [16:13:00]OFDProtocolAddRootSTLVToBuf [16:13:00]FM_MakeSignedData [16:13:00]FM_MakeSignedData [16:13:00]SAM_PROTO_SignData [16:13:00]wFMCommunicate request_size=4 [16:13:00]MH_SAM_APDU [16:13:00]CAPDU: 80 0D 01 02 [16:13:00]Write to MH i2c: E2 08 00 F2 6A 80 0D 01 02 00 00 00 00 D5 [16:13:00]Write i2c OK [16:13:00]MH_I2C_Read... [16:13:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:00]Read from MH i2c: E2 [16:13:00]MH_I2C_Read... [16:13:00]Read from MH i2c: E2 03 00 [16:13:00]MH_I2C_Read... [16:13:00]Read from MH i2c: E2 03 00 F2 6A 00 90 00 D0 [16:13:00]RAPDU: 90 00 [16:13:00]wFMCommunicate OK [16:13:00]wFMCommunicate request_size=255 [16:13:00]MH_SAM_APDU [16:13:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 11 FE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E4 22 02 00 35 04 06 00 44 [16:13:00]Write to MH i2c: E2 02 01 F3 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 11 FE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E4 22 02 00 35 04 06 00 44 00 00 51 [16:13:00]Write i2c OK [16:13:00]MH_I2C_Read... [16:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:00]Read from MH i2c: E2 [16:13:00]MH_I2C_Read... [16:13:00]Read from MH i2c: E2 03 00 [16:13:00]MH_I2C_Read... [16:13:00]Read from MH i2c: E2 03 00 F3 6A 00 90 00 D1 [16:13:00]RAPDU: 90 00 [16:13:00]wFMCommunicate OK [16:13:00]wFMCommunicate request_size=10 [16:13:00]MH_SAM_APDU [16:13:00]CAPDU: 80 0D 02 02 05 87 95 BB 61 F1 [16:13:00]Write to MH i2c: E2 0D 00 F4 6A 80 0D 02 02 05 00 87 95 BB 61 F1 00 00 0B [16:13:00]Write i2c OK [16:13:00]MH_I2C_Read... [16:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:01]Read from MH i2c: E2 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 03 00 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 03 00 F4 6A 00 90 00 D2 [16:13:01]RAPDU: 90 00 [16:13:01]wFMCommunicate OK [16:13:01]wFMCommunicate request_size=4 [16:13:01]MH_SAM_APDU [16:13:01]CAPDU: 80 0D 03 02 [16:13:01]Write to MH i2c: E2 08 00 F5 6A 80 0D 03 02 00 00 00 00 DA [16:13:01]Write i2c OK [16:13:01]MH_I2C_Read... [16:13:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:01]Read from MH i2c: E2 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 0B 00 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 0B 00 F5 6A 00 C7 EF 08 35 1F 1B 2E DB 90 00 11 [16:13:01]RAPDU: C7 EF 08 35 1F 1B 2E DB 90 00 [16:13:01]wFMCommunicate OK [16:13:01]SAM_PROTO_SignData done [16:13:01]FM_MakeSignedData done [16:13:01]CreateOFDProtocolMessage [16:13:01]wFMCommunicate request_size=4 [16:13:01]MH_SAM_APDU [16:13:01]CAPDU: 80 11 00 00 [16:13:01]Write to MH i2c: E2 08 00 F6 6A 80 11 00 00 00 00 00 00 DA [16:13:01]Write i2c OK [16:13:01]MH_I2C_Read... [16:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:01]Read from MH i2c: E2 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 17 00 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 17 00 F6 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 35 [16:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:13:01]wFMCommunicate OK [16:13:01]CreateOFDProtocolMessage done [16:13:01]OFDSenderStorePacket 140004 [16:13:01]StoreOFDPacket docnum=140004 [16:13:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 5D E7 07 01 7B 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 11 FE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E4 22 02 00 35 04 06 00 44 87 95 BB 61 F1 C7 EF 08 35 1F 1B 2E DB [16:13:01]CheckFolder [16:13:01]dirname=/storage/ofd_packets [16:13:01]CheckFolder done [16:13:01]ProducePacketName [16:13:01]name=ofd_packets/00140004 [16:13:01]NVStorageSaveData ofd_packets/00140004 [16:13:01]File name is /storage/ofd_packets/00140004 [16:13:01]Write 301 bytes [16:13:01]NVStorageSaveData done [16:13:01]OFDSenderStorePacket done [16:13:01]KKMCreateOFDPacket done [16:13:01]NVStorageSaveData kkm_last_timestamp [16:13:01]File name is /storage/kkm_last_timestamp [16:13:01]Write 4 bytes [16:13:01]NVStorageSaveData done [16:13:01]ExternCall_PrintAddStr [16:13:01]wPrintStart [16:13:01]Write to MH i2c: 01 00 00 F7 6A 61 [16:13:01]Write i2c OK [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: 01 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: 01 07 00 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: 01 07 00 F7 6A 00 00 00 00 00 FF 0F 76 [16:13:01]RasterBufferAndPrint [16:13:01]line Счет N : (1)1096070 [16:13:01]line ИНН: 02508201610067 [16:13:01]line Контрольно-Кассовый Чек [16:13:01]line ПРОДАЖА [16:13:01]line ТРК (МРК, ГНК) : 44 [16:13:01]line Товар: 2710124500 [16:13:01]line Аи-95-К-3 [16:13:01]line 13.480 * 74.20 [16:13:01]line = 1000.22 [16:13:01]line НДС 12% НСП 1% [16:13:01]line > о реализуемом товаре [16:13:01]line ОКРУГЛЕНИЕ: -0.22 [16:13:01]line ИТОГО: 1000.00 [16:13:01]line Внесено: 1000.00 [16:13:01]line СДАЧА: 0.00 [16:13:01]line НСП 1% : 8.85 [16:13:01]line НДС 12% : 106.22 [16:13:01]line Наличными: 1000.00 [16:13:01]line Безнал.: 0.00 [16:13:01]line Место: АЗС № 101 "Партнер Нефть" [16:13:01]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:13:01]line СНО: Общий режим [16:13:01]line Чек 185 01.11.2024 16:13 [16:13:01]line Смена: 558 ФФД: 1.0 [16:13:01]line ЗНМ: 0300000081 [16:13:01]line РНМ: 0000000000091631 [16:13:01]line Версия ККМ: 001 [16:13:01]line ФМ: 0000000000874669 [16:13:01]line ФД: 140004 [16:13:01]line ФПД: 75349123359217 [16:13:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T161305&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140004&fm=75349123359217&tin=02508201610067®Number=0000000000091631&sum=100000 [16:13:01]OFD Sender: Processing packet 140004 [packets to send 34, broken 33] [16:13:01]ProducePacketName [16:13:01]name=ofd_packets/00140004 [16:13:01]OFD Sender: To server: pG, [16:13:01]CommunicateWithHost lk.salyk.kg:30040 [16:13:01]ConnectInit lk.salyk.kg [16:13:01]written 0, free lines is 4095 [16:13:01]Connected sock=11 [16:13:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 5D E7 07 01 7B 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 11 FE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E4 22 02 00 35 04 06 00 44 87 95 BB 61 F1 C7 EF 08 35 1F 1B 2E DB [16:13:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 6F 16 47 00 86 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E4 22 02 00 F4 03 04 00 BC A9 24 67 B6 04 01 00 00 8C D4 80 CF 82 AF D5 D7 [16:13:01]CommunicateWithHost err = 0 [16:13:01]CheckOFDResponse [16:13:01]1017 (14) - 77093643461234 [16:13:01]1041 (16) - 0000000000874669 [16:13:01]1040 (4) - 140004 [16:13:01]1012 (4) - 01.11.2024 10:13 [16:13:01]1206 (1) - 0 [16:13:01]OFD Sender: Remove packet 140004 [16:13:01]ProducePacketName [16:13:01]name=ofd_packets/00140004 [16:13:01]NVStorageDeleteData [16:13:01]Write to MH i2c: 01 00 00 22 6B 8D [16:13:01]Write i2c OK [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: 01 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: 01 07 00 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: 01 07 00 22 6B 00 00 00 00 00 E3 0C 83 [16:13:01]RasterBufferAndPrint [16:13:01]line [16:13:01]line [16:13:01]line [16:13:01]line [16:13:01]line [16:13:01]written 0, free lines is 3305 [16:13:01]MH_Cut [16:13:01]Write to MH i2c: D1 01 00 29 6B 01 66 [16:13:01]Write i2c OK [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: D1 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: D1 01 00 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: D1 01 00 29 6B 00 65 [16:13:01]Write to MH i2c: 01 00 00 2A 6B 95 [16:13:01]Write i2c OK [16:13:01]MH_I2C_Read... [16:13:01]OFD Sender: No OFD packet to send [16:13:02]*** Cut start [16:13:02]*** Partial cut [16:13:02]*** CUTSNS_PIN = 1 [16:13:02]*** CUTSNS_PIN = 0 [16:13:02]*** Brake cut motor [16:13:02]Read from MH i2c: 01 [16:13:02]MH_I2C_Read... [16:13:02]*** Stop cut motor [16:13:02]*** Cut end [16:13:02]Read from MH i2c: 01 07 00 [16:13:02]MH_I2C_Read... [16:13:02]Read from MH i2c: 01 07 00 2A 6B 00 00 00 00 00 FF 0F AA [16:13:02]process_action close_receipt done [16:13:02]requested_data is exist [16:13:02]produce_requested_data [16:13:02]requested_item fm.sn is exist - process it [16:13:02]wFMCommunicate request_size=4 [16:13:02]MH_SAM_APDU [16:13:02]CAPDU: 80 11 00 00 [16:13:02]Write to MH i2c: E2 08 00 2B 6B 80 11 00 00 00 00 00 00 10 [16:13:02]Write i2c OK [16:13:02]MH_I2C_Read... [16:13:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:02]Read from MH i2c: E2 [16:13:02]MH_I2C_Read... [16:13:02]Read from MH i2c: E2 17 00 [16:13:02]MH_I2C_Read... [16:13:02]Read from MH i2c: E2 17 00 2B 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6B [16:13:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:13:02]wFMCommunicate OK [16:13:02]requested_item fd.num is exist - process it [16:13:02]SAM_PROTO_GetFieldsCounters [16:13:02]wFMCommunicate request_size=4 [16:13:02]MH_SAM_APDU [16:13:02]CAPDU: 80 13 00 00 [16:13:02]Write to MH i2c: E2 08 00 2C 6B 80 13 00 00 00 00 00 00 13 [16:13:02]Write i2c OK [16:13:02]MH_I2C_Read... [16:13:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:03]Read from MH i2c: E2 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 62 00 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 62 00 2C 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E4 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [16:13:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E4 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:03]wFMCommunicate OK [16:13:03]SAM_PROTO_GetFieldsCounters done [16:13:03]requested_item shift.num is exist - process it [16:13:03]requested_item shift.opened is exist - process it [16:13:03]req_shift_opened [16:13:03]FM_GetShiftState [16:13:03]SAM_PROTO_GetShiftState [16:13:03]wFMCommunicate request_size=4 [16:13:03]MH_SAM_APDU [16:13:03]CAPDU: 80 13 01 00 [16:13:03]Write to MH i2c: E2 08 00 2D 6B 80 13 01 00 00 00 00 00 15 [16:13:03]Write i2c OK [16:13:03]MH_I2C_Read... [16:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:03]Read from MH i2c: E2 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 0E 00 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 0E 00 2D 6B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 4E [16:13:03]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:13:03]wFMCommunicate OK [16:13:03]SAM_PROTO_GetShiftState done [16:13:03]FM_GetShiftState done [16:13:03]req_shift_opened done [16:13:03]requested_item shift.open_date is exist - process it [16:13:03]req_shift_open_date [16:13:03]req_shift_open_date done [16:13:03]produce_requested_data done [16:13:03]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":140004,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [16:13:03]process_action_free close_receipt [16:13:03]json_value_free [16:13:03]json_value_free done [16:13:03]process_json_proto returns [16:13:03]Send response to host [16:13:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":140004,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [16:13:03]free response buf [16:13:03]execute_script done [16:13:03]execute_script returns [16:13:03]free content buf [16:13:03]Sock 9.Close socket [16:13:03]Sock 9.Thread stoped [16:13:06]OFD Sender: No OFD packet to send [16:13:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:45]accept exits with 7 [16:13:45]New connection [16:13:45]New thread 3066510692 created [16:13:45]Thread 3066654052 joined [16:13:45]Waiting for new connection... [16:13:45] Sock 7.Parse request [16:13:45]Sock 7.Check first char [16:13:45]Sock 7.First char is OK [16:13:45]request: POST /json_proto HTTP/1.0 [16:13:45]Method: POST [16:13:45]URL: /json_proto [16:13:45]Method is POST - this is cgi request [16:13:45]url: /json_proto [16:13:45]query_string will be loaded in cgi processing [16:13:45]execute_cgi json_proto POST (null) [16:13:45]execute_cgi path=json_proto method=POST [16:13:45]POST find Content-Length [16:13:45]Host: 172.17.50.196:8080 [16:13:45]Content-Length: 683 [16:13:45]Content-Type: application/json [16:13:45] [16:13:45]POST finish read [16:13:45]Found Content-Length = 683 [16:13:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 36.410, "sum" : 2435.83, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2435.00, "payments": [ { "type": 0, "sum" : 2435.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:45]execute_script... [16:13:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 36.410, "sum" : 2435.83, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2435.00, "payments": [ { "type": 0, "sum" : 2435.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:45]POST & json_proto [16:13:45]process_json_proto [16:13:45]json parsed OK: [16:13:45]protocol is kg_v1.0 [16:13:45]action value=close_receipt [16:13:45]process_action close_receipt [16:13:45]cmd_close_receipt [16:13:45]MH_GetDate [16:13:45]Write to MH i2c: F0 00 00 2E 6B 88 [16:13:45]Write i2c OK [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: F0 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: F0 09 00 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: F0 09 00 2E 6B 00 40 FE 24 67 72 0D 1C 67 5C [16:13:45]GetLastDocTimeStamp 1730477585 [16:13:45]current date 1730477632 [16:13:45]FM_GetShiftState [16:13:45]SAM_PROTO_GetShiftState [16:13:45]wFMCommunicate request_size=4 [16:13:45]MH_SAM_APDU [16:13:45]CAPDU: 80 13 01 00 [16:13:45]Write to MH i2c: E2 08 00 2F 6B 80 13 01 00 00 00 00 00 17 [16:13:45]Write i2c OK [16:13:45]MH_I2C_Read... [16:13:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:45]Read from MH i2c: E2 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: E2 0E 00 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: E2 0E 00 2F 6B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 50 [16:13:45]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:13:45]wFMCommunicate OK [16:13:45]SAM_PROTO_GetShiftState done [16:13:45]FM_GetShiftState done [16:13:45]opened in 1730419081 [16:13:45]opened+sec_in_day 1730505481 [16:13:45]quantity*price = 243582 [16:13:45]sum+1 = 243584 [16:13:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.83 ИТОГО: 2435.00 Внесено: 3000.00 СДАЧА: 565.00 НСП 1% : 21.56 НДС 12% : 258.67 Наличными: 2435.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 186 01.11.2024 16:13 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 140005 ФПД: 234544889158463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T161352&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140005&fm=234544889158463&tin=02508201610067®Number=0000000000091631&sum=243500 [16:13:46]StoreToDocumentArchive [16:13:46]shift 558 fd 140005 [16:13:46]save to /storage/0558/doc_00140005 [16:13:46]save last doc name /storage/0558/doc_00140005 to /storage/kkm_last_doc_name [16:13:46]save OK [16:13:46]Clear old archive folders... [16:13:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:13:46]tlvbuf is 00C8B430 [16:13:46]SAM_PROTO_ClearQueue [16:13:46]wFMCommunicate request_size=4 [16:13:46]MH_SAM_APDU [16:13:46]CAPDU: 80 09 00 00 [16:13:46]Write to MH i2c: E2 08 00 3C 6B 80 09 00 00 00 00 00 00 19 [16:13:46]Write i2c OK [16:13:46]MH_I2C_Read... [16:13:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:47]Read from MH i2c: E2 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 03 00 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 03 00 3C 6B 00 90 00 1B [16:13:47]RAPDU: 90 00 [16:13:47]wFMCommunicate OK [16:13:47]SAM_PROTO_ClearQueue done [16:13:47]KKMCreateOFDPacket [16:13:47]OFDProtocolAddRootSTLVToBuf [16:13:47]FM_MakeSignedData [16:13:47]FM_MakeSignedData [16:13:47]SAM_PROTO_SignData [16:13:47]wFMCommunicate request_size=4 [16:13:47]MH_SAM_APDU [16:13:47]CAPDU: 80 0D 01 02 [16:13:47]Write to MH i2c: E2 08 00 3D 6B 80 0D 01 02 00 00 00 00 21 [16:13:47]Write i2c OK [16:13:47]MH_I2C_Read... [16:13:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:47]Read from MH i2c: E2 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 03 00 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 03 00 3D 6B 00 90 00 1C [16:13:47]RAPDU: 90 00 [16:13:47]wFMCommunicate OK [16:13:47]wFMCommunicate request_size=255 [16:13:47]MH_SAM_APDU [16:13:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3A 8E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F B7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C B7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 65 00 00 00 00 07 04 06 00 2C B7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 40 FE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E5 22 02 00 35 04 06 00 D5 [16:13:47]Write to MH i2c: E2 02 01 3E 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3A 8E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F B7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C B7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 65 00 00 00 00 07 04 06 00 2C B7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 40 FE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E5 22 02 00 35 04 06 00 D5 00 00 A9 [16:13:47]Write i2c OK [16:13:47]MH_I2C_Read... [16:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:47]Read from MH i2c: E2 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 03 00 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 03 00 3E 6B 00 90 00 1D [16:13:47]RAPDU: 90 00 [16:13:47]wFMCommunicate OK [16:13:47]wFMCommunicate request_size=10 [16:13:47]MH_SAM_APDU [16:13:47]CAPDU: 80 0D 02 02 05 51 3C CD 5B 3F [16:13:47]Write to MH i2c: E2 0D 00 3F 6B 80 0D 02 02 05 00 51 3C CD 5B 3F 00 00 22 [16:13:47]Write i2c OK [16:13:47]MH_I2C_Read... [16:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:47]Read from MH i2c: E2 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 03 00 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 03 00 3F 6B 00 90 00 1E [16:13:47]RAPDU: 90 00 [16:13:47]wFMCommunicate OK [16:13:47]wFMCommunicate request_size=4 [16:13:47]MH_SAM_APDU [16:13:47]CAPDU: 80 0D 03 02 [16:13:47]Write to MH i2c: E2 08 00 40 6B 80 0D 03 02 00 00 00 00 26 [16:13:47]Write i2c OK [16:13:47]MH_I2C_Read... [16:13:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:47]Read from MH i2c: E2 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 0B 00 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 0B 00 40 6B 00 AF 1D C8 21 DE AE 51 E0 90 00 99 [16:13:47]RAPDU: AF 1D C8 21 DE AE 51 E0 90 00 [16:13:47]wFMCommunicate OK [16:13:47]SAM_PROTO_SignData done [16:13:47]FM_MakeSignedData done [16:13:47]CreateOFDProtocolMessage [16:13:47]wFMCommunicate request_size=4 [16:13:47]MH_SAM_APDU [16:13:47]CAPDU: 80 11 00 00 [16:13:47]Write to MH i2c: E2 08 00 41 6B 80 11 00 00 00 00 00 00 26 [16:13:47]Write i2c OK [16:13:47]MH_I2C_Read... [16:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:47]Read from MH i2c: E2 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 17 00 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 17 00 41 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 81 [16:13:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:13:47]wFMCommunicate OK [16:13:47]CreateOFDProtocolMessage done [16:13:47]OFDSenderStorePacket 140005 [16:13:47]StoreOFDPacket docnum=140005 [16:13:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 BB B5 07 01 01 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3A 8E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F B7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C B7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 65 00 00 00 00 07 04 06 00 2C B7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 40 FE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E5 22 02 00 35 04 06 00 D5 51 3C CD 5B 3F AF 1D C8 21 DE AE 51 E0 [16:13:47]CheckFolder [16:13:47]dirname=/storage/ofd_packets [16:13:47]CheckFolder done [16:13:47]ProducePacketName [16:13:47]name=ofd_packets/00140005 [16:13:47]NVStorageSaveData ofd_packets/00140005 [16:13:47]File name is /storage/ofd_packets/00140005 [16:13:47]Write 301 bytes [16:13:47]NVStorageSaveData done [16:13:47]OFDSenderStorePacket done [16:13:47]KKMCreateOFDPacket done [16:13:47]NVStorageSaveData kkm_last_timestamp [16:13:47]File name is /storage/kkm_last_timestamp [16:13:47]Write 4 bytes [16:13:47]NVStorageSaveData done [16:13:47]ExternCall_PrintAddStr [16:13:47]wPrintStart [16:13:47]Write to MH i2c: 01 00 00 42 6B AD [16:13:47]Write i2c OK [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: 01 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: 01 07 00 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: 01 07 00 42 6B 00 00 00 00 00 FF 0F C2 [16:13:47]RasterBufferAndPrint [16:13:47]line Счет N : (1)1096069 [16:13:47]line ИНН: 02508201610067 [16:13:47]line Контрольно-Кассовый Чек [16:13:47]line ПРОДАЖА [16:13:47]line ТРК (МРК, ГНК) : 53 [16:13:47]line Товар: 2710124130 [16:13:47]line Аи-92-К-2 [16:13:47]line 36.410 * 66.90 [16:13:47]line = 2435.83 [16:13:47]line НДС 12% НСП 1% [16:13:47]line > о реализуемом товаре [16:13:47]line ОКРУГЛЕНИЕ: -0.83 [16:13:47]line ИТОГО: 2435.00 [16:13:47]line Внесено: 3000.00 [16:13:47]line СДАЧА: 565.00 [16:13:47]line НСП 1% : 21.56 [16:13:47]line НДС 12% : 258.67 [16:13:47]line Наличными: 2435.00 [16:13:47]line Безнал.: 0.00 [16:13:47]line Место: АЗС № 101 "Партнер Нефть" [16:13:47]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:13:47]line СНО: Общий режим [16:13:47]line Чек 186 01.11.2024 16:13 [16:13:47]line Смена: 558 ФФД: 1.0 [16:13:47]line ЗНМ: 0300000081 [16:13:47]line РНМ: 0000000000091631 [16:13:47]line Версия ККМ: 001 [16:13:47]line ФМ: 0000000000874669 [16:13:47]line ФД: 140005 [16:13:47]line ФПД: 234544889158463 [16:13:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T161352&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140005&fm=234544889158463&tin=02508201610067®Number=0000000000091631&sum=243500 [16:13:47]OFD Sender: Processing packet 140005 [packets to send 34, broken 33] [16:13:47]ProducePacketName [16:13:47]name=ofd_packets/00140005 [16:13:47]OFD Sender: To server: pG, [16:13:47]CommunicateWithHost lk.salyk.kg:30040 [16:13:47]ConnectInit lk.salyk.kg [16:13:47]written 0, free lines is 4095 [16:13:47]Connected sock=10 [16:13:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 BB B5 07 01 01 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3A 8E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F B7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C B7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 65 00 00 00 00 07 04 06 00 2C B7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 40 FE 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E5 22 02 00 35 04 06 00 D5 51 3C CD 5B 3F AF 1D C8 21 DE AE 51 E0 [16:13:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 71 FD 47 00 1A 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E5 22 02 00 F4 03 04 00 EA A9 24 67 B6 04 01 00 00 3A 80 D8 70 83 30 78 DE [16:13:47]CommunicateWithHost err = 0 [16:13:47]CheckOFDResponse [16:13:47]1017 (14) - 77093643461234 [16:13:47]1041 (16) - 0000000000874669 [16:13:47]1040 (4) - 140005 [16:13:47]1012 (4) - 01.11.2024 10:14 [16:13:47]1206 (1) - 0 [16:13:47]OFD Sender: Remove packet 140005 [16:13:47]ProducePacketName [16:13:47]name=ofd_packets/00140005 [16:13:47]NVStorageDeleteData [16:13:48]Write to MH i2c: 01 00 00 6D 6B D8 [16:13:48]Write i2c OK [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: 01 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: 01 07 00 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: 01 07 00 6D 6B 00 00 00 00 00 ED 0C D8 [16:13:48]RasterBufferAndPrint [16:13:48]line [16:13:48]line [16:13:48]line [16:13:48]line [16:13:48]line [16:13:48]written 0, free lines is 3315 [16:13:48]MH_Cut [16:13:48]Write to MH i2c: D1 01 00 74 6B 01 B1 [16:13:48]Write i2c OK [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: D1 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: D1 01 00 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: D1 01 00 74 6B 00 B0 [16:13:48]Write to MH i2c: 01 00 00 75 6B E0 [16:13:48]Write i2c OK [16:13:48]MH_I2C_Read... [16:13:48]OFD Sender: No OFD packet to send [16:13:48]*** Cut start [16:13:48]*** Partial cut [16:13:48]*** CUTSNS_PIN = 1 [16:13:48]*** CUTSNS_PIN = 0 [16:13:49]*** Brake cut motor [16:13:49]Read from MH i2c: 01 [16:13:49]MH_I2C_Read... [16:13:49]*** Stop cut motor [16:13:49]*** Cut end [16:13:49]Read from MH i2c: 01 07 00 [16:13:49]MH_I2C_Read... [16:13:49]Read from MH i2c: 01 07 00 75 6B 00 00 00 00 00 FF 0F F5 [16:13:49]process_action close_receipt done [16:13:49]requested_data is exist [16:13:49]produce_requested_data [16:13:49]requested_item fm.sn is exist - process it [16:13:49]wFMCommunicate request_size=4 [16:13:49]MH_SAM_APDU [16:13:49]CAPDU: 80 11 00 00 [16:13:49]Write to MH i2c: E2 08 00 76 6B 80 11 00 00 00 00 00 00 5B [16:13:49]Write i2c OK [16:13:49]MH_I2C_Read... [16:13:49]Read from MH i2c: E2 [16:13:49]MH_I2C_Read... [16:13:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:49]Read from MH i2c: E2 17 00 [16:13:49]MH_I2C_Read... [16:13:49]Read from MH i2c: E2 17 00 76 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B6 [16:13:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:13:49]wFMCommunicate OK [16:13:49]requested_item fd.num is exist - process it [16:13:49]SAM_PROTO_GetFieldsCounters [16:13:49]wFMCommunicate request_size=4 [16:13:49]MH_SAM_APDU [16:13:49]CAPDU: 80 13 00 00 [16:13:49]Write to MH i2c: E2 08 00 77 6B 80 13 00 00 00 00 00 00 5E [16:13:49]Write i2c OK [16:13:49]MH_I2C_Read... [16:13:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:49]Read from MH i2c: E2 [16:13:49]MH_I2C_Read... [16:13:49]Read from MH i2c: E2 62 00 [16:13:49]MH_I2C_Read... [16:13:49]Read from MH i2c: E2 62 00 77 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E5 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [16: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 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E5 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:49]wFMCommunicate OK [16:13:49]SAM_PROTO_GetFieldsCounters done [16:13:49]requested_item shift.num is exist - process it [16:13:49]requested_item shift.opened is exist - process it [16:13:49]req_shift_opened [16:13:49]FM_GetShiftState [16:13:49]SAM_PROTO_GetShiftState [16:13:49]wFMCommunicate request_size=4 [16:13:49]MH_SAM_APDU [16:13:49]CAPDU: 80 13 01 00 [16:13:49]Write to MH i2c: E2 08 00 78 6B 80 13 01 00 00 00 00 00 60 [16:13:49]Write i2c OK [16:13:49]MH_I2C_Read... [16:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:49]Read from MH i2c: E2 [16:13:49]MH_I2C_Read... [16:13:49]Read from MH i2c: E2 0E 00 [16:13:49]MH_I2C_Read... [16:13:49]Read from MH i2c: E2 0E 00 78 6B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 99 [16:13:49]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:13:49]wFMCommunicate OK [16:13:49]SAM_PROTO_GetShiftState done [16:13:49]FM_GetShiftState done [16:13:49]req_shift_opened done [16:13:49]requested_item shift.open_date is exist - process it [16:13:49]req_shift_open_date [16:13:49]req_shift_open_date done [16:13:49]produce_requested_data done [16:13:49]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":140005,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [16:13:49]process_action_free close_receipt [16:13:49]json_value_free [16:13:49]json_value_free done [16:13:49]process_json_proto returns [16:13:49]Send response to host [16:13:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":140005,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [16:13:49]free response buf [16:13:49]execute_script done [16:13:49]execute_script returns [16:13:49]free content buf [16:13:49]Sock 7.Close socket [16:13:49]Sock 7.Thread stoped [16:13:53]OFD Sender: No OFD packet to send [16:13:58]OFD Sender: No OFD packet to send [16:14:03]OFD Sender: No OFD packet to send [16:14:08]OFD Sender: No OFD packet to send [16:14:13]OFD Sender: No OFD packet to send [16:14:18]OFD Sender: No OFD packet to send [16:14:23]OFD Sender: No OFD packet to send [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:38]OFD Sender: No OFD packet to send [16:14:43]OFD Sender: No OFD packet to send [16:14:48]OFD Sender: No OFD packet to send [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]OFD Sender: No OFD packet to send [16:15:23]OFD Sender: No OFD packet to send [16:15:28]OFD Sender: No OFD packet to send [16:15:33]OFD Sender: No OFD packet to send [16:15:38]OFD Sender: No OFD packet to send [16:15:43]OFD Sender: No OFD packet to send [16:15:48]OFD Sender: No OFD packet to send [16:15:53]OFD Sender: No OFD packet to send [16:15:58]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:33]OFD Sender: No OFD packet to send [16:16:38]OFD Sender: No OFD packet to send [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:58]OFD Sender: No OFD packet to send [16:17:03]OFD Sender: No OFD packet to send [16:17:08]OFD Sender: No OFD packet to send [16:17:13]OFD Sender: No OFD packet to send [16:17:18]OFD Sender: No OFD packet to send [16:17:23]OFD Sender: No OFD packet to send [16:17:28]OFD Sender: No OFD packet to send [16:17:33]OFD Sender: No OFD packet to send [16:17:38]OFD Sender: No OFD packet to send [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:17:58]accept exits with 9 [16:17:58]New connection [16:17:58]New thread 3066654052 created [16:17:58]Thread 3066510692 joined [16:17:58]Waiting for new connection... [16:17:58] Sock 9.Parse request [16:17:58]Sock 9.Check first char [16:17:58]Sock 9.First char is OK [16:17:58]request: POST /json_proto HTTP/1.0 [16:17:58]Method: POST [16:17:58]URL: /json_proto [16:17:58]Method is POST - this is cgi request [16:17:58]url: /json_proto [16:17:58]query_string will be loaded in cgi processing [16:17:58]execute_cgi json_proto POST (null) [16:17:58]execute_cgi path=json_proto method=POST [16:17:58]POST find Content-Length [16:17:58]Host: 172.17.50.196:8080 [16:17:58]Content-Length: 949 [16:17:58]Content-Type: application/json [16:17:58] [16:17:58]POST finish read [16:17:58]Found Content-Length = 949 [16:17:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335815", "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" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000026583", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\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" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:58]execute_script... [16:17: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)335815", "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" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000026583", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\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" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:58]POST & json_proto [16:17:58]process_json_proto [16:17:58]json parsed OK: [16:17:58]protocol is kg_v1.0 [16:17:58]action value=close_receipt [16:17:58]process_action close_receipt [16:17:58]cmd_close_receipt [16:17:58]MH_GetDate [16:17:58]Write to MH i2c: F0 00 00 79 6B D3 [16:17:58]Write i2c OK [16:17:58]MH_I2C_Read... [16:17:58]Read from MH i2c: F0 [16:17:58]MH_I2C_Read... [16:17:58]Read from MH i2c: F0 09 00 [16:17:58]MH_I2C_Read... [16:17:58]Read from MH i2c: F0 09 00 79 6B 00 3D FF 24 67 72 0D 1C 67 A5 [16:17:58]GetLastDocTimeStamp 1730477632 [16:17:58]current date 1730477885 [16:17:58]FM_GetShiftState [16:17:58]SAM_PROTO_GetShiftState [16:17:58]wFMCommunicate request_size=4 [16:17:58]MH_SAM_APDU [16:17:58]CAPDU: 80 13 01 00 [16:17:58]Write to MH i2c: E2 08 00 7A 6B 80 13 01 00 00 00 00 00 62 [16:17:58]Write i2c OK [16:17:58]MH_I2C_Read... [16:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:58]Read from MH i2c: E2 [16:17:58]MH_I2C_Read... [16:17:58]Read from MH i2c: E2 0E 00 [16:17:58]MH_I2C_Read... [16:17:58]Read from MH i2c: E2 0E 00 7A 6B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 9B [16:17:58]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:17:58]wFMCommunicate OK [16:17:58]SAM_PROTO_GetShiftState done [16:17:58]FM_GetShiftState done [16:17:58]opened in 1730419081 [16:17:58]opened+sec_in_day 1730505481 [16:17:58]quantity*price = 18000 [16:17:58]sum+1 = 18001 [16:17:58]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000026583 Вода Бонаква 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 187 01.11.2024 16:18 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 140006 ФПД: 34748460671049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T161805&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140006&fm=34748460671049&tin=02508201610067®Number=0000000000091631&sum=23000 0 [16:17:59]StoreToDocumentArchive [16:17:59]shift 558 fd 140006 [16:17:59]save to /storage/0558/doc_00140006 [16:17:59]save last doc name /storage/0558/doc_00140006 to /storage/kkm_last_doc_name [16:17:59]save OK [16:17:59]Clear old archive folders... [16:17:59]ProcessDocumentItem done err = 0, tmpTLVsize=398 [16:17:59]tlvbuf is 00BE2A90 [16:17:59]SAM_PROTO_ClearQueue [16:17:59]wFMCommunicate request_size=4 [16:17:59]MH_SAM_APDU [16:17:59]CAPDU: 80 09 00 00 [16:17:59]Write to MH i2c: E2 08 00 87 6B 80 09 00 00 00 00 00 00 64 [16:17:59]Write i2c OK [16:17:59]MH_I2C_Read... [16:18:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:00]Read from MH i2c: E2 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E2 03 00 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E2 03 00 87 6B 00 90 00 66 [16:18:00]RAPDU: 90 00 [16:18:00]wFMCommunicate OK [16:18:00]SAM_PROTO_ClearQueue done [16:18:00]KKMCreateOFDPacket [16:18:00]OFDProtocolAddRootSTLVToBuf [16:18:00]FM_MakeSignedData [16:18:00]FM_MakeSignedData [16:18:00]SAM_PROTO_SignData [16:18:00]wFMCommunicate request_size=4 [16:18:00]MH_SAM_APDU [16:18:00]CAPDU: 80 0D 01 02 [16:18:00]Write to MH i2c: E2 08 00 88 6B 80 0D 01 02 00 00 00 00 6C [16:18:00]Write i2c OK [16:18:00]MH_I2C_Read... [16:18:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:00]Read from MH i2c: E2 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E2 03 00 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E2 03 00 88 6B 00 90 00 67 [16:18:00]RAPDU: 90 00 [16:18:00]wFMCommunicate OK [16:18:00]wFMCommunicate request_size=255 [16:18:00]MH_SAM_APDU [16:18:00]CAPDU: 80 0D 02 02 FA 03 00 8E 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 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 36 35 38 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 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 D8 59 00 00 00 00 EB 03 26 [16:18:00]Write to MH i2c: E2 02 01 89 6B 80 0D 02 02 FA 00 03 00 8E 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 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 36 35 38 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 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 D8 59 00 00 00 00 EB 03 26 00 00 41 [16:18:00]Write i2c OK [16:18:00]MH_I2C_Read... [16:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:00]Read from MH i2c: E2 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E2 03 00 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E2 03 00 89 6B 00 90 00 68 [16:18:00]RAPDU: 90 00 [16:18:00]wFMCommunicate OK [16:18:00]wFMCommunicate request_size=157 [16:18:00]MH_SAM_APDU [16:18:00]CAPDU: 80 0D 02 02 98 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 BB 00 00 00 F4 03 04 00 3D FF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E6 22 02 00 35 04 06 00 1F 9A 81 A7 A0 49 [16:18:00]Write to MH i2c: E2 A0 00 8A 6B 80 0D 02 02 98 00 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 BB 00 00 00 F4 03 04 00 3D FF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E6 22 02 00 35 04 06 00 1F 9A 81 A7 A0 49 00 00 E0 [16:18:00]Write i2c OK [16:18:00]MH_I2C_Read... [16:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:00]Read from MH i2c: E2 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E2 03 00 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E2 03 00 8A 6B 00 90 00 69 [16:18:00]RAPDU: 90 00 [16:18:00]wFMCommunicate OK [16:18:00]wFMCommunicate request_size=4 [16:18:00]MH_SAM_APDU [16:18:00]CAPDU: 80 0D 03 02 [16:18:00]Write to MH i2c: E2 08 00 8B 6B 80 0D 03 02 00 00 00 00 71 [16:18:00]Write i2c OK [16:18:00]MH_I2C_Read... [16:18:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:00]Read from MH i2c: E2 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E2 0B 00 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E2 0B 00 8B 6B 00 C1 5B 8E E5 63 6C BD 75 90 00 02 [16:18:00]RAPDU: C1 5B 8E E5 63 6C BD 75 90 00 [16:18:00]wFMCommunicate OK [16:18:00]SAM_PROTO_SignData done [16:18:00]FM_MakeSignedData done [16:18:00]CreateOFDProtocolMessage [16:18:00]wFMCommunicate request_size=4 [16:18:00]MH_SAM_APDU [16:18:00]CAPDU: 80 11 00 00 [16:18:00]Write to MH i2c: E2 08 00 8C 6B 80 11 00 00 00 00 00 00 71 [16:18:00]Write i2c OK [16:18:00]MH_I2C_Read... [16:18:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:00]Read from MH i2c: E2 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E2 17 00 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: E2 17 00 8C 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CC [16:18:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:18:00]wFMCommunicate OK [16:18:00]CreateOFDProtocolMessage done [16:18:00]OFDSenderStorePacket 140006 [16:18:00]StoreOFDPacket docnum=140006 [16:18:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 A2 01 00 00 10 C8 9A 01 A8 AE 5A 03 01 00 03 00 8E 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 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 36 35 38 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 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 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 BB 00 00 00 F4 03 04 00 3D FF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E6 22 02 00 35 04 06 00 1F 9A 81 A7 A0 49 C1 5B 8E E5 63 6C BD 75 [16:18:00]CheckFolder [16:18:00]dirname=/storage/ofd_packets [16:18:00]CheckFolder done [16:18:00]ProducePacketName [16:18:00]name=ofd_packets/00140006 [16:18:00]NVStorageSaveData ofd_packets/00140006 [16:18:00]File name is /storage/ofd_packets/00140006 [16:18:00]Write 448 bytes [16:18:00]NVStorageSaveData done [16:18:00]OFDSenderStorePacket done [16:18:00]KKMCreateOFDPacket done [16:18:00]NVStorageSaveData kkm_last_timestamp [16:18:00]File name is /storage/kkm_last_timestamp [16:18:00]Write 4 bytes [16:18:00]NVStorageSaveData done [16:18:00]ExternCall_PrintAddStr [16:18:00]wPrintStart [16:18:00]Write to MH i2c: 01 00 00 8D 6B F8 [16:18:00]Write i2c OK [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: 01 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: 01 07 00 [16:18:00]MH_I2C_Read... [16:18:00]Read from MH i2c: 01 07 00 8D 6B 00 00 00 00 00 FF 0F 0D [16:18:00]RasterBufferAndPrint [16:18:00]line Счет N : (3)335815 [16:18:00]line ИНН: 02508201610067 [16:18:00]line Контрольно-Кассовый Чек [16:18:00]line ПРОДАЖА [16:18:00]line Товар: 4870002325113 [16:18:00]line Напиток PEPSI газированный ст 0,25л [16:18:00]line 2.000 * 90.00 [16:18:00]line = 180.00 [16:18:00]line НДС 12% НСП 1% [16:18:00]line > о реализуемом товаре [16:18:00]line Товар: 5449000026583 [16:18:00]line Вода Бонаква 1л [16:18:00]line 1.000 * 50.00 [16:18:00]line = 50.00 [16:18:00]line НДС 12% НСП 1% [16:18:00]line > о реализуемом товаре [16:18:00]line ИТОГО: 230.00 [16:18:00]line НСП 1% : 2.03 [16:18:00]line НДС 12% : 24.42 [16:18:00]line Наличными: 230.00 [16:18:00]line Безнал.: 0.00 [16:18:00]line Место: АЗС № 101 "Партнер Нефть" [16:18:00]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:18:00]line СНО: Общий режим [16:18:00]line Чек 187 01.11.2024 16:18 [16:18:00]line Смена: 558 ФФД: 1.0 [16:18:00]line ЗНМ: 0300000081 [16:18:00]line РНМ: 0000000000091631 [16:18:00]line Версия ККМ: 001 [16:18:00]line ФМ: 0000000000874669 [16:18:00]line ФД: 140006 [16:18:00]line ФПД: 34748460671049 [16:18:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T161805&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140006&fm=34748460671049&tin=02508201610067®Number=0000000000091631&sum=23000 [16:18:00]line 0 [16:18:00]OFD Sender: Processing packet 140006 [packets to send 34, broken 33] [16:18:00]ProducePacketName [16:18:00]name=ofd_packets/00140006 [16:18:00]OFD Sender: To server: pG, [16:18:00]CommunicateWithHost lk.salyk.kg:30040 [16:18:00]ConnectInit lk.salyk.kg [16:18:00]written 0, free lines is 4095 [16:18:01]Connected sock=11 [16:18:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 A2 01 00 00 10 C8 9A 01 A8 AE 5A 03 01 00 03 00 8E 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 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 36 35 38 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 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 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 BB 00 00 00 F4 03 04 00 3D FF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E6 22 02 00 35 04 06 00 1F 9A 81 A7 A0 49 C1 5B 8E E5 63 6C BD 75 [16:18:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 82 76 47 00 1B EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E6 22 02 00 F4 03 04 00 E8 AA 24 67 B6 04 01 00 00 1C 23 E7 50 D1 91 68 B5 [16:18:01]CommunicateWithHost err = 0 [16:18:01]CheckOFDResponse [16:18:01]1017 (14) - 77093643461234 [16:18:01]1041 (16) - 0000000000874669 [16:18:01]1040 (4) - 140006 [16:18:01]1012 (4) - 01.11.2024 10:18 [16:18:01]1206 (1) - 0 [16:18:01]OFD Sender: Remove packet 140006 [16:18:01]ProducePacketName [16:18:01]name=ofd_packets/00140006 [16:18:01]NVStorageDeleteData [16:18:01]Write to MH i2c: 01 00 00 BC 6B 27 [16:18:01]Write i2c OK [16:18:01]MH_I2C_Read... [16:18:01]Read from MH i2c: 01 [16:18:01]MH_I2C_Read... [16:18:01]Read from MH i2c: 01 07 00 [16:18:01]MH_I2C_Read... [16:18:01]Read from MH i2c: 01 07 00 BC 6B 00 00 00 00 00 A7 0C E1 [16:18:01]RasterBufferAndPrint [16:18:01]line [16:18:01]line [16:18:01]line [16:18:01]line [16:18:01]line [16:18:01]written 0, free lines is 3245 [16:18:01]MH_Cut [16:18:01]Write to MH i2c: D1 01 00 C3 6B 01 00 [16:18:01]Write i2c OK [16:18:01]MH_I2C_Read... [16:18:01]Read from MH i2c: D1 [16:18:01]MH_I2C_Read... [16:18:01]Read from MH i2c: D1 01 00 [16:18:01]MH_I2C_Read... [16:18:01]Read from MH i2c: D1 01 00 C3 6B 00 FF [16:18:01]Write to MH i2c: 01 00 00 C4 6B 2F [16:18:01]Write i2c OK [16:18:01]MH_I2C_Read... [16:18:01]OFD Sender: No OFD packet to send [16:18:02]*** Cut start [16:18:02]*** Partial cut [16:18:02]*** CUTSNS_PIN = 1 [16:18:02]*** CUTSNS_PIN = 0 [16:18:02]*** Brake cut motor [16:18:02]Read from MH i2c: 01 [16:18:02]MH_I2C_Read... [16:18:02]*** Stop cut motor [16:18:02]*** Cut end [16:18:02]Read from MH i2c: 01 07 00 [16:18:02]MH_I2C_Read... [16:18:02]Read from MH i2c: 01 07 00 C4 6B 00 00 00 00 00 FF 0F 44 [16:18:02]process_action close_receipt done [16:18:02]requested_data is exist [16:18:02]produce_requested_data [16:18:02]requested_item fm.sn is exist - process it [16:18:02]wFMCommunicate request_size=4 [16:18:02]MH_SAM_APDU [16:18:02]CAPDU: 80 11 00 00 [16:18:02]Write to MH i2c: E2 08 00 C5 6B 80 11 00 00 00 00 00 00 AA [16:18:02]Write i2c OK [16:18:02]MH_I2C_Read... [16:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:02]Read from MH i2c: E2 [16:18:02]MH_I2C_Read... [16:18:02]Read from MH i2c: E2 17 00 [16:18:02]MH_I2C_Read... [16:18:02]Read from MH i2c: E2 17 00 C5 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 05 [16:18:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:18:02]wFMCommunicate OK [16:18:02]requested_item fd.num is exist - process it [16:18:02]SAM_PROTO_GetFieldsCounters [16:18:02]wFMCommunicate request_size=4 [16:18:02]MH_SAM_APDU [16:18:02]CAPDU: 80 13 00 00 [16:18:02]Write to MH i2c: E2 08 00 C6 6B 80 13 00 00 00 00 00 00 AD [16:18:02]Write i2c OK [16:18:02]MH_I2C_Read... [16:18:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:03]Read from MH i2c: E2 [16:18:03]MH_I2C_Read... [16:18:03]Read from MH i2c: E2 62 00 [16:18:03]MH_I2C_Read... [16:18:03]Read from MH i2c: E2 62 00 C6 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E6 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [16:18:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E6 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:03]wFMCommunicate OK [16:18:03]SAM_PROTO_GetFieldsCounters done [16:18:03]requested_item shift.num is exist - process it [16:18:03]requested_item shift.opened is exist - process it [16:18:03]req_shift_opened [16:18:03]FM_GetShiftState [16:18:03]SAM_PROTO_GetShiftState [16:18:03]wFMCommunicate request_size=4 [16:18:03]MH_SAM_APDU [16:18:03]CAPDU: 80 13 01 00 [16:18:03]Write to MH i2c: E2 08 00 C7 6B 80 13 01 00 00 00 00 00 AF [16:18:03]Write i2c OK [16:18:03]MH_I2C_Read... [16:18:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:03]Read from MH i2c: E2 [16:18:03]MH_I2C_Read... [16:18:03]Read from MH i2c: E2 0E 00 [16:18:03]MH_I2C_Read... [16:18:03]Read from MH i2c: E2 0E 00 C7 6B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 E8 [16:18:03]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:18:03]wFMCommunicate OK [16:18:03]SAM_PROTO_GetShiftState done [16:18:03]FM_GetShiftState done [16:18:03]req_shift_opened done [16:18:03]requested_item shift.open_date is exist - process it [16:18:03]req_shift_open_date [16:18:03]req_shift_open_date done [16:18:03]produce_requested_data done [16:18:03]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":140006,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [16:18:03]process_action_free close_receipt [16:18:03]json_value_free [16:18:03]json_value_free done [16:18:03]process_json_proto returns [16:18:03]Send response to host [16:18:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":140006,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [16:18:03]free response buf [16:18:03]execute_script done [16:18:03]execute_script returns [16:18:03]free content buf [16:18:03]Sock 9.Close socket [16:18:03]Sock 9.Thread stoped [16:18:06]OFD Sender: No OFD packet to send [16:18:11]OFD Sender: No OFD packet to send [16:18:16]OFD Sender: No OFD packet to send [16:18:21]OFD Sender: No OFD packet to send [16:18:26]OFD Sender: No OFD packet to send [16:18:31]OFD Sender: No OFD packet to send [16:18:36]OFD Sender: No OFD packet to send [16:18:41]OFD Sender: No OFD packet to send [16:18:46]OFD Sender: No OFD packet to send [16:18:51]OFD Sender: No OFD packet to send [16:18:56]OFD Sender: No OFD packet to send [16:19:01]OFD Sender: No OFD packet to send [16:19:06]OFD Sender: No OFD packet to send [16:19:11]OFD Sender: No OFD packet to send [16:19:16]OFD Sender: No OFD packet to send [16:19:21]OFD Sender: No OFD packet to send [16:19:23]accept exits with 7 [16:19:23]New connection [16:19:23]New thread 3066510692 created [16:19:23]Thread 3066654052 joined [16:19:23]Waiting for new connection... [16:19:23] Sock 7.Parse request [16:19:23]Sock 7.Check first char [16:19:23]Sock 7.First char is OK [16:19:23]request: POST /json_proto HTTP/1.0 [16:19:23]Method: POST [16:19:23]URL: /json_proto [16:19:23]Method is POST - this is cgi request [16:19:23]url: /json_proto [16:19:23]query_string will be loaded in cgi processing [16:19:23]execute_cgi json_proto POST (null) [16:19:23]execute_cgi path=json_proto method=POST [16:19:23]POST find Content-Length [16:19:23]Host: 172.17.50.196:8080 [16:19:23]Content-Length: 1250 [16:19:23]Content-Type: application/json [16:19:23] [16:19:23]POST finish read [16:19:23]Found Content-Length = 1250 [16:19:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335816", "tax_sys" : 0, "items" : [ { "code": "4700026030031", "name": "\u041A\u0443\u0440\u0443\u0442 orbit", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160884", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 6.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 259.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:23]execute_script... [16:19: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)335816", "tax_sys" : 0, "items" : [ { "code": "4700026030031", "name": "\u041A\u0443\u0440\u0443\u0442 orbit", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160884", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 6.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 259.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:23]POST & json_proto [16:19:23]process_json_proto [16:19:23]json parsed OK: [16:19:23]protocol is kg_v1.0 [16:19:23]action value=close_receipt [16:19:23]process_action close_receipt [16:19:23]cmd_close_receipt [16:19:23]MH_GetDate [16:19:23]Write to MH i2c: F0 00 00 C8 6B 22 [16:19:23]Write i2c OK [16:19:23]MH_I2C_Read... [16:19:23]Read from MH i2c: F0 [16:19:23]MH_I2C_Read... [16:19:23]Read from MH i2c: F0 09 00 [16:19:23]MH_I2C_Read... [16:19:23]Read from MH i2c: F0 09 00 C8 6B 00 91 FF 24 67 72 0D 1C 67 48 [16:19:23]GetLastDocTimeStamp 1730477885 [16:19:23]current date 1730477969 [16:19:23]FM_GetShiftState [16:19:23]SAM_PROTO_GetShiftState [16:19:23]wFMCommunicate request_size=4 [16:19:23]MH_SAM_APDU [16:19:23]CAPDU: 80 13 01 00 [16:19:23]Write to MH i2c: E2 08 00 C9 6B 80 13 01 00 00 00 00 00 B1 [16:19:23]Write i2c OK [16:19:23]MH_I2C_Read... [16:19:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:23]Read from MH i2c: E2 [16:19:23]MH_I2C_Read... [16:19:23]Read from MH i2c: E2 0E 00 [16:19:23]MH_I2C_Read... [16:19:23]Read from MH i2c: E2 0E 00 C9 6B 00 09 00 01 89 19 24 67 00 00 00 00 90 00 EA [16:19:23]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:19:23]wFMCommunicate OK [16:19:23]SAM_PROTO_GetShiftState done [16:19:23]FM_GetShiftState done [16:19:23]opened in 1730419081 [16:19:23]opened+sec_in_day 1730505481 [16:19:23]quantity*price = 4900 [16:19:23]sum+1 = 4901 [16:19:23]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 2.000 * 60.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160884 Снек Курут индивидуальный 6.000 * 15.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 259.00 НСП 1% : 2.29 НДС 12% : 27.50 Наличными: 259.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 188 01.11.2024 16:19 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 140007 ФПД: 13455640125900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T161929&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140007&fm=13455640125900&tin=02508201610067®Number=0000000000091631&sum=25900 0 [16:19:24]StoreToDocumentArchive [16:19:24]shift 558 fd 140007 [16:19:24]save to /storage/0558/doc_00140007 [16:19:24]save last doc name /storage/0558/doc_00140007 to /storage/kkm_last_doc_name [16:19:24]save OK [16:19:24]Clear old archive folders... [16:19:24]ProcessDocumentItem done err = 0, tmpTLVsize=511 [16:19:24]tlvbuf is 00B889A0 [16:19:24]SAM_PROTO_ClearQueue [16:19:24]wFMCommunicate request_size=4 [16:19:24]MH_SAM_APDU [16:19:24]CAPDU: 80 09 00 00 [16:19:24]Write to MH i2c: E2 08 00 D6 6B 80 09 00 00 00 00 00 00 B3 [16:19:24]Write i2c OK [16:19:24]MH_I2C_Read... [16:19:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:24]Read from MH i2c: E2 [16:19:24]MH_I2C_Read... [16:19:24]Read from MH i2c: E2 03 00 [16:19:24]MH_I2C_Read... [16:19:24]Read from MH i2c: E2 03 00 D6 6B 00 90 00 B5 [16:19:24]RAPDU: 90 00 [16:19:24]wFMCommunicate OK [16:19:24]SAM_PROTO_ClearQueue done [16:19:24]KKMCreateOFDPacket [16:19:24]OFDProtocolAddRootSTLVToBuf [16:19:24]FM_MakeSignedData [16:19:24]FM_MakeSignedData [16:19:24]SAM_PROTO_SignData [16:19:24]wFMCommunicate request_size=4 [16:19:24]MH_SAM_APDU [16:19:24]CAPDU: 80 0D 01 02 [16:19:24]Write to MH i2c: E2 08 00 D7 6B 80 0D 01 02 00 00 00 00 BB [16:19:24]Write i2c OK [16:19:24]MH_I2C_Read... [16:19:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:24]Read from MH i2c: E2 [16:19:24]MH_I2C_Read... [16:19:24]Read from MH i2c: E2 03 00 [16:19:24]MH_I2C_Read... [16:19:24]Read from MH i2c: E2 03 00 D7 6B 00 90 00 B6 [16:19:24]RAPDU: 90 00 [16:19:24]wFMCommunicate OK [16:19:24]wFMCommunicate request_size=255 [16:19:24]MH_SAM_APDU [16:19:24]CAPDU: 80 0D 02 02 FA 03 00 FF 01 1E 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 [16:19:24]Write to MH i2c: E2 02 01 D8 6B 80 0D 02 02 FA 00 03 00 FF 01 1E 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 00 00 63 [16:19:24]Write i2c OK [16:19:24]MH_I2C_Read... [16:19:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:24]Read from MH i2c: E2 [16:19:24]MH_I2C_Read... [16:19:24]Read from MH i2c: E2 03 00 [16:19:24]MH_I2C_Read... [16:19:24]Read from MH i2c: E2 03 00 D8 6B 00 90 00 B7 [16:19:24]RAPDU: 90 00 [16:19:24]wFMCommunicate OK [16:19:24]wFMCommunicate request_size=255 [16:19:24]MH_SAM_APDU [16:19:24]CAPDU: 80 0D 02 02 FA 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 DC 05 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 2C 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0A 00 00 00 00 07 04 06 00 2C 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 91 FF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 [16:19:24]Write to MH i2c: E2 02 01 D9 6B 80 0D 02 02 FA 00 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 DC 05 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 2C 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0A 00 00 00 00 07 04 06 00 2C 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 91 FF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 00 AF [16:19:24]Write i2c OK [16:19:24]MH_I2C_Read... [16:19:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:25]Read from MH i2c: E2 [16:19:25]MH_I2C_Read... [16:19:25]Read from MH i2c: E2 03 00 [16:19:25]MH_I2C_Read... [16:19:25]Read from MH i2c: E2 03 00 D9 6B 00 90 00 B8 [16:19:25]RAPDU: 90 00 [16:19:25]wFMCommunicate OK [16:19:25]wFMCommunicate request_size=20 [16:19:25]MH_SAM_APDU [16:19:25]CAPDU: 80 0D 02 02 0F 00 E7 22 02 00 35 04 06 00 0C 3C E2 A6 61 CC [16:19:25]Write to MH i2c: E2 17 00 DA 6B 80 0D 02 02 0F 00 00 E7 22 02 00 35 04 06 00 0C 3C E2 A6 61 CC 00 00 24 [16:19:25]Write i2c OK [16:19:25]MH_I2C_Read... [16:19:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:25]Read from MH i2c: E2 [16:19:25]MH_I2C_Read... [16:19:25]Read from MH i2c: E2 03 00 [16:19:25]MH_I2C_Read... [16:19:25]Read from MH i2c: E2 03 00 DA 6B 00 90 00 B9 [16:19:25]RAPDU: 90 00 [16:19:25]wFMCommunicate OK [16:19:25]wFMCommunicate request_size=4 [16:19:25]MH_SAM_APDU [16:19:25]CAPDU: 80 0D 03 02 [16:19:25]Write to MH i2c: E2 08 00 DB 6B 80 0D 03 02 00 00 00 00 C1 [16:19:25]Write i2c OK [16:19:25]MH_I2C_Read... [16:19:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:25]Read from MH i2c: E2 [16:19:25]MH_I2C_Read... [16:19:25]Read from MH i2c: E2 0B 00 [16:19:25]MH_I2C_Read... [16:19:25]Read from MH i2c: E2 0B 00 DB 6B 00 E4 76 6D B6 1B 28 6E 29 90 00 19 [16:19:25]RAPDU: E4 76 6D B6 1B 28 6E 29 90 00 [16:19:25]wFMCommunicate OK [16:19:25]SAM_PROTO_SignData done [16:19:25]FM_MakeSignedData done [16:19:25]CreateOFDProtocolMessage [16:19:25]wFMCommunicate request_size=4 [16:19:25]MH_SAM_APDU [16:19:25]CAPDU: 80 11 00 00 [16:19:25]Write to MH i2c: E2 08 00 DC 6B 80 11 00 00 00 00 00 00 C1 [16:19:25]Write i2c OK [16:19:25]MH_I2C_Read... [16:19:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:25]Read from MH i2c: E2 [16:19:25]MH_I2C_Read... [16:19:25]Read from MH i2c: E2 17 00 [16:19:25]MH_I2C_Read... [16:19:25]Read from MH i2c: E2 17 00 DC 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1C [16:19:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:19:25]wFMCommunicate OK [16:19:25]CreateOFDProtocolMessage done [16:19:25]OFDSenderStorePacket 140007 [16:19:25]StoreOFDPacket docnum=140007 [16:19:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 13 02 00 00 7D 8E 0B 02 C9 07 5A 03 01 00 03 00 FF 01 1E 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 DC 05 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 2C 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0A 00 00 00 00 07 04 06 00 2C 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 91 FF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E7 22 02 00 35 04 06 00 0C 3C E2 A6 61 CC E4 76 6D B6 1B 28 6E 29 [16:19:25]CheckFolder [16:19:25]dirname=/storage/ofd_packets [16:19:25]CheckFolder done [16:19:25]ProducePacketName [16:19:25]name=ofd_packets/00140007 [16:19:25]NVStorageSaveData ofd_packets/00140007 [16:19:25]File name is /storage/ofd_packets/00140007 [16:19:25]Write 561 bytes [16:19:25]NVStorageSaveData done [16:19:25]OFDSenderStorePacket done [16:19:25]KKMCreateOFDPacket done [16:19:25]NVStorageSaveData kkm_last_timestamp [16:19:25]File name is /storage/kkm_last_timestamp [16:19:25]Write 4 bytes [16:19:25]NVStorageSaveData done [16:19:25]ExternCall_PrintAddStr [16:19:25]wPrintStart [16:19:25]Write to MH i2c: 01 00 00 DD 6B 48 [16:19:25]Write i2c OK [16:19:25]MH_I2C_Read... [16:19:25]Read from MH i2c: 01 [16:19:25]MH_I2C_Read... [16:19:25]Read from MH i2c: 01 07 00 [16:19:25]MH_I2C_Read... [16:19:25]Read from MH i2c: 01 07 00 DD 6B 00 00 00 00 00 FF 0F 5D [16:19:25]RasterBufferAndPrint [16:19:25]line Счет N : (3)335816 [16:19:25]line ИНН: 02508201610067 [16:19:25]line Контрольно-Кассовый Чек [16:19:25]line ПРОДАЖА [16:19:25]line Товар: 4700026030031 [16:19:25]line Курут orbit [16:19:25]line 1.000 * 49.00 [16:19:25]line = 49.00 [16:19:25]line НДС 12% НСП 1% [16:19:25]line > о реализуемом товаре [16:19:25]line Товар: 4700000160792 [16:19:25]line Снек Курут классический (круглый) [16:19:25]line 2.000 * 60.00 [16:19:25]line = 120.00 [16:19:25]line НДС 12% НСП 1% [16:19:25]line > о реализуемом товаре [16:19:25]line Товар: 4700000160884 [16:19:25]line Снек Курут индивидуальный [16:19:25]line 6.000 * 15.00 [16:19:25]line = 90.00 [16:19:25]line НДС 12% НСП 1% [16:19:25]line > о реализуемом товаре [16:19:25]line ИТОГО: 259.00 [16:19:25]line НСП 1% : 2.29 [16:19:25]line НДС 12% : 27.50 [16:19:25]line Наличными: 259.00 [16:19:25]line Безнал.: 0.00 [16:19:25]line Место: АЗС № 101 "Партнер Нефть" [16:19:25]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:19:25]line СНО: Общий режим [16:19:25]line Чек 188 01.11.2024 16:19 [16:19:25]line Смена: 558 ФФД: 1.0 [16:19:25]line ЗНМ: 0300000081 [16:19:25]line РНМ: 0000000000091631 [16:19:25]line Версия ККМ: 001 [16:19:25]line ФМ: 0000000000874669 [16:19:25]line ФД: 140007 [16:19:25]line ФПД: 13455640125900 [16:19:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T161929&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140007&fm=13455640125900&tin=02508201610067®Number=0000000000091631&sum=25900 [16:19:25]line 0 [16:19:25]OFD Sender: Processing packet 140007 [packets to send 34, broken 33] [16:19:25]ProducePacketName [16:19:25]name=ofd_packets/00140007 [16:19:25]OFD Sender: To server: pG, [16:19:25]CommunicateWithHost lk.salyk.kg:30040 [16:19:25]ConnectInit lk.salyk.kg [16:19:25]written 0, free lines is 4095 [16:19:25]Connected sock=10 [16:19:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 13 02 00 00 7D 8E 0B 02 C9 07 5A 03 01 00 03 00 FF 01 1E 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 DC 05 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 2C 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0A 00 00 00 00 07 04 06 00 2C 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 91 FF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E7 22 02 00 35 04 06 00 0C 3C E2 A6 61 CC E4 76 6D B6 1B 28 6E 29 [16:19:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 5B 74 47 00 28 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E7 22 02 00 F4 03 04 00 3C AB 24 67 B6 04 01 00 00 8A C3 27 56 46 DE 61 8E [16:19:25]CommunicateWithHost err = 0 [16:19:25]CheckOFDResponse [16:19:25]1017 (14) - 77093643461234 [16:19:25]1041 (16) - 0000000000874669 [16:19:25]1040 (4) - 140007 [16:19:25]1012 (4) - 01.11.2024 10:19 [16:19:25]1206 (1) - 0 [16:19:25]OFD Sender: Remove packet 140007 [16:19:25]ProducePacketName [16:19:25]name=ofd_packets/00140007 [16:19:25]NVStorageDeleteData [16:19:26]Write to MH i2c: 01 00 00 12 6C 7E [16:19:26]Write i2c OK [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: 01 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: 01 07 00 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: 01 07 00 12 6C 00 00 00 00 00 58 0C E9 [16:19:26]RasterBufferAndPrint [16:19:26]line [16:19:26]line [16:19:26]line [16:19:26]line [16:19:26]line [16:19:26]written 0, free lines is 3169 [16:19:26]MH_Cut [16:19:26]Write to MH i2c: D1 01 00 19 6C 01 57 [16:19:26]Write i2c OK [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: D1 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: D1 01 00 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: D1 01 00 19 6C 00 56 [16:19:26]Write to MH i2c: 01 00 00 1A 6C 86 [16:19:26]Write i2c OK [16:19:26]MH_I2C_Read... [16:19:26]OFD Sender: No OFD packet to send [16:19:27]*** Cut start [16:19:27]*** Partial cut [16:19:27]*** CUTSNS_PIN = 1 [16:19:27]*** CUTSNS_PIN = 0 [16:19:27]*** Brake cut motor [16:19:27]Read from MH i2c: 01 [16:19:27]MH_I2C_Read... [16:19:27]*** Stop cut motor [16:19:27]*** Cut end [16:19:27]Read from MH i2c: 01 07 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: 01 07 00 1A 6C 00 00 00 00 00 FF 0F 9B [16:19:27]process_action close_receipt done [16:19:27]requested_data is exist [16:19:27]produce_requested_data [16:19:27]requested_item fm.sn is exist - process it [16:19:27]wFMCommunicate request_size=4 [16:19:27]MH_SAM_APDU [16:19:27]CAPDU: 80 11 00 00 [16:19:27]Write to MH i2c: E2 08 00 1B 6C 80 11 00 00 00 00 00 00 01 [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:27]Read from MH i2c: E2 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 17 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 17 00 1B 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5C [16:19:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:19:27]wFMCommunicate OK [16:19:27]requested_item fd.num is exist - process it [16:19:27]SAM_PROTO_GetFieldsCounters [16:19:27]wFMCommunicate request_size=4 [16:19:27]MH_SAM_APDU [16:19:27]CAPDU: 80 13 00 00 [16:19:27]Write to MH i2c: E2 08 00 1C 6C 80 13 00 00 00 00 00 00 04 [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:27]Read from MH i2c: E2 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 62 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 62 00 1C 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E7 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [16:19:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E7 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:19:27]wFMCommunicate OK [16:19:27]SAM_PROTO_GetFieldsCounters done [16:19:27]requested_item shift.num is exist - process it [16:19:27]requested_item shift.opened is exist - process it [16:19:27]req_shift_opened [16:19:27]FM_GetShiftState [16:19:27]SAM_PROTO_GetShiftState [16:19:27]wFMCommunicate request_size=4 [16:19:27]MH_SAM_APDU [16:19:27]CAPDU: 80 13 01 00 [16:19:27]Write to MH i2c: E2 08 00 1D 6C 80 13 01 00 00 00 00 00 06 [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:27]Read from MH i2c: E2 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 0E 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 0E 00 1D 6C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 3F [16:19:27]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:19:27]wFMCommunicate OK [16:19:27]SAM_PROTO_GetShiftState done [16:19:27]FM_GetShiftState done [16:19:27]req_shift_opened done [16:19:27]requested_item shift.open_date is exist - process it [16:19:27]req_shift_open_date [16:19:27]req_shift_open_date done [16:19:27]produce_requested_data done [16:19:27]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":140007,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [16:19:27]process_action_free close_receipt [16:19:27]json_value_free [16:19:27]json_value_free done [16:19:27]process_json_proto returns [16:19:27]Send response to host [16:19:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":140007,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [16:19:27]free response buf [16:19:27]execute_script done [16:19:27]execute_script returns [16:19:27]free content buf [16:19:27]Sock 7.Close socket [16:19:27]Sock 7.Thread stoped [16:19:31]OFD Sender: No OFD packet to send [16:19:31]accept exits with 9 [16:19:31]New connection [16:19:31]New thread 3066654052 created [16:19:31]Thread 3066510692 joined [16:19:31]Waiting for new connection... [16:19:31] Sock 9.Parse request [16:19:31]Sock 9.Check first char [16:19:31]Sock 9.First char is OK [16:19:31]request: POST /json_proto HTTP/1.0 [16:19:31]Method: POST [16:19:31]URL: /json_proto [16:19:31]Method is POST - this is cgi request [16:19:31]url: /json_proto [16:19:31]query_string will be loaded in cgi processing [16:19:31]execute_cgi json_proto POST (null) [16:19:31]execute_cgi path=json_proto method=POST [16:19:31]POST find Content-Length [16:19:31]Host: 172.17.50.196:8080 [16:19:31]Content-Length: 656 [16:19:31]Content-Type: application/json [16:19:31] [16:19:31]POST finish read [16:19:31]Found Content-Length = 656 [16:19:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335818", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:31]execute_script... [16:19:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335818", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:31]POST & json_proto [16:19:31]process_json_proto [16:19:31]json parsed OK: [16:19:31]protocol is kg_v1.0 [16:19:31]action value=close_receipt [16:19:31]process_action close_receipt [16:19:31]cmd_close_receipt [16:19:31]MH_GetDate [16:19:31]Write to MH i2c: F0 00 00 1E 6C 79 [16:19:31]Write i2c OK [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: F0 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: F0 09 00 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: F0 09 00 1E 6C 00 9A FF 24 67 72 0D 1C 67 A8 [16:19:31]GetLastDocTimeStamp 1730477969 [16:19:31]current date 1730477978 [16:19:31]FM_GetShiftState [16:19:31]SAM_PROTO_GetShiftState [16:19:31]wFMCommunicate request_size=4 [16:19:31]MH_SAM_APDU [16:19:31]CAPDU: 80 13 01 00 [16:19:31]Write to MH i2c: E2 08 00 1F 6C 80 13 01 00 00 00 00 00 08 [16:19:31]Write i2c OK [16:19:31]MH_I2C_Read... [16:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:31]Read from MH i2c: E2 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 0E 00 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 0E 00 1F 6C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 41 [16:19:31]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:19:31]wFMCommunicate OK [16:19:31]SAM_PROTO_GetShiftState done [16:19:31]FM_GetShiftState done [16:19:31]opened in 1730419081 [16:19:31]opened+sec_in_day 1730505481 [16:19:31]quantity*price = 400 [16:19:31]sum+1 = 401 [16:19:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4.00 НСП 1% : 0.03 НДС 12% : 0.42 Наличными: 4.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 189 01.11.2024 16:19 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 140008 ФПД: 272764606988249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T161938&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140008&fm=272764606988249&tin=02508201610067®Number=0000000000091631&sum=400 0 [16:19:32]StoreToDocumentArchive [16:19:32]shift 558 fd 140008 [16:19:32]save to /storage/0558/doc_00140008 [16:19:32]save last doc name /storage/0558/doc_00140008 to /storage/kkm_last_doc_name [16:19:32]save OK [16:19:32]Clear old archive folders... [16:19:32]ProcessDocumentItem done err = 0, tmpTLVsize=278 [16:19:32]tlvbuf is 00B96740 [16:19:32]SAM_PROTO_ClearQueue [16:19:32]wFMCommunicate request_size=4 [16:19:32]MH_SAM_APDU [16:19:32]CAPDU: 80 09 00 00 [16:19:32]Write to MH i2c: E2 08 00 2C 6C 80 09 00 00 00 00 00 00 0A [16:19:32]Write i2c OK [16:19:32]MH_I2C_Read... [16:19:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:32]Read from MH i2c: E2 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 03 00 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 03 00 2C 6C 00 90 00 0C [16:19:32]RAPDU: 90 00 [16:19:32]wFMCommunicate OK [16:19:32]SAM_PROTO_ClearQueue done [16:19:32]KKMCreateOFDPacket [16:19:32]OFDProtocolAddRootSTLVToBuf [16:19:32]FM_MakeSignedData [16:19:32]FM_MakeSignedData [16:19:32]SAM_PROTO_SignData [16:19:32]wFMCommunicate request_size=4 [16:19:32]MH_SAM_APDU [16:19:32]CAPDU: 80 0D 01 02 [16:19:32]Write to MH i2c: E2 08 00 2D 6C 80 0D 01 02 00 00 00 00 12 [16:19:32]Write i2c OK [16:19:32]MH_I2C_Read... [16:19:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:33]Read from MH i2c: E2 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 03 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 03 00 2D 6C 00 90 00 0D [16:19:33]RAPDU: 90 00 [16:19:33]wFMCommunicate OK [16:19:33]wFMCommunicate request_size=255 [16:19:33]MH_SAM_APDU [16:19:33]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 9A FF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 [16:19:33]Write to MH i2c: E2 02 01 2E 6C 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 9A FF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 00 00 5B [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:33]Read from MH i2c: E2 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 03 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 03 00 2E 6C 00 90 00 0E [16:19:33]RAPDU: 90 00 [16:19:33]wFMCommunicate OK [16:19:33]wFMCommunicate request_size=37 [16:19:33]MH_SAM_APDU [16:19:33]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E8 22 02 00 35 04 06 00 F8 13 F5 81 BF D9 [16:19:33]Write to MH i2c: E2 28 00 2F 6C 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E8 22 02 00 35 04 06 00 F8 13 F5 81 BF D9 00 00 99 [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:33]Read from MH i2c: E2 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 03 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 03 00 2F 6C 00 90 00 0F [16:19:33]RAPDU: 90 00 [16:19:33]wFMCommunicate OK [16:19:33]wFMCommunicate request_size=4 [16:19:33]MH_SAM_APDU [16:19:33]CAPDU: 80 0D 03 02 [16:19:33]Write to MH i2c: E2 08 00 30 6C 80 0D 03 02 00 00 00 00 17 [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:33]Read from MH i2c: E2 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 0B 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 0B 00 30 6C 00 D8 CA 8D 98 75 3C 89 33 90 00 4C [16:19:33]RAPDU: D8 CA 8D 98 75 3C 89 33 90 00 [16:19:33]wFMCommunicate OK [16:19:33]SAM_PROTO_SignData done [16:19:33]FM_MakeSignedData done [16:19:33]CreateOFDProtocolMessage [16:19:33]wFMCommunicate request_size=4 [16:19:33]MH_SAM_APDU [16:19:33]CAPDU: 80 11 00 00 [16:19:33]Write to MH i2c: E2 08 00 31 6C 80 11 00 00 00 00 00 00 17 [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:33]Read from MH i2c: E2 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 17 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 17 00 31 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 72 [16:19:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:19:33]wFMCommunicate OK [16:19:33]CreateOFDProtocolMessage done [16:19:33]OFDSenderStorePacket 140008 [16:19:33]StoreOFDPacket docnum=140008 [16:19:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 90 AF 22 01 D5 1D 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 9A FF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E8 22 02 00 35 04 06 00 F8 13 F5 81 BF D9 D8 CA 8D 98 75 3C 89 33 [16:19:33]CheckFolder [16:19:33]dirname=/storage/ofd_packets [16:19:33]CheckFolder done [16:19:33]ProducePacketName [16:19:33]name=ofd_packets/00140008 [16:19:33]NVStorageSaveData ofd_packets/00140008 [16:19:33]File name is /storage/ofd_packets/00140008 [16:19:33]Write 328 bytes [16:19:33]NVStorageSaveData done [16:19:33]OFDSenderStorePacket done [16:19:33]KKMCreateOFDPacket done [16:19:33]NVStorageSaveData kkm_last_timestamp [16:19:33]File name is /storage/kkm_last_timestamp [16:19:33]Write 4 bytes [16:19:33]NVStorageSaveData done [16:19:33]ExternCall_PrintAddStr [16:19:33]wPrintStart [16:19:33]Write to MH i2c: 01 00 00 32 6C 9E [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: 01 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: 01 07 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: 01 07 00 32 6C 00 00 00 00 00 FF 0F B3 [16:19:33]RasterBufferAndPrint [16:19:33]line Счет N : (3)335818 [16:19:33]line ИНН: 02508201610067 [16:19:33]line Контрольно-Кассовый Чек [16:19:33]line ПРОДАЖА [16:19:33]line Товар: 2000031750019 [16:19:33]line Пакет Партнер Нефть [16:19:33]line 1.000 * 4.00 [16:19:33]line = 4.00 [16:19:33]line НДС 12% НСП 1% [16:19:33]line > о реализуемом товаре [16:19:33]line ИТОГО: 4.00 [16:19:33]line НСП 1% : 0.03 [16:19:33]line НДС 12% : 0.42 [16:19:33]line Наличными: 4.00 [16:19:33]line Безнал.: 0.00 [16:19:33]line Место: АЗС № 101 "Партнер Нефть" [16:19:33]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:19:33]line СНО: Общий режим [16:19:33]line Чек 189 01.11.2024 16:19 [16:19:33]line Смена: 558 ФФД: 1.0 [16:19:33]line ЗНМ: 0300000081 [16:19:33]line РНМ: 0000000000091631 [16:19:33]line Версия ККМ: 001 [16:19:33]line ФМ: 0000000000874669 [16:19:33]line ФД: 140008 [16:19:33]line ФПД: 272764606988249 [16:19:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T161938&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140008&fm=272764606988249&tin=02508201610067®Number=0000000000091631&sum=400 [16:19:33]line 0 [16:19:33]written 0, free lines is 4095 [16:19:33]OFD Sender: Processing packet 140008 [packets to send 34, broken 33] [16:19:33]ProducePacketName [16:19:33]name=ofd_packets/00140008 [16:19:33]OFD Sender: To server: pG, [16:19:33]CommunicateWithHost lk.salyk.kg:30040 [16:19:33]ConnectInit lk.salyk.kg [16:19:33]Connected sock=10 [16:19:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 90 AF 22 01 D5 1D 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 9A FF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E8 22 02 00 35 04 06 00 F8 13 F5 81 BF D9 D8 CA 8D 98 75 3C 89 33 [16:19:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 D1 DC 47 00 A2 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E8 22 02 00 F4 03 04 00 44 AB 24 67 B6 04 01 00 00 8F 2E 8D 0B 9A AD DA 5A [16:19:33]CommunicateWithHost err = 0 [16:19:33]CheckOFDResponse [16:19:33]1017 (14) - 77093643461234 [16:19:33]1041 (16) - 0000000000874669 [16:19:33]1040 (4) - 140008 [16:19:33]1012 (4) - 01.11.2024 10:19 [16:19:33]1206 (1) - 0 [16:19:33]OFD Sender: Remove packet 140008 [16:19:33]ProducePacketName [16:19:33]name=ofd_packets/00140008 [16:19:33]NVStorageDeleteData [16:19:33]Write to MH i2c: 01 00 00 5A 6C C6 [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: 01 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: 01 07 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: 01 07 00 5A 6C 00 00 00 00 00 08 0D E2 [16:19:33]RasterBufferAndPrint [16:19:33]line [16:19:33]line [16:19:33]line [16:19:33]line [16:19:33]line [16:19:33]written 0, free lines is 3351 [16:19:34]MH_Cut [16:19:34]Write to MH i2c: D1 01 00 61 6C 01 9F [16:19:34]Write i2c OK [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: D1 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: D1 01 00 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: D1 01 00 61 6C 00 9E [16:19:34]Write to MH i2c: 01 00 00 62 6C CE [16:19:34]Write i2c OK [16:19:34]MH_I2C_Read... [16:19:34]OFD Sender: No OFD packet to send [16:19:34]*** Cut start [16:19:34]*** Partial cut [16:19:34]*** CUTSNS_PIN = 1 [16:19:34]*** CUTSNS_PIN = 0 [16:19:34]*** Brake cut motor [16:19:35]Read from MH i2c: 01 [16:19:35]MH_I2C_Read... [16:19:35]*** Stop cut motor [16:19:35]*** Cut end [16:19:35]Read from MH i2c: 01 07 00 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: 01 07 00 62 6C 00 00 00 00 00 FF 0F E3 [16:19:35]process_action close_receipt done [16:19:35]requested_data is exist [16:19:35]produce_requested_data [16:19:35]requested_item fm.sn is exist - process it [16:19:35]wFMCommunicate request_size=4 [16:19:35]MH_SAM_APDU [16:19:35]CAPDU: 80 11 00 00 [16:19:35]Write to MH i2c: E2 08 00 63 6C 80 11 00 00 00 00 00 00 49 [16:19:35]Write i2c OK [16:19:35]MH_I2C_Read... [16:19:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:35]Read from MH i2c: E2 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: E2 17 00 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: E2 17 00 63 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A4 [16:19:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:19:35]wFMCommunicate OK [16:19:35]requested_item fd.num is exist - process it [16:19:35]SAM_PROTO_GetFieldsCounters [16:19:35]wFMCommunicate request_size=4 [16:19:35]MH_SAM_APDU [16:19:35]CAPDU: 80 13 00 00 [16:19:35]Write to MH i2c: E2 08 00 64 6C 80 13 00 00 00 00 00 00 4C [16:19:35]Write i2c OK [16:19:35]MH_I2C_Read... [16:19:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:35]Read from MH i2c: E2 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: E2 62 00 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: E2 62 00 64 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E8 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [16:19:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E8 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:19:35]wFMCommunicate OK [16:19:35]SAM_PROTO_GetFieldsCounters done [16:19:35]requested_item shift.num is exist - process it [16:19:35]requested_item shift.opened is exist - process it [16:19:35]req_shift_opened [16:19:35]FM_GetShiftState [16:19:35]SAM_PROTO_GetShiftState [16:19:35]wFMCommunicate request_size=4 [16:19:35]MH_SAM_APDU [16:19:35]CAPDU: 80 13 01 00 [16:19:35]Write to MH i2c: E2 08 00 65 6C 80 13 01 00 00 00 00 00 4E [16:19:35]Write i2c OK [16:19:35]MH_I2C_Read... [16:19:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:35]Read from MH i2c: E2 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: E2 0E 00 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: E2 0E 00 65 6C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 87 [16:19:35]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:19:35]wFMCommunicate OK [16:19:35]SAM_PROTO_GetShiftState done [16:19:35]FM_GetShiftState done [16:19:35]req_shift_opened done [16:19:35]requested_item shift.open_date is exist - process it [16:19:35]req_shift_open_date [16:19:35]req_shift_open_date done [16:19:35]produce_requested_data done [16:19:35]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":140008,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [16:19:35]process_action_free close_receipt [16:19:35]json_value_free [16:19:35]json_value_free done [16:19:35]process_json_proto returns [16:19:35]Send response to host [16:19:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":140008,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [16:19:35]free response buf [16:19:35]execute_script done [16:19:35]execute_script returns [16:19:35]free content buf [16:19:35]Sock 9.Close socket [16:19:35]Sock 9.Thread stoped [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:51]accept exits with 7 [16:20:51]New connection [16:20:51]New thread 3066510692 created [16:20:51]Thread 3066654052 joined [16:20:51]Waiting for new connection... [16:20:51] Sock 7.Parse request [16:20:51]Sock 7.Check first char [16:20:51]Sock 7.First char is OK [16:20:51]request: POST /json_proto HTTP/1.0 [16:20:51]Method: POST [16:20:51]URL: /json_proto [16:20:51]Method is POST - this is cgi request [16:20:51]url: /json_proto [16:20:51]query_string will be loaded in cgi processing [16:20:51]execute_cgi json_proto POST (null) [16:20:51]execute_cgi path=json_proto method=POST [16:20:51]POST find Content-Length [16:20:51]Host: 172.17.50.196:8080 [16:20:51]Content-Length: 742 [16:20:51]Content-Type: application/json [16:20:51] [16:20:51]POST finish read [16:20:51]Found Content-Length = 742 [16:20:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335819", "tax_sys" : 0, "items" : [ { "code": "5904917031261", "name": "\u0414\u0440\u0430\u0436\u0435 TURBO VENTILATOR Johny Bee", "price" : 243.00, "quantity" : 1.000, "sum" : 243.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 243.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:51]execute_script... [16:20:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335819", "tax_sys" : 0, "items" : [ { "code": "5904917031261", "name": "\u0414\u0440\u0430\u0436\u0435 TURBO VENTILATOR Johny Bee", "price" : 243.00, "quantity" : 1.000, "sum" : 243.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 243.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:51]POST & json_proto [16:20:51]process_json_proto [16:20:51]json parsed OK: [16:20:51]protocol is kg_v1.0 [16:20:51]action value=close_receipt [16:20:51]process_action close_receipt [16:20:51]cmd_close_receipt [16:20:51]MH_GetDate [16:20:51]Write to MH i2c: F0 00 00 66 6C C1 [16:20:51]Write i2c OK [16:20:51]MH_I2C_Read... [16:20:51]Read from MH i2c: F0 [16:20:51]MH_I2C_Read... [16:20:51]Read from MH i2c: F0 09 00 [16:20:51]MH_I2C_Read... [16:20:51]Read from MH i2c: F0 09 00 66 6C 00 EA FF 24 67 72 0D 1C 67 40 [16:20:51]GetLastDocTimeStamp 1730477978 [16:20:51]current date 1730478058 [16:20:51]FM_GetShiftState [16:20:51]SAM_PROTO_GetShiftState [16:20:51]wFMCommunicate request_size=4 [16:20:51]MH_SAM_APDU [16:20:51]CAPDU: 80 13 01 00 [16:20:51]Write to MH i2c: E2 08 00 67 6C 80 13 01 00 00 00 00 00 50 [16:20:51]Write i2c OK [16:20:51]MH_I2C_Read... [16:20:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:51]Read from MH i2c: E2 [16:20:51]MH_I2C_Read... [16:20:51]Read from MH i2c: E2 0E 00 [16:20:51]MH_I2C_Read... [16:20:51]Read from MH i2c: E2 0E 00 67 6C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 89 [16:20:51]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:20:51]wFMCommunicate OK [16:20:51]SAM_PROTO_GetShiftState done [16:20:51]FM_GetShiftState done [16:20:51]opened in 1730419081 [16:20:51]opened+sec_in_day 1730505481 [16:20:51]quantity*price = 24300 [16:20:51]sum+1 = 24301 [16:20:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 243.00 НСП 1% : 2.15 НДС 12% : 25.80 Наличными: 0.00 Безнал.: 243.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 190 01.11.2024 16:20 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 140009 ФПД: 38676664571825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T162058&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140009&fm=38676664571825&tin=02508201610067®Number=0000000000091631&sum=24300 0 [16:20:52]StoreToDocumentArchive [16:20:52]shift 558 fd 140009 [16:20:52]save to /storage/0558/doc_00140009 [16:20:52]save last doc name /storage/0558/doc_00140009 to /storage/kkm_last_doc_name [16:20:52]save OK [16:20:52]Clear old archive folders... [16:20:52]ProcessDocumentItem done err = 0, tmpTLVsize=279 [16:20:52]tlvbuf is 00A59CD0 [16:20:52]SAM_PROTO_ClearQueue [16:20:52]wFMCommunicate request_size=4 [16:20:52]MH_SAM_APDU [16:20:52]CAPDU: 80 09 00 00 [16:20:52]Write to MH i2c: E2 08 00 74 6C 80 09 00 00 00 00 00 00 52 [16:20:52]Write i2c OK [16:20:52]MH_I2C_Read... [16:20:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:52]Read from MH i2c: E2 [16:20:52]MH_I2C_Read... [16:20:52]Read from MH i2c: E2 03 00 [16:20:52]MH_I2C_Read... [16:20:52]Read from MH i2c: E2 03 00 74 6C 00 90 00 54 [16:20:52]RAPDU: 90 00 [16:20:52]wFMCommunicate OK [16:20:52]SAM_PROTO_ClearQueue done [16:20:52]KKMCreateOFDPacket [16:20:52]OFDProtocolAddRootSTLVToBuf [16:20:52]FM_MakeSignedData [16:20:52]FM_MakeSignedData [16:20:52]SAM_PROTO_SignData [16:20:52]wFMCommunicate request_size=4 [16:20:52]MH_SAM_APDU [16:20:52]CAPDU: 80 0D 01 02 [16:20:52]Write to MH i2c: E2 08 00 75 6C 80 0D 01 02 00 00 00 00 5A [16:20:52]Write i2c OK [16:20:52]MH_I2C_Read... [16:20:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:52]Read from MH i2c: E2 [16:20:52]MH_I2C_Read... [16:20:52]Read from MH i2c: E2 03 00 [16:20:52]MH_I2C_Read... [16:20:52]Read from MH i2c: E2 03 00 75 6C 00 90 00 55 [16:20:52]RAPDU: 90 00 [16:20:52]wFMCommunicate OK [16:20:52]wFMCommunicate request_size=255 [16:20:52]MH_SAM_APDU [16:20:52]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 31 32 36 31 06 04 25 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 54 55 52 42 4F 20 56 45 4E 54 49 4C 41 54 4F 52 20 4A 6F 68 6E 79 20 42 65 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 5E 00 00 00 00 13 04 06 00 EC 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 5E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 EA FF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 [16:20:52]Write to MH i2c: E2 02 01 76 6C 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 31 32 36 31 06 04 25 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 54 55 52 42 4F 20 56 45 4E 54 49 4C 41 54 4F 52 20 4A 6F 68 6E 79 20 42 65 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 5E 00 00 00 00 13 04 06 00 EC 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 5E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 EA FF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 00 00 71 [16:20:52]Write i2c OK [16:20:52]MH_I2C_Read... [16:20:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:53]Read from MH i2c: E2 [16:20:53]MH_I2C_Read... [16:20:53]Read from MH i2c: E2 03 00 [16:20:53]MH_I2C_Read... [16:20:53]Read from MH i2c: E2 03 00 76 6C 00 90 00 56 [16:20:53]RAPDU: 90 00 [16:20:53]wFMCommunicate OK [16:20:53]wFMCommunicate request_size=38 [16:20:53]MH_SAM_APDU [16:20:53]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E9 22 02 00 35 04 06 00 23 2D 1C DA 57 B1 [16:20:53]Write to MH i2c: E2 29 00 77 6C 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E9 22 02 00 35 04 06 00 23 2D 1C DA 57 B1 00 00 49 [16:20:53]Write i2c OK [16:20:53]MH_I2C_Read... [16:20:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:53]Read from MH i2c: E2 [16:20:53]MH_I2C_Read... [16:20:53]Read from MH i2c: E2 03 00 [16:20:53]MH_I2C_Read... [16:20:53]Read from MH i2c: E2 03 00 77 6C 00 90 00 57 [16:20:53]RAPDU: 90 00 [16:20:53]wFMCommunicate OK [16:20:53]wFMCommunicate request_size=4 [16:20:53]MH_SAM_APDU [16:20:53]CAPDU: 80 0D 03 02 [16:20:53]Write to MH i2c: E2 08 00 78 6C 80 0D 03 02 00 00 00 00 5F [16:20:53]Write i2c OK [16:20:53]MH_I2C_Read... [16:20:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:53]Read from MH i2c: E2 [16:20:53]MH_I2C_Read... [16:20:53]Read from MH i2c: E2 0B 00 [16:20:53]MH_I2C_Read... [16:20:53]Read from MH i2c: E2 0B 00 78 6C 00 E2 F5 51 A2 BA 61 4E F7 90 00 8A [16:20:53]RAPDU: E2 F5 51 A2 BA 61 4E F7 90 00 [16:20:53]wFMCommunicate OK [16:20:53]SAM_PROTO_SignData done [16:20:53]FM_MakeSignedData done [16:20:53]CreateOFDProtocolMessage [16:20:53]wFMCommunicate request_size=4 [16:20:53]MH_SAM_APDU [16:20:53]CAPDU: 80 11 00 00 [16:20:53]Write to MH i2c: E2 08 00 79 6C 80 11 00 00 00 00 00 00 5F [16:20:53]Write i2c OK [16:20:53]MH_I2C_Read... [16:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:53]Read from MH i2c: E2 [16:20:53]MH_I2C_Read... [16:20:53]Read from MH i2c: E2 17 00 [16:20:53]MH_I2C_Read... [16:20:53]Read from MH i2c: E2 17 00 79 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BA [16:20:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:20:53]wFMCommunicate OK [16:20:53]CreateOFDProtocolMessage done [16:20:53]OFDSenderStorePacket 140009 [16:20:53]StoreOFDPacket docnum=140009 [16:20:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2B 01 00 00 30 62 23 01 D6 9C 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 31 32 36 31 06 04 25 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 54 55 52 42 4F 20 56 45 4E 54 49 4C 41 54 4F 52 20 4A 6F 68 6E 79 20 42 65 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 5E 00 00 00 00 13 04 06 00 EC 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 5E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 EA FF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E9 22 02 00 35 04 06 00 23 2D 1C DA 57 B1 E2 F5 51 A2 BA 61 4E F7 [16:20:53]CheckFolder [16:20:53]dirname=/storage/ofd_packets [16:20:53]CheckFolder done [16:20:53]ProducePacketName [16:20:53]name=ofd_packets/00140009 [16:20:53]NVStorageSaveData ofd_packets/00140009 [16:20:53]File name is /storage/ofd_packets/00140009 [16:20:53]Write 329 bytes [16:20:53]NVStorageSaveData done [16:20:53]OFDSenderStorePacket done [16:20:53]KKMCreateOFDPacket done [16:20:53]NVStorageSaveData kkm_last_timestamp [16:20:53]File name is /storage/kkm_last_timestamp [16:20:53]Write 4 bytes [16:20:53]NVStorageSaveData done [16:20:53]ExternCall_PrintAddStr [16:20:53]wPrintStart [16:20:53]Write to MH i2c: 01 00 00 7A 6C E6 [16:20:53]Write i2c OK [16:20:53]MH_I2C_Read... [16:20:53]Read from MH i2c: 01 [16:20:53]MH_I2C_Read... [16:20:53]Read from MH i2c: 01 07 00 [16:20:53]MH_I2C_Read... [16:20:53]Read from MH i2c: 01 07 00 7A 6C 00 00 00 00 00 FF 0F FB [16:20:53]RasterBufferAndPrint [16:20:53]line Счет N : (3)335819 [16:20:53]line ИНН: 02508201610067 [16:20:53]line Контрольно-Кассовый Чек [16:20:53]line ПРОДАЖА [16:20:53]line Товар: 5904917031261 [16:20:53]line Драже TURBO VENTILATOR Johny Bee [16:20:53]line 1.000 * 243.00 [16:20:53]line = 243.00 [16:20:53]line НДС 12% НСП 1% [16:20:53]line > о реализуемом товаре [16:20:53]line ИТОГО: 243.00 [16:20:53]line НСП 1% : 2.15 [16:20:53]line НДС 12% : 25.80 [16:20:53]line Наличными: 0.00 [16:20:53]line Безнал.: 243.00 [16:20:53]line Место: АЗС № 101 "Партнер Нефть" [16:20:53]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:20:53]line СНО: Общий режим [16:20:53]line Чек 190 01.11.2024 16:20 [16:20:53]line Смена: 558 ФФД: 1.0 [16:20:53]line ЗНМ: 0300000081 [16:20:53]line РНМ: 0000000000091631 [16:20:53]line Версия ККМ: 001 [16:20:53]line Платежная система: Mbank [16:20:53]line ФМ: 0000000000874669 [16:20:53]line ФД: 140009 [16:20:53]line ФПД: 38676664571825 [16:20:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T162058&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140009&fm=38676664571825&tin=02508201610067®Number=0000000000091631&sum=24300 [16:20:53]OFD Sender: Processing packet 140009 [packets to send 34, broken 33] [16:20:53]ProducePacketName [16:20:53]name=ofd_packets/00140009 [16:20:53]OFD Sender: To server: pG, [16:20:53]CommunicateWithHost lk.salyk.kg:30040 [16:20:53]ConnectInit lk.salyk.kg [16:20:53]line 0 [16:20:53]written 0, free lines is 4095 [16:20:53]Connected sock=10 [16:20:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2B 01 00 00 30 62 23 01 D6 9C 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 31 32 36 31 06 04 25 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 54 55 52 42 4F 20 56 45 4E 54 49 4C 41 54 4F 52 20 4A 6F 68 6E 79 20 42 65 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 5E 00 00 00 00 13 04 06 00 EC 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 5E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 EA FF 24 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E9 22 02 00 35 04 06 00 23 2D 1C DA 57 B1 E2 F5 51 A2 BA 61 4E F7 [16:20:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 E8 68 47 00 C4 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E9 22 02 00 F4 03 04 00 94 AB 24 67 B6 04 01 00 00 0C 72 98 97 72 6E 5E 5B [16:20:54]CommunicateWithHost err = 0 [16:20:54]CheckOFDResponse [16:20:54]1017 (14) - 77093643461234 [16:20:54]1041 (16) - 0000000000874669 [16:20:54]1040 (4) - 140009 [16:20:54]1012 (4) - 01.11.2024 10:21 [16:20:54]1206 (1) - 0 [16:20:54]OFD Sender: Remove packet 140009 [16:20:54]ProducePacketName [16:20:54]name=ofd_packets/00140009 [16:20:54]NVStorageDeleteData [16:20:54]Write to MH i2c: 01 00 00 A4 6C 10 [16:20:54]Write i2c OK [16:20:54]MH_I2C_Read... [16:20:54]Read from MH i2c: 01 [16:20:54]MH_I2C_Read... [16:20:54]Read from MH i2c: 01 07 00 [16:20:54]MH_I2C_Read... [16:20:54]Read from MH i2c: 01 07 00 A4 6C 00 00 00 00 00 05 0D 29 [16:20:54]RasterBufferAndPrint [16:20:54]line [16:20:54]line [16:20:54]line [16:20:54]line [16:20:54]line [16:20:54]written 0, free lines is 3342 [16:20:54]MH_Cut [16:20:54]Write to MH i2c: D1 01 00 AB 6C 01 E9 [16:20:54]Write i2c OK [16:20:54]MH_I2C_Read... [16:20:54]Read from MH i2c: D1 [16:20:54]MH_I2C_Read... [16:20:54]Read from MH i2c: D1 01 00 [16:20:54]MH_I2C_Read... [16:20:54]Read from MH i2c: D1 01 00 AB 6C 00 E8 [16:20:54]Write to MH i2c: 01 00 00 AC 6C 18 [16:20:54]Write i2c OK [16:20:54]MH_I2C_Read... [16:20:54]OFD Sender: No OFD packet to send [16:20:54]*** Cut start [16:20:54]*** Partial cut [16:20:54]*** CUTSNS_PIN = 1 [16:20:54]*** CUTSNS_PIN = 0 [16:20:55]*** Brake cut motor [16:20:55]Read from MH i2c: 01 [16:20:55]MH_I2C_Read... [16:20:55]*** Stop cut motor [16:20:55]*** Cut end [16:20:55]Read from MH i2c: 01 07 00 [16:20:55]MH_I2C_Read... [16:20:55]Read from MH i2c: 01 07 00 AC 6C 00 00 00 00 00 FF 0F 2D [16:20:55]process_action close_receipt done [16:20:55]requested_data is exist [16:20:55]produce_requested_data [16:20:55]requested_item fm.sn is exist - process it [16:20:55]wFMCommunicate request_size=4 [16:20:55]MH_SAM_APDU [16:20:55]CAPDU: 80 11 00 00 [16:20:55]Write to MH i2c: E2 08 00 AD 6C 80 11 00 00 00 00 00 00 93 [16:20:55]Write i2c OK [16:20:55]MH_I2C_Read... [16:20:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:55]Read from MH i2c: E2 [16:20:55]MH_I2C_Read... [16:20:55]Read from MH i2c: E2 17 00 [16:20:55]MH_I2C_Read... [16:20:55]Read from MH i2c: E2 17 00 AD 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EE [16:20:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:20:55]wFMCommunicate OK [16:20:55]requested_item fd.num is exist - process it [16:20:55]SAM_PROTO_GetFieldsCounters [16:20:55]wFMCommunicate request_size=4 [16:20:55]MH_SAM_APDU [16:20:55]CAPDU: 80 13 00 00 [16:20:55]Write to MH i2c: E2 08 00 AE 6C 80 13 00 00 00 00 00 00 96 [16:20:55]Write i2c OK [16:20:55]MH_I2C_Read... [16:20:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:55]Read from MH i2c: E2 [16:20:55]MH_I2C_Read... [16:20:55]Read from MH i2c: E2 62 00 [16:20:55]MH_I2C_Read... [16:20:55]Read from MH i2c: E2 62 00 AE 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E9 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [16:20:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E9 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:55]wFMCommunicate OK [16:20:55]SAM_PROTO_GetFieldsCounters done [16:20:55]requested_item shift.num is exist - process it [16:20:55]requested_item shift.opened is exist - process it [16:20:55]req_shift_opened [16:20:55]FM_GetShiftState [16:20:55]SAM_PROTO_GetShiftState [16:20:55]wFMCommunicate request_size=4 [16:20:55]MH_SAM_APDU [16:20:55]CAPDU: 80 13 01 00 [16:20:55]Write to MH i2c: E2 08 00 AF 6C 80 13 01 00 00 00 00 00 98 [16:20:55]Write i2c OK [16:20:55]MH_I2C_Read... [16:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:55]Read from MH i2c: E2 [16:20:55]MH_I2C_Read... [16:20:55]Read from MH i2c: E2 0E 00 [16:20:55]MH_I2C_Read... [16:20:55]Read from MH i2c: E2 0E 00 AF 6C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 D1 [16:20:55]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:20:55]wFMCommunicate OK [16:20:55]SAM_PROTO_GetShiftState done [16:20:55]FM_GetShiftState done [16:20:55]req_shift_opened done [16:20:55]requested_item shift.open_date is exist - process it [16:20:55]req_shift_open_date [16:20:55]req_shift_open_date done [16:20:55]produce_requested_data done [16:20:55]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":140009,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [16:20:55]process_action_free close_receipt [16:20:55]json_value_free [16:20:55]json_value_free done [16:20:55]process_json_proto returns [16:20:55]Send response to host [16:20:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":140009,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [16:20:55]free response buf [16:20:55]execute_script done [16:20:55]execute_script returns [16:20:55]free content buf [16:20:55]Sock 7.Close socket [16:20:55]Sock 7.Thread stoped [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:19]OFD Sender: No OFD packet to send [16:21:24]OFD Sender: No OFD packet to send [16:21:29]OFD Sender: No OFD packet to send [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:49]OFD Sender: No OFD packet to send [16:21:54]OFD Sender: No OFD packet to send [16:21:59]OFD Sender: No OFD packet to send [16:22:04]OFD Sender: No OFD packet to send [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:08]accept exits with 9 [16:23:08]New connection [16:23:08]New thread 3066654052 created [16:23:08]Thread 3066510692 joined [16:23:08]Waiting for new connection... [16:23:08] Sock 9.Parse request [16:23:08]Sock 9.Check first char [16:23:08]Sock 9.First char is OK [16:23:08]request: POST /json_proto HTTP/1.0 [16:23:08]Method: POST [16:23:08]URL: /json_proto [16:23:08]Method is POST - this is cgi request [16:23:08]url: /json_proto [16:23:08]query_string will be loaded in cgi processing [16:23:08]execute_cgi json_proto POST (null) [16:23:08]execute_cgi path=json_proto method=POST [16:23:08]POST find Content-Length [16:23:08]Host: 172.17.50.196:8080 [16:23:08]Content-Length: 770 [16:23:08]Content-Type: application/json [16:23:08] [16:23:08]POST finish read [16:23:08]Found Content-Length = 770 [16:23:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:08]execute_script... [16:23:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:08]POST & json_proto [16:23:08]process_json_proto [16:23:08]json parsed OK: [16:23:08]protocol is kg_v1.0 [16:23:08]action value=close_receipt [16:23:08]process_action close_receipt [16:23:08]cmd_close_receipt [16:23:08]MH_GetDate [16:23:08]Write to MH i2c: F0 00 00 B0 6C 0B [16:23:08]Write i2c OK [16:23:08]MH_I2C_Read... [16:23:08]Read from MH i2c: F0 [16:23:08]MH_I2C_Read... [16:23:08]Read from MH i2c: F0 09 00 [16:23:08]MH_I2C_Read... [16:23:08]Read from MH i2c: F0 09 00 B0 6C 00 73 00 25 67 72 0D 1C 67 15 [16:23:08]GetLastDocTimeStamp 1730478058 [16:23:08]current date 1730478195 [16:23:08]FM_GetShiftState [16:23:08]SAM_PROTO_GetShiftState [16:23:08]wFMCommunicate request_size=4 [16:23:08]MH_SAM_APDU [16:23:08]CAPDU: 80 13 01 00 [16:23:08]Write to MH i2c: E2 08 00 B1 6C 80 13 01 00 00 00 00 00 9A [16:23:08]Write i2c OK [16:23:08]MH_I2C_Read... [16:23:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:08]Read from MH i2c: E2 [16:23:08]MH_I2C_Read... [16:23:08]Read from MH i2c: E2 0E 00 [16:23:08]MH_I2C_Read... [16:23:08]Read from MH i2c: E2 0E 00 B1 6C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 D3 [16:23:08]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:23:08]wFMCommunicate OK [16:23:08]SAM_PROTO_GetShiftState done [16:23:08]FM_GetShiftState done [16:23:08]opened in 1730419081 [16:23:08]opened+sec_in_day 1730505481 [16:23:08]quantity*price = 200043 [16:23:08]sum+1 = 200044 [16:23:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 191 01.11.2024 16:23 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 140010 ФПД: 171059972770735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T162315&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140010&fm=171059972770735&tin=02508201610067®Number=0000000000091631&sum=200043 [16:23:09]StoreToDocumentArchive [16:23:09]shift 558 fd 140010 [16:23:09]save to /storage/0558/doc_00140010 [16:23:09]save last doc name /storage/0558/doc_00140010 to /storage/kkm_last_doc_name [16:23:09]save OK [16:23:09]Clear old archive folders... [16:23:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:23:09]tlvbuf is 00BC4BA0 [16:23:09]SAM_PROTO_ClearQueue [16:23:09]wFMCommunicate request_size=4 [16:23:09]MH_SAM_APDU [16:23:09]CAPDU: 80 09 00 00 [16:23:09]Write to MH i2c: E2 08 00 BE 6C 80 09 00 00 00 00 00 00 9C [16:23:09]Write i2c OK [16:23:09]MH_I2C_Read... [16:23:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:10]Read from MH i2c: E2 [16:23:10]MH_I2C_Read... [16:23:10]Read from MH i2c: E2 03 00 [16:23:10]MH_I2C_Read... [16:23:10]Read from MH i2c: E2 03 00 BE 6C 00 90 00 9E [16:23:10]RAPDU: 90 00 [16:23:10]wFMCommunicate OK [16:23:10]SAM_PROTO_ClearQueue done [16:23:10]KKMCreateOFDPacket [16:23:10]OFDProtocolAddRootSTLVToBuf [16:23:10]FM_MakeSignedData [16:23:10]FM_MakeSignedData [16:23:10]SAM_PROTO_SignData [16:23:10]wFMCommunicate request_size=4 [16:23:10]MH_SAM_APDU [16:23:10]CAPDU: 80 0D 01 02 [16:23:10]Write to MH i2c: E2 08 00 BF 6C 80 0D 01 02 00 00 00 00 A4 [16:23:10]Write i2c OK [16:23:10]MH_I2C_Read... [16:23:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:10]Read from MH i2c: E2 [16:23:10]MH_I2C_Read... [16:23:10]Read from MH i2c: E2 03 00 [16:23:10]MH_I2C_Read... [16:23:10]Read from MH i2c: E2 03 00 BF 6C 00 90 00 9F [16:23:10]RAPDU: 90 00 [16:23:10]wFMCommunicate OK [16:23:10]wFMCommunicate request_size=255 [16:23:10]MH_SAM_APDU [16:23:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 73 00 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EA 22 02 00 35 04 06 00 9B [16:23:10]Write to MH i2c: E2 02 01 C0 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 73 00 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EA 22 02 00 35 04 06 00 9B 00 00 C9 [16:23:10]Write i2c OK [16:23:10]MH_I2C_Read... [16:23:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:10]Read from MH i2c: E2 [16:23:10]MH_I2C_Read... [16:23:10]Read from MH i2c: E2 03 00 [16:23:10]MH_I2C_Read... [16:23:10]Read from MH i2c: E2 03 00 C0 6C 00 90 00 A0 [16:23:10]RAPDU: 90 00 [16:23:10]wFMCommunicate OK [16:23:10]wFMCommunicate request_size=10 [16:23:10]MH_SAM_APDU [16:23:10]CAPDU: 80 0D 02 02 05 94 00 E9 8B AF [16:23:10]Write to MH i2c: E2 0D 00 C1 6C 80 0D 02 02 05 00 94 00 E9 8B AF 00 00 68 [16:23:10]Write i2c OK [16:23:10]MH_I2C_Read... [16:23:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:10]Read from MH i2c: E2 [16:23:10]MH_I2C_Read... [16:23:10]Read from MH i2c: E2 03 00 [16:23:10]MH_I2C_Read... [16:23:10]Read from MH i2c: E2 03 00 C1 6C 00 90 00 A1 [16:23:10]RAPDU: 90 00 [16:23:10]wFMCommunicate OK [16:23:10]wFMCommunicate request_size=4 [16:23:10]MH_SAM_APDU [16:23:10]CAPDU: 80 0D 03 02 [16:23:10]Write to MH i2c: E2 08 00 C2 6C 80 0D 03 02 00 00 00 00 A9 [16:23:10]Write i2c OK [16:23:10]MH_I2C_Read... [16:23:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:10]Read from MH i2c: E2 [16:23:10]MH_I2C_Read... [16:23:10]Read from MH i2c: E2 0B 00 [16:23:10]MH_I2C_Read... [16:23:10]Read from MH i2c: E2 0B 00 C2 6C 00 80 11 08 02 C7 57 00 A1 90 00 04 [16:23:10]RAPDU: 80 11 08 02 C7 57 00 A1 90 00 [16:23:10]wFMCommunicate OK [16:23:10]SAM_PROTO_SignData done [16:23:10]FM_MakeSignedData done [16:23:10]CreateOFDProtocolMessage [16:23:10]wFMCommunicate request_size=4 [16:23:10]MH_SAM_APDU [16:23:10]CAPDU: 80 11 00 00 [16:23:10]Write to MH i2c: E2 08 00 C3 6C 80 11 00 00 00 00 00 00 A9 [16:23:10]Write i2c OK [16:23:10]MH_I2C_Read... [16:23:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:10]Read from MH i2c: E2 [16:23:10]MH_I2C_Read... [16:23:10]Read from MH i2c: E2 17 00 [16:23:10]MH_I2C_Read... [16:23:10]Read from MH i2c: E2 17 00 C3 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 04 [16:23:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:23:10]wFMCommunicate OK [16:23:10]CreateOFDProtocolMessage done [16:23:10]OFDSenderStorePacket 140010 [16:23:10]StoreOFDPacket docnum=140010 [16:23:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 16 DD 07 01 87 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 73 00 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EA 22 02 00 35 04 06 00 9B 94 00 E9 8B AF 80 11 08 02 C7 57 00 A1 [16:23:10]CheckFolder [16:23:10]dirname=/storage/ofd_packets [16:23:10]CheckFolder done [16:23:10]ProducePacketName [16:23:10]name=ofd_packets/00140010 [16:23:10]NVStorageSaveData ofd_packets/00140010 [16:23:10]File name is /storage/ofd_packets/00140010 [16:23:10]Write 301 bytes [16:23:10]NVStorageSaveData done [16:23:10]OFDSenderStorePacket done [16:23:10]KKMCreateOFDPacket done [16:23:10]NVStorageSaveData kkm_last_timestamp [16:23:10]File name is /storage/kkm_last_timestamp [16:23:10]Write 4 bytes [16:23:10]NVStorageSaveData done [16:23:10]ExternCall_PrintAddStr [16:23:10]wPrintStart [16:23:10]Write to MH i2c: 01 00 00 C4 6C 30 [16:23:10]Write i2c OK [16:23:10]MH_I2C_Read... [16:23:10]Read from MH i2c: 01 [16:23:10]MH_I2C_Read... [16:23:10]Read from MH i2c: 01 07 00 [16:23:10]MH_I2C_Read... [16:23:10]Read from MH i2c: 01 07 00 C4 6C 00 00 00 00 00 FF 0F 45 [16:23:10]RasterBufferAndPrint [16:23:10]line Счет N : (1)1096078 [16:23:10]line ИНН: 02508201610067 [16:23:10]line Контрольно-Кассовый Чек [16:23:10]line ПРОДАЖА [16:23:10]line ТРК (МРК, ГНК) : 54 [16:23:10]line Товар: 2710124500 [16:23:10]line Аи-95-К-3 [16:23:10]line 26.960 * 74.20 [16:23:10]line = 2000.43 [16:23:10]line НДС 12% НСП 1% [16:23:10]line > о реализуемом товаре [16:23:10]line ИТОГО: 2000.43 [16:23:10]line НСП 1% : 17.70 [16:23:10]line НДС 12% : 212.43 [16:23:10]line Наличными: 0.00 [16:23:10]line Безнал.: 2000.43 [16:23:10]line Место: АЗС № 101 "Партнер Нефть" [16:23:10]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:23:10]line СНО: Общий режим [16:23:10]line Чек 191 01.11.2024 16:23 [16:23:10]line Смена: 558 ФФД: 1.0 [16:23:10]line ЗНМ: 0300000081 [16:23:10]line РНМ: 0000000000091631 [16:23:10]line Версия ККМ: 001 [16:23:10]line Платежная система: Mbank [16:23:10]line ФМ: 0000000000874669 [16:23:10]line ФД: 140010 [16:23:10]line ФПД: 171059972770735 [16:23:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T162315&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140010&fm=171059972770735&tin=02508201610067®Number=0000000000091631&sum=200043 [16:23:10]written 0, free lines is 4095 [16:23:10]OFD Sender: Processing packet 140010 [packets to send 34, broken 33] [16:23:10]ProducePacketName [16:23:10]name=ofd_packets/00140010 [16:23:10]OFD Sender: To server: pG, [16:23:10]CommunicateWithHost lk.salyk.kg:30040 [16:23:10]ConnectInit lk.salyk.kg [16:23:10]Connected sock=10 [16:23:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 16 DD 07 01 87 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 73 00 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EA 22 02 00 35 04 06 00 9B 94 00 E9 8B AF 80 11 08 02 C7 57 00 A1 [16:23:10]Write to MH i2c: 01 00 00 ED 6C 59 [16:23:10]Write i2c OK [16:23:10]MH_I2C_Read... [16:23:10]Read from MH i2c: 01 [16:23:10]MH_I2C_Read... [16:23:10]Read from MH i2c: 01 07 00 [16:23:10]MH_I2C_Read... [16:23:10]Read from MH i2c: 01 07 00 ED 6C 00 00 00 00 00 16 0D 83 [16:23:10]RasterBufferAndPrint [16:23:10]line [16:23:10]line [16:23:10]line [16:23:10]line [16:23:10]line [16:23:10]written 0, free lines is 3357 [16:23:10]MH_Cut [16:23:10]Write to MH i2c: D1 01 00 F4 6C 01 32 [16:23:10]Write i2c OK [16:23:10]MH_I2C_Read... [16:23:10]Read from MH i2c: D1 [16:23:10]MH_I2C_Read... [16:23:10]Read from MH i2c: D1 01 00 [16:23:10]MH_I2C_Read... [16:23:10]Read from MH i2c: D1 01 00 F4 6C 00 31 [16:23:10]Write to MH i2c: 01 00 00 F5 6C 61 [16:23:10]Write i2c OK [16:23:10]MH_I2C_Read... [16:23:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 7A D8 47 00 91 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EA 22 02 00 F4 03 04 00 1D AC 24 67 B6 04 01 00 00 E4 8E BF 43 0D 70 1A F1 [16:23:11]CommunicateWithHost err = 0 [16:23:11]CheckOFDResponse [16:23:11]1017 (14) - 77093643461234 [16:23:11]1041 (16) - 0000000000874669 [16:23:11]1040 (4) - 140010 [16:23:11]1012 (4) - 01.11.2024 10:23 [16:23:11]1206 (1) - 0 [16:23:11]OFD Sender: Remove packet 140010 [16:23:11]ProducePacketName [16:23:11]name=ofd_packets/00140010 [16:23:11]NVStorageDeleteData [16:23:11]*** Cut start [16:23:11]*** Partial cut [16:23:11]*** CUTSNS_PIN = 1 [16:23:11]OFD Sender: No OFD packet to send [16:23:11]*** CUTSNS_PIN = 0 [16:23:11]*** Brake cut motor [16:23:12]Read from MH i2c: 01 [16:23:12]*** Stop cut motor [16:23:12]*** Cut end [16:23:12]MH_I2C_Read... [16:23:12]Read from MH i2c: 01 07 00 [16:23:12]MH_I2C_Read... [16:23:12]Read from MH i2c: 01 07 00 F5 6C 00 00 00 00 00 FF 0F 76 [16:23:12]process_action close_receipt done [16:23:12]requested_data is exist [16:23:12]produce_requested_data [16:23:12]requested_item fm.sn is exist - process it [16:23:12]wFMCommunicate request_size=4 [16:23:12]MH_SAM_APDU [16:23:12]CAPDU: 80 11 00 00 [16:23:12]Write to MH i2c: E2 08 00 F6 6C 80 11 00 00 00 00 00 00 DC [16:23:12]Write i2c OK [16:23:12]MH_I2C_Read... [16:23:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:12]Read from MH i2c: E2 [16:23:12]MH_I2C_Read... [16:23:12]Read from MH i2c: E2 17 00 [16:23:12]MH_I2C_Read... [16:23:12]Read from MH i2c: E2 17 00 F6 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 37 [16:23:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:23:12]wFMCommunicate OK [16:23:12]requested_item fd.num is exist - process it [16:23:12]SAM_PROTO_GetFieldsCounters [16:23:12]wFMCommunicate request_size=4 [16:23:12]MH_SAM_APDU [16:23:12]CAPDU: 80 13 00 00 [16:23:12]Write to MH i2c: E2 08 00 F7 6C 80 13 00 00 00 00 00 00 DF [16:23:12]Write i2c OK [16:23:12]MH_I2C_Read... [16:23:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:12]Read from MH i2c: E2 [16:23:12]MH_I2C_Read... [16:23:12]Read from MH i2c: E2 62 00 [16:23:12]MH_I2C_Read... [16:23:12]Read from MH i2c: E2 62 00 F7 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 EA 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [16:23:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 EA 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:23:12]wFMCommunicate OK [16:23:12]SAM_PROTO_GetFieldsCounters done [16:23:12]requested_item shift.num is exist - process it [16:23:12]requested_item shift.opened is exist - process it [16:23:12]req_shift_opened [16:23:12]FM_GetShiftState [16:23:12]SAM_PROTO_GetShiftState [16:23:12]wFMCommunicate request_size=4 [16:23:12]MH_SAM_APDU [16:23:12]CAPDU: 80 13 01 00 [16:23:12]Write to MH i2c: E2 08 00 F8 6C 80 13 01 00 00 00 00 00 E1 [16:23:12]Write i2c OK [16:23:12]MH_I2C_Read... [16:23:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:12]Read from MH i2c: E2 [16:23:12]MH_I2C_Read... [16:23:12]Read from MH i2c: E2 0E 00 [16:23:12]MH_I2C_Read... [16:23:12]Read from MH i2c: E2 0E 00 F8 6C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 1A [16:23:12]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:23:12]wFMCommunicate OK [16:23:12]SAM_PROTO_GetShiftState done [16:23:12]FM_GetShiftState done [16:23:12]req_shift_opened done [16:23:12]requested_item shift.open_date is exist - process it [16:23:12]req_shift_open_date [16:23:12]req_shift_open_date done [16:23:12]produce_requested_data done [16:23:12]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":140010,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [16:23:12]process_action_free close_receipt [16:23:12]json_value_free [16:23:12]json_value_free done [16:23:12]process_json_proto returns [16:23:12]Send response to host [16:23:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":140010,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [16:23:12]free response buf [16:23:12]execute_script done [16:23:12]execute_script returns [16:23:12]free content buf [16:23:12]Sock 9.Close socket [16:23:12]Sock 9.Thread stoped [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:55]accept exits with 7 [16:23:55]New connection [16:23:55]New thread 3066510692 created [16:23:55]Thread 3066654052 joined [16:23:55]Waiting for new connection... [16:23:55] Sock 7.Parse request [16:23:55]Sock 7.Check first char [16:23:55]Sock 7.First char is OK [16:23:55]request: POST /json_proto HTTP/1.0 [16:23:55]Method: POST [16:23:55]URL: /json_proto [16:23:55]Method is POST - this is cgi request [16:23:55]url: /json_proto [16:23:55]query_string will be loaded in cgi processing [16:23:55]execute_cgi json_proto POST (null) [16:23:55]execute_cgi path=json_proto method=POST [16:23:55]POST find Content-Length [16:23:55]Host: 172.17.50.196:8080 [16:23:55]Content-Length: 678 [16:23:55]Content-Type: application/json [16:23:55] [16:23:55]POST finish read [16:23:55]Found Content-Length = 678 [16:23:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:55]execute_script... [16:23:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:55]POST & json_proto [16:23:55]process_json_proto [16:23:55]json parsed OK: [16:23:55]protocol is kg_v1.0 [16:23:55]action value=close_receipt [16:23:55]process_action close_receipt [16:23:55]cmd_close_receipt [16:23:55]MH_GetDate [16:23:55]Write to MH i2c: F0 00 00 F9 6C 54 [16:23:55]Write i2c OK [16:23:55]MH_I2C_Read... [16:23:55]Read from MH i2c: F0 [16:23:55]MH_I2C_Read... [16:23:55]Read from MH i2c: F0 09 00 [16:23:55]MH_I2C_Read... [16:23:55]Read from MH i2c: F0 09 00 F9 6C 00 A1 00 25 67 72 0D 1C 67 8C [16:23:55]GetLastDocTimeStamp 1730478195 [16:23:55]current date 1730478241 [16:23:55]FM_GetShiftState [16:23:55]SAM_PROTO_GetShiftState [16:23:55]wFMCommunicate request_size=4 [16:23:55]MH_SAM_APDU [16:23:55]CAPDU: 80 13 01 00 [16:23:55]Write to MH i2c: E2 08 00 FA 6C 80 13 01 00 00 00 00 00 E3 [16:23:55]Write i2c OK [16:23:55]MH_I2C_Read... [16:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:55]Read from MH i2c: E2 [16:23:55]MH_I2C_Read... [16:23:55]Read from MH i2c: E2 0E 00 [16:23:55]MH_I2C_Read... [16:23:55]Read from MH i2c: E2 0E 00 FA 6C 00 09 00 01 89 19 24 67 00 00 00 00 90 00 1C [16:23:55]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:23:55]wFMCommunicate OK [16:23:55]SAM_PROTO_GetShiftState done [16:23:55]FM_GetShiftState done [16:23:55]opened in 1730419081 [16:23:55]opened+sec_in_day 1730505481 [16:23:55]quantity*price = 50041 [16:23:55]sum+1 = 50042 [16:23:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 192 01.11.2024 16:24 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 140011 ФПД: 256898182956073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T162401&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140011&fm=256898182956073&tin=02508201610067®Number=0000000000091631&sum=50000 [16:23:56]StoreToDocumentArchive [16:23:56]shift 558 fd 140011 [16:23:56]save to /storage/0558/doc_00140011 [16:23:56]save last doc name /storage/0558/doc_00140011 to /storage/kkm_last_doc_name [16:23:56]save OK [16:23:56]Clear old archive folders... [16:23:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:23:56]tlvbuf is 00C8B2C0 [16:23:56]SAM_PROTO_ClearQueue [16:23:56]wFMCommunicate request_size=4 [16:23:56]MH_SAM_APDU [16:23:56]CAPDU: 80 09 00 00 [16:23:56]Write to MH i2c: E2 08 00 07 6D 80 09 00 00 00 00 00 00 E6 [16:23:56]Write i2c OK [16:23:56]MH_I2C_Read... [16:23:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:56]Read from MH i2c: E2 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 03 00 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 03 00 07 6D 00 90 00 E8 [16:23:56]RAPDU: 90 00 [16:23:56]wFMCommunicate OK [16:23:56]SAM_PROTO_ClearQueue done [16:23:56]KKMCreateOFDPacket [16:23:56]OFDProtocolAddRootSTLVToBuf [16:23:56]FM_MakeSignedData [16:23:56]FM_MakeSignedData [16:23:56]SAM_PROTO_SignData [16:23:56]wFMCommunicate request_size=4 [16:23:56]MH_SAM_APDU [16:23:56]CAPDU: 80 0D 01 02 [16:23:56]Write to MH i2c: E2 08 00 08 6D 80 0D 01 02 00 00 00 00 EE [16:23:56]Write i2c OK [16:23:56]MH_I2C_Read... [16:23:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:56]Read from MH i2c: E2 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 03 00 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 03 00 08 6D 00 90 00 E9 [16:23:56]RAPDU: 90 00 [16:23:56]wFMCommunicate OK [16:23:56]wFMCommunicate request_size=255 [16:23:56]MH_SAM_APDU [16:23:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 A1 00 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EB 22 02 00 35 04 06 00 E9 [16:23:56]Write to MH i2c: E2 02 01 09 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 A1 00 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EB 22 02 00 35 04 06 00 E9 00 00 92 [16:23:56]Write i2c OK [16:23:56]MH_I2C_Read... [16:23:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:57]Read from MH i2c: E2 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: E2 03 00 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: E2 03 00 09 6D 00 90 00 EA [16:23:57]RAPDU: 90 00 [16:23:57]wFMCommunicate OK [16:23:57]wFMCommunicate request_size=10 [16:23:57]MH_SAM_APDU [16:23:57]CAPDU: 80 0D 02 02 05 A5 C4 F0 44 29 [16:23:57]Write to MH i2c: E2 0D 00 0A 6D 80 0D 02 02 05 00 A5 C4 F0 44 29 00 00 C1 [16:23:57]Write i2c OK [16:23:57]MH_I2C_Read... [16:23:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:57]Read from MH i2c: E2 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: E2 03 00 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: E2 03 00 0A 6D 00 90 00 EB [16:23:57]RAPDU: 90 00 [16:23:57]wFMCommunicate OK [16:23:57]wFMCommunicate request_size=4 [16:23:57]MH_SAM_APDU [16:23:57]CAPDU: 80 0D 03 02 [16:23:57]Write to MH i2c: E2 08 00 0B 6D 80 0D 03 02 00 00 00 00 F3 [16:23:57]Write i2c OK [16:23:57]MH_I2C_Read... [16:23:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:57]Read from MH i2c: E2 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: E2 0B 00 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: E2 0B 00 0B 6D 00 C4 EC BB 9E 60 CD 05 1A 90 00 49 [16:23:57]RAPDU: C4 EC BB 9E 60 CD 05 1A 90 00 [16:23:57]wFMCommunicate OK [16:23:57]SAM_PROTO_SignData done [16:23:57]FM_MakeSignedData done [16:23:57]CreateOFDProtocolMessage [16:23:57]wFMCommunicate request_size=4 [16:23:57]MH_SAM_APDU [16:23:57]CAPDU: 80 11 00 00 [16:23:57]Write to MH i2c: E2 08 00 0C 6D 80 11 00 00 00 00 00 00 F3 [16:23:57]Write i2c OK [16:23:57]MH_I2C_Read... [16:23:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:57]Read from MH i2c: E2 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: E2 17 00 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: E2 17 00 0C 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4E [16:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:23:57]wFMCommunicate OK [16:23:57]CreateOFDProtocolMessage done [16:23:57]OFDSenderStorePacket 140011 [16:23:57]StoreOFDPacket docnum=140011 [16:23:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 EF 81 07 01 87 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 A1 00 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EB 22 02 00 35 04 06 00 E9 A5 C4 F0 44 29 C4 EC BB 9E 60 CD 05 1A [16:23:57]CheckFolder [16:23:57]dirname=/storage/ofd_packets [16:23:57]CheckFolder done [16:23:57]ProducePacketName [16:23:57]name=ofd_packets/00140011 [16:23:57]NVStorageSaveData ofd_packets/00140011 [16:23:57]File name is /storage/ofd_packets/00140011 [16:23:57]Write 301 bytes [16:23:57]NVStorageSaveData done [16:23:57]OFDSenderStorePacket done [16:23:57]KKMCreateOFDPacket done [16:23:57]NVStorageSaveData kkm_last_timestamp [16:23:57]File name is /storage/kkm_last_timestamp [16:23:57]Write 4 bytes [16:23:57]NVStorageSaveData done [16:23:57]ExternCall_PrintAddStr [16:23:57]wPrintStart [16:23:57]Write to MH i2c: 01 00 00 0D 6D 7A [16:23:57]Write i2c OK [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: 01 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: 01 07 00 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: 01 07 00 0D 6D 00 00 00 00 00 FF 0F 8F [16:23:57]RasterBufferAndPrint [16:23:57]line Счет N : (1)1096081 [16:23:57]line ИНН: 02508201610067 [16:23:57]line Контрольно-Кассовый Чек [16:23:57]line ПРОДАЖА [16:23:57]line ТРК (МРК, ГНК) : 33 [16:23:57]line Товар: 2710124130 [16:23:57]line Аи-92-К-2 [16:23:57]line 7.480 * 66.90 [16:23:57]line = 500.41 [16:23:57]line НДС 12% НСП 1% [16:23:57]line > о реализуемом товаре [16:23:57]line ОКРУГЛЕНИЕ: -0.41 [16:23:57]line ИТОГО: 500.00 [16:23:57]line Внесено: 500.00 [16:23:57]line СДАЧА: 0.00 [16:23:57]line НСП 1% : 4.43 [16:23:57]line НДС 12% : 53.14 [16:23:57]line Наличными: 500.00 [16:23:57]line Безнал.: 0.00 [16:23:57]line Место: АЗС № 101 "Партнер Нефть" [16:23:57]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:23:57]line СНО: Общий режим [16:23:57]line Чек 192 01.11.2024 16:24 [16:23:57]line Смена: 558 ФФД: 1.0 [16:23:57]line ЗНМ: 0300000081 [16:23:57]line РНМ: 0000000000091631 [16:23:57]line Версия ККМ: 001 [16:23:57]line ФМ: 0000000000874669 [16:23:57]line ФД: 140011 [16:23:57]line ФПД: 256898182956073 [16:23:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T162401&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140011&fm=256898182956073&tin=02508201610067®Number=0000000000091631&sum=50000 [16:23:57]OFD Sender: Processing packet 140011 [packets to send 34, broken 33] [16:23:57]ProducePacketName [16:23:57]name=ofd_packets/00140011 [16:23:57]OFD Sender: To server: pG, [16:23:57]CommunicateWithHost lk.salyk.kg:30040 [16:23:57]ConnectInit lk.salyk.kg [16:23:57]written 0, free lines is 4095 [16:23:57]Connected sock=10 [16:23:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 EF 81 07 01 87 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 A1 00 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EB 22 02 00 35 04 06 00 E9 A5 C4 F0 44 29 C4 EC BB 9E 60 CD 05 1A [16:23:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 E2 AE 47 00 20 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 34 36 36 39 10 04 04 00 EB 22 02 00 F4 03 04 00 4C AC 24 67 B6 04 01 00 00 BD A2 0B 36 9B B7 34 7F [16:23:57]CommunicateWithHost err = 0 [16:23:57]CheckOFDResponse [16:23:57]1017 (14) - 77093643461234 [16:23:57]1041 (16) - 0000000000874669 [16:23:57]1040 (4) - 140011 [16:23:57]1012 (4) - 01.11.2024 10:24 [16:23:57]1206 (1) - 0 [16:23:57]OFD Sender: Remove packet 140011 [16:23:57]ProducePacketName [16:23:57]name=ofd_packets/00140011 [16:23:57]NVStorageDeleteData [16:23:58]Write to MH i2c: 01 00 00 38 6D A5 [16:23:58]Write i2c OK [16:23:58]MH_I2C_Read... [16:23:58]Read from MH i2c: 01 [16:23:58]MH_I2C_Read... [16:23:58]Read from MH i2c: 01 07 00 [16:23:58]MH_I2C_Read... [16:23:58]Read from MH i2c: 01 07 00 38 6D 00 00 00 00 00 DD 0C 95 [16:23:58]RasterBufferAndPrint [16:23:58]line [16:23:58]line [16:23:58]line [16:23:58]line [16:23:58]line [16:23:58]written 0, free lines is 3299 [16:23:58]MH_Cut [16:23:58]Write to MH i2c: D1 01 00 3F 6D 01 7E [16:23:58]Write i2c OK [16:23:58]MH_I2C_Read... [16:23:58]Read from MH i2c: D1 [16:23:58]MH_I2C_Read... [16:23:58]Read from MH i2c: D1 01 00 [16:23:58]MH_I2C_Read... [16:23:58]Read from MH i2c: D1 01 00 3F 6D 00 7D [16:23:58]Write to MH i2c: 01 00 00 40 6D AD [16:23:58]Write i2c OK [16:23:58]MH_I2C_Read... [16:23:58]OFD Sender: No OFD packet to send [16:23:58]*** Cut start [16:23:58]*** Partial cut [16:23:58]*** CUTSNS_PIN = 1 [16:23:58]*** CUTSNS_PIN = 0 [16:23:58]*** Brake cut motor [16:23:59]Read from MH i2c: 01 [16:23:59]MH_I2C_Read... [16:23:59]*** Stop cut motor [16:23:59]*** Cut end [16:23:59]Read from MH i2c: 01 07 00 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: 01 07 00 40 6D 00 00 00 00 00 FF 0F C2 [16:23:59]process_action close_receipt done [16:23:59]requested_data is exist [16:23:59]produce_requested_data [16:23:59]requested_item fm.sn is exist - process it [16:23:59]wFMCommunicate request_size=4 [16:23:59]MH_SAM_APDU [16:23:59]CAPDU: 80 11 00 00 [16:23:59]Write to MH i2c: E2 08 00 41 6D 80 11 00 00 00 00 00 00 28 [16:23:59]Write i2c OK [16:23:59]MH_I2C_Read... [16:23:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:59]Read from MH i2c: E2 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 17 00 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 17 00 41 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 83 [16:23:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:23:59]wFMCommunicate OK [16:23:59]requested_item fd.num is exist - process it [16:23:59]SAM_PROTO_GetFieldsCounters [16:23:59]wFMCommunicate request_size=4 [16:23:59]MH_SAM_APDU [16:23:59]CAPDU: 80 13 00 00 [16:23:59]Write to MH i2c: E2 08 00 42 6D 80 13 00 00 00 00 00 00 2B [16:23:59]Write i2c OK [16:23:59]MH_I2C_Read... [16:23:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:59]Read from MH i2c: E2 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 62 00 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 62 00 42 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 EB 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [16:23:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 EB 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:23:59]wFMCommunicate OK [16:23:59]SAM_PROTO_GetFieldsCounters done [16:23:59]requested_item shift.num is exist - process it [16:23:59]requested_item shift.opened is exist - process it [16:23:59]req_shift_opened [16:23:59]FM_GetShiftState [16:23:59]SAM_PROTO_GetShiftState [16:23:59]wFMCommunicate request_size=4 [16:23:59]MH_SAM_APDU [16:23:59]CAPDU: 80 13 01 00 [16:23:59]Write to MH i2c: E2 08 00 43 6D 80 13 01 00 00 00 00 00 2D [16:23:59]Write i2c OK [16:23:59]MH_I2C_Read... [16:23:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:59]Read from MH i2c: E2 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 0E 00 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 0E 00 43 6D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 66 [16:23:59]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:23:59]wFMCommunicate OK [16:23:59]SAM_PROTO_GetShiftState done [16:23:59]FM_GetShiftState done [16:23:59]req_shift_opened done [16:23:59]requested_item shift.open_date is exist - process it [16:23:59]req_shift_open_date [16:23:59]req_shift_open_date done [16:23:59]produce_requested_data done [16:23:59]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":140011,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [16:23:59]process_action_free close_receipt [16:23:59]json_value_free [16:23:59]json_value_free done [16:23:59]process_json_proto returns [16:23:59]Send response to host [16:23:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":140011,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [16:23:59]free response buf [16:23:59]execute_script done [16:23:59]execute_script returns [16:23:59]free content buf [16:23:59]Sock 7.Close socket [16:23:59]Sock 7.Thread stoped [16:24:03]OFD Sender: No OFD packet to send [16:24:08]OFD Sender: No OFD packet to send [16:24:13]OFD Sender: No OFD packet to send [16:24:18]OFD Sender: No OFD packet to send [16:24:23]OFD Sender: No OFD packet to send [16:24:28]OFD Sender: No OFD packet to send [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:43]OFD Sender: No OFD packet to send [16:24:48]OFD Sender: No OFD packet to send [16:24:53]OFD Sender: No OFD packet to send [16:24:58]OFD Sender: No OFD packet to send [16:25:03]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:35]accept exits with 9 [16:25:35]New connection [16:25:35]New thread 3066654052 created [16:25:35]Thread 3066510692 joined [16:25:35]Waiting for new connection... [16:25:35] Sock 9.Parse request [16:25:35]Sock 9.Check first char [16:25:35]Sock 9.First char is OK [16:25:35]request: POST /json_proto HTTP/1.0 [16:25:35]Method: POST [16:25:35]URL: /json_proto [16:25:35]Method is POST - this is cgi request [16:25:35]url: /json_proto [16:25:35]query_string will be loaded in cgi processing [16:25:35]execute_cgi json_proto POST (null) [16:25:35]execute_cgi path=json_proto method=POST [16:25:35]POST find Content-Length [16:25:35]Host: 172.17.50.196:8080 [16:25:35]Content-Length: 678 [16:25:35]Content-Type: application/json [16:25:35] [16:25:35]POST finish read [16:25:35]Found Content-Length = 678 [16:25:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:35]execute_script... [16:25:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:35]POST & json_proto [16:25:35]process_json_proto [16:25:35]json parsed OK: [16:25:35]protocol is kg_v1.0 [16:25:35]action value=close_receipt [16:25:35]process_action close_receipt [16:25:35]cmd_close_receipt [16:25:35]MH_GetDate [16:25:35]Write to MH i2c: F0 00 00 44 6D A0 [16:25:35]Write i2c OK [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: F0 [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: F0 09 00 [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: F0 09 00 44 6D 00 05 01 25 67 72 0D 1C 67 3D [16:25:35]GetLastDocTimeStamp 1730478241 [16:25:35]current date 1730478341 [16:25:35]FM_GetShiftState [16:25:35]SAM_PROTO_GetShiftState [16:25:35]wFMCommunicate request_size=4 [16:25:35]MH_SAM_APDU [16:25:35]CAPDU: 80 13 01 00 [16:25:35]Write to MH i2c: E2 08 00 45 6D 80 13 01 00 00 00 00 00 2F [16:25:35]Write i2c OK [16:25:35]MH_I2C_Read... [16:25:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:35]Read from MH i2c: E2 [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: E2 0E 00 [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: E2 0E 00 45 6D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 68 [16:25:35]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:25:35]wFMCommunicate OK [16:25:35]SAM_PROTO_GetShiftState done [16:25:35]FM_GetShiftState done [16:25:35]opened in 1730419081 [16:25:35]opened+sec_in_day 1730505481 [16:25:35]quantity*price = 40068 [16:25:35]sum+1 = 40069 [16:25:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 193 01.11.2024 16:25 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 140012 ФПД: 94908187228697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T162541&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140012&fm=94908187228697&tin=02508201610067®Number=0000000000091631&sum=40000 [16:25:36]StoreToDocumentArchive [16:25:36]shift 558 fd 140012 [16:25:36]save to /storage/0558/doc_00140012 [16:25:36]save last doc name /storage/0558/doc_00140012 to /storage/kkm_last_doc_name [16:25:36]save OK [16:25:36]Clear old archive folders... [16:25:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:25:36]tlvbuf is 00A17D70 [16:25:36]SAM_PROTO_ClearQueue [16:25:36]wFMCommunicate request_size=4 [16:25:36]MH_SAM_APDU [16:25:36]CAPDU: 80 09 00 00 [16:25:36]Write to MH i2c: E2 08 00 52 6D 80 09 00 00 00 00 00 00 31 [16:25:36]Write i2c OK [16:25:36]MH_I2C_Read... [16:25:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:36]Read from MH i2c: E2 [16:25:36]MH_I2C_Read... [16:25:36]Read from MH i2c: E2 03 00 [16:25:36]MH_I2C_Read... [16:25:36]Read from MH i2c: E2 03 00 52 6D 00 90 00 33 [16:25:36]RAPDU: 90 00 [16:25:36]wFMCommunicate OK [16:25:36]SAM_PROTO_ClearQueue done [16:25:36]KKMCreateOFDPacket [16:25:36]OFDProtocolAddRootSTLVToBuf [16:25:36]FM_MakeSignedData [16:25:36]FM_MakeSignedData [16:25:36]SAM_PROTO_SignData [16:25:36]wFMCommunicate request_size=4 [16:25:36]MH_SAM_APDU [16:25:36]CAPDU: 80 0D 01 02 [16:25:36]Write to MH i2c: E2 08 00 53 6D 80 0D 01 02 00 00 00 00 39 [16:25:36]Write i2c OK [16:25:36]MH_I2C_Read... [16:25:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:36]Read from MH i2c: E2 [16:25:36]MH_I2C_Read... [16:25:36]Read from MH i2c: E2 03 00 [16:25:36]MH_I2C_Read... [16:25:36]Read from MH i2c: E2 03 00 53 6D 00 90 00 34 [16:25:36]RAPDU: 90 00 [16:25:36]wFMCommunicate OK [16:25:36]wFMCommunicate request_size=255 [16:25:36]MH_SAM_APDU [16:25:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 05 01 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EC 22 02 00 35 04 06 00 56 [16:25:36]Write to MH i2c: E2 02 01 54 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 05 01 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EC 22 02 00 35 04 06 00 56 00 00 61 [16:25:36]Write i2c OK [16:25:36]MH_I2C_Read... [16:25:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:37]Read from MH i2c: E2 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: E2 03 00 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: E2 03 00 54 6D 00 90 00 35 [16:25:37]RAPDU: 90 00 [16:25:37]wFMCommunicate OK [16:25:37]wFMCommunicate request_size=10 [16:25:37]MH_SAM_APDU [16:25:37]CAPDU: 80 0D 02 02 05 51 88 C9 3A 19 [16:25:37]Write to MH i2c: E2 0D 00 55 6D 80 0D 02 02 05 00 51 88 C9 3A 19 00 00 3B [16:25:37]Write i2c OK [16:25:37]MH_I2C_Read... [16:25:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:37]Read from MH i2c: E2 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: E2 03 00 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: E2 03 00 55 6D 00 90 00 36 [16:25:37]RAPDU: 90 00 [16:25:37]wFMCommunicate OK [16:25:37]wFMCommunicate request_size=4 [16:25:37]MH_SAM_APDU [16:25:37]CAPDU: 80 0D 03 02 [16:25:37]Write to MH i2c: E2 08 00 56 6D 80 0D 03 02 00 00 00 00 3E [16:25:37]Write i2c OK [16:25:37]MH_I2C_Read... [16:25:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:37]Read from MH i2c: E2 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: E2 0B 00 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: E2 0B 00 56 6D 00 5B A4 6C 76 B7 65 54 97 90 00 27 [16:25:37]RAPDU: 5B A4 6C 76 B7 65 54 97 90 00 [16:25:37]wFMCommunicate OK [16:25:37]SAM_PROTO_SignData done [16:25:37]FM_MakeSignedData done [16:25:37]CreateOFDProtocolMessage [16:25:37]wFMCommunicate request_size=4 [16:25:37]MH_SAM_APDU [16:25:37]CAPDU: 80 11 00 00 [16:25:37]Write to MH i2c: E2 08 00 57 6D 80 11 00 00 00 00 00 00 3E [16:25:37]Write i2c OK [16:25:37]MH_I2C_Read... [16:25:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:37]Read from MH i2c: E2 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: E2 17 00 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: E2 17 00 57 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 99 [16:25:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:25:37]wFMCommunicate OK [16:25:37]CreateOFDProtocolMessage done [16:25:37]OFDSenderStorePacket 140012 [16:25:37]StoreOFDPacket docnum=140012 [16:25:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 BB A2 07 01 64 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 05 01 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EC 22 02 00 35 04 06 00 56 51 88 C9 3A 19 5B A4 6C 76 B7 65 54 97 [16:25:37]CheckFolder [16:25:37]dirname=/storage/ofd_packets [16:25:37]CheckFolder done [16:25:37]ProducePacketName [16:25:37]name=ofd_packets/00140012 [16:25:37]NVStorageSaveData ofd_packets/00140012 [16:25:37]File name is /storage/ofd_packets/00140012 [16:25:37]Write 301 bytes [16:25:37]NVStorageSaveData done [16:25:37]OFDSenderStorePacket done [16:25:37]KKMCreateOFDPacket done [16:25:37]NVStorageSaveData kkm_last_timestamp [16:25:37]File name is /storage/kkm_last_timestamp [16:25:37]Write 4 bytes [16:25:37]NVStorageSaveData done [16:25:37]ExternCall_PrintAddStr [16:25:37]wPrintStart [16:25:37]Write to MH i2c: 01 00 00 58 6D C5 [16:25:37]Write i2c OK [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: 01 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: 01 07 00 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: 01 07 00 58 6D 00 00 00 00 00 FF 0F DA [16:25:37]RasterBufferAndPrint [16:25:37]line Счет N : (1)1096083 [16:25:37]line ИНН: 02508201610067 [16:25:37]line Контрольно-Кассовый Чек [16:25:37]line ПРОДАЖА [16:25:37]line ТРК (МРК, ГНК) : 54 [16:25:37]line Товар: 2710124500 [16:25:37]line Аи-95-К-3 [16:25:37]line 5.400 * 74.20 [16:25:37]line = 400.68 [16:25:37]line НДС 12% НСП 1% [16:25:37]line > о реализуемом товаре [16:25:37]line ОКРУГЛЕНИЕ: -0.68 [16:25:37]line ИТОГО: 400.00 [16:25:37]line Внесено: 400.00 [16:25:37]line СДАЧА: 0.00 [16:25:37]line НСП 1% : 3.55 [16:25:37]line НДС 12% : 42.55 [16:25:37]line Наличными: 400.00 [16:25:37]line Безнал.: 0.00 [16:25:37]line Место: АЗС № 101 "Партнер Нефть" [16:25:37]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:25:37]line СНО: Общий режим [16:25:37]line Чек 193 01.11.2024 16:25 [16:25:37]line Смена: 558 ФФД: 1.0 [16:25:37]line ЗНМ: 0300000081 [16:25:37]line РНМ: 0000000000091631 [16:25:37]line Версия ККМ: 001 [16:25:37]line ФМ: 0000000000874669 [16:25:37]line ФД: 140012 [16:25:37]line ФПД: 94908187228697 [16:25:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T162541&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140012&fm=94908187228697&tin=02508201610067®Number=0000000000091631&sum=40000 [16:25:37]written 0, free lines is 4095 [16:25:37]OFD Sender: Processing packet 140012 [packets to send 34, broken 33] [16:25:37]ProducePacketName [16:25:37]name=ofd_packets/00140012 [16:25:37]OFD Sender: To server: pG, [16:25:37]CommunicateWithHost lk.salyk.kg:30040 [16:25:37]ConnectInit lk.salyk.kg [16:25:37]Connected sock=10 [16:25:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 BB A2 07 01 64 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 05 01 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EC 22 02 00 35 04 06 00 56 51 88 C9 3A 19 5B A4 6C 76 B7 65 54 97 [16:25:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 FA 86 47 00 93 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EC 22 02 00 F4 03 04 00 B0 AC 24 67 B6 04 01 00 00 B3 0F 6E 6D E4 40 B8 B6 [16:25:37]CommunicateWithHost err = 0 [16:25:37]CheckOFDResponse [16:25:37]1017 (14) - 77093643461234 [16:25:37]1041 (16) - 0000000000874669 [16:25:37]1040 (4) - 140012 [16:25:37]1012 (4) - 01.11.2024 10:25 [16:25:37]1206 (1) - 0 [16:25:37]OFD Sender: Remove packet 140012 [16:25:37]ProducePacketName [16:25:37]name=ofd_packets/00140012 [16:25:37]NVStorageDeleteData [16:25:37]Write to MH i2c: 01 00 00 83 6D F0 [16:25:37]Write i2c OK [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: 01 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: 01 07 00 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: 01 07 00 83 6D 00 00 00 00 00 D9 0C DC [16:25:37]RasterBufferAndPrint [16:25:37]line [16:25:37]line [16:25:37]line [16:25:37]line [16:25:37]line [16:25:37]written 0, free lines is 3299 [16:25:38]MH_Cut [16:25:38]Write to MH i2c: D1 01 00 8A 6D 01 C9 [16:25:38]Write i2c OK [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: D1 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: D1 01 00 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: D1 01 00 8A 6D 00 C8 [16:25:38]Write to MH i2c: 01 00 00 8B 6D F8 [16:25:38]Write i2c OK [16:25:38]MH_I2C_Read... [16:25:38]OFD Sender: No OFD packet to send [16:25:38]*** Cut start [16:25:38]*** Partial cut [16:25:38]*** CUTSNS_PIN = 1 [16:25:38]*** CUTSNS_PIN = 0 [16:25:38]*** Brake cut motor [16:25:39]Read from MH i2c: 01 [16:25:39]MH_I2C_Read... [16:25:39]*** Stop cut motor [16:25:39]*** Cut end [16:25:39]Read from MH i2c: 01 07 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: 01 07 00 8B 6D 00 00 00 00 00 FF 0F 0D [16:25:39]process_action close_receipt done [16:25:39]requested_data is exist [16:25:39]produce_requested_data [16:25:39]requested_item fm.sn is exist - process it [16:25:39]wFMCommunicate request_size=4 [16:25:39]MH_SAM_APDU [16:25:39]CAPDU: 80 11 00 00 [16:25:39]Write to MH i2c: E2 08 00 8C 6D 80 11 00 00 00 00 00 00 73 [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:39]Read from MH i2c: E2 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 17 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 17 00 8C 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CE [16:25:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:25:39]wFMCommunicate OK [16:25:39]requested_item fd.num is exist - process it [16:25:39]SAM_PROTO_GetFieldsCounters [16:25:39]wFMCommunicate request_size=4 [16:25:39]MH_SAM_APDU [16:25:39]CAPDU: 80 13 00 00 [16:25:39]Write to MH i2c: E2 08 00 8D 6D 80 13 00 00 00 00 00 00 76 [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:39]Read from MH i2c: E2 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 62 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 62 00 8D 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 EC 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [16:25: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 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 EC 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:39]wFMCommunicate OK [16:25:39]SAM_PROTO_GetFieldsCounters done [16:25:39]requested_item shift.num is exist - process it [16:25:39]requested_item shift.opened is exist - process it [16:25:39]req_shift_opened [16:25:39]FM_GetShiftState [16:25:39]SAM_PROTO_GetShiftState [16:25:39]wFMCommunicate request_size=4 [16:25:39]MH_SAM_APDU [16:25:39]CAPDU: 80 13 01 00 [16:25:39]Write to MH i2c: E2 08 00 8E 6D 80 13 01 00 00 00 00 00 78 [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:39]Read from MH i2c: E2 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 0E 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 0E 00 8E 6D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 B1 [16:25:39]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:25:39]wFMCommunicate OK [16:25:39]SAM_PROTO_GetShiftState done [16:25:39]FM_GetShiftState done [16:25:39]req_shift_opened done [16:25:39]requested_item shift.open_date is exist - process it [16:25:39]req_shift_open_date [16:25:39]req_shift_open_date done [16:25:39]produce_requested_data done [16:25:39]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":140012,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [16:25:39]process_action_free close_receipt [16:25:39]json_value_free [16:25:39]json_value_free done [16:25:39]process_json_proto returns [16:25:39]Send response to host [16:25:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":140012,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [16:25:39]free response buf [16:25:39]execute_script done [16:25:39]execute_script returns [16:25:39]free content buf [16:25:39]Sock 9.Close socket [16:25:39]Sock 9.Thread stoped [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:01]accept exits with 7 [16:26:01]New connection [16:26:01]New thread 3066510692 created [16:26:01]Thread 3066654052 joined [16:26:01]Waiting for new connection... [16:26:01] Sock 7.Parse request [16:26:01]Sock 7.Check first char [16:26:01]Sock 7.First char is OK [16:26:01]request: POST /json_proto HTTP/1.0 [16:26:01]Method: POST [16:26:01]URL: /json_proto [16:26:01]Method is POST - this is cgi request [16:26:01]url: /json_proto [16:26:01]query_string will be loaded in cgi processing [16:26:01]execute_cgi json_proto POST (null) [16:26:01]execute_cgi path=json_proto method=POST [16:26:01]POST find Content-Length [16:26:01]Host: 172.17.50.196:8080 [16:26:01]Content-Length: 683 [16:26:01]Content-Type: application/json [16:26:01] [16:26:01]POST finish read [16:26:01]Found Content-Length = 683 [16:26:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:01]execute_script... [16:26: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)1096082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:01]POST & json_proto [16:26:01]process_json_proto [16:26:01]json parsed OK: [16:26:01]protocol is kg_v1.0 [16:26:01]action value=close_receipt [16:26:01]process_action close_receipt [16:26:01]cmd_close_receipt [16:26:01]MH_GetDate [16:26:01]Write to MH i2c: F0 00 00 8F 6D EB [16:26:01]Write i2c OK [16:26:01]MH_I2C_Read... [16:26:01]Read from MH i2c: F0 [16:26:01]MH_I2C_Read... [16:26:01]Read from MH i2c: F0 09 00 [16:26:01]MH_I2C_Read... [16:26:01]Read from MH i2c: F0 09 00 8F 6D 00 1F 01 25 67 72 0D 1C 67 A2 [16:26:01]GetLastDocTimeStamp 1730478341 [16:26:01]current date 1730478367 [16:26:01]FM_GetShiftState [16:26:01]SAM_PROTO_GetShiftState [16:26:01]wFMCommunicate request_size=4 [16:26:01]MH_SAM_APDU [16:26:01]CAPDU: 80 13 01 00 [16:26:01]Write to MH i2c: E2 08 00 90 6D 80 13 01 00 00 00 00 00 7A [16:26:01]Write i2c OK [16:26:01]MH_I2C_Read... [16:26:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:01]Read from MH i2c: E2 [16:26:01]MH_I2C_Read... [16:26:01]Read from MH i2c: E2 0E 00 [16:26:01]MH_I2C_Read... [16:26:01]Read from MH i2c: E2 0E 00 90 6D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 B3 [16:26:01]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:26:01]wFMCommunicate OK [16:26:01]SAM_PROTO_GetShiftState done [16:26:01]FM_GetShiftState done [16:26:01]opened in 1730419081 [16:26:01]opened+sec_in_day 1730505481 [16:26:01]quantity*price = 200043 [16:26:01]sum+1 = 200044 [16:26:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 194 01.11.2024 16:26 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 140013 ФПД: 153333575065717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T162607&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140013&fm=153333575065717&tin=02508201610067®Number=0000000000091631&sum=200000 [16:26:02]StoreToDocumentArchive [16:26:02]shift 558 fd 140013 [16:26:02]save to /storage/0558/doc_00140013 [16:26:02]save last doc name /storage/0558/doc_00140013 to /storage/kkm_last_doc_name [16:26:02]save OK [16:26:02]Clear old archive folders... [16:26:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:26:02]tlvbuf is 00C5D530 [16:26:02]SAM_PROTO_ClearQueue [16:26:02]wFMCommunicate request_size=4 [16:26:02]MH_SAM_APDU [16:26:02]CAPDU: 80 09 00 00 [16:26:02]Write to MH i2c: E2 08 00 9D 6D 80 09 00 00 00 00 00 00 7C [16:26:02]Write i2c OK [16:26:02]MH_I2C_Read... [16:26:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:02]Read from MH i2c: E2 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: E2 03 00 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: E2 03 00 9D 6D 00 90 00 7E [16:26:02]RAPDU: 90 00 [16:26:02]wFMCommunicate OK [16:26:02]SAM_PROTO_ClearQueue done [16:26:02]KKMCreateOFDPacket [16:26:02]OFDProtocolAddRootSTLVToBuf [16:26:02]FM_MakeSignedData [16:26:02]FM_MakeSignedData [16:26:02]SAM_PROTO_SignData [16:26:02]wFMCommunicate request_size=4 [16:26:02]MH_SAM_APDU [16:26:02]CAPDU: 80 0D 01 02 [16:26:02]Write to MH i2c: E2 08 00 9E 6D 80 0D 01 02 00 00 00 00 84 [16:26:02]Write i2c OK [16:26:02]MH_I2C_Read... [16:26:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:02]Read from MH i2c: E2 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: E2 03 00 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: E2 03 00 9E 6D 00 90 00 7F [16:26:02]RAPDU: 90 00 [16:26:02]wFMCommunicate OK [16:26:02]wFMCommunicate request_size=255 [16:26:02]MH_SAM_APDU [16:26:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 1F 01 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 ED 22 02 00 35 04 06 00 8B [16:26:02]Write to MH i2c: E2 02 01 9F 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 1F 01 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 ED 22 02 00 35 04 06 00 8B 00 00 F6 [16:26:02]Write i2c OK [16:26:02]MH_I2C_Read... [16:26:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:02]Read from MH i2c: E2 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: E2 03 00 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: E2 03 00 9F 6D 00 90 00 80 [16:26:02]RAPDU: 90 00 [16:26:02]wFMCommunicate OK [16:26:02]wFMCommunicate request_size=10 [16:26:02]MH_SAM_APDU [16:26:02]CAPDU: 80 0D 02 02 05 74 C1 46 20 75 [16:26:02]Write to MH i2c: E2 0D 00 A0 6D 80 0D 02 02 05 00 74 C1 46 20 75 00 00 A1 [16:26:02]Write i2c OK [16:26:02]MH_I2C_Read... [16:26:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:02]Read from MH i2c: E2 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: E2 03 00 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: E2 03 00 A0 6D 00 90 00 81 [16:26:02]RAPDU: 90 00 [16:26:02]wFMCommunicate OK [16:26:02]wFMCommunicate request_size=4 [16:26:02]MH_SAM_APDU [16:26:02]CAPDU: 80 0D 03 02 [16:26:02]Write to MH i2c: E2 08 00 A1 6D 80 0D 03 02 00 00 00 00 89 [16:26:02]Write i2c OK [16:26:02]MH_I2C_Read... [16:26:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:02]Read from MH i2c: E2 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: E2 0B 00 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: E2 0B 00 A1 6D 00 85 68 75 CA B3 F4 AB A2 90 00 AA [16:26:02]RAPDU: 85 68 75 CA B3 F4 AB A2 90 00 [16:26:02]wFMCommunicate OK [16:26:02]SAM_PROTO_SignData done [16:26:02]FM_MakeSignedData done [16:26:02]CreateOFDProtocolMessage [16:26:02]wFMCommunicate request_size=4 [16:26:02]MH_SAM_APDU [16:26:02]CAPDU: 80 11 00 00 [16:26:02]Write to MH i2c: E2 08 00 A2 6D 80 11 00 00 00 00 00 00 89 [16:26:02]Write i2c OK [16:26:02]MH_I2C_Read... [16:26:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:02]Read from MH i2c: E2 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: E2 17 00 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: E2 17 00 A2 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E4 [16:26:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:26:02]wFMCommunicate OK [16:26:02]CreateOFDProtocolMessage done [16:26:02]OFDSenderStorePacket 140013 [16:26:02]StoreOFDPacket docnum=140013 [16:26:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 2B 54 07 01 25 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 1F 01 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 ED 22 02 00 35 04 06 00 8B 74 C1 46 20 75 85 68 75 CA B3 F4 AB A2 [16:26:02]CheckFolder [16:26:02]dirname=/storage/ofd_packets [16:26:02]CheckFolder done [16:26:02]ProducePacketName [16:26:02]name=ofd_packets/00140013 [16:26:02]NVStorageSaveData ofd_packets/00140013 [16:26:02]File name is /storage/ofd_packets/00140013 [16:26:02]Write 301 bytes [16:26:02]NVStorageSaveData done [16:26:02]OFDSenderStorePacket done [16:26:02]KKMCreateOFDPacket done [16:26:02]NVStorageSaveData kkm_last_timestamp [16:26:02]File name is /storage/kkm_last_timestamp [16:26:02]Write 4 bytes [16:26:02]NVStorageSaveData done [16:26:02]ExternCall_PrintAddStr [16:26:02]wPrintStart [16:26:02]Write to MH i2c: 01 00 00 A3 6D 10 [16:26:02]Write i2c OK [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: 01 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: 01 07 00 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: 01 07 00 A3 6D 00 00 00 00 00 FF 0F 25 [16:26:02]RasterBufferAndPrint [16:26:02]line Счет N : (1)1096082 [16:26:02]line ИНН: 02508201610067 [16:26:02]line Контрольно-Кассовый Чек [16:26:02]line ПРОДАЖА [16:26:02]line ТРК (МРК, ГНК) : 64 [16:26:02]line Товар: 2710124500 [16:26:02]line Аи-95-К-3 [16:26:02]line 26.960 * 74.20 [16:26:02]line = 2000.43 [16:26:02]line НДС 12% НСП 1% [16:26:02]line > о реализуемом товаре [16:26:02]line ОКРУГЛЕНИЕ: -0.43 [16:26:02]line ИТОГО: 2000.00 [16:26:02]line Внесено: 2000.00 [16:26:02]line СДАЧА: 0.00 [16:26:02]line НСП 1% : 17.70 [16:26:02]line НДС 12% : 212.43 [16:26:02]line Наличными: 2000.00 [16:26:02]line Безнал.: 0.00 [16:26:02]line Место: АЗС № 101 "Партнер Нефть" [16:26:02]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:26:02]line СНО: Общий режим [16:26:02]line Чек 194 01.11.2024 16:26 [16:26:02]line Смена: 558 ФФД: 1.0 [16:26:02]line ЗНМ: 0300000081 [16:26:02]line РНМ: 0000000000091631 [16:26:02]line Версия ККМ: 001 [16:26:02]line ФМ: 0000000000874669 [16:26:02]line ФД: 140013 [16:26:02]line ФПД: 153333575065717 [16:26:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T162607&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140013&fm=153333575065717&tin=02508201610067®Number=0000000000091631&sum=200000 [16:26:03]OFD Sender: Processing packet 140013 [packets to send 34, broken 33] [16:26:03]ProducePacketName [16:26:03]name=ofd_packets/00140013 [16:26:03]OFD Sender: To server: pG, [16:26:03]CommunicateWithHost lk.salyk.kg:30040 [16:26:03]ConnectInit lk.salyk.kg [16:26:03]written 0, free lines is 4095 [16:26:03]Connected sock=10 [16:26:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 2B 54 07 01 25 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 1F 01 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 ED 22 02 00 35 04 06 00 8B 74 C1 46 20 75 85 68 75 CA B3 F4 AB A2 [16:26:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 DD 4C 47 00 37 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 34 36 36 39 10 04 04 00 ED 22 02 00 F4 03 04 00 CA AC 24 67 B6 04 01 00 00 82 76 5B F3 97 1E F1 CD [16:26:03]CommunicateWithHost err = 0 [16:26:03]CheckOFDResponse [16:26:03]1017 (14) - 77093643461234 [16:26:03]1041 (16) - 0000000000874669 [16:26:03]1040 (4) - 140013 [16:26:03]1012 (4) - 01.11.2024 10:26 [16:26:03]1206 (1) - 0 [16:26:03]OFD Sender: Remove packet 140013 [16:26:03]ProducePacketName [16:26:03]name=ofd_packets/00140013 [16:26:03]NVStorageDeleteData [16:26:03]Write to MH i2c: 01 00 00 CE 6D 3B [16:26:03]Write i2c OK [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: 01 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: 01 07 00 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: 01 07 00 CE 6D 00 00 00 00 00 E4 0C 32 [16:26:03]RasterBufferAndPrint [16:26:03]line [16:26:03]line [16:26:03]line [16:26:03]line [16:26:03]line [16:26:03]written 0, free lines is 3306 [16:26:03]MH_Cut [16:26:03]Write to MH i2c: D1 01 00 D5 6D 01 14 [16:26:03]Write i2c OK [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: D1 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: D1 01 00 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: D1 01 00 D5 6D 00 13 [16:26:03]Write to MH i2c: 01 00 00 D6 6D 43 [16:26:03]Write i2c OK [16:26:03]MH_I2C_Read... [16:26:03]OFD Sender: No OFD packet to send [16:26:04]*** Cut start [16:26:04]*** Partial cut [16:26:04]*** CUTSNS_PIN = 1 [16:26:04]*** CUTSNS_PIN = 0 [16:26:04]*** Brake cut motor [16:26:04]Read from MH i2c: 01 [16:26:04]MH_I2C_Read... [16:26:04]*** Stop cut motor [16:26:04]*** Cut end [16:26:04]Read from MH i2c: 01 07 00 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: 01 07 00 D6 6D 00 00 00 00 00 FF 0F 58 [16:26:04]process_action close_receipt done [16:26:04]requested_data is exist [16:26:04]produce_requested_data [16:26:04]requested_item fm.sn is exist - process it [16:26:04]wFMCommunicate request_size=4 [16:26:04]MH_SAM_APDU [16:26:04]CAPDU: 80 11 00 00 [16:26:04]Write to MH i2c: E2 08 00 D7 6D 80 11 00 00 00 00 00 00 BE [16:26:04]Write i2c OK [16:26:04]MH_I2C_Read... [16:26:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:04]Read from MH i2c: E2 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: E2 17 00 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: E2 17 00 D7 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 19 [16:26:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:26:04]wFMCommunicate OK [16:26:04]requested_item fd.num is exist - process it [16:26:04]SAM_PROTO_GetFieldsCounters [16:26:04]wFMCommunicate request_size=4 [16:26:04]MH_SAM_APDU [16:26:04]CAPDU: 80 13 00 00 [16:26:04]Write to MH i2c: E2 08 00 D8 6D 80 13 00 00 00 00 00 00 C1 [16:26:04]Write i2c OK [16:26:04]MH_I2C_Read... [16:26:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:05]Read from MH i2c: E2 [16:26:05]MH_I2C_Read... [16:26:05]Read from MH i2c: E2 62 00 [16:26:05]MH_I2C_Read... [16:26:05]Read from MH i2c: E2 62 00 D8 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 ED 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [16:26:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 ED 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:05]wFMCommunicate OK [16:26:05]SAM_PROTO_GetFieldsCounters done [16:26:05]requested_item shift.num is exist - process it [16:26:05]requested_item shift.opened is exist - process it [16:26:05]req_shift_opened [16:26:05]FM_GetShiftState [16:26:05]SAM_PROTO_GetShiftState [16:26:05]wFMCommunicate request_size=4 [16:26:05]MH_SAM_APDU [16:26:05]CAPDU: 80 13 01 00 [16:26:05]Write to MH i2c: E2 08 00 D9 6D 80 13 01 00 00 00 00 00 C3 [16:26:05]Write i2c OK [16:26:05]MH_I2C_Read... [16:26:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:05]Read from MH i2c: E2 [16:26:05]MH_I2C_Read... [16:26:05]Read from MH i2c: E2 0E 00 [16:26:05]MH_I2C_Read... [16:26:05]Read from MH i2c: E2 0E 00 D9 6D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 FC [16:26:05]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:26:05]wFMCommunicate OK [16:26:05]SAM_PROTO_GetShiftState done [16:26:05]FM_GetShiftState done [16:26:05]req_shift_opened done [16:26:05]requested_item shift.open_date is exist - process it [16:26:05]req_shift_open_date [16:26:05]req_shift_open_date done [16:26:05]produce_requested_data done [16:26:05]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":140013,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [16:26:05]process_action_free close_receipt [16:26:05]json_value_free [16:26:05]json_value_free done [16:26:05]process_json_proto returns [16:26:05]Send response to host [16:26:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":140013,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [16:26:05]free response buf [16:26:05]execute_script done [16:26:05]execute_script returns [16:26:05]free content buf [16:26:05]Sock 7.Close socket [16:26:05]Sock 7.Thread stoped [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:33]OFD Sender: No OFD packet to send [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:09]OFD Sender: No OFD packet to send [16:27:14]OFD Sender: No OFD packet to send [16:27:19]OFD Sender: No OFD packet to send [16:27:24]OFD Sender: No OFD packet to send [16:27:29]OFD Sender: No OFD packet to send [16:27:34]OFD Sender: No OFD packet to send [16:27:39]OFD Sender: No OFD packet to send [16:27:44]OFD Sender: No OFD packet to send [16:27:49]OFD Sender: No OFD packet to send [16:27:54]OFD Sender: No OFD packet to send [16:27:59]OFD Sender: No OFD packet to send [16:28:01]accept exits with 9 [16:28:01]New connection [16:28:01]New thread 3066654052 created [16:28:01]Thread 3066510692 joined [16:28:01]Waiting for new connection... [16:28:01] Sock 9.Parse request [16:28:01]Sock 9.Check first char [16:28:01]Sock 9.First char is OK [16:28:01]request: POST /json_proto HTTP/1.0 [16:28:01]Method: POST [16:28:01]URL: /json_proto [16:28:01]Method is POST - this is cgi request [16:28:01]url: /json_proto [16:28:01]query_string will be loaded in cgi processing [16:28:01]execute_cgi json_proto POST (null) [16:28:01]execute_cgi path=json_proto method=POST [16:28:01]POST find Content-Length [16:28:01]Host: 172.17.50.196:8080 [16:28:01]Content-Length: 767 [16:28:01]Content-Type: application/json [16:28:01] [16:28:01]POST finish read [16:28:01]Found Content-Length = 767 [16:28:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:01]execute_script... [16:28: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)1096086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:01]POST & json_proto [16:28:01]process_json_proto [16:28:01]json parsed OK: [16:28:01]protocol is kg_v1.0 [16:28:01]action value=close_receipt [16:28:01]process_action close_receipt [16:28:01]cmd_close_receipt [16:28:01]MH_GetDate [16:28:01]Write to MH i2c: F0 00 00 DA 6D 36 [16:28:01]Write i2c OK [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: F0 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: F0 09 00 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: F0 09 00 DA 6D 00 98 01 25 67 72 0D 1C 67 66 [16:28:01]GetLastDocTimeStamp 1730478367 [16:28:01]current date 1730478488 [16:28:01]FM_GetShiftState [16:28:01]SAM_PROTO_GetShiftState [16:28:01]wFMCommunicate request_size=4 [16:28:01]MH_SAM_APDU [16:28:01]CAPDU: 80 13 01 00 [16:28:01]Write to MH i2c: E2 08 00 DB 6D 80 13 01 00 00 00 00 00 C5 [16:28:01]Write i2c OK [16:28:01]MH_I2C_Read... [16:28:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:01]Read from MH i2c: E2 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: E2 0E 00 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: E2 0E 00 DB 6D 00 09 00 01 89 19 24 67 00 00 00 00 90 00 FE [16:28:01]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:28:01]wFMCommunicate OK [16:28:01]SAM_PROTO_GetShiftState done [16:28:01]FM_GetShiftState done [16:28:01]opened in 1730419081 [16:28:01]opened+sec_in_day 1730505481 [16:28:01]quantity*price = 50041 [16:28:01]sum+1 = 50042 [16:28:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 195 01.11.2024 16:28 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 140014 ФПД: 146069835530739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T162808&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140014&fm=146069835530739&tin=02508201610067®Number=0000000000091631&sum=50041 [16:28:02]StoreToDocumentArchive [16:28:02]shift 558 fd 140014 [16:28:02]save to /storage/0558/doc_00140014 [16:28:02]save last doc name /storage/0558/doc_00140014 to /storage/kkm_last_doc_name [16:28:02]save OK [16:28:02]Clear old archive folders... [16:28:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:28:02]tlvbuf is 00C8AEB0 [16:28:02]SAM_PROTO_ClearQueue [16:28:02]wFMCommunicate request_size=4 [16:28:02]MH_SAM_APDU [16:28:02]CAPDU: 80 09 00 00 [16:28:02]Write to MH i2c: E2 08 00 E8 6D 80 09 00 00 00 00 00 00 C7 [16:28:02]Write i2c OK [16:28:02]MH_I2C_Read... [16:28:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:02]Read from MH i2c: E2 [16:28:02]MH_I2C_Read... [16:28:02]Read from MH i2c: E2 03 00 [16:28:02]MH_I2C_Read... [16:28:02]Read from MH i2c: E2 03 00 E8 6D 00 90 00 C9 [16:28:02]RAPDU: 90 00 [16:28:02]wFMCommunicate OK [16:28:02]SAM_PROTO_ClearQueue done [16:28:02]KKMCreateOFDPacket [16:28:02]OFDProtocolAddRootSTLVToBuf [16:28:02]FM_MakeSignedData [16:28:02]FM_MakeSignedData [16:28:02]SAM_PROTO_SignData [16:28:02]wFMCommunicate request_size=4 [16:28:02]MH_SAM_APDU [16:28:02]CAPDU: 80 0D 01 02 [16:28:02]Write to MH i2c: E2 08 00 E9 6D 80 0D 01 02 00 00 00 00 CF [16:28:02]Write i2c OK [16:28:02]MH_I2C_Read... [16:28:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:02]Read from MH i2c: E2 [16:28:02]MH_I2C_Read... [16:28:02]Read from MH i2c: E2 03 00 [16:28:02]MH_I2C_Read... [16:28:02]Read from MH i2c: E2 03 00 E9 6D 00 90 00 CA [16:28:02]RAPDU: 90 00 [16:28:02]wFMCommunicate OK [16:28:02]wFMCommunicate request_size=255 [16:28:02]MH_SAM_APDU [16:28:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 98 01 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EE 22 02 00 35 04 06 00 84 [16:28:02]Write to MH i2c: E2 02 01 EA 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 98 01 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EE 22 02 00 35 04 06 00 84 00 00 5E [16:28:02]Write i2c OK [16:28:02]MH_I2C_Read... [16:28:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:03]Read from MH i2c: E2 [16:28:03]MH_I2C_Read... [16:28:03]Read from MH i2c: E2 03 00 [16:28:03]MH_I2C_Read... [16:28:03]Read from MH i2c: E2 03 00 EA 6D 00 90 00 CB [16:28:03]RAPDU: 90 00 [16:28:03]wFMCommunicate OK [16:28:03]wFMCommunicate request_size=10 [16:28:03]MH_SAM_APDU [16:28:03]CAPDU: 80 0D 02 02 05 D9 88 A8 C1 F3 [16:28:03]Write to MH i2c: E2 0D 00 EB 6D 80 0D 02 02 05 00 D9 88 A8 C1 F3 00 00 99 [16:28:03]Write i2c OK [16:28:03]MH_I2C_Read... [16:28:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:03]Read from MH i2c: E2 [16:28:03]MH_I2C_Read... [16:28:03]Read from MH i2c: E2 03 00 [16:28:03]MH_I2C_Read... [16:28:03]Read from MH i2c: E2 03 00 EB 6D 00 90 00 CC [16:28:03]RAPDU: 90 00 [16:28:03]wFMCommunicate OK [16:28:03]wFMCommunicate request_size=4 [16:28:03]MH_SAM_APDU [16:28:03]CAPDU: 80 0D 03 02 [16:28:03]Write to MH i2c: E2 08 00 EC 6D 80 0D 03 02 00 00 00 00 D4 [16:28:03]Write i2c OK [16:28:03]MH_I2C_Read... [16:28:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:03]Read from MH i2c: E2 [16:28:03]MH_I2C_Read... [16:28:03]Read from MH i2c: E2 0B 00 [16:28:03]MH_I2C_Read... [16:28:03]Read from MH i2c: E2 0B 00 EC 6D 00 E4 93 82 2B 17 F8 F3 3C 90 00 37 [16:28:03]RAPDU: E4 93 82 2B 17 F8 F3 3C 90 00 [16:28:03]wFMCommunicate OK [16:28:03]SAM_PROTO_SignData done [16:28:03]FM_MakeSignedData done [16:28:03]CreateOFDProtocolMessage [16:28:03]wFMCommunicate request_size=4 [16:28:03]MH_SAM_APDU [16:28:03]CAPDU: 80 11 00 00 [16:28:03]Write to MH i2c: E2 08 00 ED 6D 80 11 00 00 00 00 00 00 D4 [16:28:03]Write i2c OK [16:28:03]MH_I2C_Read... [16:28:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:03]Read from MH i2c: E2 [16:28:03]MH_I2C_Read... [16:28:03]Read from MH i2c: E2 17 00 [16:28:03]MH_I2C_Read... [16:28:03]Read from MH i2c: E2 17 00 ED 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2F [16:28:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:28:03]wFMCommunicate OK [16:28:03]CreateOFDProtocolMessage done [16:28:03]OFDSenderStorePacket 140014 [16:28:03]StoreOFDPacket docnum=140014 [16:28:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 AB 0C 07 01 E6 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 98 01 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EE 22 02 00 35 04 06 00 84 D9 88 A8 C1 F3 E4 93 82 2B 17 F8 F3 3C [16:28:03]CheckFolder [16:28:03]dirname=/storage/ofd_packets [16:28:03]CheckFolder done [16:28:03]ProducePacketName [16:28:03]name=ofd_packets/00140014 [16:28:03]NVStorageSaveData ofd_packets/00140014 [16:28:03]File name is /storage/ofd_packets/00140014 [16:28:03]Write 301 bytes [16:28:03]NVStorageSaveData done [16:28:03]OFDSenderStorePacket done [16:28:03]KKMCreateOFDPacket done [16:28:03]NVStorageSaveData kkm_last_timestamp [16:28:03]File name is /storage/kkm_last_timestamp [16:28:03]Write 4 bytes [16:28:03]NVStorageSaveData done [16:28:03]ExternCall_PrintAddStr [16:28:03]wPrintStart [16:28:03]Write to MH i2c: 01 00 00 EE 6D 5B [16:28:03]Write i2c OK [16:28:03]MH_I2C_Read... [16:28:03]Read from MH i2c: 01 [16:28:03]MH_I2C_Read... [16:28:03]Read from MH i2c: 01 07 00 [16:28:03]MH_I2C_Read... [16:28:03]Read from MH i2c: 01 07 00 EE 6D 00 00 00 00 00 FF 0F 70 [16:28:03]RasterBufferAndPrint [16:28:03]line Счет N : (1)1096086 [16:28:03]line ИНН: 02508201610067 [16:28:03]line Контрольно-Кассовый Чек [16:28:03]line ПРОДАЖА [16:28:03]line ТРК (МРК, ГНК) : 33 [16:28:03]line Товар: 2710124130 [16:28:03]line Аи-92-К-2 [16:28:03]line 7.480 * 66.90 [16:28:03]line = 500.41 [16:28:03]line НДС 12% НСП 1% [16:28:03]line > о реализуемом товаре [16:28:03]line ИТОГО: 500.41 [16:28:03]line НСП 1% : 4.43 [16:28:03]line НДС 12% : 53.14 [16:28:03]line Наличными: 0.00 [16:28:03]line Безнал.: 500.41 [16:28:03]line Место: АЗС № 101 "Партнер Нефть" [16:28:03]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:28:03]line СНО: Общий режим [16:28:03]line Чек 195 01.11.2024 16:28 [16:28:03]line Смена: 558 ФФД: 1.0 [16:28:03]line ЗНМ: 0300000081 [16:28:03]line РНМ: 0000000000091631 [16:28:03]line Версия ККМ: 001 [16:28:03]line Платежная система: Mbank [16:28:03]line ФМ: 0000000000874669 [16:28:03]line ФД: 140014 [16:28:03]line ФПД: 146069835530739 [16:28:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T162808&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140014&fm=146069835530739&tin=02508201610067®Number=0000000000091631&sum=50041 [16:28:03]written 0, free lines is 4095 [16:28:03]OFD Sender: Processing packet 140014 [packets to send 34, broken 33] [16:28:03]ProducePacketName [16:28:03]name=ofd_packets/00140014 [16:28:03]OFD Sender: To server: pG, [16:28:03]CommunicateWithHost lk.salyk.kg:30040 [16:28:03]ConnectInit lk.salyk.kg [16:28:03]Connected sock=10 [16:28:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 AB 0C 07 01 E6 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 98 01 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EE 22 02 00 35 04 06 00 84 D9 88 A8 C1 F3 E4 93 82 2B 17 F8 F3 3C [16:28:03]Write to MH i2c: 01 00 00 17 6E 85 [16:28:03]Write i2c OK [16:28:03]MH_I2C_Read... [16:28:03]Read from MH i2c: 01 [16:28:03]MH_I2C_Read... [16:28:03]Read from MH i2c: 01 07 00 [16:28:03]MH_I2C_Read... [16:28:03]Read from MH i2c: 01 07 00 17 6E 00 00 00 00 00 01 0D 9A [16:28:03]RasterBufferAndPrint [16:28:03]line [16:28:03]line [16:28:03]line [16:28:03]line [16:28:03]line [16:28:03]written 0, free lines is 3335 [16:28:03]MH_Cut [16:28:03]Write to MH i2c: D1 01 00 1E 6E 01 5E [16:28:03]Write i2c OK [16:28:03]MH_I2C_Read... [16:28:03]Read from MH i2c: D1 [16:28:03]MH_I2C_Read... [16:28:03]Read from MH i2c: D1 01 00 [16:28:03]MH_I2C_Read... [16:28:03]Read from MH i2c: D1 01 00 1E 6E 00 5D [16:28:03]Write to MH i2c: 01 00 00 1F 6E 8D [16:28:03]Write i2c OK [16:28:03]MH_I2C_Read... [16:28:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 7B 7C 47 00 F6 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 34 36 36 39 10 04 04 00 EE 22 02 00 F4 03 04 00 42 AD 24 67 B6 04 01 00 00 8A E9 3B 67 5F C5 56 C2 [16:28:03]CommunicateWithHost err = 0 [16:28:03]CheckOFDResponse [16:28:03]1017 (14) - 77093643461234 [16:28:03]1041 (16) - 0000000000874669 [16:28:03]1040 (4) - 140014 [16:28:03]1012 (4) - 01.11.2024 10:28 [16:28:03]1206 (1) - 0 [16:28:03]OFD Sender: Remove packet 140014 [16:28:03]ProducePacketName [16:28:03]name=ofd_packets/00140014 [16:28:03]NVStorageDeleteData [16:28:04]*** Cut start [16:28:04]*** Partial cut [16:28:04]*** CUTSNS_PIN = 1 [16:28:04]OFD Sender: No OFD packet to send [16:28:04]*** CUTSNS_PIN = 0 [16:28:04]*** Brake cut motor [16:28:05]Read from MH i2c: 01 [16:28:05]MH_I2C_Read... [16:28:05]*** Stop cut motor [16:28:05]*** Cut end [16:28:05]Read from MH i2c: 01 07 00 [16:28:05]MH_I2C_Read... [16:28:05]Read from MH i2c: 01 07 00 1F 6E 00 00 00 00 00 FF 0F A2 [16:28:05]process_action close_receipt done [16:28:05]requested_data is exist [16:28:05]produce_requested_data [16:28:05]requested_item fm.sn is exist - process it [16:28:05]wFMCommunicate request_size=4 [16:28:05]MH_SAM_APDU [16:28:05]CAPDU: 80 11 00 00 [16:28:05]Write to MH i2c: E2 08 00 20 6E 80 11 00 00 00 00 00 00 08 [16:28:05]Write i2c OK [16:28:05]MH_I2C_Read... [16:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:05]Read from MH i2c: E2 [16:28:05]MH_I2C_Read... [16:28:05]Read from MH i2c: E2 17 00 [16:28:05]MH_I2C_Read... [16:28:05]Read from MH i2c: E2 17 00 20 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 63 [16:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:28:05]wFMCommunicate OK [16:28:05]requested_item fd.num is exist - process it [16:28:05]SAM_PROTO_GetFieldsCounters [16:28:05]wFMCommunicate request_size=4 [16:28:05]MH_SAM_APDU [16:28:05]CAPDU: 80 13 00 00 [16:28:05]Write to MH i2c: E2 08 00 21 6E 80 13 00 00 00 00 00 00 0B [16:28:05]Write i2c OK [16:28:05]MH_I2C_Read... [16:28:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:05]Read from MH i2c: E2 [16:28:05]MH_I2C_Read... [16:28:05]Read from MH i2c: E2 62 00 [16:28:05]MH_I2C_Read... [16:28:05]Read from MH i2c: E2 62 00 21 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 EE 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [16:28:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 EE 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:28:05]wFMCommunicate OK [16:28:05]SAM_PROTO_GetFieldsCounters done [16:28:05]requested_item shift.num is exist - process it [16:28:05]requested_item shift.opened is exist - process it [16:28:05]req_shift_opened [16:28:05]FM_GetShiftState [16:28:05]SAM_PROTO_GetShiftState [16:28:05]wFMCommunicate request_size=4 [16:28:05]MH_SAM_APDU [16:28:05]CAPDU: 80 13 01 00 [16:28:05]Write to MH i2c: E2 08 00 22 6E 80 13 01 00 00 00 00 00 0D [16:28:05]Write i2c OK [16:28:05]MH_I2C_Read... [16:28:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:05]Read from MH i2c: E2 [16:28:05]MH_I2C_Read... [16:28:05]Read from MH i2c: E2 0E 00 [16:28:05]MH_I2C_Read... [16:28:05]Read from MH i2c: E2 0E 00 22 6E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 46 [16:28:05]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:28:05]wFMCommunicate OK [16:28:05]SAM_PROTO_GetShiftState done [16:28:05]FM_GetShiftState done [16:28:05]req_shift_opened done [16:28:05]requested_item shift.open_date is exist - process it [16:28:05]req_shift_open_date [16:28:05]req_shift_open_date done [16:28:05]produce_requested_data done [16:28:05]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":140014,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [16:28:05]process_action_free close_receipt [16:28:05]json_value_free [16:28:05]json_value_free done [16:28:05]process_json_proto returns [16:28:05]Send response to host [16:28:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":140014,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [16:28:05]free response buf [16:28:05]execute_script done [16:28:05]execute_script returns [16:28:05]free content buf [16:28:05]Sock 9.Close socket [16:28:05]Sock 9.Thread stoped [16:28:09]OFD Sender: No OFD packet to send [16:28:14]OFD Sender: No OFD packet to send [16:28:19]OFD Sender: No OFD packet to send [16:28:19]accept exits with 7 [16:28:19]New connection [16:28:19]New thread 3066510692 created [16:28:19]Thread 3066654052 joined [16:28:19]Waiting for new connection... [16:28:19] Sock 7.Parse request [16:28:19]Sock 7.Check first char [16:28:19]Sock 7.First char is OK [16:28:19]request: POST /json_proto HTTP/1.0 [16:28:19]Method: POST [16:28:19]URL: /json_proto [16:28:19]Method is POST - this is cgi request [16:28:19]url: /json_proto [16:28:19]query_string will be loaded in cgi processing [16:28:19]execute_cgi json_proto POST (null) [16:28:19]execute_cgi path=json_proto method=POST [16:28:19]POST find Content-Length [16:28:19]Host: 172.17.50.196:8080 [16:28:19]Content-Length: 686 [16:28:19]Content-Type: application/json [16:28:19] [16:28:19]POST finish read [16:28:19]Found Content-Length = 686 [16:28:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096084", "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" : 38.30, "quantity" : 32.490, "sum" : 1244.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1244.00, "payments": [ { "type": 0, "sum" : 1244.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:19]execute_script... [16:28:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096084", "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" : 38.30, "quantity" : 32.490, "sum" : 1244.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1244.00, "payments": [ { "type": 0, "sum" : 1244.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:19]POST & json_proto [16:28:19]process_json_proto [16:28:19]json parsed OK: [16:28:19]protocol is kg_v1.0 [16:28:19]action value=close_receipt [16:28:19]process_action close_receipt [16:28:19]cmd_close_receipt [16:28:19]MH_GetDate [16:28:19]Write to MH i2c: F0 00 00 23 6E 80 [16:28:19]Write i2c OK [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: F0 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: F0 09 00 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: F0 09 00 23 6E 00 AA 01 25 67 72 0D 1C 67 C2 [16:28:19]GetLastDocTimeStamp 1730478488 [16:28:19]current date 1730478506 [16:28:19]FM_GetShiftState [16:28:19]SAM_PROTO_GetShiftState [16:28:19]wFMCommunicate request_size=4 [16:28:19]MH_SAM_APDU [16:28:19]CAPDU: 80 13 01 00 [16:28:19]Write to MH i2c: E2 08 00 24 6E 80 13 01 00 00 00 00 00 0F [16:28:19]Write i2c OK [16:28:19]MH_I2C_Read... [16:28:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:19]Read from MH i2c: E2 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: E2 0E 00 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: E2 0E 00 24 6E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 48 [16:28:19]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:28:19]wFMCommunicate OK [16:28:19]SAM_PROTO_GetShiftState done [16:28:19]FM_GetShiftState done [16:28:19]opened in 1730419081 [16:28:19]opened+sec_in_day 1730505481 [16:28:19]quantity*price = 124436 [16:28:19]sum+1 = 124438 [16:28:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1244.00 Внесено: 5000.00 СДАЧА: 3756.00 НСП 1% : 11.01 НДС 12% : 132.14 Наличными: 1244.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 196 01.11.2024 16:28 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 140015 ФПД: 182106739249202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T162826&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140015&fm=182106739249202&tin=02508201610067®Number=0000000000091631&sum=124400 [16:28:21]StoreToDocumentArchive [16:28:21]shift 558 fd 140015 [16:28:21]save to /storage/0558/doc_00140015 [16:28:21]save last doc name /storage/0558/doc_00140015 to /storage/kkm_last_doc_name [16:28:21]save OK [16:28:21]Clear old archive folders... [16:28:21]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:28:21]tlvbuf is 00C8B4A0 [16:28:21]SAM_PROTO_ClearQueue [16:28:21]wFMCommunicate request_size=4 [16:28:21]MH_SAM_APDU [16:28:21]CAPDU: 80 09 00 00 [16:28:21]Write to MH i2c: E2 08 00 31 6E 80 09 00 00 00 00 00 00 11 [16:28:21]Write i2c OK [16:28:21]MH_I2C_Read... [16:28:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:21]Read from MH i2c: E2 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: E2 03 00 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: E2 03 00 31 6E 00 90 00 13 [16:28:21]RAPDU: 90 00 [16:28:21]wFMCommunicate OK [16:28:21]SAM_PROTO_ClearQueue done [16:28:21]KKMCreateOFDPacket [16:28:21]OFDProtocolAddRootSTLVToBuf [16:28:21]FM_MakeSignedData [16:28:21]FM_MakeSignedData [16:28:21]SAM_PROTO_SignData [16:28:21]wFMCommunicate request_size=4 [16:28:21]MH_SAM_APDU [16:28:21]CAPDU: 80 0D 01 02 [16:28:21]Write to MH i2c: E2 08 00 32 6E 80 0D 01 02 00 00 00 00 19 [16:28:21]Write i2c OK [16:28:21]MH_I2C_Read... [16:28:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:21]Read from MH i2c: E2 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: E2 03 00 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: E2 03 00 32 6E 00 90 00 14 [16:28:21]RAPDU: 90 00 [16:28:21]wFMCommunicate OK [16:28:21]wFMCommunicate request_size=255 [16:28:21]MH_SAM_APDU [16:28:21]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 EA 7E 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 15 E6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 E5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 33 00 00 00 00 07 04 06 00 F0 E5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 AA 01 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EF 22 02 00 35 04 06 00 A5 A0 [16:28:21]Write to MH i2c: E2 02 01 33 6E 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 EA 7E 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 15 E6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 E5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 33 00 00 00 00 07 04 06 00 F0 E5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 AA 01 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EF 22 02 00 35 04 06 00 A5 A0 00 00 86 [16:28:21]Write i2c OK [16:28:21]MH_I2C_Read... [16:28:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:21]Read from MH i2c: E2 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: E2 03 00 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: E2 03 00 33 6E 00 90 00 15 [16:28:21]RAPDU: 90 00 [16:28:21]wFMCommunicate OK [16:28:21]wFMCommunicate request_size=9 [16:28:21]MH_SAM_APDU [16:28:21]CAPDU: 80 0D 02 02 04 07 81 10 32 [16:28:21]Write to MH i2c: E2 0C 00 34 6E 80 0D 02 02 04 00 07 81 10 32 00 00 EE [16:28:21]Write i2c OK [16:28:21]MH_I2C_Read... [16:28:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:21]Read from MH i2c: E2 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: E2 03 00 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: E2 03 00 34 6E 00 90 00 16 [16:28:21]RAPDU: 90 00 [16:28:21]wFMCommunicate OK [16:28:21]wFMCommunicate request_size=4 [16:28:21]MH_SAM_APDU [16:28:21]CAPDU: 80 0D 03 02 [16:28:21]Write to MH i2c: E2 08 00 35 6E 80 0D 03 02 00 00 00 00 1E [16:28:21]Write i2c OK [16:28:21]MH_I2C_Read... [16:28:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:21]Read from MH i2c: E2 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: E2 0B 00 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: E2 0B 00 35 6E 00 8C C9 7D 79 30 89 45 2A 90 00 92 [16:28:21]RAPDU: 8C C9 7D 79 30 89 45 2A 90 00 [16:28:21]wFMCommunicate OK [16:28:21]SAM_PROTO_SignData done [16:28:21]FM_MakeSignedData done [16:28:21]CreateOFDProtocolMessage [16:28:21]wFMCommunicate request_size=4 [16:28:21]MH_SAM_APDU [16:28:21]CAPDU: 80 11 00 00 [16:28:21]Write to MH i2c: E2 08 00 36 6E 80 11 00 00 00 00 00 00 1E [16:28:21]Write i2c OK [16:28:21]MH_I2C_Read... [16:28:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:21]Read from MH i2c: E2 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: E2 17 00 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: E2 17 00 36 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 79 [16:28:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:28:21]wFMCommunicate OK [16:28:21]CreateOFDProtocolMessage done [16:28:21]OFDSenderStorePacket 140015 [16:28:21]StoreOFDPacket docnum=140015 [16:28:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0E 01 00 00 CC BB 06 01 CE 79 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 EA 7E 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 15 E6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 E5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 33 00 00 00 00 07 04 06 00 F0 E5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 AA 01 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EF 22 02 00 35 04 06 00 A5 A0 07 81 10 32 8C C9 7D 79 30 89 45 2A [16:28:21]CheckFolder [16:28:21]dirname=/storage/ofd_packets [16:28:21]CheckFolder done [16:28:21]ProducePacketName [16:28:21]name=ofd_packets/00140015 [16:28:21]NVStorageSaveData ofd_packets/00140015 [16:28:21]File name is /storage/ofd_packets/00140015 [16:28:21]Write 300 bytes [16:28:21]NVStorageSaveData done [16:28:21]OFDSenderStorePacket done [16:28:21]KKMCreateOFDPacket done [16:28:21]NVStorageSaveData kkm_last_timestamp [16:28:21]File name is /storage/kkm_last_timestamp [16:28:21]Write 4 bytes [16:28:21]NVStorageSaveData done [16:28:21]ExternCall_PrintAddStr [16:28:21]wPrintStart [16:28:21]Write to MH i2c: 01 00 00 37 6E A5 [16:28:21]Write i2c OK [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: 01 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: 01 07 00 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: 01 07 00 37 6E 00 00 00 00 00 FF 0F BA [16:28:21]RasterBufferAndPrint [16:28:21]line Счет N : (1)1096084 [16:28:21]line ИНН: 02508201610067 [16:28:21]line Контрольно-Кассовый Чек [16:28:21]line ПРОДАЖА [16:28:21]line ТРК (МРК, ГНК) : 71 [16:28:21]line Товар: 2711190000 [16:28:21]line ГАЗ-К-5 [16:28:21]line 32.490 * 38.30 [16:28:21]line = 1244.37 [16:28:21]line НДС 12% НСП 1% [16:28:21]line > о реализуемом товаре [16:28:21]line ОКРУГЛЕНИЕ: -0.37 [16:28:21]line ИТОГО: 1244.00 [16:28:21]line Внесено: 5000.00 [16:28:21]line СДАЧА: 3756.00 [16:28:21]line НСП 1% : 11.01 [16:28:21]line НДС 12% : 132.14 [16:28:21]line Наличными: 1244.00 [16:28:21]line Безнал.: 0.00 [16:28:21]line Место: АЗС № 101 "Партнер Нефть" [16:28:21]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:28:21]line СНО: Общий режим [16:28:21]line Чек 196 01.11.2024 16:28 [16:28:21]line Смена: 558 ФФД: 1.0 [16:28:21]line ЗНМ: 0300000081 [16:28:21]line РНМ: 0000000000091631 [16:28:21]line Версия ККМ: 001 [16:28:21]line ФМ: 0000000000874669 [16:28:21]line ФД: 140015 [16:28:21]line ФПД: 182106739249202 [16:28:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T162826&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140015&fm=182106739249202&tin=02508201610067®Number=0000000000091631&sum=124400 [16:28:21]OFD Sender: Processing packet 140015 [packets to send 34, broken 33] [16:28:21]ProducePacketName [16:28:21]name=ofd_packets/00140015 [16:28:21]OFD Sender: To server: pG, [16:28:21]CommunicateWithHost lk.salyk.kg:30040 [16:28:21]ConnectInit lk.salyk.kg [16:28:21]written 0, free lines is 4095 [16:28:22]Connected sock=10 [16:28:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0E 01 00 00 CC BB 06 01 CE 79 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 EA 7E 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 15 E6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 E5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 33 00 00 00 00 07 04 06 00 F0 E5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 AA 01 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EF 22 02 00 35 04 06 00 A5 A0 07 81 10 32 8C C9 7D 79 30 89 45 2A [16:28:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 57 1D 47 00 03 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EF 22 02 00 F4 03 04 00 55 AD 24 67 B6 04 01 00 00 DB 07 9C FF 2E A0 A5 7D [16:28:22]CommunicateWithHost err = 0 [16:28:22]CheckOFDResponse [16:28:22]1017 (14) - 77093643461234 [16:28:22]1041 (16) - 0000000000874669 [16:28:22]1040 (4) - 140015 [16:28:22]1012 (4) - 01.11.2024 10:28 [16:28:22]1206 (1) - 0 [16:28:22]OFD Sender: Remove packet 140015 [16:28:22]ProducePacketName [16:28:22]name=ofd_packets/00140015 [16:28:22]NVStorageDeleteData [16:28:22]Write to MH i2c: 01 00 00 62 6E D0 [16:28:22]Write i2c OK [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: 01 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: 01 07 00 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: 01 07 00 62 6E 00 00 00 00 00 E1 0C C4 [16:28:22]RasterBufferAndPrint [16:28:22]line [16:28:22]line [16:28:22]line [16:28:22]line [16:28:22]line [16:28:22]written 0, free lines is 3306 [16:28:22]MH_Cut [16:28:22]Write to MH i2c: D1 01 00 69 6E 01 A9 [16:28:22]Write i2c OK [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: D1 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: D1 01 00 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: D1 01 00 69 6E 00 A8 [16:28:22]Write to MH i2c: 01 00 00 6A 6E D8 [16:28:22]Write i2c OK [16:28:22]MH_I2C_Read... [16:28:22]OFD Sender: No OFD packet to send [16:28:23]*** Cut start [16:28:23]*** Partial cut [16:28:23]*** CUTSNS_PIN = 1 [16:28:23]*** CUTSNS_PIN = 0 [16:28:23]*** Brake cut motor [16:28:23]Read from MH i2c: 01 [16:28:23]MH_I2C_Read... [16:28:23]*** Stop cut motor [16:28:23]*** Cut end [16:28:23]Read from MH i2c: 01 07 00 [16:28:23]MH_I2C_Read... [16:28:23]Read from MH i2c: 01 07 00 6A 6E 00 00 00 00 00 FF 0F ED [16:28:23]process_action close_receipt done [16:28:23]requested_data is exist [16:28:23]produce_requested_data [16:28:23]requested_item fm.sn is exist - process it [16:28:23]wFMCommunicate request_size=4 [16:28:23]MH_SAM_APDU [16:28:23]CAPDU: 80 11 00 00 [16:28:23]Write to MH i2c: E2 08 00 6B 6E 80 11 00 00 00 00 00 00 53 [16:28:23]Write i2c OK [16:28:23]MH_I2C_Read... [16:28:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:23]Read from MH i2c: E2 [16:28:23]MH_I2C_Read... [16:28:23]Read from MH i2c: E2 17 00 [16:28:23]MH_I2C_Read... [16:28:23]Read from MH i2c: E2 17 00 6B 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AE [16:28:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:28:23]wFMCommunicate OK [16:28:23]requested_item fd.num is exist - process it [16:28:23]SAM_PROTO_GetFieldsCounters [16:28:23]wFMCommunicate request_size=4 [16:28:23]MH_SAM_APDU [16:28:23]CAPDU: 80 13 00 00 [16:28:23]Write to MH i2c: E2 08 00 6C 6E 80 13 00 00 00 00 00 00 56 [16:28:23]Write i2c OK [16:28:23]MH_I2C_Read... [16:28:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:23]Read from MH i2c: E2 [16:28:23]MH_I2C_Read... [16:28:23]Read from MH i2c: E2 62 00 [16:28:23]MH_I2C_Read... [16:28:23]Read from MH i2c: E2 62 00 6C 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 EF 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [16:28:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 EF 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:28:23]wFMCommunicate OK [16:28:23]SAM_PROTO_GetFieldsCounters done [16:28:23]requested_item shift.num is exist - process it [16:28:23]requested_item shift.opened is exist - process it [16:28:23]req_shift_opened [16:28:23]FM_GetShiftState [16:28:23]SAM_PROTO_GetShiftState [16:28:23]wFMCommunicate request_size=4 [16:28:23]MH_SAM_APDU [16:28:23]CAPDU: 80 13 01 00 [16:28:23]Write to MH i2c: E2 08 00 6D 6E 80 13 01 00 00 00 00 00 58 [16:28:23]Write i2c OK [16:28:23]MH_I2C_Read... [16:28:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:24]Read from MH i2c: E2 [16:28:24]MH_I2C_Read... [16:28:24]Read from MH i2c: E2 0E 00 [16:28:24]MH_I2C_Read... [16:28:24]Read from MH i2c: E2 0E 00 6D 6E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 91 [16:28:24]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:28:24]wFMCommunicate OK [16:28:24]SAM_PROTO_GetShiftState done [16:28:24]FM_GetShiftState done [16:28:24]req_shift_opened done [16:28:24]requested_item shift.open_date is exist - process it [16:28:24]req_shift_open_date [16:28:24]req_shift_open_date done [16:28:24]produce_requested_data done [16:28:24]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":140015,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [16:28:24]process_action_free close_receipt [16:28:24]json_value_free [16:28:24]json_value_free done [16:28:24]process_json_proto returns [16:28:24]Send response to host [16:28:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":140015,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [16:28:24]free response buf [16:28:24]execute_script done [16:28:24]execute_script returns [16:28:24]free content buf [16:28:24]Sock 7.Close socket [16:28:24]Sock 7.Thread stoped [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:53]accept exits with 9 [16:28:53]New connection [16:28:53]New thread 3066654052 created [16:28:53]Thread 3066510692 joined [16:28:53]Waiting for new connection... [16:28:53] Sock 9.Parse request [16:28:53]Sock 9.Check first char [16:28:53]Sock 9.First char is OK [16:28:53]request: POST /json_proto HTTP/1.0 [16:28:53]Method: POST [16:28:53]URL: /json_proto [16:28:53]Method is POST - this is cgi request [16:28:53]url: /json_proto [16:28:53]query_string will be loaded in cgi processing [16:28:53]execute_cgi json_proto POST (null) [16:28:53]execute_cgi path=json_proto method=POST [16:28:53]POST find Content-Length [16:28:53]Host: 172.17.50.196:8080 [16:28:53]Content-Length: 688 [16:28:53]Content-Type: application/json [16:28:53] [16:28:53]POST finish read [16:28:53]Found Content-Length = 688 [16:28:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:53]execute_script... [16:28: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)1096087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:53]POST & json_proto [16:28:53]process_json_proto [16:28:53]json parsed OK: [16:28:53]protocol is kg_v1.0 [16:28:53]action value=close_receipt [16:28:53]process_action close_receipt [16:28:53]cmd_close_receipt [16:28:53]MH_GetDate [16:28:53]Write to MH i2c: F0 00 00 6E 6E CB [16:28:53]Write i2c OK [16:28:53]MH_I2C_Read... [16:28:53]Read from MH i2c: F0 [16:28:53]MH_I2C_Read... [16:28:53]Read from MH i2c: F0 09 00 [16:28:53]MH_I2C_Read... [16:28:53]Read from MH i2c: F0 09 00 6E 6E 00 CC 01 25 67 72 0D 1C 67 2F [16:28:53]GetLastDocTimeStamp 1730478506 [16:28:53]current date 1730478540 [16:28:53]FM_GetShiftState [16:28:53]SAM_PROTO_GetShiftState [16:28:53]wFMCommunicate request_size=4 [16:28:53]MH_SAM_APDU [16:28:53]CAPDU: 80 13 01 00 [16:28:53]Write to MH i2c: E2 08 00 6F 6E 80 13 01 00 00 00 00 00 5A [16:28:53]Write i2c OK [16:28:53]MH_I2C_Read... [16:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:53]Read from MH i2c: E2 [16:28:53]MH_I2C_Read... [16:28:53]Read from MH i2c: E2 0E 00 [16:28:53]MH_I2C_Read... [16:28:53]Read from MH i2c: E2 0E 00 6F 6E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 93 [16:28:53]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:28:53]wFMCommunicate OK [16:28:53]SAM_PROTO_GetShiftState done [16:28:53]FM_GetShiftState done [16:28:53]opened in 1730419081 [16:28:53]opened+sec_in_day 1730505481 [16:28:53]quantity*price = 100050 [16:28:53]sum+1 = 100052 [16:28:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 197 01.11.2024 16:29 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 140016 ФПД: 3259665932085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T162900&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140016&fm=3259665932085&tin=02508201610067®Number=0000000000091631&sum=100000 [16:28:55]StoreToDocumentArchive [16:28:55]shift 558 fd 140016 [16:28:55]save to /storage/0558/doc_00140016 [16:28:55]save last doc name /storage/0558/doc_00140016 to /storage/kkm_last_doc_name [16:28:55]save OK [16:28:55]Clear old archive folders... [16:28:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:28:55]tlvbuf is 00BC4D00 [16:28:55]SAM_PROTO_ClearQueue [16:28:55]wFMCommunicate request_size=4 [16:28:55]MH_SAM_APDU [16:28:55]CAPDU: 80 09 00 00 [16:28:55]Write to MH i2c: E2 08 00 7C 6E 80 09 00 00 00 00 00 00 5C [16:28:55]Write i2c OK [16:28:55]MH_I2C_Read... [16:28:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:55]Read from MH i2c: E2 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: E2 03 00 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: E2 03 00 7C 6E 00 90 00 5E [16:28:55]RAPDU: 90 00 [16:28:55]wFMCommunicate OK [16:28:55]SAM_PROTO_ClearQueue done [16:28:55]KKMCreateOFDPacket [16:28:55]OFDProtocolAddRootSTLVToBuf [16:28:55]FM_MakeSignedData [16:28:55]FM_MakeSignedData [16:28:55]SAM_PROTO_SignData [16:28:55]wFMCommunicate request_size=4 [16:28:55]MH_SAM_APDU [16:28:55]CAPDU: 80 0D 01 02 [16:28:55]Write to MH i2c: E2 08 00 7D 6E 80 0D 01 02 00 00 00 00 64 [16:28:55]Write i2c OK [16:28:55]MH_I2C_Read... [16:28:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:55]Read from MH i2c: E2 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: E2 03 00 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: E2 03 00 7D 6E 00 90 00 5F [16:28:55]RAPDU: 90 00 [16:28:55]wFMCommunicate OK [16:28:55]wFMCommunicate request_size=255 [16:28:55]MH_SAM_APDU [16:28: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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 CC 01 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F0 22 02 00 35 04 06 00 [16:28:55]Write to MH i2c: E2 02 01 7E 6E 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 CC 01 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F0 22 02 00 35 04 06 00 00 00 33 [16:28:55]Write i2c OK [16:28:55]MH_I2C_Read... [16:28:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:55]Read from MH i2c: E2 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: E2 03 00 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: E2 03 00 7E 6E 00 90 00 60 [16:28:55]RAPDU: 90 00 [16:28:55]wFMCommunicate OK [16:28:55]wFMCommunicate request_size=11 [16:28:55]MH_SAM_APDU [16:28:55]CAPDU: 80 0D 02 02 06 02 F6 F3 3A DF 35 [16:28:55]Write to MH i2c: E2 0E 00 7F 6E 80 0D 02 02 06 00 02 F6 F3 3A DF 35 00 00 AC [16:28:55]Write i2c OK [16:28:55]MH_I2C_Read... [16:28:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:55]Read from MH i2c: E2 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: E2 03 00 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: E2 03 00 7F 6E 00 90 00 61 [16:28:55]RAPDU: 90 00 [16:28:55]wFMCommunicate OK [16:28:55]wFMCommunicate request_size=4 [16:28:55]MH_SAM_APDU [16:28:55]CAPDU: 80 0D 03 02 [16:28:55]Write to MH i2c: E2 08 00 80 6E 80 0D 03 02 00 00 00 00 69 [16:28:55]Write i2c OK [16:28:55]MH_I2C_Read... [16:28:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:55]Read from MH i2c: E2 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: E2 0B 00 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: E2 0B 00 80 6E 00 EB E7 C9 EC 71 F0 05 1E 90 00 75 [16:28:55]RAPDU: EB E7 C9 EC 71 F0 05 1E 90 00 [16:28:55]wFMCommunicate OK [16:28:55]SAM_PROTO_SignData done [16:28:55]FM_MakeSignedData done [16:28:55]CreateOFDProtocolMessage [16:28:55]wFMCommunicate request_size=4 [16:28:55]MH_SAM_APDU [16:28:55]CAPDU: 80 11 00 00 [16:28:55]Write to MH i2c: E2 08 00 81 6E 80 11 00 00 00 00 00 00 69 [16:28:55]Write i2c OK [16:28:55]MH_I2C_Read... [16:28:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:55]Read from MH i2c: E2 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: E2 17 00 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: E2 17 00 81 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C4 [16:28:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:28:55]wFMCommunicate OK [16:28:55]CreateOFDProtocolMessage done [16:28:55]OFDSenderStorePacket 140016 [16:28:55]StoreOFDPacket docnum=140016 [16:28:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 8D B2 08 01 63 11 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 CC 01 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F0 22 02 00 35 04 06 00 02 F6 F3 3A DF 35 EB E7 C9 EC 71 F0 05 1E [16:28:55]CheckFolder [16:28:55]dirname=/storage/ofd_packets [16:28:55]CheckFolder done [16:28:55]ProducePacketName [16:28:55]name=ofd_packets/00140016 [16:28:55]NVStorageSaveData ofd_packets/00140016 [16:28:55]File name is /storage/ofd_packets/00140016 [16:28:55]Write 302 bytes [16:28:55]NVStorageSaveData done [16:28:55]OFDSenderStorePacket done [16:28:55]KKMCreateOFDPacket done [16:28:55]NVStorageSaveData kkm_last_timestamp [16:28:55]File name is /storage/kkm_last_timestamp [16:28:55]Write 4 bytes [16:28:55]NVStorageSaveData done [16:28:55]ExternCall_PrintAddStr [16:28:55]wPrintStart [16:28:55]Write to MH i2c: 01 00 00 82 6E F0 [16:28:55]Write i2c OK [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: 01 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: 01 07 00 [16:28:55]MH_I2C_Read... [16:28:55]Read from MH i2c: 01 07 00 82 6E 00 00 00 00 00 FF 0F 05 [16:28:55]RasterBufferAndPrint [16:28:55]line Счет N : (1)1096087 [16:28:55]line ИНН: 02508201610067 [16:28:55]line Контрольно-Кассовый Чек [16:28:55]line ПРОДАЖА [16:28:55]line ТРК (МРК, ГНК) : 21 [16:28:55]line Товар: 2710194210 [16:28:55]line ДТ(л)-К-2 [16:28:55]line 13.130 * 76.20 [16:28:55]line = 1000.51 [16:28:55]line НДС 12% НСП 1% [16:28:55]line > о реализуемом товаре [16:28:55]line ОКРУГЛЕНИЕ: -0.51 [16:28:55]line ИТОГО: 1000.00 [16:28:55]line Внесено: 1000.00 [16:28:55]line СДАЧА: 0.00 [16:28:55]line НСП 1% : 8.85 [16:28:55]line НДС 12% : 106.25 [16:28:55]line Наличными: 1000.00 [16:28:55]line Безнал.: 0.00 [16:28:55]line Место: АЗС № 101 "Партнер Нефть" [16:28:55]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:28:55]line СНО: Общий режим [16:28:55]line Чек 197 01.11.2024 16:29 [16:28:55]line Смена: 558 ФФД: 1.0 [16:28:55]line ЗНМ: 0300000081 [16:28:55]line РНМ: 0000000000091631 [16:28:55]line Версия ККМ: 001 [16:28:55]line ФМ: 0000000000874669 [16:28:55]line ФД: 140016 [16:28:55]line ФПД: 3259665932085 [16:28:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T162900&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140016&fm=3259665932085&tin=02508201610067®Number=0000000000091631&sum=100000 [16:28:55]OFD Sender: Processing packet 140016 [packets to send 34, broken 33] [16:28:55]ProducePacketName [16:28:55]name=ofd_packets/00140016 [16:28:55]OFD Sender: To server: pG, [16:28:55]CommunicateWithHost lk.salyk.kg:30040 [16:28:55]ConnectInit lk.salyk.kg [16:28:55]written 0, free lines is 4095 [16:28:56]Connected sock=10 [16:28:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 8D B2 08 01 63 11 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 CC 01 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F0 22 02 00 35 04 06 00 02 F6 F3 3A DF 35 EB E7 C9 EC 71 F0 05 1E [16:28:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 C0 80 47 00 99 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F0 22 02 00 F4 03 04 00 77 AD 24 67 B6 04 01 00 00 3F AE CE 06 10 7A 42 25 [16:28:56]CommunicateWithHost err = 0 [16:28:56]CheckOFDResponse [16:28:56]1017 (14) - 77093643461234 [16:28:56]1041 (16) - 0000000000874669 [16:28:56]1040 (4) - 140016 [16:28:56]1012 (4) - 01.11.2024 10:29 [16:28:56]1206 (1) - 0 [16:28:56]OFD Sender: Remove packet 140016 [16:28:56]ProducePacketName [16:28:56]name=ofd_packets/00140016 [16:28:56]NVStorageDeleteData [16:28:56]Write to MH i2c: 01 00 00 AD 6E 1B [16:28:56]Write i2c OK [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: 01 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: 01 07 00 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: 01 07 00 AD 6E 00 00 00 00 00 E7 0C 15 [16:28:56]RasterBufferAndPrint [16:28:56]line [16:28:56]line [16:28:56]line [16:28:56]line [16:28:56]line [16:28:56]written 0, free lines is 3313 [16:28:56]MH_Cut [16:28:56]Write to MH i2c: D1 01 00 B4 6E 01 F4 [16:28:56]Write i2c OK [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: D1 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: D1 01 00 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: D1 01 00 B4 6E 00 F3 [16:28:56]Write to MH i2c: 01 00 00 B5 6E 23 [16:28:56]Write i2c OK [16:28:56]MH_I2C_Read... [16:28:56]OFD Sender: No OFD packet to send [16:28:57]*** Cut start [16:28:57]*** Partial cut [16:28:57]*** CUTSNS_PIN = 1 [16:28:57]*** CUTSNS_PIN = 0 [16:28:57]*** Brake cut motor [16:28:57]Read from MH i2c: 01 [16:28:57]MH_I2C_Read... [16:28:57]*** Stop cut motor [16:28:57]*** Cut end [16:28:57]Read from MH i2c: 01 07 00 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: 01 07 00 B5 6E 00 00 00 00 00 FF 0F 38 [16:28:57]process_action close_receipt done [16:28:57]requested_data is exist [16:28:57]produce_requested_data [16:28:57]requested_item fm.sn is exist - process it [16:28:57]wFMCommunicate request_size=4 [16:28:57]MH_SAM_APDU [16:28:57]CAPDU: 80 11 00 00 [16:28:57]Write to MH i2c: E2 08 00 B6 6E 80 11 00 00 00 00 00 00 9E [16:28:57]Write i2c OK [16:28:57]MH_I2C_Read... [16:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:57]Read from MH i2c: E2 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: E2 17 00 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: E2 17 00 B6 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F9 [16:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:28:57]wFMCommunicate OK [16:28:57]requested_item fd.num is exist - process it [16:28:57]SAM_PROTO_GetFieldsCounters [16:28:57]wFMCommunicate request_size=4 [16:28:57]MH_SAM_APDU [16:28:57]CAPDU: 80 13 00 00 [16:28:57]Write to MH i2c: E2 08 00 B7 6E 80 13 00 00 00 00 00 00 A1 [16:28:57]Write i2c OK [16:28:57]MH_I2C_Read... [16:28:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:57]Read from MH i2c: E2 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: E2 62 00 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: E2 62 00 B7 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F0 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [16:28:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F0 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:28:57]wFMCommunicate OK [16:28:57]SAM_PROTO_GetFieldsCounters done [16:28:57]requested_item shift.num is exist - process it [16:28:57]requested_item shift.opened is exist - process it [16:28:57]req_shift_opened [16:28:57]FM_GetShiftState [16:28:57]SAM_PROTO_GetShiftState [16:28:57]wFMCommunicate request_size=4 [16:28:57]MH_SAM_APDU [16:28:57]CAPDU: 80 13 01 00 [16:28:57]Write to MH i2c: E2 08 00 B8 6E 80 13 01 00 00 00 00 00 A3 [16:28:57]Write i2c OK [16:28:57]MH_I2C_Read... [16:28:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:57]Read from MH i2c: E2 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: E2 0E 00 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: E2 0E 00 B8 6E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 DC [16:28:57]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:28:57]wFMCommunicate OK [16:28:57]SAM_PROTO_GetShiftState done [16:28:57]FM_GetShiftState done [16:28:57]req_shift_opened done [16:28:57]requested_item shift.open_date is exist - process it [16:28:57]req_shift_open_date [16:28:57]req_shift_open_date done [16:28:57]produce_requested_data done [16:28:57]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":140016,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [16:28:57]process_action_free close_receipt [16:28:57]json_value_free [16:28:57]json_value_free done [16:28:57]process_json_proto returns [16:28:57]Send response to host [16:28:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":140016,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [16:28:57]free response buf [16:28:57]execute_script done [16:28:57]execute_script returns [16:28:57]free content buf [16:28:57]Sock 9.Close socket [16:28:57]Sock 9.Thread stoped [16:29:01]OFD Sender: No OFD packet to send [16:29:06]OFD Sender: No OFD packet to send [16:29:11]OFD Sender: No OFD packet to send [16:29:16]OFD Sender: No OFD packet to send [16:29:21]OFD Sender: No OFD packet to send [16:29:26]OFD Sender: No OFD packet to send [16:29:31]OFD Sender: No OFD packet to send [16:29:35]accept exits with 7 [16:29:35]New connection [16:29:35]New thread 3066510692 created [16:29:35]Thread 3066654052 joined [16:29:35]Waiting for new connection... [16:29:35] Sock 7.Parse request [16:29:35]Sock 7.Check first char [16:29:35]Sock 7.First char is OK [16:29:35]request: POST /json_proto HTTP/1.0 [16:29:35]Method: POST [16:29:35]URL: /json_proto [16:29:35]Method is POST - this is cgi request [16:29:35]url: /json_proto [16:29:35]query_string will be loaded in cgi processing [16:29:35]execute_cgi json_proto POST (null) [16:29:35]execute_cgi path=json_proto method=POST [16:29:35]POST find Content-Length [16:29:35]Host: 172.17.50.196:8080 [16:29:35]Content-Length: 767 [16:29:35]Content-Type: application/json [16:29:35] [16:29:35]POST finish read [16:29:35]Found Content-Length = 767 [16:29:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:35]execute_script... [16:29:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:35]POST & json_proto [16:29:35]process_json_proto [16:29:35]json parsed OK: [16:29:35]protocol is kg_v1.0 [16:29:35]action value=close_receipt [16:29:35]process_action close_receipt [16:29:35]cmd_close_receipt [16:29:35]MH_GetDate [16:29:35]Write to MH i2c: F0 00 00 B9 6E 16 [16:29:35]Write i2c OK [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: F0 [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: F0 09 00 [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: F0 09 00 B9 6E 00 F5 01 25 67 72 0D 1C 67 A3 [16:29:35]GetLastDocTimeStamp 1730478540 [16:29:35]current date 1730478581 [16:29:35]FM_GetShiftState [16:29:35]SAM_PROTO_GetShiftState [16:29:35]wFMCommunicate request_size=4 [16:29:35]MH_SAM_APDU [16:29:35]CAPDU: 80 13 01 00 [16:29:35]Write to MH i2c: E2 08 00 BA 6E 80 13 01 00 00 00 00 00 A5 [16:29:35]Write i2c OK [16:29:35]MH_I2C_Read... [16:29:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:35]Read from MH i2c: E2 [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: E2 0E 00 [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: E2 0E 00 BA 6E 00 09 00 01 89 19 24 67 00 00 00 00 90 00 DE [16:29:35]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:29:35]wFMCommunicate OK [16:29:35]SAM_PROTO_GetShiftState done [16:29:35]FM_GetShiftState done [16:29:35]opened in 1730419081 [16:29:35]opened+sec_in_day 1730505481 [16:29:35]quantity*price = 60027 [16:29:35]sum+1 = 60029 [16:29:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.28 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 0.00 Безнал.: 600.28 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 198 01.11.2024 16:29 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 140017 ФПД: 62339597513806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T162941&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140017&fm=62339597513806&tin=02508201610067®Number=0000000000091631&sum=60028 [16:29:36]StoreToDocumentArchive [16:29:36]shift 558 fd 140017 [16:29:36]save to /storage/0558/doc_00140017 [16:29:36]save last doc name /storage/0558/doc_00140017 to /storage/kkm_last_doc_name [16:29:36]save OK [16:29:36]Clear old archive folders... [16:29:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:36]tlvbuf is 00BA73E0 [16:29:36]SAM_PROTO_ClearQueue [16:29:36]wFMCommunicate request_size=4 [16:29:36]MH_SAM_APDU [16:29:36]CAPDU: 80 09 00 00 [16:29:36]Write to MH i2c: E2 08 00 C7 6E 80 09 00 00 00 00 00 00 A7 [16:29:36]Write i2c OK [16:29:36]MH_I2C_Read... [16:29:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:36]Read from MH i2c: E2 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 03 00 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 03 00 C7 6E 00 90 00 A9 [16:29:36]RAPDU: 90 00 [16:29:36]wFMCommunicate OK [16:29:36]SAM_PROTO_ClearQueue done [16:29:36]KKMCreateOFDPacket [16:29:36]OFDProtocolAddRootSTLVToBuf [16:29:36]FM_MakeSignedData [16:29:36]FM_MakeSignedData [16:29:36]SAM_PROTO_SignData [16:29:36]wFMCommunicate request_size=4 [16:29:36]MH_SAM_APDU [16:29:36]CAPDU: 80 0D 01 02 [16:29:36]Write to MH i2c: E2 08 00 C8 6E 80 0D 01 02 00 00 00 00 AF [16:29:36]Write i2c OK [16:29:36]MH_I2C_Read... [16:29:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:36]OFD Sender: No OFD packet to send [16:29:36]Read from MH i2c: E2 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 03 00 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 03 00 C8 6E 00 90 00 AA [16:29:36]RAPDU: 90 00 [16:29:36]wFMCommunicate OK [16:29:36]wFMCommunicate request_size=255 [16:29:36]MH_SAM_APDU [16:29:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 00 00 00 00 00 00 39 04 06 00 7C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 F5 01 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F1 22 02 00 35 04 06 00 38 [16:29:36]Write to MH i2c: E2 02 01 C9 6E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 00 00 00 00 00 00 39 04 06 00 7C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 F5 01 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F1 22 02 00 35 04 06 00 38 00 00 9A [16:29:36]Write i2c OK [16:29:36]MH_I2C_Read... [16:29:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:37]Read from MH i2c: E2 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: E2 03 00 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: E2 03 00 C9 6E 00 90 00 AB [16:29:37]RAPDU: 90 00 [16:29:37]wFMCommunicate OK [16:29:37]wFMCommunicate request_size=10 [16:29:37]MH_SAM_APDU [16:29:37]CAPDU: 80 0D 02 02 05 B2 91 90 B4 4E [16:29:37]Write to MH i2c: E2 0D 00 CA 6E 80 0D 02 02 05 00 B2 91 90 B4 4E 00 00 91 [16:29:37]Write i2c OK [16:29:37]MH_I2C_Read... [16:29:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:37]Read from MH i2c: E2 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: E2 03 00 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: E2 03 00 CA 6E 00 90 00 AC [16:29:37]RAPDU: 90 00 [16:29:37]wFMCommunicate OK [16:29:37]wFMCommunicate request_size=4 [16:29:37]MH_SAM_APDU [16:29:37]CAPDU: 80 0D 03 02 [16:29:37]Write to MH i2c: E2 08 00 CB 6E 80 0D 03 02 00 00 00 00 B4 [16:29:37]Write i2c OK [16:29:37]MH_I2C_Read... [16:29:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:37]Read from MH i2c: E2 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: E2 0B 00 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: E2 0B 00 CB 6E 00 14 49 DD EF 28 A5 04 14 90 00 C3 [16:29:37]RAPDU: 14 49 DD EF 28 A5 04 14 90 00 [16:29:37]wFMCommunicate OK [16:29:37]SAM_PROTO_SignData done [16:29:37]FM_MakeSignedData done [16:29:37]CreateOFDProtocolMessage [16:29:37]wFMCommunicate request_size=4 [16:29:37]MH_SAM_APDU [16:29:37]CAPDU: 80 11 00 00 [16:29:37]Write to MH i2c: E2 08 00 CC 6E 80 11 00 00 00 00 00 00 B4 [16:29:37]Write i2c OK [16:29:37]MH_I2C_Read... [16:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:37]Read from MH i2c: E2 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: E2 17 00 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: E2 17 00 CC 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0F [16:29:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:29:37]wFMCommunicate OK [16:29:37]CreateOFDProtocolMessage done [16:29:37]OFDSenderStorePacket 140017 [16:29:37]StoreOFDPacket docnum=140017 [16:29:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 EF 0A 07 01 BE 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 00 00 00 00 00 00 39 04 06 00 7C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 F5 01 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F1 22 02 00 35 04 06 00 38 B2 91 90 B4 4E 14 49 DD EF 28 A5 04 14 [16:29:37]CheckFolder [16:29:37]dirname=/storage/ofd_packets [16:29:37]CheckFolder done [16:29:37]ProducePacketName [16:29:37]name=ofd_packets/00140017 [16:29:37]NVStorageSaveData ofd_packets/00140017 [16:29:37]File name is /storage/ofd_packets/00140017 [16:29:37]Write 301 bytes [16:29:37]NVStorageSaveData done [16:29:37]OFDSenderStorePacket done [16:29:37]KKMCreateOFDPacket done [16:29:37]NVStorageSaveData kkm_last_timestamp [16:29:37]File name is /storage/kkm_last_timestamp [16:29:37]Write 4 bytes [16:29:37]NVStorageSaveData done [16:29:37]ExternCall_PrintAddStr [16:29:37]wPrintStart [16:29:37]Write to MH i2c: 01 00 00 CD 6E 3B [16:29:37]Write i2c OK [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: 01 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: 01 07 00 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: 01 07 00 CD 6E 00 00 00 00 00 FF 0F 50 [16:29:37]RasterBufferAndPrint [16:29:37]line Счет N : (1)1096088 [16:29:37]line ИНН: 02508201610067 [16:29:37]line Контрольно-Кассовый Чек [16:29:37]line ПРОДАЖА [16:29:37]line ТРК (МРК, ГНК) : 64 [16:29:37]line Товар: 2710124500 [16:29:37]line Аи-95-К-3 [16:29:37]line 8.090 * 74.20 [16:29:37]line = 600.28 [16:29:37]line НДС 12% НСП 1% [16:29:37]line > о реализуемом товаре [16:29:37]line ИТОГО: 600.28 [16:29:37]line НСП 1% : 5.31 [16:29:37]line НДС 12% : 63.75 [16:29:37]line Наличными: 0.00 [16:29:37]line Безнал.: 600.28 [16:29:37]line Место: АЗС № 101 "Партнер Нефть" [16:29:37]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:29:37]line СНО: Общий режим [16:29:37]line Чек 198 01.11.2024 16:29 [16:29:37]line Смена: 558 ФФД: 1.0 [16:29:37]line ЗНМ: 0300000081 [16:29:37]line РНМ: 0000000000091631 [16:29:37]line Версия ККМ: 001 [16:29:37]line Платежная система: Mbank [16:29:37]line ФМ: 0000000000874669 [16:29:37]line ФД: 140017 [16:29:37]line ФПД: 62339597513806 [16:29:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T162941&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140017&fm=62339597513806&tin=02508201610067®Number=0000000000091631&sum=60028 [16:29:37]written 0, free lines is 4095 [16:29:37]OFD Sender: Processing packet 140017 [packets to send 34, broken 33] [16:29:37]ProducePacketName [16:29:37]name=ofd_packets/00140017 [16:29:37]OFD Sender: To server: pG, [16:29:37]CommunicateWithHost lk.salyk.kg:30040 [16:29:37]ConnectInit lk.salyk.kg [16:29:37]Connected sock=10 [16:29:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 EF 0A 07 01 BE 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 00 00 00 00 00 00 39 04 06 00 7C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 F5 01 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F1 22 02 00 35 04 06 00 38 B2 91 90 B4 4E 14 49 DD EF 28 A5 04 14 [16:29:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 03 2A 47 00 DD 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F1 22 02 00 F4 03 04 00 A0 AD 24 67 B6 04 01 00 00 05 07 AD B3 40 15 CD 89 [16:29:37]CommunicateWithHost err = 0 [16:29:37]CheckOFDResponse [16:29:37]1017 (14) - 77093643461234 [16:29:37]1041 (16) - 0000000000874669 [16:29:37]1040 (4) - 140017 [16:29:37]1012 (4) - 01.11.2024 10:29 [16:29:37]1206 (1) - 0 [16:29:37]OFD Sender: Remove packet 140017 [16:29:37]ProducePacketName [16:29:37]name=ofd_packets/00140017 [16:29:37]NVStorageDeleteData [16:29:38]Write to MH i2c: 01 00 00 F6 6E 64 [16:29:38]Write i2c OK [16:29:38]MH_I2C_Read... [16:29:38]Read from MH i2c: 01 [16:29:38]MH_I2C_Read... [16:29:38]Read from MH i2c: 01 07 00 [16:29:38]MH_I2C_Read... [16:29:38]Read from MH i2c: 01 07 00 F6 6E 00 00 00 00 00 07 0D 7F [16:29:38]RasterBufferAndPrint [16:29:38]line [16:29:38]line [16:29:38]line [16:29:38]line [16:29:38]line [16:29:38]written 0, free lines is 3341 [16:29:38]MH_Cut [16:29:38]Write to MH i2c: D1 01 00 FD 6E 01 3D [16:29:38]Write i2c OK [16:29:38]MH_I2C_Read... [16:29:38]Read from MH i2c: D1 [16:29:38]MH_I2C_Read... [16:29:38]Read from MH i2c: D1 01 00 [16:29:38]MH_I2C_Read... [16:29:38]Read from MH i2c: D1 01 00 FD 6E 00 3C [16:29:38]Write to MH i2c: 01 00 00 FE 6E 6C [16:29:38]Write i2c OK [16:29:38]MH_I2C_Read... [16:29:38]OFD Sender: No OFD packet to send [16:29:38]*** Cut start [16:29:38]*** Partial cut [16:29:38]*** CUTSNS_PIN = 1 [16:29:38]*** CUTSNS_PIN = 0 [16:29:38]*** Brake cut motor [16:29:39]Read from MH i2c: 01 [16:29:39]MH_I2C_Read... [16:29:39]*** Stop cut motor [16:29:39]*** Cut end [16:29:39]Read from MH i2c: 01 07 00 [16:29:39]MH_I2C_Read... [16:29:39]Read from MH i2c: 01 07 00 FE 6E 00 00 00 00 00 FF 0F 81 [16:29:39]process_action close_receipt done [16:29:39]requested_data is exist [16:29:39]produce_requested_data [16:29:39]requested_item fm.sn is exist - process it [16:29:39]wFMCommunicate request_size=4 [16:29:39]MH_SAM_APDU [16:29:39]CAPDU: 80 11 00 00 [16:29:39]Write to MH i2c: E2 08 00 FF 6E 80 11 00 00 00 00 00 00 E7 [16:29:39]Write i2c OK [16:29:39]MH_I2C_Read... [16:29:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:39]Read from MH i2c: E2 [16:29:39]MH_I2C_Read... [16:29:39]Read from MH i2c: E2 17 00 [16:29:39]MH_I2C_Read... [16:29:39]Read from MH i2c: E2 17 00 FF 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 42 [16:29:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:29:39]wFMCommunicate OK [16:29:39]requested_item fd.num is exist - process it [16:29:39]SAM_PROTO_GetFieldsCounters [16:29:39]wFMCommunicate request_size=4 [16:29:39]MH_SAM_APDU [16:29:39]CAPDU: 80 13 00 00 [16:29:39]Write to MH i2c: E2 08 00 00 6F 80 13 00 00 00 00 00 00 EB [16:29:39]Write i2c OK [16:29:39]MH_I2C_Read... [16:29:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:39]Read from MH i2c: E2 [16:29:39]MH_I2C_Read... [16:29:39]Read from MH i2c: E2 62 00 [16:29:39]MH_I2C_Read... [16:29:39]Read from MH i2c: E2 62 00 00 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F1 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [16:29:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F1 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:39]wFMCommunicate OK [16:29:39]SAM_PROTO_GetFieldsCounters done [16:29:39]requested_item shift.num is exist - process it [16:29:39]requested_item shift.opened is exist - process it [16:29:39]req_shift_opened [16:29:39]FM_GetShiftState [16:29:39]SAM_PROTO_GetShiftState [16:29:39]wFMCommunicate request_size=4 [16:29:39]MH_SAM_APDU [16:29:39]CAPDU: 80 13 01 00 [16:29:39]Write to MH i2c: E2 08 00 01 6F 80 13 01 00 00 00 00 00 ED [16:29:39]Write i2c OK [16:29:39]MH_I2C_Read... [16:29:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:39]Read from MH i2c: E2 [16:29:39]MH_I2C_Read... [16:29:39]Read from MH i2c: E2 0E 00 [16:29:39]MH_I2C_Read... [16:29:39]Read from MH i2c: E2 0E 00 01 6F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 26 [16:29:39]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:29:39]wFMCommunicate OK [16:29:39]SAM_PROTO_GetShiftState done [16:29:39]FM_GetShiftState done [16:29:39]req_shift_opened done [16:29:39]requested_item shift.open_date is exist - process it [16:29:39]req_shift_open_date [16:29:39]req_shift_open_date done [16:29:39]produce_requested_data done [16:29:39]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":140017,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [16:29:39]process_action_free close_receipt [16:29:39]json_value_free [16:29:39]json_value_free done [16:29:39]process_json_proto returns [16:29:39]Send response to host [16:29:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":140017,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [16:29:39]free response buf [16:29:39]execute_script done [16:29:39]execute_script returns [16:29:39]free content buf [16:29:39]Sock 7.Close socket [16:29:39]Sock 7.Thread stoped [16:29:43]OFD Sender: No OFD packet to send [16:29:48]OFD Sender: No OFD packet to send [16:29:53]OFD Sender: No OFD packet to send [16:29:58]OFD Sender: No OFD packet to send [16:30:03]OFD Sender: No OFD packet to send [16:30:08]OFD Sender: No OFD packet to send [16:30:13]OFD Sender: No OFD packet to send [16:30:18]OFD Sender: No OFD packet to send [16:30:23]OFD Sender: No OFD packet to send [16:30:28]OFD Sender: No OFD packet to send [16:30:33]OFD Sender: No OFD packet to send [16:30:38]OFD Sender: No OFD packet to send [16:30:43]OFD Sender: No OFD packet to send [16:30:48]OFD Sender: No OFD packet to send [16:30:53]OFD Sender: No OFD packet to send [16:30:58]OFD Sender: No OFD packet to send [16:31:03]OFD Sender: No OFD packet to send [16:31:08]OFD Sender: No OFD packet to send [16:31:13]OFD Sender: No OFD packet to send [16:31:18]OFD Sender: No OFD packet to send [16:31:23]OFD Sender: No OFD packet to send [16:31:28]OFD Sender: No OFD packet to send [16:31:33]OFD Sender: No OFD packet to send [16:31:38]OFD Sender: No OFD packet to send [16:31:43]OFD Sender: No OFD packet to send [16:31:48]OFD Sender: No OFD packet to send [16:31:53]OFD Sender: No OFD packet to send [16:31:58]OFD Sender: No OFD packet to send [16:32:03]OFD Sender: No OFD packet to send [16:32:08]OFD Sender: No OFD packet to send [16:32:13]OFD Sender: No OFD packet to send [16:32:18]OFD Sender: No OFD packet to send [16:32:23]OFD Sender: No OFD packet to send [16:32:28]OFD Sender: No OFD packet to send [16:32:33]OFD Sender: No OFD packet to send [16:32:38]OFD Sender: No OFD packet to send [16:32:43]OFD Sender: No OFD packet to send [16:32:48]OFD Sender: No OFD packet to send [16:32:53]OFD Sender: No OFD packet to send [16:32:58]OFD Sender: No OFD packet to send [16:33:03]OFD Sender: No OFD packet to send [16:33:08]OFD Sender: No OFD packet to send [16:33:13]OFD Sender: No OFD packet to send [16:33:18]OFD Sender: No OFD packet to send [16:33:23]OFD Sender: No OFD packet to send [16:33:28]OFD Sender: No OFD packet to send [16:33:33]OFD Sender: No OFD packet to send [16:33:38]OFD Sender: No OFD packet to send [16:33:43]OFD Sender: No OFD packet to send [16:33:48]OFD Sender: No OFD packet to send [16:33:53]OFD Sender: No OFD packet to send [16:33:58]OFD Sender: No OFD packet to send [16:34:03]OFD Sender: No OFD packet to send [16:34:08]OFD Sender: No OFD packet to send [16:34:13]OFD Sender: No OFD packet to send [16:34:18]OFD Sender: No OFD packet to send [16:34:23]OFD Sender: No OFD packet to send [16:34:28]OFD Sender: No OFD packet to send [16:34:31]accept exits with 9 [16:34:31]New connection [16:34:31]New thread 3066654052 created [16:34:31]Thread 3066510692 joined [16:34:31]Waiting for new connection... [16:34:31] Sock 9.Parse request [16:34:31]Sock 9.Check first char [16:34:31]Sock 9.First char is OK [16:34:31]request: POST /json_proto HTTP/1.0 [16:34:31]Method: POST [16:34:31]URL: /json_proto [16:34:31]Method is POST - this is cgi request [16:34:31]url: /json_proto [16:34:31]query_string will be loaded in cgi processing [16:34:31]execute_cgi json_proto POST (null) [16:34:31]execute_cgi path=json_proto method=POST [16:34:31]POST find Content-Length [16:34:31]Host: 172.17.50.196:8080 [16:34:31]Content-Length: 683 [16:34:31]Content-Type: application/json [16:34:31] [16:34:31]POST finish read [16:34:31]Found Content-Length = 683 [16:34:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:31]execute_script... [16:34: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)1096092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:31]POST & json_proto [16:34:31]process_json_proto [16:34:31]json parsed OK: [16:34:31]protocol is kg_v1.0 [16:34:31]action value=close_receipt [16:34:31]process_action close_receipt [16:34:31]cmd_close_receipt [16:34:31]MH_GetDate [16:34:31]Write to MH i2c: F0 00 00 02 6F 60 [16:34:31]Write i2c OK [16:34:31]MH_I2C_Read... [16:34:31]Read from MH i2c: F0 [16:34:31]MH_I2C_Read... [16:34:31]Read from MH i2c: F0 09 00 [16:34:31]MH_I2C_Read... [16:34:31]Read from MH i2c: F0 09 00 02 6F 00 1E 03 25 67 72 0D 1C 67 18 [16:34:31]GetLastDocTimeStamp 1730478581 [16:34:31]current date 1730478878 [16:34:31]FM_GetShiftState [16:34:31]SAM_PROTO_GetShiftState [16:34:31]wFMCommunicate request_size=4 [16:34:31]MH_SAM_APDU [16:34:31]CAPDU: 80 13 01 00 [16:34:31]Write to MH i2c: E2 08 00 03 6F 80 13 01 00 00 00 00 00 EF [16:34:31]Write i2c OK [16:34:31]MH_I2C_Read... [16:34:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:31]Read from MH i2c: E2 [16:34:31]MH_I2C_Read... [16:34:31]Read from MH i2c: E2 0E 00 [16:34:31]MH_I2C_Read... [16:34:31]Read from MH i2c: E2 0E 00 03 6F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 28 [16:34:31]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:34:31]wFMCommunicate OK [16:34:31]SAM_PROTO_GetShiftState done [16:34:31]FM_GetShiftState done [16:34:31]opened in 1730419081 [16:34:31]opened+sec_in_day 1730505481 [16:34:31]quantity*price = 150056 [16:34:31]sum+1 = 150058 [16:34:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 199 01.11.2024 16:34 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 140018 ФПД: 68613429717044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T163438&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140018&fm=68613429717044&tin=02508201610067®Number=0000000000091631&sum=150000 [16:34:32]StoreToDocumentArchive [16:34:32]shift 558 fd 140018 [16:34:32]save to /storage/0558/doc_00140018 [16:34:32]save last doc name /storage/0558/doc_00140018 to /storage/kkm_last_doc_name [16:34:32]save OK [16:34:32]Clear old archive folders... [16:34:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:34:32]tlvbuf is 00C8B790 [16:34:32]SAM_PROTO_ClearQueue [16:34:32]wFMCommunicate request_size=4 [16:34:32]MH_SAM_APDU [16:34:32]CAPDU: 80 09 00 00 [16:34:32]Write to MH i2c: E2 08 00 10 6F 80 09 00 00 00 00 00 00 F1 [16:34:32]Write i2c OK [16:34:32]MH_I2C_Read... [16:34:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:32]Read from MH i2c: E2 [16:34:32]MH_I2C_Read... [16:34:32]Read from MH i2c: E2 03 00 [16:34:32]MH_I2C_Read... [16:34:32]Read from MH i2c: E2 03 00 10 6F 00 90 00 F3 [16:34:32]RAPDU: 90 00 [16:34:32]wFMCommunicate OK [16:34:32]SAM_PROTO_ClearQueue done [16:34:32]KKMCreateOFDPacket [16:34:32]OFDProtocolAddRootSTLVToBuf [16:34:32]FM_MakeSignedData [16:34:32]FM_MakeSignedData [16:34:32]SAM_PROTO_SignData [16:34:32]wFMCommunicate request_size=4 [16:34:32]MH_SAM_APDU [16:34:32]CAPDU: 80 0D 01 02 [16:34:32]Write to MH i2c: E2 08 00 11 6F 80 0D 01 02 00 00 00 00 F9 [16:34:32]Write i2c OK [16:34:32]MH_I2C_Read... [16:34:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:32]Read from MH i2c: E2 [16:34:32]MH_I2C_Read... [16:34:32]Read from MH i2c: E2 03 00 [16:34:32]MH_I2C_Read... [16:34:32]Read from MH i2c: E2 03 00 11 6F 00 90 00 F4 [16:34:32]RAPDU: 90 00 [16:34:32]wFMCommunicate OK [16:34:32]wFMCommunicate request_size=255 [16:34:32]MH_SAM_APDU [16:34:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 1E 03 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F2 22 02 00 35 04 06 00 3E [16:34:32]Write to MH i2c: E2 02 01 12 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 1E 03 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F2 22 02 00 35 04 06 00 3E 00 00 C9 [16:34:32]Write i2c OK [16:34:32]MH_I2C_Read... [16:34:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:33]Read from MH i2c: E2 [16:34:33]MH_I2C_Read... [16:34:33]Read from MH i2c: E2 03 00 [16:34:33]MH_I2C_Read... [16:34:33]Read from MH i2c: E2 03 00 12 6F 00 90 00 F5 [16:34:33]RAPDU: 90 00 [16:34:33]wFMCommunicate OK [16:34:33]wFMCommunicate request_size=10 [16:34:33]MH_SAM_APDU [16:34:33]CAPDU: 80 0D 02 02 05 67 4F 1A E8 34 [16:34:33]Write to MH i2c: E2 0D 00 13 6F 80 0D 02 02 05 00 67 4F 1A E8 34 00 00 F2 [16:34:33]Write i2c OK [16:34:33]MH_I2C_Read... [16:34:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:33]Read from MH i2c: E2 [16:34:33]MH_I2C_Read... [16:34:33]Read from MH i2c: E2 03 00 [16:34:33]MH_I2C_Read... [16:34:33]Read from MH i2c: E2 03 00 13 6F 00 90 00 F6 [16:34:33]RAPDU: 90 00 [16:34:33]wFMCommunicate OK [16:34:33]wFMCommunicate request_size=4 [16:34:33]MH_SAM_APDU [16:34:33]CAPDU: 80 0D 03 02 [16:34:33]Write to MH i2c: E2 08 00 14 6F 80 0D 03 02 00 00 00 00 FE [16:34:33]Write i2c OK [16:34:33]MH_I2C_Read... [16:34:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:33]Read from MH i2c: E2 [16:34:33]MH_I2C_Read... [16:34:33]Read from MH i2c: E2 0B 00 [16:34:33]MH_I2C_Read... [16:34:33]Read from MH i2c: E2 0B 00 14 6F 00 F3 9F 56 2B 04 93 AC 69 90 00 BE [16:34:33]RAPDU: F3 9F 56 2B 04 93 AC 69 90 00 [16:34:33]wFMCommunicate OK [16:34:33]SAM_PROTO_SignData done [16:34:33]FM_MakeSignedData done [16:34:33]CreateOFDProtocolMessage [16:34:33]wFMCommunicate request_size=4 [16:34:33]MH_SAM_APDU [16:34:33]CAPDU: 80 11 00 00 [16:34:33]Write to MH i2c: E2 08 00 15 6F 80 11 00 00 00 00 00 00 FE [16:34:33]Write i2c OK [16:34:33]MH_I2C_Read... [16:34:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:33]Read from MH i2c: E2 [16:34:33]MH_I2C_Read... [16:34:33]Read from MH i2c: E2 17 00 [16:34:33]MH_I2C_Read... [16:34:33]Read from MH i2c: E2 17 00 15 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 59 [16:34:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:34:33]wFMCommunicate OK [16:34:33]CreateOFDProtocolMessage done [16:34:33]OFDSenderStorePacket 140018 [16:34:33]StoreOFDPacket docnum=140018 [16:34:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 7E 08 07 01 27 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 1E 03 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F2 22 02 00 35 04 06 00 3E 67 4F 1A E8 34 F3 9F 56 2B 04 93 AC 69 [16:34:33]CheckFolder [16:34:33]dirname=/storage/ofd_packets [16:34:33]CheckFolder done [16:34:33]ProducePacketName [16:34:33]name=ofd_packets/00140018 [16:34:33]NVStorageSaveData ofd_packets/00140018 [16:34:33]File name is /storage/ofd_packets/00140018 [16:34:33]Write 301 bytes [16:34:33]NVStorageSaveData done [16:34:33]OFDSenderStorePacket done [16:34:33]KKMCreateOFDPacket done [16:34:33]NVStorageSaveData kkm_last_timestamp [16:34:33]File name is /storage/kkm_last_timestamp [16:34:33]Write 4 bytes [16:34:33]NVStorageSaveData done [16:34:33]ExternCall_PrintAddStr [16:34:33]wPrintStart [16:34:33]Write to MH i2c: 01 00 00 16 6F 85 [16:34:33]Write i2c OK [16:34:33]MH_I2C_Read... [16:34:33]Read from MH i2c: 01 [16:34:33]MH_I2C_Read... [16:34:33]Read from MH i2c: 01 07 00 [16:34:33]MH_I2C_Read... [16:34:33]Read from MH i2c: 01 07 00 16 6F 00 00 00 00 00 FF 0F 9A [16:34:33]RasterBufferAndPrint [16:34:33]line Счет N : (1)1096092 [16:34:33]line ИНН: 02508201610067 [16:34:33]line Контрольно-Кассовый Чек [16:34:33]line ПРОДАЖА [16:34:33]line ТРК (МРК, ГНК) : 43 [16:34:33]line Товар: 2710124130 [16:34:33]line Аи-92-К-2 [16:34:33]line 22.430 * 66.90 [16:34:33]line = 1500.57 [16:34:33]line НДС 12% НСП 1% [16:34:33]line > о реализуемом товаре [16:34:33]line ОКРУГЛЕНИЕ: -0.57 [16:34:33]line ИТОГО: 1500.00 [16:34:33]line Внесено: 1500.00 [16:34:33]line СДАЧА: 0.00 [16:34:33]line НСП 1% : 13.28 [16:34:33]line НДС 12% : 159.35 [16:34:33]line Наличными: 1500.00 [16:34:33]line Безнал.: 0.00 [16:34:33]line Место: АЗС № 101 "Партнер Нефть" [16:34:33]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:34:33]line СНО: Общий режим [16:34:33]line Чек 199 01.11.2024 16:34 [16:34:33]line Смена: 558 ФФД: 1.0 [16:34:33]line ЗНМ: 0300000081 [16:34:33]line РНМ: 0000000000091631 [16:34:33]line Версия ККМ: 001 [16:34:33]line ФМ: 0000000000874669 [16:34:33]line ФД: 140018 [16:34:33]line ФПД: 68613429717044 [16:34:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T163438&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140018&fm=68613429717044&tin=02508201610067®Number=0000000000091631&sum=150000 [16:34:33]OFD Sender: Processing packet 140018 [packets to send 34, broken 33] [16:34:33]ProducePacketName [16:34:33]name=ofd_packets/00140018 [16:34:33]OFD Sender: To server: pG, [16:34:33]CommunicateWithHost lk.salyk.kg:30040 [16:34:33]ConnectInit lk.salyk.kg [16:34:33]written 0, free lines is 4095 [16:34:33]Connected sock=7 [16:34:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 7E 08 07 01 27 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 1E 03 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F2 22 02 00 35 04 06 00 3E 67 4F 1A E8 34 F3 9F 56 2B 04 93 AC 69 [16:34:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 B5 1B 47 00 FE 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F2 22 02 00 F4 03 04 00 C8 AE 24 67 B6 04 01 00 00 88 B6 4D 3B 65 DF 24 CB [16:34:33]CommunicateWithHost err = 0 [16:34:33]CheckOFDResponse [16:34:33]1017 (14) - 77093643461234 [16:34:33]1041 (16) - 0000000000874669 [16:34:33]1040 (4) - 140018 [16:34:33]1012 (4) - 01.11.2024 10:34 [16:34:33]1206 (1) - 0 [16:34:33]OFD Sender: Remove packet 140018 [16:34:33]ProducePacketName [16:34:33]name=ofd_packets/00140018 [16:34:33]NVStorageDeleteData [16:34:34]Write to MH i2c: 01 00 00 41 6F B0 [16:34:34]Write i2c OK [16:34:34]MH_I2C_Read... [16:34:34]Read from MH i2c: 01 [16:34:34]MH_I2C_Read... [16:34:34]Read from MH i2c: 01 07 00 [16:34:34]MH_I2C_Read... [16:34:34]Read from MH i2c: 01 07 00 41 6F 00 00 00 00 00 F3 0C B6 [16:34:34]RasterBufferAndPrint [16:34:34]line [16:34:34]line [16:34:34]line [16:34:34]line [16:34:34]line [16:34:34]written 0, free lines is 3321 [16:34:34]MH_Cut [16:34:34]Write to MH i2c: D1 01 00 48 6F 01 89 [16:34:34]Write i2c OK [16:34:34]MH_I2C_Read... [16:34:34]Read from MH i2c: D1 [16:34:34]MH_I2C_Read... [16:34:34]Read from MH i2c: D1 01 00 [16:34:34]MH_I2C_Read... [16:34:34]Read from MH i2c: D1 01 00 48 6F 00 88 [16:34:34]Write to MH i2c: 01 00 00 49 6F B8 [16:34:34]Write i2c OK [16:34:34]MH_I2C_Read... [16:34:34]OFD Sender: No OFD packet to send [16:34:34]*** Cut start [16:34:34]*** Partial cut [16:34:34]*** CUTSNS_PIN = 1 [16:34:34]*** CUTSNS_PIN = 0 [16:34:35]*** Brake cut motor [16:34:35]Read from MH i2c: 01 [16:34:35]MH_I2C_Read... [16:34:35]*** Stop cut motor [16:34:35]*** Cut end [16:34:35]Read from MH i2c: 01 07 00 [16:34:35]MH_I2C_Read... [16:34:35]Read from MH i2c: 01 07 00 49 6F 00 00 00 00 00 FF 0F CD [16:34:35]process_action close_receipt done [16:34:35]requested_data is exist [16:34:35]produce_requested_data [16:34:35]requested_item fm.sn is exist - process it [16:34:35]wFMCommunicate request_size=4 [16:34:35]MH_SAM_APDU [16:34:35]CAPDU: 80 11 00 00 [16:34:35]Write to MH i2c: E2 08 00 4A 6F 80 11 00 00 00 00 00 00 33 [16:34:35]Write i2c OK [16:34:35]MH_I2C_Read... [16:34:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:35]Read from MH i2c: E2 [16:34:35]MH_I2C_Read... [16:34:35]Read from MH i2c: E2 17 00 [16:34:35]MH_I2C_Read... [16:34:35]Read from MH i2c: E2 17 00 4A 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8E [16:34:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:34:35]wFMCommunicate OK [16:34:35]requested_item fd.num is exist - process it [16:34:35]SAM_PROTO_GetFieldsCounters [16:34:35]wFMCommunicate request_size=4 [16:34:35]MH_SAM_APDU [16:34:35]CAPDU: 80 13 00 00 [16:34:35]Write to MH i2c: E2 08 00 4B 6F 80 13 00 00 00 00 00 00 36 [16:34:35]Write i2c OK [16:34:35]MH_I2C_Read... [16:34:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:35]Read from MH i2c: E2 [16:34:35]MH_I2C_Read... [16:34:35]Read from MH i2c: E2 62 00 [16:34:35]MH_I2C_Read... [16:34:35]Read from MH i2c: E2 62 00 4B 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F2 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [16:34:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F2 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:35]wFMCommunicate OK [16:34:35]SAM_PROTO_GetFieldsCounters done [16:34:35]requested_item shift.num is exist - process it [16:34:35]requested_item shift.opened is exist - process it [16:34:35]req_shift_opened [16:34:35]FM_GetShiftState [16:34:35]SAM_PROTO_GetShiftState [16:34:35]wFMCommunicate request_size=4 [16:34:35]MH_SAM_APDU [16:34:35]CAPDU: 80 13 01 00 [16:34:35]Write to MH i2c: E2 08 00 4C 6F 80 13 01 00 00 00 00 00 38 [16:34:35]Write i2c OK [16:34:35]MH_I2C_Read... [16:34:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:35]Read from MH i2c: E2 [16:34:35]MH_I2C_Read... [16:34:35]Read from MH i2c: E2 0E 00 [16:34:35]MH_I2C_Read... [16:34:35]Read from MH i2c: E2 0E 00 4C 6F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 71 [16:34:35]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:34:35]wFMCommunicate OK [16:34:35]SAM_PROTO_GetShiftState done [16:34:35]FM_GetShiftState done [16:34:35]req_shift_opened done [16:34:35]requested_item shift.open_date is exist - process it [16:34:35]req_shift_open_date [16:34:35]req_shift_open_date done [16:34:35]produce_requested_data done [16:34:35]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":140018,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [16:34:35]process_action_free close_receipt [16:34:35]json_value_free [16:34:35]json_value_free done [16:34:35]process_json_proto returns [16:34:35]Send response to host [16:34:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":140018,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [16:34:35]free response buf [16:34:35]execute_script done [16:34:35]execute_script returns [16:34:35]free content buf [16:34:35]Sock 9.Close socket [16:34:35]Sock 9.Thread stoped [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:09]OFD Sender: No OFD packet to send [16:35:14]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:15]accept exits with 10 [16:36:15]New connection [16:36:15]New thread 3066510692 created [16:36:15]Thread 3066654052 joined [16:36:15]Waiting for new connection... [16:36:15] Sock 10.Parse request [16:36:15]Sock 10.Check first char [16:36:15]Sock 10.First char is OK [16:36:15]request: POST /json_proto HTTP/1.0 [16:36:15]Method: POST [16:36:15]URL: /json_proto [16:36:15]Method is POST - this is cgi request [16:36:15]url: /json_proto [16:36:15]query_string will be loaded in cgi processing [16:36:15]execute_cgi json_proto POST (null) [16:36:15]execute_cgi path=json_proto method=POST [16:36:15]POST find Content-Length [16:36:15]Host: 172.17.50.196:8080 [16:36:15]Content-Length: 666 [16:36:15]Content-Type: application/json [16:36:15] [16:36:15]POST finish read [16:36:15]Found Content-Length = 666 [16:36:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335820", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:15]execute_script... [16:36: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)335820", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:15]POST & json_proto [16:36:15]process_json_proto [16:36:15]json parsed OK: [16:36:15]protocol is kg_v1.0 [16:36:15]action value=close_receipt [16:36:15]process_action close_receipt [16:36:15]cmd_close_receipt [16:36:15]MH_GetDate [16:36:15]Write to MH i2c: F0 00 00 4D 6F AB [16:36:15]Write i2c OK [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: F0 [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: F0 09 00 [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: F0 09 00 4D 6F 00 85 03 25 67 72 0D 1C 67 CA [16:36:15]GetLastDocTimeStamp 1730478878 [16:36:15]current date 1730478981 [16:36:15]FM_GetShiftState [16:36:15]SAM_PROTO_GetShiftState [16:36:15]wFMCommunicate request_size=4 [16:36:15]MH_SAM_APDU [16:36:15]CAPDU: 80 13 01 00 [16:36:15]Write to MH i2c: E2 08 00 4E 6F 80 13 01 00 00 00 00 00 3A [16:36:15]Write i2c OK [16:36:15]MH_I2C_Read... [16:36:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:15]Read from MH i2c: E2 [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: E2 0E 00 [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: E2 0E 00 4E 6F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 73 [16:36:15]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:36:15]wFMCommunicate OK [16:36:15]SAM_PROTO_GetShiftState done [16:36:15]FM_GetShiftState done [16:36:15]opened in 1730419081 [16:36:15]opened+sec_in_day 1730505481 [16:36:15]quantity*price = 9900 [16:36:15]sum+1 = 9901 [16:36:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 99.00 НСП 1% : 0.88 НДС 12% : 10.51 Наличными: 99.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 200 01.11.2024 16:36 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 140019 ФПД: 169863554500773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T163622&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140019&fm=169863554500773&tin=02508201610067®Number=0000000000091631&sum=9900 0 [16:36:16]StoreToDocumentArchive [16:36:16]shift 558 fd 140019 [16:36:16]save to /storage/0558/doc_00140019 [16:36:16]save last doc name /storage/0558/doc_00140019 to /storage/kkm_last_doc_name [16:36:16]save OK [16:36:16]Clear old archive folders... [16:36:16]ProcessDocumentItem done err = 0, tmpTLVsize=293 [16:36:16]tlvbuf is 00A9CA90 [16:36:16]SAM_PROTO_ClearQueue [16:36:16]wFMCommunicate request_size=4 [16:36:16]MH_SAM_APDU [16:36:16]CAPDU: 80 09 00 00 [16:36:16]Write to MH i2c: E2 08 00 5B 6F 80 09 00 00 00 00 00 00 3C [16:36:16]Write i2c OK [16:36:16]MH_I2C_Read... [16:36:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:16]Read from MH i2c: E2 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: E2 03 00 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: E2 03 00 5B 6F 00 90 00 3E [16:36:16]RAPDU: 90 00 [16:36:16]wFMCommunicate OK [16:36:16]SAM_PROTO_ClearQueue done [16:36:16]KKMCreateOFDPacket [16:36:16]OFDProtocolAddRootSTLVToBuf [16:36:16]FM_MakeSignedData [16:36:16]FM_MakeSignedData [16:36:16]SAM_PROTO_SignData [16:36:16]wFMCommunicate request_size=4 [16:36:16]MH_SAM_APDU [16:36:16]CAPDU: 80 0D 01 02 [16:36:16]Write to MH i2c: E2 08 00 5C 6F 80 0D 01 02 00 00 00 00 44 [16:36:16]Write i2c OK [16:36:16]MH_I2C_Read... [16:36:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:16]Read from MH i2c: E2 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: E2 03 00 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: E2 03 00 5C 6F 00 90 00 3F [16:36:16]RAPDU: 90 00 [16:36:16]wFMCommunicate OK [16:36:16]wFMCommunicate request_size=255 [16:36:16]MH_SAM_APDU [16:36:16]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 86 03 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [16:36:16]Write to MH i2c: E2 02 01 5D 6F 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 86 03 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 AD [16:36:16]Write i2c OK [16:36:16]MH_I2C_Read... [16:36:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:17]Read from MH i2c: E2 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: E2 03 00 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: E2 03 00 5D 6F 00 90 00 40 [16:36:17]RAPDU: 90 00 [16:36:17]wFMCommunicate OK [16:36:17]wFMCommunicate request_size=52 [16:36:17]MH_SAM_APDU [16:36:17]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F3 22 02 00 35 04 06 00 9A 7D 70 D3 88 A5 [16:36:17]Write to MH i2c: E2 37 00 5E 6F 80 0D 02 02 2F 00 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F3 22 02 00 35 04 06 00 9A 7D 70 D3 88 A5 00 00 AB [16:36:17]Write i2c OK [16:36:17]MH_I2C_Read... [16:36:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:17]Read from MH i2c: E2 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: E2 03 00 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: E2 03 00 5E 6F 00 90 00 41 [16:36:17]RAPDU: 90 00 [16:36:17]wFMCommunicate OK [16:36:17]wFMCommunicate request_size=4 [16:36:17]MH_SAM_APDU [16:36:17]CAPDU: 80 0D 03 02 [16:36:17]Write to MH i2c: E2 08 00 5F 6F 80 0D 03 02 00 00 00 00 49 [16:36:17]Write i2c OK [16:36:17]MH_I2C_Read... [16:36:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:17]Read from MH i2c: E2 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: E2 0B 00 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: E2 0B 00 5F 6F 00 29 DD 8D 27 B8 AD 15 8F 90 00 0D [16:36:17]RAPDU: 29 DD 8D 27 B8 AD 15 8F 90 00 [16:36:17]wFMCommunicate OK [16:36:17]SAM_PROTO_SignData done [16:36:17]FM_MakeSignedData done [16:36:17]CreateOFDProtocolMessage [16:36:17]wFMCommunicate request_size=4 [16:36:17]MH_SAM_APDU [16:36:17]CAPDU: 80 11 00 00 [16:36:17]Write to MH i2c: E2 08 00 60 6F 80 11 00 00 00 00 00 00 49 [16:36:17]Write i2c OK [16:36:17]MH_I2C_Read... [16:36:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:17]Read from MH i2c: E2 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: E2 17 00 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: E2 17 00 60 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A4 [16:36:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:36:17]wFMCommunicate OK [16:36:17]CreateOFDProtocolMessage done [16:36:17]OFDSenderStorePacket 140019 [16:36:17]StoreOFDPacket docnum=140019 [16:36:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 39 01 00 00 9A B0 31 01 06 90 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 86 03 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F3 22 02 00 35 04 06 00 9A 7D 70 D3 88 A5 29 DD 8D 27 B8 AD 15 8F [16:36:17]CheckFolder [16:36:17]dirname=/storage/ofd_packets [16:36:17]CheckFolder done [16:36:17]ProducePacketName [16:36:17]name=ofd_packets/00140019 [16:36:17]NVStorageSaveData ofd_packets/00140019 [16:36:17]File name is /storage/ofd_packets/00140019 [16:36:17]Write 343 bytes [16:36:17]NVStorageSaveData done [16:36:17]OFDSenderStorePacket done [16:36:17]KKMCreateOFDPacket done [16:36:17]NVStorageSaveData kkm_last_timestamp [16:36:17]File name is /storage/kkm_last_timestamp [16:36:17]Write 4 bytes [16:36:17]NVStorageSaveData done [16:36:17]ExternCall_PrintAddStr [16:36:17]wPrintStart [16:36:17]Write to MH i2c: 01 00 00 61 6F D0 [16:36:17]Write i2c OK [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: 01 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: 01 07 00 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: 01 07 00 61 6F 00 00 00 00 00 FF 0F E5 [16:36:17]RasterBufferAndPrint [16:36:17]line Счет N : (3)335820 [16:36:17]line ИНН: 02508201610067 [16:36:17]line Контрольно-Кассовый Чек [16:36:17]line ПРОДАЖА [16:36:17]line Товар: 4870022003305 [16:36:17]line Напиток Gorilla эн нат ж/б 0,5/0,45л [16:36:17]line 1.000 * 99.00 [16:36:17]line = 99.00 [16:36:17]line НДС 12% НСП 1% [16:36:17]line > о реализуемом товаре [16:36:17]line ИТОГО: 99.00 [16:36:17]line НСП 1% : 0.88 [16:36:17]line НДС 12% : 10.51 [16:36:17]line Наличными: 99.00 [16:36:17]line Безнал.: 0.00 [16:36:17]line Место: АЗС № 101 "Партнер Нефть" [16:36:17]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:36:17]line СНО: Общий режим [16:36:17]line Чек 200 01.11.2024 16:36 [16:36:17]line Смена: 558 ФФД: 1.0 [16:36:17]line ЗНМ: 0300000081 [16:36:17]line РНМ: 0000000000091631 [16:36:17]line Версия ККМ: 001 [16:36:17]line ФМ: 0000000000874669 [16:36:17]line ФД: 140019 [16:36:17]line ФПД: 169863554500773 [16:36:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T163622&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140019&fm=169863554500773&tin=02508201610067®Number=0000000000091631&sum=9900 [16:36:17]line 0 [16:36:17]OFD Sender: Processing packet 140019 [packets to send 34, broken 33] [16:36:17]ProducePacketName [16:36:17]name=ofd_packets/00140019 [16:36:17]OFD Sender: To server: pG, [16:36:17]CommunicateWithHost lk.salyk.kg:30040 [16:36:17]ConnectInit lk.salyk.kg [16:36:17]written 0, free lines is 4095 [16:36:17]Connected sock=9 [16:36:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 39 01 00 00 9A B0 31 01 06 90 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 86 03 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F3 22 02 00 35 04 06 00 9A 7D 70 D3 88 A5 29 DD 8D 27 B8 AD 15 8F [16:36:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 6F 6D 47 00 9C 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F3 22 02 00 F4 03 04 00 30 AF 24 67 B6 04 01 00 00 59 7A 86 42 FD 21 DE 0F [16:36:17]CommunicateWithHost err = 0 [16:36:17]CheckOFDResponse [16:36:17]1017 (14) - 77093643461234 [16:36:17]1041 (16) - 0000000000874669 [16:36:17]1040 (4) - 140019 [16:36:17]1012 (4) - 01.11.2024 10:36 [16:36:17]1206 (1) - 0 [16:36:17]OFD Sender: Remove packet 140019 [16:36:17]ProducePacketName [16:36:17]name=ofd_packets/00140019 [16:36:17]NVStorageDeleteData [16:36:18]Write to MH i2c: 01 00 00 8A 6F F9 [16:36:18]Write i2c OK [16:36:18]MH_I2C_Read... [16:36:18]Read from MH i2c: 01 [16:36:18]MH_I2C_Read... [16:36:18]Read from MH i2c: 01 07 00 [16:36:18]MH_I2C_Read... [16:36:18]Read from MH i2c: 01 07 00 8A 6F 00 00 00 00 00 04 0D 11 [16:36:18]RasterBufferAndPrint [16:36:18]line [16:36:18]line [16:36:18]line [16:36:18]line [16:36:18]line [16:36:18]written 0, free lines is 3338 [16:36:18]MH_Cut [16:36:18]Write to MH i2c: D1 01 00 91 6F 01 D2 [16:36:18]Write i2c OK [16:36:18]MH_I2C_Read... [16:36:18]Read from MH i2c: D1 [16:36:18]MH_I2C_Read... [16:36:18]Read from MH i2c: D1 01 00 [16:36:18]MH_I2C_Read... [16:36:18]Read from MH i2c: D1 01 00 91 6F 00 D1 [16:36:18]Write to MH i2c: 01 00 00 92 6F 01 [16:36:18]Write i2c OK [16:36:18]MH_I2C_Read... [16:36:18]OFD Sender: No OFD packet to send [16:36:18]*** Cut start [16:36:18]*** Partial cut [16:36:18]*** CUTSNS_PIN = 1 [16:36:18]*** CUTSNS_PIN = 0 [16:36:18]*** Brake cut motor [16:36:19]Read from MH i2c: 01 [16:36:19]MH_I2C_Read... [16:36:19]*** Stop cut motor [16:36:19]*** Cut end [16:36:19]Read from MH i2c: 01 07 00 [16:36:19]MH_I2C_Read... [16:36:19]Read from MH i2c: 01 07 00 92 6F 00 00 00 00 00 FF 0F 16 [16:36:19]process_action close_receipt done [16:36:19]requested_data is exist [16:36:19]produce_requested_data [16:36:19]requested_item fm.sn is exist - process it [16:36:19]wFMCommunicate request_size=4 [16:36:19]MH_SAM_APDU [16:36:19]CAPDU: 80 11 00 00 [16:36:19]Write to MH i2c: E2 08 00 93 6F 80 11 00 00 00 00 00 00 7C [16:36:19]Write i2c OK [16:36:19]MH_I2C_Read... [16:36:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:19]Read from MH i2c: E2 [16:36:19]MH_I2C_Read... [16:36:19]Read from MH i2c: E2 17 00 [16:36:19]MH_I2C_Read... [16:36:19]Read from MH i2c: E2 17 00 93 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D7 [16:36:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:36:19]wFMCommunicate OK [16:36:19]requested_item fd.num is exist - process it [16:36:19]SAM_PROTO_GetFieldsCounters [16:36:19]wFMCommunicate request_size=4 [16:36:19]MH_SAM_APDU [16:36:19]CAPDU: 80 13 00 00 [16:36:19]Write to MH i2c: E2 08 00 94 6F 80 13 00 00 00 00 00 00 7F [16:36:19]Write i2c OK [16:36:19]MH_I2C_Read... [16:36:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:19]Read from MH i2c: E2 [16:36:19]MH_I2C_Read... [16:36:19]Read from MH i2c: E2 62 00 [16:36:19]MH_I2C_Read... [16:36:19]Read from MH i2c: E2 62 00 94 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F3 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [16:36:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F3 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:36:19]wFMCommunicate OK [16:36:19]SAM_PROTO_GetFieldsCounters done [16:36:19]requested_item shift.num is exist - process it [16:36:19]requested_item shift.opened is exist - process it [16:36:19]req_shift_opened [16:36:19]FM_GetShiftState [16:36:19]SAM_PROTO_GetShiftState [16:36:19]wFMCommunicate request_size=4 [16:36:19]MH_SAM_APDU [16:36:19]CAPDU: 80 13 01 00 [16:36:19]Write to MH i2c: E2 08 00 95 6F 80 13 01 00 00 00 00 00 81 [16:36:19]Write i2c OK [16:36:19]MH_I2C_Read... [16:36:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:19]Read from MH i2c: E2 [16:36:19]MH_I2C_Read... [16:36:19]Read from MH i2c: E2 0E 00 [16:36:19]MH_I2C_Read... [16:36:19]Read from MH i2c: E2 0E 00 95 6F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 BA [16:36:19]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:36:19]wFMCommunicate OK [16:36:19]SAM_PROTO_GetShiftState done [16:36:19]FM_GetShiftState done [16:36:19]req_shift_opened done [16:36:19]requested_item shift.open_date is exist - process it [16:36:19]req_shift_open_date [16:36:19]req_shift_open_date done [16:36:19]produce_requested_data done [16:36:19]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":140019,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [16:36:19]process_action_free close_receipt [16:36:19]json_value_free [16:36:19]json_value_free done [16:36:19]process_json_proto returns [16:36:19]Send response to host [16:36:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":140019,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [16:36:19]free response buf [16:36:19]execute_script done [16:36:19]execute_script returns [16:36:19]free content buf [16:36:19]Sock 10.Close socket [16:36:19]Sock 10.Thread stoped [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:53]OFD Sender: No OFD packet to send [16:36:58]OFD Sender: No OFD packet to send [16:37:03]OFD Sender: No OFD packet to send [16:37:08]accept exits with 7 [16:37:08]New connection [16:37:08]New thread 3066654052 created [16:37:08]Thread 3066510692 joined [16:37:08]Waiting for new connection... [16:37:08] Sock 7.Parse request [16:37:08]Sock 7.Check first char [16:37:08]Sock 7.First char is OK [16:37:08]request: POST /json_proto HTTP/1.0 [16:37:08]Method: POST [16:37:08]URL: /json_proto [16:37:08]Method is POST - this is cgi request [16:37:08]url: /json_proto [16:37:08]query_string will be loaded in cgi processing [16:37:08]execute_cgi json_proto POST (null) [16:37:08]execute_cgi path=json_proto method=POST [16:37:08]POST find Content-Length [16:37:08]Host: 172.17.50.196:8080 [16:37:08]Content-Length: 678 [16:37:08]Content-Type: application/json [16:37:08] [16:37:08]POST finish read [16:37:08]Found Content-Length = 678 [16:37:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:08]execute_script... [16:37:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1096096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:08]POST & json_proto [16:37:08]process_json_proto [16:37:08]json parsed OK: [16:37:08]protocol is kg_v1.0 [16:37:08]action value=close_receipt [16:37:08]process_action close_receipt [16:37:08]cmd_close_receipt [16:37:08]MH_GetDate [16:37:08]Write to MH i2c: F0 00 00 96 6F F4 [16:37:08]Write i2c OK [16:37:08]MH_I2C_Read... [16:37:08]Read from MH i2c: F0 [16:37:08]MH_I2C_Read... [16:37:08]Read from MH i2c: F0 09 00 [16:37:08]MH_I2C_Read... [16:37:08]Read from MH i2c: F0 09 00 96 6F 00 BA 03 25 67 72 0D 1C 67 48 [16:37:08]GetLastDocTimeStamp 1730478982 [16:37:08]current date 1730479034 [16:37:08]FM_GetShiftState [16:37:08]SAM_PROTO_GetShiftState [16:37:08]wFMCommunicate request_size=4 [16:37:08]MH_SAM_APDU [16:37:08]CAPDU: 80 13 01 00 [16:37:08]Write to MH i2c: E2 08 00 97 6F 80 13 01 00 00 00 00 00 83 [16:37:08]Write i2c OK [16:37:08]MH_I2C_Read... [16:37:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:08]Read from MH i2c: E2 [16:37:08]MH_I2C_Read... [16:37:08]Read from MH i2c: E2 0E 00 [16:37:08]MH_I2C_Read... [16:37:08]Read from MH i2c: E2 0E 00 97 6F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 BC [16:37:08]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:37:08]wFMCommunicate OK [16:37:08]SAM_PROTO_GetShiftState done [16:37:08]FM_GetShiftState done [16:37:08]opened in 1730419081 [16:37:08]opened+sec_in_day 1730505481 [16:37:08]quantity*price = 50041 [16:37:08]sum+1 = 50042 [16:37:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 201 01.11.2024 16:37 Смена: 558 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 140020 ФПД: 254737436146435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T163714&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140020&fm=254737436146435&tin=02508201610067®Number=0000000000091631&sum=50000 [16:37:09]StoreToDocumentArchive [16:37:09]shift 558 fd 140020 [16:37:09]save to /storage/0558/doc_00140020 [16:37:09]save last doc name /storage/0558/doc_00140020 to /storage/kkm_last_doc_name [16:37:09]save OK [16:37:09]Clear old archive folders... [16:37:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:37:09]tlvbuf is 00BA9C80 [16:37:09]SAM_PROTO_ClearQueue [16:37:09]wFMCommunicate request_size=4 [16:37:09]MH_SAM_APDU [16:37:09]CAPDU: 80 09 00 00 [16:37:09]Write to MH i2c: E2 08 00 A4 6F 80 09 00 00 00 00 00 00 85 [16:37:09]Write i2c OK [16:37:09]MH_I2C_Read... [16:37:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:09]Read from MH i2c: E2 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 03 00 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 03 00 A4 6F 00 90 00 87 [16:37:09]RAPDU: 90 00 [16:37:09]wFMCommunicate OK [16:37:09]SAM_PROTO_ClearQueue done [16:37:09]KKMCreateOFDPacket [16:37:09]OFDProtocolAddRootSTLVToBuf [16:37:09]FM_MakeSignedData [16:37:09]FM_MakeSignedData [16:37:09]SAM_PROTO_SignData [16:37:09]wFMCommunicate request_size=4 [16:37:09]MH_SAM_APDU [16:37:09]CAPDU: 80 0D 01 02 [16:37:09]Write to MH i2c: E2 08 00 A5 6F 80 0D 01 02 00 00 00 00 8D [16:37:09]Write i2c OK [16:37:09]MH_I2C_Read... [16:37:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:09]Read from MH i2c: E2 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 03 00 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 03 00 A5 6F 00 90 00 88 [16:37:09]RAPDU: 90 00 [16:37:09]wFMCommunicate OK [16:37:09]wFMCommunicate request_size=255 [16:37:09]MH_SAM_APDU [16:37:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 BA 03 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F4 22 02 00 35 04 06 00 E7 [16:37:09]Write to MH i2c: E2 02 01 A6 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 BA 03 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F4 22 02 00 35 04 06 00 E7 00 00 5D [16:37:09]Write i2c OK [16:37:09]MH_I2C_Read... [16:37:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:09]Read from MH i2c: E2 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 03 00 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 03 00 A6 6F 00 90 00 89 [16:37:09]RAPDU: 90 00 [16:37:09]wFMCommunicate OK [16:37:09]wFMCommunicate request_size=10 [16:37:09]MH_SAM_APDU [16:37:09]CAPDU: 80 0D 02 02 05 AE AE 64 7B 03 [16:37:09]Write to MH i2c: E2 0D 00 A7 6F 80 0D 02 02 05 00 AE AE 64 7B 03 00 00 D8 [16:37:09]Write i2c OK [16:37:09]MH_I2C_Read... [16:37:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:09]Read from MH i2c: E2 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 03 00 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 03 00 A7 6F 00 90 00 8A [16:37:09]RAPDU: 90 00 [16:37:09]wFMCommunicate OK [16:37:09]wFMCommunicate request_size=4 [16:37:09]MH_SAM_APDU [16:37:09]CAPDU: 80 0D 03 02 [16:37:09]Write to MH i2c: E2 08 00 A8 6F 80 0D 03 02 00 00 00 00 92 [16:37:09]Write i2c OK [16:37:09]MH_I2C_Read... [16:37:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:09]Read from MH i2c: E2 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 0B 00 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 0B 00 A8 6F 00 8B 33 9C C3 36 D5 D8 BD 90 00 50 [16:37:09]RAPDU: 8B 33 9C C3 36 D5 D8 BD 90 00 [16:37:09]wFMCommunicate OK [16:37:09]SAM_PROTO_SignData done [16:37:09]FM_MakeSignedData done [16:37:09]CreateOFDProtocolMessage [16:37:09]wFMCommunicate request_size=4 [16:37:09]MH_SAM_APDU [16:37:09]CAPDU: 80 11 00 00 [16:37:09]Write to MH i2c: E2 08 00 A9 6F 80 11 00 00 00 00 00 00 92 [16:37:09]Write i2c OK [16:37:09]MH_I2C_Read... [16:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:09]Read from MH i2c: E2 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 17 00 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: E2 17 00 A9 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 ED [16:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:37:09]wFMCommunicate OK [16:37:09]CreateOFDProtocolMessage done [16:37:09]OFDSenderStorePacket 140020 [16:37:09]StoreOFDPacket docnum=140020 [16:37:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 C0 6E 07 01 25 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 BA 03 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F4 22 02 00 35 04 06 00 E7 AE AE 64 7B 03 8B 33 9C C3 36 D5 D8 BD [16:37:09]CheckFolder [16:37:09]dirname=/storage/ofd_packets [16:37:09]CheckFolder done [16:37:09]ProducePacketName [16:37:09]name=ofd_packets/00140020 [16:37:09]NVStorageSaveData ofd_packets/00140020 [16:37:09]File name is /storage/ofd_packets/00140020 [16:37:09]Write 301 bytes [16:37:09]NVStorageSaveData done [16:37:09]OFDSenderStorePacket done [16:37:09]KKMCreateOFDPacket done [16:37:09]NVStorageSaveData kkm_last_timestamp [16:37:09]File name is /storage/kkm_last_timestamp [16:37:09]Write 4 bytes [16:37:09]NVStorageSaveData done [16:37:09]ExternCall_PrintAddStr [16:37:09]wPrintStart [16:37:09]Write to MH i2c: 01 00 00 AA 6F 19 [16:37:09]Write i2c OK [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: 01 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: 01 07 00 [16:37:09]MH_I2C_Read... [16:37:09]Read from MH i2c: 01 07 00 AA 6F 00 00 00 00 00 FF 0F 2E [16:37:09]RasterBufferAndPrint [16:37:09]line Счет N : (1)1096096 [16:37:09]line ИНН: 02508201610067 [16:37:09]line Контрольно-Кассовый Чек [16:37:09]line ПРОДАЖА [16:37:09]line ТРК (МРК, ГНК) : 43 [16:37:09]line Товар: 2710124130 [16:37:09]line Аи-92-К-2 [16:37:09]line 7.480 * 66.90 [16:37:09]line = 500.41 [16:37:09]line НДС 12% НСП 1% [16:37:09]line > о реализуемом товаре [16:37:09]line ОКРУГЛЕНИЕ: -0.41 [16:37:09]line ИТОГО: 500.00 [16:37:09]line Внесено: 500.00 [16:37:09]line СДАЧА: 0.00 [16:37:09]line НСП 1% : 4.43 [16:37:09]line НДС 12% : 53.14 [16:37:09]line Наличными: 500.00 [16:37:09]line Безнал.: 0.00 [16:37:09]line Место: АЗС № 101 "Партнер Нефть" [16:37:09]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:37:09]line СНО: Общий режим [16:37:09]line Чек 201 01.11.2024 16:37 [16:37:09]line Смена: 558 ФФД: 1.0 [16:37:09]line ЗНМ: 0300000081 [16:37:09]line РНМ: 0000000000091631 [16:37:09]line Версия ККМ: 001 [16:37:09]line ФМ: 0000000000874669 [16:37:09]line ФД: 140020 [16:37:09]line ФПД: 254737436146435 [16:37:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241101T163714&type=1&operation_type=1&fn_number=0000000000874669&fd_number=140020&fm=254737436146435&tin=02508201610067®Number=0000000000091631&sum=50000 [16:37:10]OFD Sender: Processing packet 140020 [packets to send 34, broken 33] [16:37:10]ProducePacketName [16:37:10]name=ofd_packets/00140020 [16:37:10]OFD Sender: To server: pG, [16:37:10]CommunicateWithHost lk.salyk.kg:30040 [16:37:10]ConnectInit lk.salyk.kg [16:37:10]written 0, free lines is 4095 [16:37:10]Connected sock=5 [16:37:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 C0 6E 07 01 25 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 BA 03 25 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F4 22 02 00 35 04 06 00 E7 AE AE 64 7B 03 8B 33 9C C3 36 D5 D8 BD [16:37:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 AE 5F 47 00 4F A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F4 22 02 00 F4 03 04 00 65 AF 24 67 B6 04 01 00 00 A0 14 9F D6 28 25 FB F8 [16:37:10]CommunicateWithHost err = 0 [16:37:10]CheckOFDResponse [16:37:10]1017 (14) - 77093643461234 [16:37:10]1041 (16) - 0000000000874669 [16:37:10]1040 (4) - 140020 [16:37:10]1012 (4) - 01.11.2024 10:37 [16:37:10]1206 (1) - 0 [16:37:10]OFD Sender: Remove packet 140020 [16:37:10]ProducePacketName [16:37:10]name=ofd_packets/00140020 [16:37:10]NVStorageDeleteData [16:37:10]Write to MH i2c: 01 00 00 D5 6F 44 [16:37:10]Write i2c OK [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: 01 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: 01 07 00 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: 01 07 00 D5 6F 00 00 00 00 00 E3 0C 3A [16:37:10]RasterBufferAndPrint [16:37:10]line [16:37:10]line [16:37:10]line [16:37:10]line [16:37:10]line [16:37:10]written 0, free lines is 3305 [16:37:10]MH_Cut [16:37:10]Write to MH i2c: D1 01 00 DC 6F 01 1D [16:37:10]Write i2c OK [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: D1 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: D1 01 00 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: D1 01 00 DC 6F 00 1C [16:37:10]Write to MH i2c: 01 00 00 DD 6F 4C [16:37:10]Write i2c OK [16:37:10]MH_I2C_Read... [16:37:11]OFD Sender: No OFD packet to send [16:37:11]*** Cut start [16:37:11]*** Partial cut [16:37:11]*** CUTSNS_PIN = 1 [16:37:11]*** CUTSNS_PIN = 0 [16:37:11]*** Brake cut motor [16:37:11]Read from MH i2c: 01 [16:37:11]MH_I2C_Read... [16:37:11]*** Stop cut motor [16:37:11]*** Cut end [16:37:11]Read from MH i2c: 01 07 00 [16:37:11]MH_I2C_Read... [16:37:11]Read from MH i2c: 01 07 00 DD 6F 00 00 00 00 00 FF 0F 61 [16:37:11]process_action close_receipt done [16:37:11]requested_data is exist [16:37:11]produce_requested_data [16:37:11]requested_item fm.sn is exist - process it [16:37:11]wFMCommunicate request_size=4 [16:37:11]MH_SAM_APDU [16:37:11]CAPDU: 80 11 00 00 [16:37:12]Write to MH i2c: E2 08 00 DE 6F 80 11 00 00 00 00 00 00 C7 [16:37:12]Write i2c OK [16:37:12]MH_I2C_Read... [16:37:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:12]Read from MH i2c: E2 [16:37:12]MH_I2C_Read... [16:37:12]Read from MH i2c: E2 17 00 [16:37:12]MH_I2C_Read... [16:37:12]Read from MH i2c: E2 17 00 DE 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 22 [16:37:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:37:12]wFMCommunicate OK [16:37:12]requested_item fd.num is exist - process it [16:37:12]SAM_PROTO_GetFieldsCounters [16:37:12]wFMCommunicate request_size=4 [16:37:12]MH_SAM_APDU [16:37:12]CAPDU: 80 13 00 00 [16:37:12]Write to MH i2c: E2 08 00 DF 6F 80 13 00 00 00 00 00 00 CA [16:37:12]Write i2c OK [16:37:12]MH_I2C_Read... [16:37:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:12]Read from MH i2c: E2 [16:37:12]MH_I2C_Read... [16:37:12]Read from MH i2c: E2 62 00 [16:37:12]MH_I2C_Read... [16:37:12]Read from MH i2c: E2 62 00 DF 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F4 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [16:37:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F4 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:12]wFMCommunicate OK [16:37:12]SAM_PROTO_GetFieldsCounters done [16:37:12]requested_item shift.num is exist - process it [16:37:12]requested_item shift.opened is exist - process it [16:37:12]req_shift_opened [16:37:12]FM_GetShiftState [16:37:12]SAM_PROTO_GetShiftState [16:37:12]wFMCommunicate request_size=4 [16:37:12]MH_SAM_APDU [16:37:12]CAPDU: 80 13 01 00 [16:37:12]Write to MH i2c: E2 08 00 E0 6F 80 13 01 00 00 00 00 00 CC [16:37:12]Write i2c OK [16:37:12]MH_I2C_Read... [16:37:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:12]Read from MH i2c: E2 [16:37:12]MH_I2C_Read... [16:37:12]Read from MH i2c: E2 0E 00 [16:37:12]MH_I2C_Read... [16:37:12]Read from MH i2c: E2 0E 00 E0 6F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 05 [16:37:12]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:37:12]wFMCommunicate OK [16:37:12]SAM_PROTO_GetShiftState done [16:37:12]FM_GetShiftState done [16:37:12]req_shift_opened done [16:37:12]requested_item shift.open_date is exist - process it [16:37:12]req_shift_open_date [16:37:12]req_shift_open_date done [16:37:12]produce_requested_data done [16:37:12]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":140020,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [16:37:12]process_action_free close_receipt [16:37:12]json_value_free [16:37:12]json_value_free done [16:37:12]process_json_proto returns [16:37:12]Send response to host [16:37:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":140020,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [16:37:12]free response buf [16:37:12]execute_script done [16:37:12]execute_script returns [16:37:12]free content buf [16:37:12]Sock 7.Close socket [16:37:12]Sock 7.Thread stoped [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]OFD Sender: No OFD packet to send [16:37:56]OFD Sender: No OFD packet to send [16:38:01]OFD Sender: No OFD packet to send [16:38:06]OFD Sender: No OFD packet to send [16:38:11]OFD Sender: No OFD packet to send [16:38:16]OFD Sender: No OFD packet to send [16:38:21]OFD Sender: No OFD packet to send [16:38:26]OFD Sender: No OFD packet to send [16:38:31]OFD Sender: No OFD packet to send [16:38:36]OFD Sender: No OFD packet to send [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:56]OFD Sender: No OFD packet to send [16:39:01]OFD Sender: No OFD packet to send [16:39:06]OFD Sender: No OFD packet to send [16:39:11]OFD Sender: No OFD packet to send [16:39:16]OFD Sender: No OFD packet to send [16:39:21]OFD Sender: No OFD packet to send [16:39:26]OFD Sender: No OFD packet to send [16:39:31]OFD Sender: No OFD packet to send [16:39:36]OFD Sender: No OFD packet to send [16:39:41]OFD Sender: No OFD packet to send [16:39:46]OFD Sender: No OFD packet to send [16:39:51]OFD Sender: No OFD packet to send [16:39:56]OFD Sender: No OFD packet to send [16:40:01]OFD Sender: No OFD packet to send [16:40:06]OFD Sender: No OFD packet to send [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:38]accept exits with 9 [16:40:38]New connection [16:40:38]New thread 3066510692 created [16:40:38]Thread 3066654052 joined [16:40:38]Waiting for new connection... [16:40:38] Sock 9.Parse request [16:40:38]Sock 9.Check first char [16:40:38]Sock 9.First char is OK [16:40:38]request: POST /json_proto HTTP/1.0 [16:40:38]Method: POST [16:40:38]URL: /json_proto [16:40:38]Method is POST - this is cgi request [16:40:38]url: /json_proto [16:40:38]query_string will be loaded in cgi processing [16:40:38]execute_cgi json_proto POST (null) [16:40:38]execute_cgi path=json_proto method=POST [16:40:38]POST find Content-Length [16:40:38]Host: 172.17.50.196:8080 [16:40:38]Content-Length: 215 [16:40:38]Content-Type: application/json [16:40:38] [16:40:38]POST finish read [16:40:38]Found Content-Length = 215 [16:40:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:38]execute_script... [16:40:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:38]POST & json_proto [16:40:38]process_json_proto [16:40:38]json parsed OK: [16:40:38]protocol is kg_v1.0 [16:40:38]action value=get_value [16:40:38]process_action get_value [16:40:38]cmd_get_value [16:40:38]process_action get_value done [16:40:38]requested_data is exist [16:40:38]produce_requested_data [16:40:38]requested_item kkm.sn is exist - process it [16:40:38]requested_item kkm.ver is exist - process it [16:40:38]requested_item fm.sn is exist - process it [16:40:38]wFMCommunicate request_size=4 [16:40:38]MH_SAM_APDU [16:40:38]CAPDU: 80 11 00 00 [16:40:38]Write to MH i2c: E2 08 00 E1 6F 80 11 00 00 00 00 00 00 CA [16:40:38]Write i2c OK [16:40:38]MH_I2C_Read... [16:40:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:38]Read from MH i2c: E2 [16:40:38]MH_I2C_Read... [16:40:38]Read from MH i2c: E2 17 00 [16:40:38]MH_I2C_Read... [16:40:38]Read from MH i2c: E2 17 00 E1 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 25 [16:40:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:40:38]wFMCommunicate OK [16:40:38]requested_item fd.num is exist - process it [16:40:38]SAM_PROTO_GetFieldsCounters [16:40:38]wFMCommunicate request_size=4 [16:40:38]MH_SAM_APDU [16:40:38]CAPDU: 80 13 00 00 [16:40:38]Write to MH i2c: E2 08 00 E2 6F 80 13 00 00 00 00 00 00 CD [16:40:38]Write i2c OK [16:40:38]MH_I2C_Read... [16:40:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:38]Read from MH i2c: E2 [16:40:38]MH_I2C_Read... [16:40:38]Read from MH i2c: E2 62 00 [16:40:38]MH_I2C_Read... [16:40:38]Read from MH i2c: E2 62 00 E2 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F4 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [16:40:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F4 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:40:38]wFMCommunicate OK [16:40:38]SAM_PROTO_GetFieldsCounters done [16:40:38]requested_item shift.num is exist - process it [16:40:38]requested_item shift.opened is exist - process it [16:40:38]req_shift_opened [16:40:38]FM_GetShiftState [16:40:38]SAM_PROTO_GetShiftState [16:40:38]wFMCommunicate request_size=4 [16:40:38]MH_SAM_APDU [16:40:38]CAPDU: 80 13 01 00 [16:40:38]Write to MH i2c: E2 08 00 E3 6F 80 13 01 00 00 00 00 00 CF [16:40:38]Write i2c OK [16:40:38]MH_I2C_Read... [16:40:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:38]Read from MH i2c: E2 [16:40:38]MH_I2C_Read... [16:40:38]Read from MH i2c: E2 0E 00 [16:40:38]MH_I2C_Read... [16:40:38]Read from MH i2c: E2 0E 00 E3 6F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 08 [16:40:38]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:40:38]wFMCommunicate OK [16:40:38]SAM_PROTO_GetShiftState done [16:40:38]FM_GetShiftState done [16:40:38]req_shift_opened done [16:40:38]requested_item shift.open_date is exist - process it [16:40:38]req_shift_open_date [16:40:38]req_shift_open_date done [16:40:38]produce_requested_data done [16:40:38]produce_requested_data return {"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":140020,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [16:40:38]process_action_free get_value [16:40:38]json_value_free [16:40:38]json_value_free done [16:40:38]process_json_proto returns [16:40:38]Send response to host [16:40:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":140020,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [16:40:38]free response buf [16:40:38]execute_script done [16:40:38]execute_script returns [16:40:38]free content buf [16:40:38]Sock 9.Close socket [16:40:38]Sock 9.Thread stoped [16:40:38]accept exits with 7 [16:40:38]New connection [16:40:38]New thread 3066654052 created [16:40:38]Thread 3066510692 joined [16:40:38]Waiting for new connection... [16:40:38] Sock 7.Parse request [16:40:38]Sock 7.Check first char [16:40:38]Sock 7.First char is OK [16:40:38]request: POST /json_proto HTTP/1.0 [16:40:38]Method: POST [16:40:38]URL: /json_proto [16:40:38]Method is POST - this is cgi request [16:40:38]url: /json_proto [16:40:38]query_string will be loaded in cgi processing [16:40:38]execute_cgi json_proto POST (null) [16:40:38]execute_cgi path=json_proto method=POST [16:40:38]POST find Content-Length [16:40:38]Host: 172.17.50.196:8080 [16:40:38]Content-Length: 331 [16:40:38]Content-Type: application/json [16:40:38] [16:40:38]POST finish read [16:40:38]Found Content-Length = 331 [16:40:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:40:38]execute_script... [16:40: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" ] } } [16:40:39]POST & json_proto [16:40:39]process_json_proto [16:40:39]json parsed OK: [16:40:39]protocol is kg_v1.0 [16:40:39]action value=get_value [16:40:39]process_action get_value [16:40:39]cmd_get_value [16:40:39]process_action get_value done [16:40:39]requested_data is exist [16:40:39]produce_requested_data [16:40:39]requested_item fm.sale.total is exist - process it [16:40:39]SAM_PROTO_GetFMData [16:40:39]wFMCommunicate request_size=4 [16:40:39]MH_SAM_APDU [16:40:39]CAPDU: 80 13 03 00 [16:40:39]Write to MH i2c: E2 08 00 E4 6F 80 13 03 00 00 00 00 00 D2 [16:40:39]Write i2c OK [16:40:39]MH_I2C_Read... [16:40:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:40:39]Read from MH i2c: E2 [16:40:39]MH_I2C_Read... [16:40:39]Read from MH i2c: E2 FD 00 [16:40:39]MH_I2C_Read... [16:40:39]Read from MH i2c: E2 FD 00 E4 6F 00 C7 04 85 04 C3 04 6E 04 04 00 98 1E 02 00 69 04 A3 00 6F 04 04 00 48 1C 02 00 B1 04 05 00 B1 E2 EF 53 01 70 04 05 00 14 05 32 04 01 72 04 04 00 9D DD BD 4F 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 C5 33 1A 24 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 26 EC 01 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 50 02 00 00 B1 04 04 00 68 65 0B 09 70 04 04 00 A4 39 E7 08 72 04 03 00 C4 2B 24 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 ED E5 F5 EF 90 00 DF [16:40:39]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 98 1E 02 00 69 04 A3 00 6F 04 04 00 48 1C 02 00 B1 04 05 00 B1 E2 EF 53 01 70 04 05 00 14 05 32 04 01 72 04 04 00 9D DD BD 4F 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 C5 33 1A 24 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 26 EC 01 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 50 02 00 00 B1 04 04 00 68 65 0B 09 70 04 04 00 A4 39 E7 08 72 04 03 00 C4 2B 24 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 ED E5 F5 EF 90 00 [16:40:39]wFMCommunicate OK [16:40:39]wFMCommunicate request_size=4 [16:40:39]MH_SAM_APDU [16:40:39]CAPDU: 80 17 00 00 [16:40:39]Write to MH i2c: E2 08 00 E5 6F 80 17 00 00 00 00 00 00 D4 [16:40:39]Write i2c OK [16:40:39]MH_I2C_Read... [16:40:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:40:39]Read from MH i2c: E2 [16:40:39]MH_I2C_Read... [16:40:39]Read from MH i2c: E2 FD 00 [16:40:39]MH_I2C_Read... [16:40:39]Read from MH i2c: E2 FD 00 E5 6F 00 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 95 7D 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 07 [16:40:39]RAPDU: 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 95 7D 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 [16:40:39]wFMCommunicate OK [16:40:39]wFMCommunicate request_size=4 [16:40:39]MH_SAM_APDU [16:40:39]CAPDU: 80 17 00 00 [16:40:39]Write to MH i2c: E2 08 00 E6 6F 80 17 00 00 00 00 00 00 D5 [16:40:39]Write i2c OK [16:40:39]MH_I2C_Read... [16:40:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:40:39]Read from MH i2c: E2 [16:40:39]MH_I2C_Read... [16:40:39]Read from MH i2c: E2 FD 00 [16:40:39]MH_I2C_Read... [16:40:39]Read from MH i2c: E2 FD 00 E6 6F 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 AD [16:40:39]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [16:40:39]wFMCommunicate OK [16:40:39]wFMCommunicate request_size=4 [16:40:39]MH_SAM_APDU [16:40:39]CAPDU: 80 17 00 00 [16:40:39]Write to MH i2c: E2 08 00 E7 6F 80 17 00 00 00 00 00 00 D6 [16:40:39]Write i2c OK [16:40:39]MH_I2C_Read... [16:40:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:40:40]Read from MH i2c: E2 [16:40:40]MH_I2C_Read... [16:40:40]Read from MH i2c: E2 FD 00 [16:40:40]MH_I2C_Read... [16:40:40]Read from MH i2c: E2 FD 00 E7 6F 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 51 [16:40:40]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:40:40]wFMCommunicate OK [16:40:40]wFMCommunicate request_size=4 [16:40:40]MH_SAM_APDU [16:40:40]CAPDU: 80 17 00 00 [16:40:40]Write to MH i2c: E2 08 00 E8 6F 80 17 00 00 00 00 00 00 D7 [16:40:40]Write i2c OK [16:40:40]MH_I2C_Read... [16:40:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [16:40:40]Read from MH i2c: E2 [16:40:40]MH_I2C_Read... [16:40:40]Read from MH i2c: E2 E4 00 [16:40:40]MH_I2C_Read... [16:40:40]Read from MH i2c: E2 E4 00 E8 6F 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B7 [16:40:40]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:40:40]wFMCommunicate OK [16:40:40]SAM_PROTO_GetFMData done [16:40:40]requested_item fm.sale_refund.total is exist - process it [16:40:40]requested_item fm.buy.total is exist - process it [16:40:40]requested_item shift.sale.total is exist - process it [16:40:40]SAM_PROTO_GetShiftData [16:40:40]wFMCommunicate request_size=4 [16:40:40]MH_SAM_APDU [16:40:40]CAPDU: 80 13 02 00 [16:40:40]Write to MH i2c: E2 08 00 E9 6F 80 13 02 00 00 00 00 00 D6 [16:40:40]Write i2c OK [16:40:40]MH_I2C_Read... [16:40:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:40:40]Read from MH i2c: E2 [16:40:40]MH_I2C_Read... [16:40:40]Read from MH i2c: E2 FD 00 [16:40:40]MH_I2C_Read... [16:40:40]Read from MH i2c: E2 FD 00 E9 6F 00 B6 04 AA 04 B2 04 6E 04 04 00 C9 00 00 00 69 04 9C 00 6F 04 04 00 C8 00 00 00 B1 04 03 00 70 B0 B6 70 04 03 00 80 80 72 72 04 03 00 F0 2F 44 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 F5 66 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DA 9D 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 4C 36 70 04 02 00 4C 36 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C4 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 BC [16:40:40]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 C9 00 00 00 69 04 9C 00 6F 04 04 00 C8 00 00 00 B1 04 03 00 70 B0 B6 70 04 03 00 80 80 72 72 04 03 00 F0 2F 44 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 F5 66 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DA 9D 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 4C 36 70 04 02 00 4C 36 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C4 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 [16:40:40]wFMCommunicate OK [16:40:40]wFMCommunicate request_size=4 [16:40:40]MH_SAM_APDU [16:40:40]CAPDU: 80 17 00 00 [16:40:40]Write to MH i2c: E2 08 00 EA 6F 80 17 00 00 00 00 00 00 D9 [16:40:40]Write i2c OK [16:40:40]MH_I2C_Read... [16:40:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:40:41]Read from MH i2c: E2 [16:40:41]MH_I2C_Read... [16:40:41]Read from MH i2c: E2 FD 00 [16:40:41]MH_I2C_Read... [16:40:41]Read from MH i2c: E2 FD 00 EA 6F 00 00 F6 03 01 00 01 F7 03 01 00 7B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 67 [16:40:41]RAPDU: 00 F6 03 01 00 01 F7 03 01 00 7B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 [16:40:41]wFMCommunicate OK [16:40:41]wFMCommunicate request_size=4 [16:40:41]MH_SAM_APDU [16:40:41]CAPDU: 80 17 00 00 [16:40:41]Write to MH i2c: E2 08 00 EB 6F 80 17 00 00 00 00 00 00 DA [16:40:41]Write i2c OK [16:40:41]MH_I2C_Read... [16:40:41]OFD Sender: No OFD packet to send [16:40:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:40:41]Read from MH i2c: E2 [16:40:41]MH_I2C_Read... [16:40:41]Read from MH i2c: E2 FD 00 [16:40:41]MH_I2C_Read... [16:40:41]Read from MH i2c: E2 FD 00 EB 6F 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 9A [16:40:41]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 [16:40:41]wFMCommunicate OK [16:40:41]wFMCommunicate request_size=4 [16:40:41]MH_SAM_APDU [16:40:41]CAPDU: 80 17 00 00 [16:40:41]Write to MH i2c: E2 08 00 EC 6F 80 17 00 00 00 00 00 00 DB [16:40:41]Write i2c OK [16:40:41]MH_I2C_Read... [16:40:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:40:41]Read from MH i2c: E2 [16:40:41]MH_I2C_Read... [16:40:41]Read from MH i2c: E2 FD 00 [16:40:41]MH_I2C_Read... [16:40:41]Read from MH i2c: E2 FD 00 EC 6F 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 4A [16:40:41]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 [16:40:41]wFMCommunicate OK [16:40:41]wFMCommunicate request_size=4 [16:40:41]MH_SAM_APDU [16:40:41]CAPDU: 80 17 00 00 [16:40:41]Write to MH i2c: E2 08 00 ED 6F 80 17 00 00 00 00 00 00 DC [16:40:41]Write i2c OK [16:40:41]MH_I2C_Read... [16:40:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [16:40:42]Read from MH i2c: E2 [16:40:42]MH_I2C_Read... [16:40:42]Read from MH i2c: E2 D3 00 [16:40:42]MH_I2C_Read... [16:40:42]Read from MH i2c: E2 D3 00 ED 6F 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 C9 [16:40:42]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 [16:40:42]wFMCommunicate OK [16:40:42]SAM_PROTO_GetShiftData done [16:40:42]requested_item shift.sale.total_cash is exist - process it [16:40:42]requested_item shift.sale_refund.total is exist - process it [16:40:42]requested_item shift.sale_refund.total_cash is exist - process it [16:40:42]requested_item shift.buy.total is exist - process it [16:40:42]requested_item shift.buy.total_cash is exist - process it [16:40:42]produce_requested_data done [16:40:42]produce_requested_data return {"fm.sale.total":57031973.61,"fm.sale_refund.total":1517418.00,"fm.buy.total":0.00,"shift.sale.total":119727.20,"shift.sale.total_cash":75040.00,"shift.sale_refund.total":139.00,"shift.sale_refund.total_cash":139.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:40:42]process_action_free get_value [16:40:42]json_value_free [16:40:42]json_value_free done [16:40:42]process_json_proto returns [16:40:42]Send response to host [16:40:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":57031973.61,"fm.sale_refund.total":1517418.00,"fm.buy.total":0.00,"shift.sale.total":119727.20,"shift.sale.total_cash":75040.00,"shift.sale_refund.total":139.00,"shift.sale_refund.total_cash":139.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:40:42]free response buf [16:40:42]execute_script done [16:40:42]execute_script returns [16:40:42]free content buf [16:40:42]Sock 7.Close socket [16:40:42]Sock 7.Thread stoped [16:40:42]accept exits with 9 [16:40:42]New connection [16:40:42]New thread 3066510692 created [16:40:42]Thread 3066654052 joined [16:40:42]Waiting for new connection... [16:40:42] Sock 9.Parse request [16:40:42]Sock 9.Check first char [16:40:42]Sock 9.First char is OK [16:40:42]request: POST /json_proto HTTP/1.0 [16:40:42]Method: POST [16:40:42]URL: /json_proto [16:40:42]Method is POST - this is cgi request [16:40:42]url: /json_proto [16:40:42]query_string will be loaded in cgi processing [16:40:42]execute_cgi json_proto POST (null) [16:40:42]execute_cgi path=json_proto method=POST [16:40:42]POST find Content-Length [16:40:42]Host: 172.17.50.196:8080 [16:40:42]Content-Length: 331 [16:40:42]Content-Type: application/json [16:40:42] [16:40:42]POST finish read [16:40:42]Found Content-Length = 331 [16:40:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:40:42]execute_script... [16:40:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:40:42]POST & json_proto [16:40:42]process_json_proto [16:40:42]json parsed OK: [16:40:42]protocol is kg_v1.0 [16:40:42]action value=get_value [16:40:42]process_action get_value [16:40:42]cmd_get_value [16:40:42]process_action get_value done [16:40:42]requested_data is exist [16:40:42]produce_requested_data [16:40:42]requested_item fm.sale.total is exist - process it [16:40:42]SAM_PROTO_GetFMData [16:40:42]wFMCommunicate request_size=4 [16:40:42]MH_SAM_APDU [16:40:42]CAPDU: 80 13 03 00 [16:40:42]Write to MH i2c: E2 08 00 EE 6F 80 13 03 00 00 00 00 00 DC [16:40:42]Write i2c OK [16:40:42]MH_I2C_Read... [16:40:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:40:42]Read from MH i2c: E2 [16:40:42]MH_I2C_Read... [16:40:42]Read from MH i2c: E2 FD 00 [16:40:42]MH_I2C_Read... [16:40:42]Read from MH i2c: E2 FD 00 EE 6F 00 C7 04 85 04 C3 04 6E 04 04 00 98 1E 02 00 69 04 A3 00 6F 04 04 00 48 1C 02 00 B1 04 05 00 B1 E2 EF 53 01 70 04 05 00 14 05 32 04 01 72 04 04 00 9D DD BD 4F 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 C5 33 1A 24 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 26 EC 01 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 50 02 00 00 B1 04 04 00 68 65 0B 09 70 04 04 00 A4 39 E7 08 72 04 03 00 C4 2B 24 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 ED E5 F5 EF 90 00 E9 [16:40:42]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 98 1E 02 00 69 04 A3 00 6F 04 04 00 48 1C 02 00 B1 04 05 00 B1 E2 EF 53 01 70 04 05 00 14 05 32 04 01 72 04 04 00 9D DD BD 4F 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 C5 33 1A 24 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 26 EC 01 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 50 02 00 00 B1 04 04 00 68 65 0B 09 70 04 04 00 A4 39 E7 08 72 04 03 00 C4 2B 24 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 ED E5 F5 EF 90 00 [16:40:42]wFMCommunicate OK [16:40:42]wFMCommunicate request_size=4 [16:40:42]MH_SAM_APDU [16:40:42]CAPDU: 80 17 00 00 [16:40:42]Write to MH i2c: E2 08 00 EF 6F 80 17 00 00 00 00 00 00 DE [16:40:42]Write i2c OK [16:40:42]MH_I2C_Read... [16:40:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:40:43]Read from MH i2c: E2 [16:40:43]MH_I2C_Read... [16:40:43]Read from MH i2c: E2 FD 00 [16:40:43]MH_I2C_Read... [16:40:43]Read from MH i2c: E2 FD 00 EF 6F 00 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 95 7D 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 11 [16:40:43]RAPDU: 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 95 7D 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 [16:40:43]wFMCommunicate OK [16:40:43]wFMCommunicate request_size=4 [16:40:43]MH_SAM_APDU [16:40:43]CAPDU: 80 17 00 00 [16:40:43]Write to MH i2c: E2 08 00 F0 6F 80 17 00 00 00 00 00 00 DF [16:40:43]Write i2c OK [16:40:43]MH_I2C_Read... [16:40:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:40:43]Read from MH i2c: E2 [16:40:43]MH_I2C_Read... [16:40:43]Read from MH i2c: E2 FD 00 [16:40:43]MH_I2C_Read... [16:40:43]Read from MH i2c: E2 FD 00 F0 6F 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 B7 [16:40:43]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [16:40:43]wFMCommunicate OK [16:40:43]wFMCommunicate request_size=4 [16:40:43]MH_SAM_APDU [16:40:43]CAPDU: 80 17 00 00 [16:40:43]Write to MH i2c: E2 08 00 F1 6F 80 17 00 00 00 00 00 00 E0 [16:40:43]Write i2c OK [16:40:43]MH_I2C_Read... [16:40:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:40:43]Read from MH i2c: E2 [16:40:43]MH_I2C_Read... [16:40:43]Read from MH i2c: E2 FD 00 [16:40:43]MH_I2C_Read... [16:40:43]Read from MH i2c: E2 FD 00 F1 6F 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5B [16:40:43]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:40:43]wFMCommunicate OK [16:40:43]wFMCommunicate request_size=4 [16:40:43]MH_SAM_APDU [16:40:43]CAPDU: 80 17 00 00 [16:40:43]Write to MH i2c: E2 08 00 F2 6F 80 17 00 00 00 00 00 00 E1 [16:40:43]Write i2c OK [16:40:43]MH_I2C_Read... [16:40:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [16:40:44]Read from MH i2c: E2 [16:40:44]MH_I2C_Read... [16:40:44]Read from MH i2c: E2 E4 00 [16:40:44]MH_I2C_Read... [16:40:44]Read from MH i2c: E2 E4 00 F2 6F 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C1 [16:40:44]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:40:44]wFMCommunicate OK [16:40:44]SAM_PROTO_GetFMData done [16:40:44]requested_item fm.sale_refund.total is exist - process it [16:40:44]requested_item fm.buy.total is exist - process it [16:40:44]requested_item shift.sale.total is exist - process it [16:40:44]SAM_PROTO_GetShiftData [16:40:44]wFMCommunicate request_size=4 [16:40:44]MH_SAM_APDU [16:40:44]CAPDU: 80 13 02 00 [16:40:44]Write to MH i2c: E2 08 00 F3 6F 80 13 02 00 00 00 00 00 E0 [16:40:44]Write i2c OK [16:40:44]MH_I2C_Read... [16:40:44]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:40:44]Read from MH i2c: E2 [16:40:44]MH_I2C_Read... [16:40:44]Read from MH i2c: E2 FD 00 [16:40:44]MH_I2C_Read... [16:40:44]Read from MH i2c: E2 FD 00 F3 6F 00 B6 04 AA 04 B2 04 6E 04 04 00 C9 00 00 00 69 04 9C 00 6F 04 04 00 C8 00 00 00 B1 04 03 00 70 B0 B6 70 04 03 00 80 80 72 72 04 03 00 F0 2F 44 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 F5 66 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DA 9D 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 4C 36 70 04 02 00 4C 36 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C4 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 C6 [16:40:44]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 C9 00 00 00 69 04 9C 00 6F 04 04 00 C8 00 00 00 B1 04 03 00 70 B0 B6 70 04 03 00 80 80 72 72 04 03 00 F0 2F 44 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 F5 66 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DA 9D 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 4C 36 70 04 02 00 4C 36 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C4 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 [16:40:44]wFMCommunicate OK [16:40:44]wFMCommunicate request_size=4 [16:40:44]MH_SAM_APDU [16:40:44]CAPDU: 80 17 00 00 [16:40:44]Write to MH i2c: E2 08 00 F4 6F 80 17 00 00 00 00 00 00 E3 [16:40:44]Write i2c OK [16:40:44]MH_I2C_Read... [16:40:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:40:45]Read from MH i2c: E2 [16:40:45]MH_I2C_Read... [16:40:45]Read from MH i2c: E2 FD 00 [16:40:45]MH_I2C_Read... [16:40:45]Read from MH i2c: E2 FD 00 F4 6F 00 00 F6 03 01 00 01 F7 03 01 00 7B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 71 [16:40:45]RAPDU: 00 F6 03 01 00 01 F7 03 01 00 7B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 [16:40:45]wFMCommunicate OK [16:40:45]wFMCommunicate request_size=4 [16:40:45]MH_SAM_APDU [16:40:45]CAPDU: 80 17 00 00 [16:40:45]Write to MH i2c: E2 08 00 F5 6F 80 17 00 00 00 00 00 00 E4 [16:40:45]Write i2c OK [16:40:45]MH_I2C_Read... [16:40:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:40:45]Read from MH i2c: E2 [16:40:45]MH_I2C_Read... [16:40:45]Read from MH i2c: E2 FD 00 [16:40:45]MH_I2C_Read... [16:40:45]Read from MH i2c: E2 FD 00 F5 6F 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 A4 [16:40:45]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 [16:40:45]wFMCommunicate OK [16:40:45]wFMCommunicate request_size=4 [16:40:45]MH_SAM_APDU [16:40:45]CAPDU: 80 17 00 00 [16:40:45]Write to MH i2c: E2 08 00 F6 6F 80 17 00 00 00 00 00 00 E5 [16:40:45]Write i2c OK [16:40:45]MH_I2C_Read... [16:40:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:40:45]Read from MH i2c: E2 [16:40:45]MH_I2C_Read... [16:40:45]Read from MH i2c: E2 FD 00 [16:40:45]MH_I2C_Read... [16:40:45]Read from MH i2c: E2 FD 00 F6 6F 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 54 [16:40:45]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 [16:40:46]wFMCommunicate OK [16:40:46]wFMCommunicate request_size=4 [16:40:46]MH_SAM_APDU [16:40:46]CAPDU: 80 17 00 00 [16:40:46]Write to MH i2c: E2 08 00 F7 6F 80 17 00 00 00 00 00 00 E6 [16:40:46]Write i2c OK [16:40:46]MH_I2C_Read... [16:40:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [16:40:46]Read from MH i2c: E2 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 D3 00 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 D3 00 F7 6F 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 D3 [16:40:46]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 [16:40:46]wFMCommunicate OK [16:40:46]SAM_PROTO_GetShiftData done [16:40:46]requested_item shift.sale.total_cash is exist - process it [16:40:46]requested_item shift.sale_refund.total is exist - process it [16:40:46]requested_item shift.sale_refund.total_cash is exist - process it [16:40:46]requested_item shift.buy.total is exist - process it [16:40:46]requested_item shift.buy.total_cash is exist - process it [16:40:46]produce_requested_data done [16:40:46]produce_requested_data return {"fm.sale.total":57031973.61,"fm.sale_refund.total":1517418.00,"fm.buy.total":0.00,"shift.sale.total":119727.20,"shift.sale.total_cash":75040.00,"shift.sale_refund.total":139.00,"shift.sale_refund.total_cash":139.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:40:46]process_action_free get_value [16:40:46]json_value_free [16:40:46]json_value_free done [16:40:46]process_json_proto returns [16:40:46]Send response to host [16:40:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":57031973.61,"fm.sale_refund.total":1517418.00,"fm.buy.total":0.00,"shift.sale.total":119727.20,"shift.sale.total_cash":75040.00,"shift.sale_refund.total":139.00,"shift.sale_refund.total_cash":139.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:40:46]free response buf [16:40:46]execute_script done [16:40:46]execute_script returns [16:40:46]free content buf [16:40:46]Sock 9.Close socket [16:40:46]Sock 9.Thread stoped [16:40:46]OFD Sender: No OFD packet to send [16:40:46]accept exits with 7 [16:40:46]New connection [16:40:46]New thread 3066654052 created [16:40:46]Thread 3066510692 joined [16:40:46]Waiting for new connection... [16:40:46] Sock 7.Parse request [16:40:46]Sock 7.Check first char [16:40:46]Sock 7.First char is OK [16:40:46]request: POST /json_proto HTTP/1.0 [16:40:46]Method: POST [16:40:46]URL: /json_proto [16:40:46]Method is POST - this is cgi request [16:40:46]url: /json_proto [16:40:46]query_string will be loaded in cgi processing [16:40:46]execute_cgi json_proto POST (null) [16:40:46]execute_cgi path=json_proto method=POST [16:40:46]POST find Content-Length [16:40:46]Host: 172.17.50.196:8080 [16:40:46]Content-Length: 251 [16:40:46]Content-Type: application/json [16:40:46] [16:40:46]POST finish read [16:40:46]Found Content-Length = 251 [16:40:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0443\u0440\u0430\u043F\u043E\u0432 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:46]execute_script... [16:40:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0443\u0440\u0430\u043F\u043E\u0432 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:46]POST & json_proto [16:40:46]process_json_proto [16:40:46]json parsed OK: [16:40:46]protocol is kg_v1.0 [16:40:46]action value=x_report [16:40:46]process_action x_report [16:40:46]cmd_x_report [16:40:46]MH_GetDate [16:40:46]Write to MH i2c: F0 00 00 F8 6F 56 [16:40:46]Write i2c OK [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: F0 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: F0 09 00 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: F0 09 00 F8 6F 00 94 04 25 67 72 0D 1C 67 85 [16:40:46]GetLastDocTimeStamp 1730479034 [16:40:46]current date 1730479252 [16:40:46]FM_GetShiftState [16:40:46]SAM_PROTO_GetShiftState [16:40:46]wFMCommunicate request_size=4 [16:40:46]MH_SAM_APDU [16:40:46]CAPDU: 80 13 01 00 [16:40:46]Write to MH i2c: E2 08 00 F9 6F 80 13 01 00 00 00 00 00 E5 [16:40:46]Write i2c OK [16:40:46]MH_I2C_Read... [16:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:46]Read from MH i2c: E2 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 0E 00 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 0E 00 F9 6F 00 09 00 01 89 19 24 67 00 00 00 00 90 00 1E [16:40:46]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:40:46]wFMCommunicate OK [16:40:46]SAM_PROTO_GetShiftState done [16:40:46]FM_GetShiftState done [16:40:46]KKMCreateXReportDocument [16:40:46]Load OK [16:40:46]Malloc new data [16:40:46]MH_GetDate [16:40:46]Write to MH i2c: F0 00 00 FA 6F 58 [16:40:46]Write i2c OK [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: F0 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: F0 09 00 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: F0 09 00 FA 6F 00 94 04 25 67 72 0D 1C 67 87 [16:40:46]Malloc new data [16:40:46]Malloc new data [16:40:46]wFMCommunicate request_size=4 [16:40:46]MH_SAM_APDU [16:40:46]CAPDU: 80 11 00 00 [16:40:46]Write to MH i2c: E2 08 00 FB 6F 80 11 00 00 00 00 00 00 E4 [16:40:46]Write i2c OK [16:40:46]MH_I2C_Read... [16:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:46]Read from MH i2c: E2 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 17 00 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 17 00 FB 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3F [16:40:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:40:46]wFMCommunicate OK [16:40:46]SAM_PROTO_GetFieldsCounters [16:40:46]wFMCommunicate request_size=4 [16:40:46]MH_SAM_APDU [16:40:46]CAPDU: 80 13 00 00 [16:40:46]Write to MH i2c: E2 08 00 FC 6F 80 13 00 00 00 00 00 00 E7 [16:40:46]Write i2c OK [16:40:46]MH_I2C_Read... [16:40:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:46]Read from MH i2c: E2 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 62 00 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 62 00 FC 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F4 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [16:40:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F4 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:40:46]wFMCommunicate OK [16:40:46]SAM_PROTO_GetFieldsCounters done [16:40:46]Malloc new data [16:40:46]Malloc new data [16:40:46]Malloc new data [16:40:46]KKMCreateXReportDocument OK [16:40:46]KKMSetXReportData OK [16:40:46]KKMPrepareXReportFMData [16:40:46]SAM_PROTO_GetShiftData [16:40:46]wFMCommunicate request_size=4 [16:40:46]MH_SAM_APDU [16:40:46]CAPDU: 80 13 02 00 [16:40:46]Write to MH i2c: E2 08 00 FD 6F 80 13 02 00 00 00 00 00 EA [16:40:46]Write i2c OK [16:40:46]MH_I2C_Read... [16:40:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:40:47]Read from MH i2c: E2 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 FD 00 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 FD 00 FD 6F 00 B6 04 AA 04 B2 04 6E 04 04 00 C9 00 00 00 69 04 9C 00 6F 04 04 00 C8 00 00 00 B1 04 03 00 70 B0 B6 70 04 03 00 80 80 72 72 04 03 00 F0 2F 44 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 F5 66 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DA 9D 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 4C 36 70 04 02 00 4C 36 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C4 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 D0 [16:40:47]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 C9 00 00 00 69 04 9C 00 6F 04 04 00 C8 00 00 00 B1 04 03 00 70 B0 B6 70 04 03 00 80 80 72 72 04 03 00 F0 2F 44 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 F5 66 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DA 9D 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 4C 36 70 04 02 00 4C 36 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C4 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 [16:40:47]wFMCommunicate OK [16:40:47]wFMCommunicate request_size=4 [16:40:47]MH_SAM_APDU [16:40:47]CAPDU: 80 17 00 00 [16:40:47]Write to MH i2c: E2 08 00 FE 6F 80 17 00 00 00 00 00 00 ED [16:40:47]Write i2c OK [16:40:47]MH_I2C_Read... [16:40:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:40:47]Read from MH i2c: E2 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 FD 00 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: E2 FD 00 FE 6F 00 00 F6 03 01 00 01 F7 03 01 00 7B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 7B [16:40:47]RAPDU: 00 F6 03 01 00 01 F7 03 01 00 7B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 [16:40:47]wFMCommunicate OK [16:40:47]wFMCommunicate request_size=4 [16:40:47]MH_SAM_APDU [16:40:47]CAPDU: 80 17 00 00 [16:40:47]Write to MH i2c: E2 08 00 FF 6F 80 17 00 00 00 00 00 00 EE [16:40:47]Write i2c OK [16:40:47]MH_I2C_Read... [16:40:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:40:48]Read from MH i2c: E2 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: E2 FD 00 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: E2 FD 00 FF 6F 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 AE [16:40:48]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 [16:40:48]wFMCommunicate OK [16:40:48]wFMCommunicate request_size=4 [16:40:48]MH_SAM_APDU [16:40:48]CAPDU: 80 17 00 00 [16:40:48]Write to MH i2c: E2 08 00 00 70 80 17 00 00 00 00 00 00 F0 [16:40:48]Write i2c OK [16:40:48]MH_I2C_Read... [16:40:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:40:48]Read from MH i2c: E2 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: E2 FD 00 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: E2 FD 00 00 70 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 5F [16:40:48]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 [16:40:48]wFMCommunicate OK [16:40:48]wFMCommunicate request_size=4 [16:40:48]MH_SAM_APDU [16:40:48]CAPDU: 80 17 00 00 [16:40:48]Write to MH i2c: E2 08 00 01 70 80 17 00 00 00 00 00 00 F1 [16:40:48]Write i2c OK [16:40:48]MH_I2C_Read... [16:40:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [16:40:49]Read from MH i2c: E2 [16:40:49]MH_I2C_Read... [16:40:49]Read from MH i2c: E2 D3 00 [16:40:49]MH_I2C_Read... [16:40:49]Read from MH i2c: E2 D3 00 01 70 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 DE [16:40:49]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 [16:40:49]wFMCommunicate OK [16:40:49]SAM_PROTO_GetShiftData done [16:40:49]1194 (1202) - счетчики итогов смены [16:40:49] 1134 (4) - 201 - количество чеков со всеми признаками расчетов [16:40:49] 1129 (156) - счетчики операций «приход» [16:40:49] 1135 (4) - 200 - количество чеков по признаку расчетов [16:40:49] 1201 (3) - 119727.20 - общая итоговая сумма в чеках [16:40:49] 1136 (3) - 75040.00 - итоговая сумма в чеках наличными [16:40:49] 1138 (3) - 44687.20 - итоговая сумма в чеках безналичными [16:40:49] 1024 (123) - суммы налогов [16:40:49] 1006 (9) - суммы НДС [16:40:49] 1010 (1) - 0% - код ставки НДС [16:40:49] 1011 (0) - 0.00 - сумма НДС по ставке [16:40:49] 1006 (12) - суммы НДС [16:40:49] 1010 (1) - 12% - код ставки НДС [16:40:49] 1011 (3) - 12715.41 - сумма НДС по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 0% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1007 (12) - суммы НСП [16:40:49] 1014 (1) - 1% - код ставки НСП [16:40:49] 1015 (3) - 1059.46 - сумма НСП по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 2% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 3% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 5% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 0,50% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 1,50% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1130 (148) - счетчики операций «возврат прихода» [16:40:49] 1135 (4) - 1 - количество чеков по признаку расчетов [16:40:49] 1201 (2) - 139.00 - общая итоговая сумма в чеках [16:40:49] 1136 (2) - 139.00 - итоговая сумма в чеках наличными [16:40:49] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [16:40:49] 1024 (120) - суммы налогов [16:40:49] 1006 (9) - суммы НДС [16:40:49] 1010 (1) - 0% - код ставки НДС [16:40:49] 1011 (0) - 0.00 - сумма НДС по ставке [16:40:49] 1006 (11) - суммы НДС [16:40:49] 1010 (1) - 12% - код ставки НДС [16:40:49] 1011 (2) - 14.76 - сумма НДС по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 0% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1007 (10) - суммы НСП [16:40:49] 1014 (1) - 1% - код ставки НСП [16:40:49] 1015 (1) - 1.23 - сумма НСП по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 2% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 3% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 5% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 0,50% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 1,50% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1131 (141) - счетчики операций «расход» [16:40:49] 1135 (4) - 0 - количество чеков по признаку расчетов [16:40:49] 1201 (0) - 0.00 - общая итоговая сумма в чеках [16:40:49] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [16:40:49] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [16:40:49] 1024 (117) - суммы налогов [16:40:49] 1006 (9) - суммы НДС [16:40:49] 1010 (1) - 0% - код ставки НДС [16:40:49] 1011 (0) - 0.00 - сумма НДС по ставке [16:40:49] 1006 (9) - суммы НДС [16:40:49] 1010 (1) - 12% - код ставки НДС [16:40:49] 1011 (0) - 0.00 - сумма НДС по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 0% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 1% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 2% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 3% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 5% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 0,50% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 1,50% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1132 (141) - счетчики операций «возврат расхода» [16:40:49] 1135 (4) - 0 - количество чеков по признаку расчетов [16:40:49] 1201 (0) - 0.00 - общая итоговая сумма в чеках [16:40:49] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [16:40:49] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [16:40:49] 1024 (117) - суммы налогов [16:40:49] 1006 (9) - суммы НДС [16:40:49] 1010 (1) - 0% - код ставки НДС [16:40:49] 1011 (0) - 0.00 - сумма НДС по ставке [16:40:49] 1006 (9) - суммы НДС [16:40:49] 1010 (1) - 12% - код ставки НДС [16:40:49] 1011 (0) - 0.00 - сумма НДС по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 0% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 1% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 2% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 3% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 5% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 0,50% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1007 (9) - суммы НСП [16:40:49] 1014 (1) - 1,50% - код ставки НСП [16:40:49] 1015 (0) - 0.00 - сумма НСП по ставке [16:40:49] 1133 (588) - - счетчики коррекции - не используются [16:40:49]SetTLVBufToDocument [16:40:49]Processing tag 1194 (04AA) [16:40:49]Load OK [16:40:49]SetTLVBufToDocument [16:40:49]Processing tag 1134 (046E) [16:40:49]Malloc new data [16:40:49]Processing tag 1129 (0469) [16:40:49]Load OK [16:40:49]SetTLVBufToDocument [16:40:49]Processing tag 1135 (046F) [16:40:49]Malloc new data [16:40:49]Processing tag 1201 (04B1) [16:40:49]Malloc new data [16:40:49]Processing tag 1136 (0470) [16:40:49]Malloc new data [16:40:49]Processing tag 1138 (0472) [16:40:49]Malloc new data [16:40:49]Processing tag 1024 (0400) [16:40:49]Load OK [16:40:49]SetTLVBufToDocument [16:40:49]Processing tag 1006 (03EE) [16:40:49]Load OK [16:40:49]SetTLVBufToDocument [16:40:49]Processing tag 1010 (03F2) [16:40:49]Malloc new data [16:40:49]Processing tag 1011 (03F3) [16:40:49]Malloc new data [16:40:49]SetTLVBufToDocument err=0 [16:40:49]Processing tag 1006 (03EE) [16:40:49]Load OK [16:40:49]SetTLVBufToDocument [16:40:49]Processing tag 1010 (03F2) [16:40:49]Malloc new data [16:40:49]Processing tag 1011 (03F3) [16:40:49]Malloc new data [16:40:49]SetTLVBufToDocument err=0 [16:40:49]Processing tag 1007 (03EF) [16:40:49]Load OK [16:40:49]SetTLVBufToDocument [16:40:49]Processing tag 1014 (03F6) [16:40:49]Malloc new data [16:40:49]Processing tag 1015 (03F7) [16:40:49]Malloc new data [16:40:49]SetTLVBufToDocument err=0 [16:40:49]Processing tag 1007 (03EF) [16:40:49]Load OK [16:40:49]SetTLVBufToDocument [16:40:49]Processing tag 1014 (03F6) [16:40:49]Malloc new data [16:40:49]Processing tag 1015 (03F7) [16:40:49]Malloc new data [16:40:49]SetTLVBufToDocument err=0 [16:40:49]Processing tag 1007 (03EF) [16:40:49]Load OK [16:40:49]SetTLVBufToDocument [16:40:49]Processing tag 1014 (03F6) [16:40:49]Malloc new data [16:40:49]Processing tag 1015 (03F7) [16:40:49]Malloc new data [16:40:49]SetTLVBufToDocument err=0 [16:40:49]Processing tag 1007 (03EF) [16:40:49]Load OK [16:40:49]SetTLVBufToDocument [16:40:49]Processing tag 1014 (03F6) [16:40:49]Malloc new data [16:40:49]Processing tag 1015 (03F7) [16:40:49]Malloc new data [16:40:49]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1007 (03EF) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1014 (03F6) [16:40:50]Malloc new data [16:40:50]Processing tag 1015 (03F7) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1007 (03EF) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1014 (03F6) [16:40:50]Malloc new data [16:40:50]Processing tag 1015 (03F7) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1007 (03EF) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1014 (03F6) [16:40:50]Malloc new data [16:40:50]Processing tag 1015 (03F7) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]SetTLVBufToDocument err=0 [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1130 (046A) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1135 (046F) [16:40:50]Malloc new data [16:40:50]Processing tag 1201 (04B1) [16:40:50]Malloc new data [16:40:50]Processing tag 1136 (0470) [16:40:50]Malloc new data [16:40:50]Processing tag 1138 (0472) [16:40:50]Malloc new data [16:40:50]Processing tag 1024 (0400) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1006 (03EE) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1010 (03F2) [16:40:50]Malloc new data [16:40:50]Processing tag 1011 (03F3) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1006 (03EE) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1010 (03F2) [16:40:50]Malloc new data [16:40:50]Processing tag 1011 (03F3) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1007 (03EF) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1014 (03F6) [16:40:50]Malloc new data [16:40:50]Processing tag 1015 (03F7) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1007 (03EF) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1014 (03F6) [16:40:50]Malloc new data [16:40:50]Processing tag 1015 (03F7) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1007 (03EF) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1014 (03F6) [16:40:50]Malloc new data [16:40:50]Processing tag 1015 (03F7) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1007 (03EF) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1014 (03F6) [16:40:50]Malloc new data [16:40:50]Processing tag 1015 (03F7) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1007 (03EF) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1014 (03F6) [16:40:50]Malloc new data [16:40:50]Processing tag 1015 (03F7) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1007 (03EF) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1014 (03F6) [16:40:50]Malloc new data [16:40:50]Processing tag 1015 (03F7) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1007 (03EF) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1014 (03F6) [16:40:50]Malloc new data [16:40:50]Processing tag 1015 (03F7) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]SetTLVBufToDocument err=0 [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1131 (046B) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1135 (046F) [16:40:50]Malloc new data [16:40:50]Processing tag 1201 (04B1) [16:40:50]Malloc new data [16:40:50]Processing tag 1136 (0470) [16:40:50]Malloc new data [16:40:50]Processing tag 1138 (0472) [16:40:50]Malloc new data [16:40:50]Processing tag 1024 (0400) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1006 (03EE) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1010 (03F2) [16:40:50]Malloc new data [16:40:50]Processing tag 1011 (03F3) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1006 (03EE) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1010 (03F2) [16:40:50]Malloc new data [16:40:50]Processing tag 1011 (03F3) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1007 (03EF) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1014 (03F6) [16:40:50]Malloc new data [16:40:50]Processing tag 1015 (03F7) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1007 (03EF) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1014 (03F6) [16:40:50]Malloc new data [16:40:50]Processing tag 1015 (03F7) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1007 (03EF) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1014 (03F6) [16:40:50]Malloc new data [16:40:50]Processing tag 1015 (03F7) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1007 (03EF) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1014 (03F6) [16:40:50]Malloc new data [16:40:50]Processing tag 1015 (03F7) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1007 (03EF) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1014 (03F6) [16:40:50]Malloc new data [16:40:50]Processing tag 1015 (03F7) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1007 (03EF) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1014 (03F6) [16:40:50]Malloc new data [16:40:50]Processing tag 1015 (03F7) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1007 (03EF) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1014 (03F6) [16:40:50]Malloc new data [16:40:50]Processing tag 1015 (03F7) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]SetTLVBufToDocument err=0 [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1132 (046C) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1135 (046F) [16:40:50]Malloc new data [16:40:50]Processing tag 1201 (04B1) [16:40:50]Malloc new data [16:40:50]Processing tag 1136 (0470) [16:40:50]Malloc new data [16:40:50]Processing tag 1138 (0472) [16:40:50]Malloc new data [16:40:50]Processing tag 1024 (0400) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1006 (03EE) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1010 (03F2) [16:40:50]Malloc new data [16:40:50]Processing tag 1011 (03F3) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1006 (03EE) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1010 (03F2) [16:40:50]Malloc new data [16:40:50]Processing tag 1011 (03F3) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1007 (03EF) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1014 (03F6) [16:40:50]Malloc new data [16:40:50]Processing tag 1015 (03F7) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1007 (03EF) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1014 (03F6) [16:40:50]Malloc new data [16:40:50]Processing tag 1015 (03F7) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1007 (03EF) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1014 (03F6) [16:40:50]Malloc new data [16:40:50]Processing tag 1015 (03F7) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1007 (03EF) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1014 (03F6) [16:40:50]Malloc new data [16:40:50]Processing tag 1015 (03F7) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1007 (03EF) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1014 (03F6) [16:40:50]Malloc new data [16:40:50]Processing tag 1015 (03F7) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1007 (03EF) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1014 (03F6) [16:40:50]Malloc new data [16:40:50]Processing tag 1015 (03F7) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1007 (03EF) [16:40:50]Load OK [16:40:50]SetTLVBufToDocument [16:40:50]Processing tag 1014 (03F6) [16:40:50]Malloc new data [16:40:50]Processing tag 1015 (03F7) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]SetTLVBufToDocument err=0 [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Processing tag 1133 (046D) [16:40:50]Malloc new data [16:40:50]SetTLVBufToDocument err=0 [16:40:50]SetTLVBufToDocument err=0 [16:40:50]Malloc new data [16:40:50]SAM_PROTO_GetFMData [16:40:50]wFMCommunicate request_size=4 [16:40:50]MH_SAM_APDU [16:40:50]CAPDU: 80 13 03 00 [16:40:50]Write to MH i2c: E2 08 00 02 70 80 13 03 00 00 00 00 00 F1 [16:40:50]Write i2c OK [16:40:50]MH_I2C_Read... [16:40:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:40:50]Read from MH i2c: E2 [16:40:50]MH_I2C_Read... [16:40:50]Read from MH i2c: E2 FD 00 [16:40:50]MH_I2C_Read... [16:40:50]Read from MH i2c: E2 FD 00 02 70 00 C7 04 85 04 C3 04 6E 04 04 00 98 1E 02 00 69 04 A3 00 6F 04 04 00 48 1C 02 00 B1 04 05 00 B1 E2 EF 53 01 70 04 05 00 14 05 32 04 01 72 04 04 00 9D DD BD 4F 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 C5 33 1A 24 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 26 EC 01 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 50 02 00 00 B1 04 04 00 68 65 0B 09 70 04 04 00 A4 39 E7 08 72 04 03 00 C4 2B 24 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 ED E5 F5 EF 90 00 FE [16:40:51]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 98 1E 02 00 69 04 A3 00 6F 04 04 00 48 1C 02 00 B1 04 05 00 B1 E2 EF 53 01 70 04 05 00 14 05 32 04 01 72 04 04 00 9D DD BD 4F 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 C5 33 1A 24 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 26 EC 01 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 50 02 00 00 B1 04 04 00 68 65 0B 09 70 04 04 00 A4 39 E7 08 72 04 03 00 C4 2B 24 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 ED E5 F5 EF 90 00 [16:40:51]wFMCommunicate OK [16:40:51]wFMCommunicate request_size=4 [16:40:51]MH_SAM_APDU [16:40:51]CAPDU: 80 17 00 00 [16:40:51]Write to MH i2c: E2 08 00 03 70 80 17 00 00 00 00 00 00 F3 [16:40:51]Write i2c OK [16:40:51]MH_I2C_Read... [16:40:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:40:51]Read from MH i2c: E2 [16:40:51]MH_I2C_Read... [16:40:51]Read from MH i2c: E2 FD 00 [16:40:51]MH_I2C_Read... [16:40:51]Read from MH i2c: E2 FD 00 03 70 00 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 95 7D 14 EF 03 09 00 F6 03 01 00 02 F7 OFD Sender: No OFD packet to send [16:40:51]03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 26 [16:40:51]RAPDU: 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 95 7D 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 [16:40:51]wFMCommunicate OK [16:40:51]wFMCommunicate request_size=4 [16:40:51]MH_SAM_APDU [16:40:51]CAPDU: 80 17 00 00 [16:40:51]Write to MH i2c: E2 08 00 04 70 80 17 00 00 00 00 00 00 F4 [16:40:51]Write i2c OK [16:40:51]MH_I2C_Read... [16:40:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:40:51]Read from MH i2c: E2 [16:40:51]MH_I2C_Read... [16:40:51]Read from MH i2c: E2 FD 00 [16:40:51]MH_I2C_Read... [16:40:51]Read from MH i2c: E2 FD 00 04 70 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 CC [16:40:52]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [16:40:52]wFMCommunicate OK [16:40:52]wFMCommunicate request_size=4 [16:40:52]MH_SAM_APDU [16:40:52]CAPDU: 80 17 00 00 [16:40:52]Write to MH i2c: E2 08 00 05 70 80 17 00 00 00 00 00 00 F5 [16:40:52]Write i2c OK [16:40:52]MH_I2C_Read... [16:40:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:40:52]Read from MH i2c: E2 [16:40:52]MH_I2C_Read... [16:40:52]Read from MH i2c: E2 FD 00 [16:40:52]MH_I2C_Read... [16:40:52]Read from MH i2c: E2 FD 00 05 70 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 70 [16:40:52]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:40:52]wFMCommunicate OK [16:40:52]wFMCommunicate request_size=4 [16:40:52]MH_SAM_APDU [16:40:52]CAPDU: 80 17 00 00 [16:40:52]Write to MH i2c: E2 08 00 06 70 80 17 00 00 00 00 00 00 F6 [16:40:52]Write i2c OK [16:40:52]MH_I2C_Read... [16:40:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [16:40:52]Read from MH i2c: E2 [16:40:52]MH_I2C_Read... [16:40:52]Read from MH i2c: E2 E4 00 [16:40:52]MH_I2C_Read... [16:40:52]Read from MH i2c: E2 E4 00 06 70 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D6 [16:40:53]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:40:53]wFMCommunicate OK [16:40:53]SAM_PROTO_GetFMData done [16:40:53]FM_GetFMData:85 04 C3 04 6E 04 04 00 98 1E 02 00 69 04 A3 00 6F 04 04 00 48 1C 02 00 B1 04 05 00 B1 E2 EF 53 01 70 04 05 00 14 05 32 04 01 72 04 04 00 9D DD BD 4F 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 C5 33 1A 24 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 26 EC 01 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 50 02 00 00 B1 04 04 00 68 65 0B 09 70 04 04 00 A4 39 E7 08 72 04 03 00 C4 2B 24 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 ED E5 F5 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 95 7D 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 [16:40:53]oper:6F 04 04 00 48 1C 02 00 B1 04 05 00 B1 E2 EF 53 01 70 04 05 00 14 05 32 04 01 72 04 04 00 9D DD BD 4F 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 C5 33 1A 24 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 26 EC 01 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [16:40:54]total:B1 E2 EF 53 01 [16:40:54]Malloc new data [16:40:54]oper:6F 04 04 00 50 02 00 00 B1 04 04 00 68 65 0B 09 70 04 04 00 A4 39 E7 08 72 04 03 00 C4 2B 24 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 ED E5 F5 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 95 7D 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [16:40:54]total:68 65 0B 09 [16:40:54]Malloc new data [16:40:54]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 [16:40:54]total: [16:40:54]Malloc new data [16:40:54]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 [16:40:54]total: [16:40:54]Malloc new data [16:40:54]KKMPrepareXReportFMData err=0 [16:40:54]Х отчет ИНН: 02508201610067 Кассир: Сурапов З. 01.11.2024 16:40 Смена: 522 РНМ: 0000000000091631 ЗНМ: 0300000081 СНО: Общий режим Всего чеков: 201 ИТОГИ ПРИХОД Чеков: 200 Общий итог: 119727.20 Итого наличными: 75040.00 Итого безнал.: 44687.20 НДС 0% : 0.00 НДС 12% : 12715.41 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1059.46 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 139.00 Итого наличными: 139.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 14.76 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1.23 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 74901.00 НС Приход: 57031973.61 НС Возвр.Прихода: 1517418.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874669 [16:40:54]StoreToDocumentArchive [16:40:54]MH_GetDate [16:40:54]Write to MH i2c: F0 00 00 07 70 66 [16:40:54]Write i2c OK [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: F0 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: F0 09 00 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: F0 09 00 07 70 00 9C 04 25 67 72 0D 1C 67 9D [16:40:54]shift 522 fd 1730479260 [16:40:54]Create dir for shift 0522 [16:40:54]save to /storage/0522/doc_1730479260 [16:40:54]save last doc name /storage/0522/doc_1730479260 to /storage/kkm_last_doc_name [16:40:54]save OK [16:40:54]Clear old archive folders... [16:40:54]NVStorageSaveData kkm_last_timestamp [16:40:54]File name is /storage/kkm_last_timestamp [16:40:54]Write 4 bytes [16:40:54]NVStorageSaveData done [16:40:54]ExternCall_PrintAddStr [16:40:54]wPrintStart [16:40:54]Write to MH i2c: 01 00 00 08 70 78 [16:40:54]Write i2c OK [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: 01 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: 01 07 00 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: 01 07 00 08 70 00 00 00 00 00 FF 0F 8D [16:40:54]RasterBufferAndPrint [16:40:54]line Х отчет [16:40:54]line ИНН: 02508201610067 [16:40:54]line Кассир: Сурапов З. [16:40:54]line 01.11.2024 16:40 [16:40:54]line Смена: 522 [16:40:54]line РНМ: 0000000000091631 [16:40:54]line ЗНМ: 0300000081 [16:40:54]line СНО: Общий режим [16:40:54]line Всего чеков: 201 [16:40:54]line ИТОГИ ПРИХОД [16:40:54]line Чеков: 200 [16:40:54]line Общий итог: 119727.20 [16:40:54]line Итого наличными: 75040.00 [16:40:54]line Итого безнал.: 44687.20 [16:40:54]line НДС 0% : 0.00 [16:40:54]line НДС 12% : 12715.41 [16:40:54]line НСП 0% : 0.00 [16:40:54]line НСП 1,50% : 0.00 [16:40:54]line НСП 0,50% : 0.00 [16:40:54]line НСП 5% : 0.00 [16:40:54]line НСП 3% : 0.00 [16:40:54]line НСП 2% : 0.00 [16:40:54]line НСП 1% : 1059.46 [16:40:54]line ИТОГИ ВОЗВРАТ ПРИХОДА [16:40:54]line Чеков: 1 [16:40:54]line Общий итог: 139.00 [16:40:54]line Итого наличными: 139.00 [16:40:54]line Итого безнал.: 0.00 [16:40:54]line НДС 0% : 0.00 [16:40:54]line НДС 12% : 14.76 [16:40:54]line НСП 0% : 0.00 [16:40:54]line НСП 1,50% : 0.00 [16:40:54]line НСП 0,50% : 0.00 [16:40:54]line НСП 5% : 0.00 [16:40:54]line НСП 3% : 0.00 [16:40:54]line НСП 2% : 0.00 [16:40:54]line НСП 1% : 1.23 [16:40:54]line ИТОГИ РАСХОД [16:40:54]line Чеков: 0 [16:40:54]line Общий итог: 0.00 [16:40:54]line Итого наличными: 0.00 [16:40:54]line Итого безнал.: 0.00 [16:40:54]line НДС 0% : 0.00 [16:40:54]line НДС 12% : 0.00 [16:40:54]line НСП 0% : 0.00 [16:40:54]line НСП 1,50% : 0.00 [16:40:54]line НСП 0,50% : 0.00 [16:40:54]line НСП 5% : 0.00 [16:40:54]line НСП 3% : 0.00 [16:40:54]line НСП 2% : 0.00 [16:40:54]line НСП 1% : 0.00 [16:40:54]line ИТОГИ ВОЗВРАТ РАСХОДА [16:40:54]line Чеков: 0 [16:40:54]line Общий итог: 0.00 [16:40:54]line Итого наличными: 0.00 [16:40:54]line Итого безнал.: 0.00 [16:40:54]line НДС 0% : 0.00 [16:40:54]line НДС 12% : 0.00 [16:40:54]line НСП 0% : 0.00 [16:40:54]line НСП 1,50% : 0.00 [16:40:54]line НСП 0,50% : 0.00 [16:40:54]line НСП 5% : 0.00 [16:40:54]line НСП 3% : 0.00 [16:40:54]line НСП 2% : 0.00 [16:40:54]line НСП 1% : 0.00 [16:40:54]line Сумма внесений: 0.00 [16:40:54]line Сумма выплат: 0.00 [16:40:54]line Нал. в кассе: 74901.00 [16:40:54]line НС Приход: 57031973.61 [16:40:54]line НС Возвр.Прихода: 1517418.00 [16:40:54]line НС Расход: 0.00 [16:40:54]line НС Возвр.Расхода: 0.00 [16:40:54]line ФМ: 0000000000874669 [16:40:54]written 0, free lines is 4095 [16:40:55]Write to MH i2c: 01 00 00 53 70 C3 [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: 01 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: 01 07 00 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: 01 07 00 53 70 00 00 00 00 00 F8 0A CC [16:40:55]RasterBufferAndPrint [16:40:55]line [16:40:55]line [16:40:55]line [16:40:55]line [16:40:55]line [16:40:55]written 0, free lines is 2847 [16:40:55]MH_Cut [16:40:55]Write to MH i2c: D1 01 00 5A 70 01 9C [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: D1 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: D1 01 00 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: D1 01 00 5A 70 00 9B [16:40:55]Write to MH i2c: 01 00 00 5B 70 CB [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:56]*** Cut start [16:40:56]*** Partial cut [16:40:56]*** CUTSNS_PIN = 1 [16:40:56]*** CUTSNS_PIN = 0 [16:40:56]*** Brake cut motor [16:40:56]OFD Sender: No OFD packet to send [16:40:56]Read from MH i2c: 01 [16:40:56]MH_I2C_Read... [16:40:56]*** Stop cut motor [16:40:56]*** Cut end [16:40:56]Read from MH i2c: 01 07 00 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: 01 07 00 5B 70 00 00 00 00 00 FF 0F E0 [16:40:56]process_action x_report done [16:40:56]requested_data is exist [16:40:56]produce_requested_data [16:40:56]requested_item fd.num is exist - process it [16:40:56]SAM_PROTO_GetFieldsCounters [16:40:56]wFMCommunicate request_size=4 [16:40:56]MH_SAM_APDU [16:40:56]CAPDU: 80 13 00 00 [16:40:56]Write to MH i2c: E2 08 00 5C 70 80 13 00 00 00 00 00 00 48 [16:40:56]Write i2c OK [16:40:56]MH_I2C_Read... [16:40:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:56]Read from MH i2c: E2 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: E2 62 00 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: E2 62 00 5C 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F4 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [16:40:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F4 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:40:57]wFMCommunicate OK [16:40:57]SAM_PROTO_GetFieldsCounters done [16:40:57]requested_item shift.num is exist - process it [16:40:57]requested_item shift.opened is exist - process it [16:40:57]req_shift_opened [16:40:57]FM_GetShiftState [16:40:57]SAM_PROTO_GetShiftState [16:40:57]wFMCommunicate request_size=4 [16:40:57]MH_SAM_APDU [16:40:57]CAPDU: 80 13 01 00 [16:40:57]Write to MH i2c: E2 08 00 5D 70 80 13 01 00 00 00 00 00 4A [16:40:57]Write i2c OK [16:40:57]MH_I2C_Read... [16:40:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:57]Read from MH i2c: E2 [16:40:57]MH_I2C_Read... [16:40:57]Read from MH i2c: E2 0E 00 [16:40:57]MH_I2C_Read... [16:40:57]Read from MH i2c: E2 0E 00 5D 70 00 09 00 01 89 19 24 67 00 00 00 00 90 00 83 [16:40:57]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:40:57]wFMCommunicate OK [16:40:57]SAM_PROTO_GetShiftState done [16:40:57]FM_GetShiftState done [16:40:57]req_shift_opened done [16:40:57]requested_item shift.open_date is exist - process it [16:40:57]req_shift_open_date [16:40:57]req_shift_open_date done [16:40:57]produce_requested_data done [16:40:57]produce_requested_data return {"fd.num":140020,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [16:40:57]process_action_free x_report [16:40:57]json_value_free [16:40:57]json_value_free done [16:40:57]process_json_proto returns [16:40:57]Send response to host [16:40:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":140020,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [16:40:57]free response buf [16:40:57]execute_script done [16:40:57]execute_script returns [16:40:57]free content buf [16:40:57]Sock 7.Close socket [16:40:57]Sock 7.Thread stoped [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:29]accept exits with 9 [16:41:29]New connection [16:41:29]New thread 3066510692 created [16:41:29]Thread 3066654052 joined [16:41:29]Waiting for new connection... [16:41:29] Sock 9.Parse request [16:41:29]Sock 9.Check first char [16:41:29]Sock 9.First char is OK [16:41:29]request: POST /json_proto HTTP/1.0 [16:41:29]Method: POST [16:41:29]URL: /json_proto [16:41:29]Method is POST - this is cgi request [16:41:29]url: /json_proto [16:41:29]query_string will be loaded in cgi processing [16:41:29]execute_cgi json_proto POST (null) [16:41:29]execute_cgi path=json_proto method=POST [16:41:29]POST find Content-Length [16:41:29]Host: 172.17.50.196:8080 [16:41:29]Content-Length: 215 [16:41:29]Content-Type: application/json [16:41:29] [16:41:29]POST finish read [16:41:29]Found Content-Length = 215 [16:41:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:29]execute_script... [16:41:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:29]POST & json_proto [16:41:29]process_json_proto [16:41:29]json parsed OK: [16:41:29]protocol is kg_v1.0 [16:41:29]action value=get_value [16:41:29]process_action get_value [16:41:29]cmd_get_value [16:41:29]process_action get_value done [16:41:29]requested_data is exist [16:41:29]produce_requested_data [16:41:29]requested_item kkm.sn is exist - process it [16:41:29]requested_item kkm.ver is exist - process it [16:41:29]requested_item fm.sn is exist - process it [16:41:29]wFMCommunicate request_size=4 [16:41:29]MH_SAM_APDU [16:41:29]CAPDU: 80 11 00 00 [16:41:29]Write to MH i2c: E2 08 00 5E 70 80 11 00 00 00 00 00 00 48 [16:41:29]Write i2c OK [16:41:29]MH_I2C_Read... [16:41:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:29]Read from MH i2c: E2 [16:41:29]MH_I2C_Read... [16:41:29]Read from MH i2c: E2 17 00 [16:41:29]MH_I2C_Read... [16:41:29]Read from MH i2c: E2 17 00 5E 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A3 [16:41:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:41:29]wFMCommunicate OK [16:41:29]requested_item fd.num is exist - process it [16:41:29]SAM_PROTO_GetFieldsCounters [16:41:29]wFMCommunicate request_size=4 [16:41:29]MH_SAM_APDU [16:41:29]CAPDU: 80 13 00 00 [16:41:29]Write to MH i2c: E2 08 00 5F 70 80 13 00 00 00 00 00 00 4B [16:41:29]Write i2c OK [16:41:29]MH_I2C_Read... [16:41:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:29]Read from MH i2c: E2 [16:41:29]MH_I2C_Read... [16:41:29]Read from MH i2c: E2 62 00 [16:41:29]MH_I2C_Read... [16:41:29]Read from MH i2c: E2 62 00 5F 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F4 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [16:41:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F4 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:29]wFMCommunicate OK [16:41:29]SAM_PROTO_GetFieldsCounters done [16:41:29]requested_item shift.num is exist - process it [16:41:29]requested_item shift.opened is exist - process it [16:41:29]req_shift_opened [16:41:29]FM_GetShiftState [16:41:29]SAM_PROTO_GetShiftState [16:41:29]wFMCommunicate request_size=4 [16:41:29]MH_SAM_APDU [16:41:29]CAPDU: 80 13 01 00 [16:41:29]Write to MH i2c: E2 08 00 60 70 80 13 01 00 00 00 00 00 4D [16:41:29]Write i2c OK [16:41:29]MH_I2C_Read... [16:41:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:29]Read from MH i2c: E2 [16:41:29]MH_I2C_Read... [16:41:29]Read from MH i2c: E2 0E 00 [16:41:29]MH_I2C_Read... [16:41:29]Read from MH i2c: E2 0E 00 60 70 00 09 00 01 89 19 24 67 00 00 00 00 90 00 86 [16:41:29]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:41:29]wFMCommunicate OK [16:41:29]SAM_PROTO_GetShiftState done [16:41:29]FM_GetShiftState done [16:41:29]req_shift_opened done [16:41:29]requested_item shift.open_date is exist - process it [16:41:29]req_shift_open_date [16:41:29]req_shift_open_date done [16:41:29]produce_requested_data done [16:41:29]produce_requested_data return {"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":140020,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081} [16:41:29]process_action_free get_value [16:41:29]json_value_free [16:41:29]json_value_free done [16:41:29]process_json_proto returns [16:41:29]Send response to host [16:41:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":140020,"shift.num":558,"shift.opened":1,"shift.open_date":1730419081}}} [16:41:29]free response buf [16:41:29]execute_script done [16:41:29]execute_script returns [16:41:29]free content buf [16:41:29]Sock 9.Close socket [16:41:29]Sock 9.Thread stoped [16:41:29]accept exits with 7 [16:41:29]New connection [16:41:29]New thread 3066654052 created [16:41:29]Thread 3066510692 joined [16:41:29]Waiting for new connection... [16:41:29] Sock 7.Parse request [16:41:29]Sock 7.Check first char [16:41:29]Sock 7.First char is OK [16:41:29]request: POST /json_proto HTTP/1.0 [16:41:29]Method: POST [16:41:29]URL: /json_proto [16:41:29]Method is POST - this is cgi request [16:41:29]url: /json_proto [16:41:29]query_string will be loaded in cgi processing [16:41:29]execute_cgi json_proto POST (null) [16:41:29]execute_cgi path=json_proto method=POST [16:41:29]POST find Content-Length [16:41:29]Host: 172.17.50.196:8080 [16:41:29]Content-Length: 331 [16:41:29]Content-Type: application/json [16:41:29] [16:41:29]POST finish read [16:41:29]Found Content-Length = 331 [16:41: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" ] } } [16:41:29]execute_script... [16:41: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" ] } } [16:41:29]POST & json_proto [16:41:29]process_json_proto [16:41:29]json parsed OK: [16:41:29]protocol is kg_v1.0 [16:41:29]action value=get_value [16:41:30]process_action get_value [16:41:30]cmd_get_value [16:41:30]process_action get_value done [16:41:30]requested_data is exist [16:41:30]produce_requested_data [16:41:30]requested_item fm.sale.total is exist - process it [16:41:30]SAM_PROTO_GetFMData [16:41:30]wFMCommunicate request_size=4 [16:41:30]MH_SAM_APDU [16:41:30]CAPDU: 80 13 03 00 [16:41:30]Write to MH i2c: E2 08 00 61 70 80 13 03 00 00 00 00 00 50 [16:41:30]Write i2c OK [16:41:30]MH_I2C_Read... [16:41:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:41:30]Read from MH i2c: E2 [16:41:30]MH_I2C_Read... [16:41:30]Read from MH i2c: E2 FD 00 [16:41:30]MH_I2C_Read... [16:41:30]Read from MH i2c: E2 FD 00 61 70 00 C7 04 85 04 C3 04 6E 04 04 00 98 1E 02 00 69 04 A3 00 6F 04 04 00 48 1C 02 00 B1 04 05 00 B1 E2 EF 53 01 70 04 05 00 14 05 32 04 01 72 04 04 00 9D DD BD 4F 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 C5 33 1A 24 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 26 EC 01 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 50 02 00 00 B1 04 04 00 68 65 0B 09 70 04 04 00 A4 39 E7 08 72 04 03 00 C4 2B 24 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 ED E5 F5 EF 90 00 5D [16:41:30]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 98 1E 02 00 69 04 A3 00 6F 04 04 00 48 1C 02 00 B1 04 05 00 B1 E2 EF 53 01 70 04 05 00 14 05 32 04 01 72 04 04 00 9D DD BD 4F 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 C5 33 1A 24 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 26 EC 01 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 50 02 00 00 B1 04 04 00 68 65 0B 09 70 04 04 00 A4 39 E7 08 72 04 03 00 C4 2B 24 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 ED E5 F5 EF 90 00 [16:41:30]wFMCommunicate OK [16:41:30]wFMCommunicate request_size=4 [16:41:30]MH_SAM_APDU [16:41:30]CAPDU: 80 17 00 00 [16:41:30]Write to MH i2c: E2 08 00 62 70 80 17 00 00 00 00 00 00 52 [16:41:30]Write i2c OK [16:41:30]MH_I2C_Read... [16:41:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:41:30]Read from MH i2c: E2 [16:41:30]MH_I2C_Read... [16:41:30]Read from MH i2c: E2 FD 00 [16:41:30]MH_I2C_Read... [16:41:30]Read from MH i2c: E2 FD 00 62 70 00 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 95 7D 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 85 [16:41:31]RAPDU: 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 95 7D 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 [16:41:31]wFMCommunicate OK [16:41:31]wFMCommunicate request_size=4 [16:41:31]MH_SAM_APDU [16:41:31]CAPDU: 80 17 00 00 [16:41:31]Write to MH i2c: E2 08 00 63 70 80 17 00 00 00 00 00 00 53 [16:41:31]Write i2c OK [16:41:31]MH_I2C_Read... [16:41:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:41:31]Read from MH i2c: E2 [16:41:31]MH_I2C_Read... [16:41:31]Read from MH i2c: E2 FD 00 [16:41:31]MH_I2C_Read... [16:41:31]Read from MH i2c: E2 FD 00 63 70 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 2B [16:41:31]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [16:41:31]wFMCommunicate OK [16:41:31]wFMCommunicate request_size=4 [16:41:31]MH_SAM_APDU [16:41:31]CAPDU: 80 17 00 00 [16:41:31]Write to MH i2c: E2 08 00 64 70 80 17 00 00 00 00 00 00 54 [16:41:31]Write i2c OK [16:41:31]MH_I2C_Read... [16:41:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:41:31]Read from MH i2c: E2 [16:41:31]MH_I2C_Read... [16:41:31]Read from MH i2c: E2 FD 00 [16:41:31]MH_I2C_Read... [16:41:31]Read from MH i2c: E2 FD 00 64 70 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CF [16:41:31]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:41:31]wFMCommunicate OK [16:41:31]wFMCommunicate request_size=4 [16:41:31]MH_SAM_APDU [16:41:31]CAPDU: 80 17 00 00 [16:41:31]Write to MH i2c: E2 08 00 65 70 80 17 00 00 00 00 00 00 55 [16:41:31]OFD Sender: No OFD packet to send [16:41:31]Write i2c OK [16:41:31]MH_I2C_Read... [16:41:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [16:41:31]Read from MH i2c: E2 [16:41:31]MH_I2C_Read... [16:41:31]Read from MH i2c: E2 E4 00 [16:41:31]MH_I2C_Read... [16:41:31]Read from MH i2c: E2 E4 00 65 70 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 35 [16:41:31]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:41:31]wFMCommunicate OK [16:41:31]SAM_PROTO_GetFMData done [16:41:31]requested_item fm.sale_refund.total is exist - process it [16:41:31]requested_item fm.buy.total is exist - process it [16:41:31]requested_item shift.sale.total is exist - process it [16:41:31]SAM_PROTO_GetShiftData [16:41:31]wFMCommunicate request_size=4 [16:41:31]MH_SAM_APDU [16:41:31]CAPDU: 80 13 02 00 [16:41:31]Write to MH i2c: E2 08 00 66 70 80 13 02 00 00 00 00 00 54 [16:41:31]Write i2c OK [16:41:31]MH_I2C_Read... [16:41:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:41:32]Read from MH i2c: E2 [16:41:32]MH_I2C_Read... [16:41:32]Read from MH i2c: E2 FD 00 [16:41:32]MH_I2C_Read... [16:41:32]Read from MH i2c: E2 FD 00 66 70 00 B6 04 AA 04 B2 04 6E 04 04 00 C9 00 00 00 69 04 9C 00 6F 04 04 00 C8 00 00 00 B1 04 03 00 70 B0 B6 70 04 03 00 80 80 72 72 04 03 00 F0 2F 44 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 F5 66 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DA 9D 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 4C 36 70 04 02 00 4C 36 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C4 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 3A [16:41:32]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 C9 00 00 00 69 04 9C 00 6F 04 04 00 C8 00 00 00 B1 04 03 00 70 B0 B6 70 04 03 00 80 80 72 72 04 03 00 F0 2F 44 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 F5 66 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DA 9D 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 4C 36 70 04 02 00 4C 36 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C4 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 [16:41:32]wFMCommunicate OK [16:41:32]wFMCommunicate request_size=4 [16:41:32]MH_SAM_APDU [16:41:32]CAPDU: 80 17 00 00 [16:41:32]Write to MH i2c: E2 08 00 67 70 80 17 00 00 00 00 00 00 57 [16:41:32]Write i2c OK [16:41:32]MH_I2C_Read... [16:41:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:41:32]Read from MH i2c: E2 [16:41:32]MH_I2C_Read... [16:41:32]Read from MH i2c: E2 FD 00 [16:41:32]MH_I2C_Read... [16:41:32]Read from MH i2c: E2 FD 00 67 70 00 00 F6 03 01 00 01 F7 03 01 00 7B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 E5 [16:41:32]RAPDU: 00 F6 03 01 00 01 F7 03 01 00 7B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 [16:41:32]wFMCommunicate OK [16:41:32]wFMCommunicate request_size=4 [16:41:32]MH_SAM_APDU [16:41:32]CAPDU: 80 17 00 00 [16:41:32]Write to MH i2c: E2 08 00 68 70 80 17 00 00 00 00 00 00 58 [16:41:32]Write i2c OK [16:41:32]MH_I2C_Read... [16:41:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:41:33]Read from MH i2c: E2 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 FD 00 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 FD 00 68 70 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 18 [16:41:33]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 [16:41:33]wFMCommunicate OK [16:41:33]wFMCommunicate request_size=4 [16:41:33]MH_SAM_APDU [16:41:33]CAPDU: 80 17 00 00 [16:41:33]Write to MH i2c: E2 08 00 69 70 80 17 00 00 00 00 00 00 59 [16:41:33]Write i2c OK [16:41:33]MH_I2C_Read... [16:41:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:41:33]Read from MH i2c: E2 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 FD 00 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 FD 00 69 70 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 C8 [16:41:33]RAPDU: 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 90 00 [16:41:33]wFMCommunicate OK [16:41:33]wFMCommunicate request_size=4 [16:41:33]MH_SAM_APDU [16:41:33]CAPDU: 80 17 00 00 [16:41:33]Write to MH i2c: E2 08 00 6A 70 80 17 00 00 00 00 00 00 5A [16:41:33]Write i2c OK [16:41:33]MH_I2C_Read... [16:41:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [16:41:33]Read from MH i2c: E2 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 D3 00 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 D3 00 6A 70 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 47 [16:41:33]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:41:33]wFMCommunicate OK [16:41:33]SAM_PROTO_GetShiftData done [16:41:33]requested_item shift.sale.total_cash is exist - process it [16:41:33]requested_item shift.sale_refund.total is exist - process it [16:41:33]requested_item shift.sale_refund.total_cash is exist - process it [16:41:33]requested_item shift.buy.total is exist - process it [16:41:33]requested_item shift.buy.total_cash is exist - process it [16:41:33]produce_requested_data done [16:41:33]produce_requested_data return {"fm.sale.total":57031973.61,"fm.sale_refund.total":1517418.00,"fm.buy.total":0.00,"shift.sale.total":119727.20,"shift.sale.total_cash":75040.00,"shift.sale_refund.total":139.00,"shift.sale_refund.total_cash":139.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:41:33]process_action_free get_value [16:41:33]json_value_free [16:41:33]json_value_free done [16:41:33]process_json_proto returns [16:41:33]Send response to host [16:41:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":57031973.61,"fm.sale_refund.total":1517418.00,"fm.buy.total":0.00,"shift.sale.total":119727.20,"shift.sale.total_cash":75040.00,"shift.sale_refund.total":139.00,"shift.sale_refund.total_cash":139.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:41:33]free response buf [16:41:33]execute_script done [16:41:33]execute_script returns [16:41:33]free content buf [16:41:33]Sock 7.Close socket [16:41:33]Sock 7.Thread stoped [16:41:34]accept exits with 9 [16:41:34]New connection [16:41:34]New thread 3066510692 created [16:41:34]Thread 3066654052 joined [16:41:34]Waiting for new connection... [16:41:34] Sock 9.Parse request [16:41:34]Sock 9.Check first char [16:41:34]Sock 9.First char is OK [16:41:34]request: POST /json_proto HTTP/1.0 [16:41:34]Method: POST [16:41:34]URL: /json_proto [16:41:34]Method is POST - this is cgi request [16:41:34]url: /json_proto [16:41:34]query_string will be loaded in cgi processing [16:41:34]execute_cgi json_proto POST (null) [16:41:34]execute_cgi path=json_proto method=POST [16:41:34]POST find Content-Length [16:41:34]Host: 172.17.50.196:8080 [16:41:34]Content-Length: 331 [16:41:34]Content-Type: application/json [16:41:34] [16:41:34]POST finish read [16:41:34]Found Content-Length = 331 [16:41:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:41:34]execute_script... [16:41:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:41:34]POST & json_proto [16:41:34]process_json_proto [16:41:34]json parsed OK: [16:41:34]protocol is kg_v1.0 [16:41:34]action value=get_value [16:41:34]process_action get_value [16:41:34]cmd_get_value [16:41:34]process_action get_value done [16:41:34]requested_data is exist [16:41:34]produce_requested_data [16:41:34]requested_item fm.sale.total is exist - process it [16:41:34]SAM_PROTO_GetFMData [16:41:34]wFMCommunicate request_size=4 [16:41:34]MH_SAM_APDU [16:41:34]CAPDU: 80 13 03 00 [16:41:34]Write to MH i2c: E2 08 00 6B 70 80 13 03 00 00 00 00 00 5A [16:41:34]Write i2c OK [16:41:34]MH_I2C_Read... [16:41:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:41:34]Read from MH i2c: E2 [16:41:34]MH_I2C_Read... [16:41:34]Read from MH i2c: E2 FD 00 [16:41:34]MH_I2C_Read... [16:41:34]Read from MH i2c: E2 FD 00 6B 70 00 C7 04 85 04 C3 04 6E 04 04 00 98 1E 02 00 69 04 A3 00 6F 04 04 00 48 1C 02 00 B1 04 05 00 B1 E2 EF 53 01 70 04 05 00 14 05 32 04 01 72 04 04 00 9D DD BD 4F 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 C5 33 1A 24 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 26 EC 01 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 50 02 00 00 B1 04 04 00 68 65 0B 09 70 04 04 00 A4 39 E7 08 72 04 03 00 C4 2B 24 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 ED E5 F5 EF 90 00 67 [16:41:34]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 98 1E 02 00 69 04 A3 00 6F 04 04 00 48 1C 02 00 B1 04 05 00 B1 E2 EF 53 01 70 04 05 00 14 05 32 04 01 72 04 04 00 9D DD BD 4F 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 C5 33 1A 24 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 26 EC 01 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 50 02 00 00 B1 04 04 00 68 65 0B 09 70 04 04 00 A4 39 E7 08 72 04 03 00 C4 2B 24 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 ED E5 F5 EF 90 00 [16:41:34]wFMCommunicate OK [16:41:34]wFMCommunicate request_size=4 [16:41:34]MH_SAM_APDU [16:41:34]CAPDU: 80 17 00 00 [16:41:34]Write to MH i2c: E2 08 00 6C 70 80 17 00 00 00 00 00 00 5C [16:41:34]Write i2c OK [16:41:34]MH_I2C_Read... [16:41:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:41:34]Read from MH i2c: E2 [16:41:34]MH_I2C_Read... [16:41:34]Read from MH i2c: E2 FD 00 [16:41:34]MH_I2C_Read... [16:41:34]Read from MH i2c: E2 FD 00 6C 70 00 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 95 7D 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 8F [16:41:35]RAPDU: 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 95 7D 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 [16:41:35]wFMCommunicate OK [16:41:35]wFMCommunicate request_size=4 [16:41:35]MH_SAM_APDU [16:41:35]CAPDU: 80 17 00 00 [16:41:35]Write to MH i2c: E2 08 00 6D 70 80 17 00 00 00 00 00 00 5D [16:41:35]Write i2c OK [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 [16:41:35]MH_I2C_Read... [16:41:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:41:35]Read from MH i2c: E2 FD 00 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 FD 00 6D 70 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 35 [16:41:35]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [16:41:35]wFMCommunicate OK [16:41:35]wFMCommunicate request_size=4 [16:41:35]MH_SAM_APDU [16:41:35]CAPDU: 80 17 00 00 [16:41:35]Write to MH i2c: E2 08 00 6E 70 80 17 00 00 00 00 00 00 5E [16:41:35]Write i2c OK [16:41:35]MH_I2C_Read... [16:41:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:41:35]Read from MH i2c: E2 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 FD 00 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 FD 00 6E 70 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D9 [16:41:35]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:41:35]wFMCommunicate OK [16:41:35]wFMCommunicate request_size=4 [16:41:35]MH_SAM_APDU [16:41:35]CAPDU: 80 17 00 00 [16:41:35]Write to MH i2c: E2 08 00 6F 70 80 17 00 00 00 00 00 00 5F [16:41:35]Write i2c OK [16:41:35]MH_I2C_Read... [16:41:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [16:41:36]Read from MH i2c: E2 [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: E2 E4 00 [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: E2 E4 00 6F 70 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3F [16:41:36]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:41:36]wFMCommunicate OK [16:41:36]SAM_PROTO_GetFMData done [16:41:36]requested_item fm.sale_refund.total is exist - process it [16:41:36]requested_item fm.buy.total is exist - process it [16:41:36]requested_item shift.sale.total is exist - process it [16:41:36]SAM_PROTO_GetShiftData [16:41:36]wFMCommunicate request_size=4 [16:41:36]MH_SAM_APDU [16:41:36]CAPDU: 80 13 02 00 [16:41:36]Write to MH i2c: E2 08 00 70 70 80 13 02 00 00 00 00 00 5E [16:41:36]Write i2c OK [16:41:36]MH_I2C_Read... [16:41:36]OFD Sender: No OFD packet to send [16:41:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:41:36]Read from MH i2c: E2 [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: E2 FD 00 [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: E2 FD 00 70 70 00 B6 04 AA 04 B2 04 6E 04 04 00 C9 00 00 00 69 04 9C 00 6F 04 04 00 C8 00 00 00 B1 04 03 00 70 B0 B6 70 04 03 00 80 80 72 72 04 03 00 F0 2F 44 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 F5 66 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DA 9D 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 4C 36 70 04 02 00 4C 36 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C4 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 44 [16:41:36]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 C9 00 00 00 69 04 9C 00 6F 04 04 00 C8 00 00 00 B1 04 03 00 70 B0 B6 70 04 03 00 80 80 72 72 04 03 00 F0 2F 44 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 F5 66 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DA 9D 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 4C 36 70 04 02 00 4C 36 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C4 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 [16:41:37]wFMCommunicate OK [16:41:37]wFMCommunicate request_size=4 [16:41:37]MH_SAM_APDU [16:41:37]CAPDU: 80 17 00 00 [16:41:37]Write to MH i2c: E2 08 00 71 70 80 17 00 00 00 00 00 00 61 [16:41:37]Write i2c OK [16:41:37]MH_I2C_Read... [16:41:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:41:37]Read from MH i2c: E2 [16:41:37]MH_I2C_Read... [16:41:37]Read from MH i2c: E2 FD 00 [16:41:37]MH_I2C_Read... [16:41:37]Read from MH i2c: E2 FD 00 71 70 00 00 F6 03 01 00 01 F7 03 01 00 7B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 EF [16:41:37]RAPDU: 00 F6 03 01 00 01 F7 03 01 00 7B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 [16:41:37]wFMCommunicate OK [16:41:37]wFMCommunicate request_size=4 [16:41:37]MH_SAM_APDU [16:41:37]CAPDU: 80 17 00 00 [16:41:37]Write to MH i2c: E2 08 00 72 70 80 17 00 00 00 00 00 00 62 [16:41:37]Write i2c OK [16:41:37]MH_I2C_Read... [16:41:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:41:37]Read from MH i2c: E2 [16:41:37]MH_I2C_Read... [16:41:37]Read from MH i2c: E2 FD 00 [16:41:37]MH_I2C_Read... [16:41:37]Read from MH i2c: E2 FD 00 72 70 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 22 [16:41:37]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 [16:41:38]wFMCommunicate OK [16:41:38]wFMCommunicate request_size=4 [16:41:38]MH_SAM_APDU [16:41:38]CAPDU: 80 17 00 00 [16:41:38]Write to MH i2c: E2 08 00 73 70 80 17 00 00 00 00 00 00 63 [16:41:38]Write i2c OK [16:41:38]MH_I2C_Read... [16:41:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:41:38]Read from MH i2c: E2 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: E2 FD 00 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: E2 FD 00 73 70 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 D2 [16:41:38]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 [16:41:38]wFMCommunicate OK [16:41:38]wFMCommunicate request_size=4 [16:41:38]MH_SAM_APDU [16:41:38]CAPDU: 80 17 00 00 [16:41:38]Write to MH i2c: E2 08 00 74 70 80 17 00 00 00 00 00 00 64 [16:41:38]Write i2c OK [16:41:38]MH_I2C_Read... [16:41:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [16:41:38]Read from MH i2c: E2 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: E2 D3 00 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: E2 D3 00 74 70 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 51 [16:41:38]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 [16:41:38]wFMCommunicate OK [16:41:38]SAM_PROTO_GetShiftData done [16:41:38]requested_item shift.sale.total_cash is exist - process it [16:41:38]requested_item shift.sale_refund.total is exist - process it [16:41:38]requested_item shift.sale_refund.total_cash is exist - process it [16:41:38]requested_item shift.buy.total is exist - process it [16:41:38]requested_item shift.buy.total_cash is exist - process it [16:41:38]produce_requested_data done [16:41:38]produce_requested_data return {"fm.sale.total":57031973.61,"fm.sale_refund.total":1517418.00,"fm.buy.total":0.00,"shift.sale.total":119727.20,"shift.sale.total_cash":75040.00,"shift.sale_refund.total":139.00,"shift.sale_refund.total_cash":139.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:41:38]process_action_free get_value [16:41:38]json_value_free [16:41:38]json_value_free done [16:41:38]process_json_proto returns [16:41:38]Send response to host [16:41:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":57031973.61,"fm.sale_refund.total":1517418.00,"fm.buy.total":0.00,"shift.sale.total":119727.20,"shift.sale.total_cash":75040.00,"shift.sale_refund.total":139.00,"shift.sale_refund.total_cash":139.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:41:38]free response buf [16:41:38]execute_script done [16:41:38]execute_script returns [16:41:38]free content buf [16:41:38]Sock 9.Close socket [16:41:38]Sock 9.Thread stoped [16:41:38]accept exits with 7 [16:41:38]New connection [16:41:38]New thread 3066654052 created [16:41:38]Thread 3066510692 joined [16:41:38]Waiting for new connection... [16:41:38] Sock 7.Parse request [16:41:38]Sock 7.Check first char [16:41:38]Sock 7.First char is OK [16:41:38]request: POST /json_proto HTTP/1.0 [16:41:38]Method: POST [16:41:38]URL: /json_proto [16:41:38]Method is POST - this is cgi request [16:41:38]url: /json_proto [16:41:38]query_string will be loaded in cgi processing [16:41:38]execute_cgi json_proto POST (null) [16:41:38]execute_cgi path=json_proto method=POST [16:41:38]POST find Content-Length [16:41:38]Host: 172.17.50.196:8080 [16:41:38]Content-Length: 254 [16:41:38]Content-Type: application/json [16:41:38] [16:41:38]POST finish read [16:41:38]Found Content-Length = 254 [16:41:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0443\u0440\u0430\u043F\u043E\u0432 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:38]execute_script... [16:41:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0443\u0440\u0430\u043F\u043E\u0432 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:38]POST & json_proto [16:41:38]process_json_proto [16:41:38]json parsed OK: [16:41:38]protocol is kg_v1.0 [16:41:38]action value=close_shift [16:41:38]process_action close_shift [16:41:38]cmd_close_shift [16:41:38]MH_GetDate [16:41:38]Write to MH i2c: F0 00 00 75 70 D4 [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: F0 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: F0 09 00 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: F0 09 00 75 70 00 C9 04 25 67 72 0D 1C 67 38 [16:41:39]GetLastDocTimeStamp 1730479252 [16:41:39]current date 1730479305 [16:41:39]FM_GetShiftState [16:41:39]SAM_PROTO_GetShiftState [16:41:39]wFMCommunicate request_size=4 [16:41:39]MH_SAM_APDU [16:41:39]CAPDU: 80 13 01 00 [16:41:39]Write to MH i2c: E2 08 00 76 70 80 13 01 00 00 00 00 00 63 [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:39]Read from MH i2c: E2 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 0E 00 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 0E 00 76 70 00 09 00 01 89 19 24 67 00 00 00 00 90 00 9C [16:41:39]RAPDU: 09 00 01 89 19 24 67 00 00 00 00 90 00 [16:41:39]wFMCommunicate OK [16:41:39]SAM_PROTO_GetShiftState done [16:41:39]FM_GetShiftState done [16:41:39]KKMCreateCloseShiftDocument [16:41:39]Load OK [16:41:39]Malloc new data [16:41:39]MH_GetDate [16:41:39]Write to MH i2c: F0 00 00 77 70 D6 [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: F0 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: F0 09 00 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: F0 09 00 77 70 00 C9 04 25 67 72 0D 1C 67 3A [16:41:39]Malloc new data [16:41:39]Malloc new data [16:41:39]Malloc new data [16:41:39]Malloc new data [16:41:39]KKMCreateCloseShiftDocument OK [16:41:39]KKMSetCloseShiftData OK [16:41:39]ProcessDocumentItem done err = 0, tmpTLVsize=69 [16:41:39]tlvbuf is 00CC5290 [16:41:39]KKMLoadAndSignCloseShiftData [16:41:39]SAM_PROTO_ProcessDocument [16:41:39]wFMCommunicate request_size=9 [16:41:39]MH_SAM_APDU [16:41:39]CAPDU: 80 15 01 00 04 05 00 45 00 [16:41:39]Write to MH i2c: E2 0C 00 78 70 80 15 01 00 04 00 05 00 45 00 00 00 B9 [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:39]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [16:41:39]Read from MH i2c: E2 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 03 00 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 03 00 78 70 00 90 00 5C [16:41:39]RAPDU: 90 00 [16:41:39]wFMCommunicate OK [16:41:39]wFMCommunicate request_size=23 [16:41:39]MH_SAM_APDU [16:41:39]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [16:41:39]Write to MH i2c: E2 1A 00 79 70 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 5E [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [16:41:39]Read from MH i2c: E2 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 03 00 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 03 00 79 70 00 90 00 5D [16:41:39]RAPDU: 90 00 [16:41:39]wFMCommunicate OK [16:41:39]wFMCommunicate request_size=28 [16:41:39]MH_SAM_APDU [16:41:39]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 A1 D1 83 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 97 2E 20 [16:41:39]Write to MH i2c: E2 1F 00 7A 70 80 15 02 00 17 00 FD 03 13 00 D0 A1 D1 83 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 97 2E 20 00 00 B5 [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [16:41:39]Read from MH i2c: E2 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 03 00 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 03 00 7A 70 00 90 00 5E [16:41:39]RAPDU: 90 00 [16:41:39]wFMCommunicate OK [16:41:39]wFMCommunicate request_size=13 [16:41:39]MH_SAM_APDU [16:41:39]CAPDU: 80 15 02 00 08 F4 03 04 00 C9 04 25 67 [16:41:39]Write to MH i2c: E2 10 00 7B 70 80 15 02 00 08 00 F4 03 04 00 C9 04 25 67 00 00 CF [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [16:41:39]Read from MH i2c: E2 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 03 00 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 03 00 7B 70 00 90 00 5F [16:41:39]RAPDU: 90 00 [16:41:39]wFMCommunicate OK [16:41:39]wFMCommunicate request_size=25 [16:41:39]MH_SAM_APDU [16:41:39]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 [16:41:39]Write to MH i2c: E2 1C 00 7C 70 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 00 00 C9 [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [16:41:39]Read from MH i2c: E2 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 03 00 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 03 00 7C 70 00 90 00 60 [16:41:39]RAPDU: 90 00 [16:41:39]wFMCommunicate OK [16:41:39]wFMCommunicate request_size=4 [16:41:39]MH_SAM_APDU [16:41:39]CAPDU: 80 15 03 00 [16:41:39]Write to MH i2c: E2 08 00 7D 70 80 15 03 00 00 00 00 00 6E [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:40]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [16:41:40]Read from MH i2c: E2 [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: E2 FD 00 [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: E2 FD 00 7D 70 00 F9 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F5 22 02 00 0E 04 04 00 2E 02 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CB 00 00 00 AA 04 B2 04 6E 04 04 00 C9 00 00 00 69 04 9C 00 6F 04 04 00 C8 00 00 00 B1 04 03 00 70 B0 B6 70 04 03 00 80 80 72 72 04 03 00 F0 2F 44 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 F5 66 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DA 9D 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 4C 36 70 90 00 71 [16:41:40]RAPDU: F9 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F5 22 02 00 0E 04 04 00 2E 02 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CB 00 00 00 AA 04 B2 04 6E 04 04 00 C9 00 00 00 69 04 9C 00 6F 04 04 00 C8 00 00 00 B1 04 03 00 70 B0 B6 70 04 03 00 80 80 72 72 04 03 00 F0 2F 44 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 F5 66 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DA 9D 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 4C 36 70 90 00 [16:41:40]wFMCommunicate OK [16:41:40]SAM_PROTO_ProcessDocument answer len = 1273 [16:41:40]SAM_PROTO_ProcessDocument remain to read = 1025 [16:41:40]wFMCommunicate request_size=4 [16:41:40]MH_SAM_APDU [16:41:40]CAPDU: 80 17 00 00 [16:41:40]Write to MH i2c: E2 08 00 7E 70 80 17 00 00 00 00 00 00 6E [16:41:40]Write i2c OK [16:41:40]MH_I2C_Read... [16:41:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:41:40]Read from MH i2c: E2 [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: E2 FD 00 [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: E2 FD 00 7E 70 00 04 02 00 4C 36 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C4 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 7B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 98 [16:41:40]RAPDU: 04 02 00 4C 36 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C4 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 7B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [16:41:40]wFMCommunicate OK [16:41:40]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [16:41:40]SAM_PROTO_ProcessDocument remain to read = 775 [16:41:40]wFMCommunicate request_size=4 [16:41:40]MH_SAM_APDU [16:41:40]CAPDU: 80 17 00 00 [16:41:40]Write to MH i2c: E2 08 00 7F 70 80 17 00 00 00 00 00 00 6F [16:41:40]Write i2c OK [16:41:40]MH_I2C_Read... [16:41:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:41:41]Read from MH i2c: E2 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 FD 00 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 FD 00 7F 70 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 D1 [16:41:41]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [16:41:41]wFMCommunicate OK [16:41:41]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [16:41:41]SAM_PROTO_ProcessDocument remain to read = 525 [16:41:41]wFMCommunicate request_size=4 [16:41:41]MH_SAM_APDU [16:41:41]CAPDU: 80 17 00 00 [16:41:41]Write to MH i2c: E2 08 00 80 70 80 17 00 00 00 00 00 00 70 [16:41:41]Write i2c OK [16:41:41]MH_I2C_Read... [16:41:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:41:41]Read from MH i2c: E2 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 FD 00 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 FD 00 80 70 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 OFD Sender: No OFD packet to send [16:41:41]09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 89 [16:41:41]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [16:41:42]wFMCommunicate OK [16:41:42]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [16:41:42]SAM_PROTO_ProcessDocument remain to read = 275 [16:41:42]wFMCommunicate request_size=4 [16:41:42]MH_SAM_APDU [16:41:42]CAPDU: 80 17 00 00 [16:41:42]Write to MH i2c: E2 08 00 81 70 80 17 00 00 00 00 00 00 71 [16:41:42]Write i2c OK [16:41:42]MH_I2C_Read... [16:41:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:41:42]Read from MH i2c: E2 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 FD 00 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 FD 00 81 70 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 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 AA [16:41:42]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [16:41:42]wFMCommunicate OK [16:41:42]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [16:41:42]SAM_PROTO_ProcessDocument remain to read = 25 [16:41:42]wFMCommunicate request_size=4 [16:41:42]MH_SAM_APDU [16:41:42]CAPDU: 80 17 00 00 [16:41:42]Write to MH i2c: E2 08 00 82 70 80 17 00 00 00 00 00 00 72 [16:41:42]Write i2c OK [16:41:42]MH_I2C_Read... [16:41:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 25! [16:41:42]Read from MH i2c: E2 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 1C 00 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 1C 00 82 70 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 3B 70 45 F2 88 BA 90 00 D7 [16:41:42]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 3B 70 45 F2 88 BA 90 00 [16:41:42]wFMCommunicate OK [16:41:42]SAM_PROTO_ProcessDocument received (without SW) 25 bytes [16:41:42]SAM_PROTO_ProcessDocument done [16:41:42]1209 (1) - 1.0 - номер версии ФФД [16:41:42]1041 (16) - 0000000000874669 - номер ФМ [16:41:42]1040 (4) - 140021 - номер ФД [16:41:42]1038 (4) - 558 - номер смены [16:41:42]1118 (4) - 201 - количество кассовых чеков за смену [16:41:42]1111 (4) - 203 - общее количество ФД за смену [16:41:42]1194 (1202) - счетчики итогов смены [16:41:42] 1134 (4) - 201 - количество чеков со всеми признаками расчетов [16:41:42] 1129 (156) - счетчики операций «приход» [16:41:42] 1135 (4) - 200 - количество чеков по признаку расчетов [16:41:42] 1201 (3) - 119727.20 - общая итоговая сумма в чеках [16:41:42] 1136 (3) - 75040.00 - итоговая сумма в чеках наличными [16:41:42] 1138 (3) - 44687.20 - итоговая сумма в чеках безналичными [16:41:42] 1024 (123) - суммы налогов [16:41:42] 1006 (9) - суммы НДС [16:41:42] 1010 (1) - 0% - код ставки НДС [16:41:42] 1011 (0) - 0.00 - сумма НДС по ставке [16:41:42] 1006 (12) - суммы НДС [16:41:42] 1010 (1) - 12% - код ставки НДС [16:41:42] 1011 (3) - 12715.41 - сумма НДС по ставке [16:41:42] 1007 (9) - суммы НСП [16:41:42] 1014 (1) - 0% - код ставки НСП [16:41:42] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:42] 1007 (12) - суммы НСП [16:41:42] 1014 (1) - 1% - код ставки НСП [16:41:42] 1015 (3) - 1059.46 - сумма НСП по ставке [16:41:42] 1007 (9) - суммы НСП [16:41:42] 1014 (1) - 2% - код ставки НСП [16:41:42] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:42] 1007 (9) - суммы НСП [16:41:42] 1014 (1) - 3% - код ставки НСП [16:41:42] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:42] 1007 (9) - суммы НСП [16:41:42] 1014 (1) - 5% - код ставки НСП [16:41:42] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:42] 1007 (9) - суммы НСП [16:41:42] 1014 (1) - 0,50% - код ставки НСП [16:41:42] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:42] 1007 (9) - суммы НСП [16:41:42] 1014 (1) - 1,50% - код ставки НСП [16:41:42] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:42] 1130 (148) - счетчики операций «возврат прихода» [16:41:42] 1135 (4) - 1 - количество чеков по признаку расчетов [16:41:42] 1201 (2) - 139.00 - общая итоговая сумма в чеках [16:41:42] 1136 (2) - 139.00 - итоговая сумма в чеках наличными [16:41:42] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [16:41:42] 1024 (120) - суммы налогов [16:41:42] 1006 (9) - суммы НДС [16:41:42] 1010 (1) - 0% - код ставки НДС [16:41:42] 1011 (0) - 0.00 - сумма НДС по ставке [16:41:42] 1006 (11) - суммы НДС [16:41:42] 1010 (1) - 12% - код ставки НДС [16:41:42] 1011 (2) - 14.76 - сумма НДС по ставке [16:41:42] 1007 (9) - суммы НСП [16:41:42] 1014 (1) - 0% - код ставки НСП [16:41:42] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:42] 1007 (10) - суммы НСП [16:41:42] 1014 (1) - 1% - код ставки НСП [16:41:42] 1015 (1) - 1.23 - сумма НСП по ставке [16:41:42] 1007 (9) - суммы НСП [16:41:42] 1014 (1) - 2% - код ставки НСП [16:41:42] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:42] 1007 (9) - суммы НСП [16:41:42] 1014 (1) - 3% - код ставки НСП [16:41:42] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:42] 1007 (9) - суммы НСП [16:41:42] 1014 (1) - 5% - код ставки НСП [16:41:42] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:42] 1007 (9) - суммы НСП [16:41:42] 1014 (1) - 0,50% - код ставки НСП [16:41:42] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:42] 1007 (9) - суммы НСП [16:41:42] 1014 (1) - 1,50% - код ставки НСП [16:41:42] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:43] 1131 (141) - счетчики операций «расход» [16:41:43] 1135 (4) - 0 - количество чеков по признаку расчетов [16:41:43] 1201 (0) - 0.00 - общая итоговая сумма в чеках [16:41:43] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [16:41:43] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [16:41:43] 1024 (117) - суммы налогов [16:41:43] 1006 (9) - суммы НДС [16:41:43] 1010 (1) - 0% - код ставки НДС [16:41:43] 1011 (0) - 0.00 - сумма НДС по ставке [16:41:43] 1006 (9) - суммы НДС [16:41:43] 1010 (1) - 12% - код ставки НДС [16:41:43] 1011 (0) - 0.00 - сумма НДС по ставке [16:41:43] 1007 (9) - суммы НСП [16:41:43] 1014 (1) - 0% - код ставки НСП [16:41:43] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:43] 1007 (9) - суммы НСП [16:41:43] 1014 (1) - 1% - код ставки НСП [16:41:43] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:43] 1007 (9) - суммы НСП [16:41:43] 1014 (1) - 2% - код ставки НСП [16:41:43] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:43] 1007 (9) - суммы НСП [16:41:43] 1014 (1) - 3% - код ставки НСП [16:41:43] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:43] 1007 (9) - суммы НСП [16:41:43] 1014 (1) - 5% - код ставки НСП [16:41:43] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:43] 1007 (9) - суммы НСП [16:41:43] 1014 (1) - 0,50% - код ставки НСП [16:41:43] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:43] 1007 (9) - суммы НСП [16:41:43] 1014 (1) - 1,50% - код ставки НСП [16:41:43] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:43] 1132 (141) - счетчики операций «возврат расхода» [16:41:43] 1135 (4) - 0 - количество чеков по признаку расчетов [16:41:43] 1201 (0) - 0.00 - общая итоговая сумма в чеках [16:41:43] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [16:41:43] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [16:41:43] 1024 (117) - суммы налогов [16:41:43] 1006 (9) - суммы НДС [16:41:43] 1010 (1) - 0% - код ставки НДС [16:41:43] 1011 (0) - 0.00 - сумма НДС по ставке [16:41:43] 1006 (9) - суммы НДС [16:41:43] 1010 (1) - 12% - код ставки НДС [16:41:43] 1011 (0) - 0.00 - сумма НДС по ставке [16:41:43] 1007 (9) - суммы НСП [16:41:43] 1014 (1) - 0% - код ставки НСП [16:41:43] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:43] 1007 (9) - суммы НСП [16:41:43] 1014 (1) - 1% - код ставки НСП [16:41:43] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:43] 1007 (9) - суммы НСП [16:41:43] 1014 (1) - 2% - код ставки НСП [16:41:43] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:43] 1007 (9) - суммы НСП [16:41:43] 1014 (1) - 3% - код ставки НСП [16:41:43] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:43] 1007 (9) - суммы НСП [16:41:43] 1014 (1) - 5% - код ставки НСП [16:41:43] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:43] 1007 (9) - суммы НСП [16:41:43] 1014 (1) - 0,50% - код ставки НСП [16:41:43] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:43] 1007 (9) - суммы НСП [16:41:43] 1014 (1) - 1,50% - код ставки НСП [16:41:43] 1015 (0) - 0.00 - сумма НСП по ставке [16:41:43] 1133 (588) - - счетчики коррекции - не используются [16:41:43]1077 (6) - 65353395898554 - ФПД [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1209 (04B9) [16:41:43]Malloc new data [16:41:43]Processing tag 1041 (0411) [16:41:43]Processing tag 1040 (0410) [16:41:43]Malloc new data [16:41:43]Processing tag 1038 (040E) [16:41:43]Malloc new data [16:41:43]Processing tag 1118 (045E) [16:41:43]Malloc new data [16:41:43]Processing tag 1111 (0457) [16:41:43]Malloc new data [16:41:43]Processing tag 1194 (04AA) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1134 (046E) [16:41:43]Malloc new data [16:41:43]Processing tag 1129 (0469) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1135 (046F) [16:41:43]Malloc new data [16:41:43]Processing tag 1201 (04B1) [16:41:43]Malloc new data [16:41:43]Processing tag 1136 (0470) [16:41:43]Malloc new data [16:41:43]Processing tag 1138 (0472) [16:41:43]Malloc new data [16:41:43]Processing tag 1024 (0400) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1006 (03EE) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1010 (03F2) [16:41:43]Malloc new data [16:41:43]Processing tag 1011 (03F3) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1006 (03EE) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1010 (03F2) [16:41:43]Malloc new data [16:41:43]Processing tag 1011 (03F3) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]SetTLVBufToDocument err=0 [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1130 (046A) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1135 (046F) [16:41:43]Malloc new data [16:41:43]Processing tag 1201 (04B1) [16:41:43]Malloc new data [16:41:43]Processing tag 1136 (0470) [16:41:43]Malloc new data [16:41:43]Processing tag 1138 (0472) [16:41:43]Malloc new data [16:41:43]Processing tag 1024 (0400) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1006 (03EE) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1010 (03F2) [16:41:43]Malloc new data [16:41:43]Processing tag 1011 (03F3) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1006 (03EE) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1010 (03F2) [16:41:43]Malloc new data [16:41:43]Processing tag 1011 (03F3) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]SetTLVBufToDocument err=0 [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1131 (046B) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1135 (046F) [16:41:43]Malloc new data [16:41:43]Processing tag 1201 (04B1) [16:41:43]Malloc new data [16:41:43]Processing tag 1136 (0470) [16:41:43]Malloc new data [16:41:43]Processing tag 1138 (0472) [16:41:43]Malloc new data [16:41:43]Processing tag 1024 (0400) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1006 (03EE) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1010 (03F2) [16:41:43]Malloc new data [16:41:43]Processing tag 1011 (03F3) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1006 (03EE) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1010 (03F2) [16:41:43]Malloc new data [16:41:43]Processing tag 1011 (03F3) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]SetTLVBufToDocument err=0 [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1132 (046C) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1135 (046F) [16:41:43]Malloc new data [16:41:43]Processing tag 1201 (04B1) [16:41:43]Malloc new data [16:41:43]Processing tag 1136 (0470) [16:41:43]Malloc new data [16:41:43]Processing tag 1138 (0472) [16:41:43]Malloc new data [16:41:43]Processing tag 1024 (0400) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1006 (03EE) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1010 (03F2) [16:41:43]Malloc new data [16:41:43]Processing tag 1011 (03F3) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1006 (03EE) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1010 (03F2) [16:41:43]Malloc new data [16:41:43]Processing tag 1011 (03F3) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1007 (03EF) [16:41:43]Load OK [16:41:43]SetTLVBufToDocument [16:41:43]Processing tag 1014 (03F6) [16:41:43]Malloc new data [16:41:43]Processing tag 1015 (03F7) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]SetTLVBufToDocument err=0 [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1133 (046D) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Processing tag 1077 (0435) [16:41:43]Malloc new data [16:41:43]SetTLVBufToDocument err=0 [16:41:43]Malloc new data [16:41:43]SAM_PROTO_GetFMData [16:41:43]wFMCommunicate request_size=4 [16:41:43]MH_SAM_APDU [16:41:43]CAPDU: 80 13 03 00 [16:41:43]Write to MH i2c: E2 08 00 83 70 80 13 03 00 00 00 00 00 72 [16:41:43]Write i2c OK [16:41:43]MH_I2C_Read... [16:41:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:41:44]Read from MH i2c: E2 [16:41:44]MH_I2C_Read... [16:41:44]Read from MH i2c: E2 FD 00 [16:41:44]MH_I2C_Read... [16:41:44]Read from MH i2c: E2 FD 00 83 70 00 C7 04 85 04 C3 04 6E 04 04 00 98 1E 02 00 69 04 A3 00 6F 04 04 00 48 1C 02 00 B1 04 05 00 B1 E2 EF 53 01 70 04 05 00 14 05 32 04 01 72 04 04 00 9D DD BD 4F 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 C5 33 1A 24 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 26 EC 01 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 50 02 00 00 B1 04 04 00 68 65 0B 09 70 04 04 00 A4 39 E7 08 72 04 03 00 C4 2B 24 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 ED E5 F5 EF 90 00 7F [16:41:44]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 98 1E 02 00 69 04 A3 00 6F 04 04 00 48 1C 02 00 B1 04 05 00 B1 E2 EF 53 01 70 04 05 00 14 05 32 04 01 72 04 04 00 9D DD BD 4F 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 C5 33 1A 24 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 26 EC 01 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 50 02 00 00 B1 04 04 00 68 65 0B 09 70 04 04 00 A4 39 E7 08 72 04 03 00 C4 2B 24 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 ED E5 F5 EF 90 00 [16:41:44]wFMCommunicate OK [16:41:44]wFMCommunicate request_size=4 [16:41:44]MH_SAM_APDU [16:41:44]CAPDU: 80 17 00 00 [16:41:44]Write to MH i2c: E2 08 00 84 70 80 17 00 00 00 00 00 00 74 [16:41:44]Write i2c OK [16:41:44]MH_I2C_Read... [16:41:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:41:44]Read from MH i2c: E2 [16:41:44]MH_I2C_Read... [16:41:44]Read from MH i2c: E2 FD 00 [16:41:44]MH_I2C_Read... [16:41:44]Read from MH i2c: E2 FD 00 84 70 00 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 95 7D 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 A7 [16:41:45]RAPDU: 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 95 7D 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 [16:41:45]wFMCommunicate OK [16:41:45]wFMCommunicate request_size=4 [16:41:45]MH_SAM_APDU [16:41:45]CAPDU: 80 17 00 00 [16:41:45]Write to MH i2c: E2 08 00 85 70 80 17 00 00 00 00 00 00 75 [16:41:45]Write i2c OK [16:41:45]MH_I2C_Read... [16:41:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:41:45]Read from MH i2c: E2 [16:41:45]MH_I2C_Read... [16:41:45]Read from MH i2c: E2 FD 00 [16:41:45]MH_I2C_Read... [16:41:45]Read from MH i2c: E2 FD 00 85 70 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 4D [16:41:45]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [16:41:45]wFMCommunicate OK [16:41:45]wFMCommunicate request_size=4 [16:41:45]MH_SAM_APDU [16:41:45]CAPDU: 80 17 00 00 [16:41:45]Write to MH i2c: E2 08 00 86 70 80 17 00 00 00 00 00 00 76 [16:41:45]Write i2c OK [16:41:45]MH_I2C_Read... [16:41:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:41:46]Read from MH i2c: E2 [16:41:46]MH_I2C_Read... [16:41:46]Read from MH i2c: E2 FD 00 [16:41:46]MH_I2C_Read... [16:41:46]Read from MH i2c: E2 FD 00 86 70 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F1 [16:41:46]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:41:46]wFMCommunicate OK [16:41:46]wFMCommunicate request_size=4 [16:41:46]MH_SAM_APDU [16:41:46]CAPDU: 80 17 00 00 [16:41:46]Write to MH i2c: E2 08 00 87 70 80 17 00 00 00 00 00 00 77 [16:41:46]Write i2c OK [16:41:46]MH_I2C_Read... [16:41:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [16:41:46]Read from MH i2c: E2 [16:41:46]MH_I2C_Read... [16:41:46]Read from MH i2c: E2 E4 00 [16:41:46]MH_I2C_Read... [16:41:46]Read from MH i2c: E2 E4 00 87 70 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 57 [16:41:46]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:41:46]wFMCommunicate OK [16:41:46]SAM_PROTO_GetFMData done [16:41:46]Malloc new data [16:41:46]Malloc new data [16:41:46]OFD Sender: No OFD packet to send [16:41:46]Malloc new data [16:41:46]Malloc new data [16:41:46]KKMLoadAndSignCloseShiftData err=0 [16:41:46]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Сурапов З. 01.11.2024 16:41 Смена: 558 РНМ: 0000000000091631 ЗНМ: 0300000081 СНО: Общий режим Чеков за смену: 201 ФД за смену: 203 Всего чеков: 201 ИТОГИ ПРИХОД Чеков: 200 Общий итог: 119727.20 Итого наличными: 75040.00 Итого безнал.: 44687.20 НДС 0% : 0.00 НДС 12% : 12715.41 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1059.46 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 139.00 Итого наличными: 139.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 14.76 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1.23 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 74901.00 НС Приход: 57031973.61 НС Возвр.Прихода: 1517418.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 140021 ФМ: 0000000000874669 ФПД: 65353395898554 [16:41:46]StoreToDocumentArchive [16:41:46]shift 558 fd 140021 [16:41:46]save to /storage/0558/doc_00140021 [16:41:46]save last doc name /storage/0558/doc_00140021 to /storage/kkm_last_doc_name [16:41:46]save OK [16:41:46]Clear old archive folders... [16:41:46]Remove dir /storage/0522 [16:41:46]opendir ok [16:41:46]file . [16:41:46]file .. [16:41:46]file doc_1730479260 [16:41:46]remove file /storage/0522/doc_1730479260 [16:41:46]remove dir /storage/0522 [16:41:46]NVStorageSaveData kkm_registers [16:41:46]File name is /storage/kkm_registers [16:41:46]Write 24 bytes [16:41:46]NVStorageSaveData done [16:41:46]NVStorageSaveData kkm_registers [16:41:46]File name is /storage/kkm_registers [16:41:46]Write 24 bytes [16:41:47]NVStorageSaveData done [16:41:47]ProcessDocumentItem done err = 0, tmpTLVsize=1381 [16:41:47]tlvbuf is 00CEBB10 [16:41:47]SAM_PROTO_ClearQueue [16:41:47]wFMCommunicate request_size=4 [16:41:47]MH_SAM_APDU [16:41:47]CAPDU: 80 09 00 00 [16:41:47]Write to MH i2c: E2 08 00 88 70 80 09 00 00 00 00 00 00 6A [16:41:47]Write i2c OK [16:41:47]MH_I2C_Read... [16:41:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:47]Read from MH i2c: E2 [16:41:47]MH_I2C_Read... [16:41:47]Read from MH i2c: E2 03 00 [16:41:47]MH_I2C_Read... [16:41:47]Read from MH i2c: E2 03 00 88 70 00 90 00 6C [16:41:47]RAPDU: 90 00 [16:41:47]wFMCommunicate OK [16:41:47]SAM_PROTO_ClearQueue done [16:41:47]KKMCreateOFDPacket [16:41:47]OFDProtocolAddRootSTLVToBuf [16:41:47]FM_MakeSignedData [16:41:47]FM_MakeSignedData [16:41:47]SAM_PROTO_SignData [16:41:47]wFMCommunicate request_size=4 [16:41:47]MH_SAM_APDU [16:41:47]CAPDU: 80 0D 01 02 [16:41:47]Write to MH i2c: E2 08 00 89 70 80 0D 01 02 00 00 00 00 72 [16:41:47]Write i2c OK [16:41:47]MH_I2C_Read... [16:41:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:47]Read from MH i2c: E2 [16:41:47]MH_I2C_Read... [16:41:47]Read from MH i2c: E2 03 00 [16:41:47]MH_I2C_Read... [16:41:47]Read from MH i2c: E2 03 00 89 70 00 90 00 6D [16:41:47]RAPDU: 90 00 [16:41:47]wFMCommunicate OK [16:41:47]wFMCommunicate request_size=255 [16:41:47]MH_SAM_APDU [16:41:47]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 13 00 D0 A1 D1 83 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 97 2E 20 F4 03 04 00 C9 04 25 67 0E 04 04 00 2E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 5E 04 04 00 C9 00 00 00 57 04 04 00 CB 00 00 00 AA 04 D9 04 6E 04 04 00 C9 00 00 00 69 04 A3 00 6F 04 04 00 C8 00 00 00 B1 04 03 00 70 B0 B6 70 04 03 00 80 80 72 72 04 03 00 F0 2F 44 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F5 66 13 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 [16:41:47]Write to MH i2c: E2 02 01 8A 70 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 13 00 D0 A1 D1 83 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 97 2E 20 F4 03 04 00 C9 04 25 67 0E 04 04 00 2E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 5E 04 04 00 C9 00 00 00 57 04 04 00 CB 00 00 00 AA 04 D9 04 6E 04 04 00 C9 00 00 00 69 04 A3 00 6F 04 04 00 C8 00 00 00 B1 04 03 00 70 B0 B6 70 04 03 00 80 80 72 72 04 03 00 F0 2F 44 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F5 66 13 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 00 A9 [16:41:47]Write i2c OK [16:41:47]MH_I2C_Read... [16:41:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:47]Read from MH i2c: E2 [16:41:47]MH_I2C_Read... [16:41:47]Read from MH i2c: E2 03 00 [16:41:47]MH_I2C_Read... [16:41:47]Read from MH i2c: E2 03 00 8A 70 00 90 00 6E [16:41:47]RAPDU: 90 00 [16:41:47]wFMCommunicate OK [16:41:47]wFMCommunicate request_size=255 [16:41:47]MH_SAM_APDU [16:41:47]CAPDU: 80 0D 02 02 FA 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DA 9D 01 6A 04 9C 00 6F 04 04 00 01 00 00 00 B1 04 02 00 4C 36 70 04 02 00 4C 36 72 04 01 00 00 00 04 7F 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C4 05 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 7B 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 [16:41:47]Write to MH i2c: E2 02 01 8B 70 80 0D 02 02 FA 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DA 9D 01 6A 04 9C 00 6F 04 04 00 01 00 00 00 B1 04 02 00 4C 36 70 04 02 00 4C 36 72 04 01 00 00 00 04 7F 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C4 05 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 7B 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 00 00 AF [16:41:48]Write i2c OK [16:41:48]MH_I2C_Read... [16:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:48]Read from MH i2c: E2 [16:41:48]MH_I2C_Read... [16:41:48]Read from MH i2c: E2 03 00 [16:41:48]MH_I2C_Read... [16:41:48]Read from MH i2c: E2 03 00 8B 70 00 90 00 6F [16:41:48]RAPDU: 90 00 [16:41:48]wFMCommunicate OK [16:41:48]wFMCommunicate request_size=255 [16:41:48]MH_SAM_APDU [16:41:48]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 [16:41:48]Write to MH i2c: E2 02 01 8C 70 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 3D [16:41:48]Write i2c OK [16:41:48]MH_I2C_Read... [16:41:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:49]Read from MH i2c: E2 [16:41:49]MH_I2C_Read... [16:41:49]Read from MH i2c: E2 03 00 [16:41:49]MH_I2C_Read... [16:41:49]Read from MH i2c: E2 03 00 8C 70 00 90 00 70 [16:41:49]RAPDU: 90 00 [16:41:49]wFMCommunicate OK [16:41:49]wFMCommunicate request_size=255 [16:41:49]MH_SAM_APDU [16:41:49]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 [16:41:49]Write to MH i2c: E2 02 01 8D 70 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 3B [16:41:49]Write i2c OK [16:41:49]MH_I2C_Read... [16:41:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:49]Read from MH i2c: E2 [16:41:49]MH_I2C_Read... [16:41:49]Read from MH i2c: E2 03 00 [16:41:49]MH_I2C_Read... [16:41:49]Read from MH i2c: E2 03 00 8D 70 00 90 00 71 [16:41:49]RAPDU: 90 00 [16:41:49]wFMCommunicate OK [16:41:49]wFMCommunicate request_size=255 [16:41:49]MH_SAM_APDU [16:41:49]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 [16:41:50]Write to MH i2c: E2 02 01 8E 70 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 03 [16:41:50]Write i2c OK [16:41:50]MH_I2C_Read... [16:41:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:50]Read from MH i2c: E2 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 03 00 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 03 00 8E 70 00 90 00 72 [16:41:50]RAPDU: 90 00 [16:41:50]wFMCommunicate OK [16:41:50]wFMCommunicate request_size=140 [16:41:50]MH_SAM_APDU [16:41:50]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 F5 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 35 04 06 00 3B 70 45 F2 88 BA [16:41:50]Write to MH i2c: E2 8F 00 8F 70 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 F5 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 35 04 06 00 3B 70 45 F2 88 BA 00 00 FD [16:41:50]Write i2c OK [16:41:50]MH_I2C_Read... [16:41:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:50]Read from MH i2c: E2 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 03 00 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 03 00 8F 70 00 90 00 73 [16:41:50]RAPDU: 90 00 [16:41:50]wFMCommunicate OK [16:41:50]wFMCommunicate request_size=4 [16:41:50]MH_SAM_APDU [16:41:50]CAPDU: 80 0D 03 02 [16:41:50]Write to MH i2c: E2 08 00 90 70 80 0D 03 02 00 00 00 00 7B [16:41:50]Write i2c OK [16:41:50]MH_I2C_Read... [16:41:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:50]Read from MH i2c: E2 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 0B 00 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 0B 00 90 70 00 E7 C4 12 BF D9 C0 58 0C 90 00 F5 [16:41:50]RAPDU: E7 C4 12 BF D9 C0 58 0C 90 00 [16:41:50]wFMCommunicate OK [16:41:50]SAM_PROTO_SignData done [16:41:50]FM_MakeSignedData done [16:41:50]CreateOFDProtocolMessage [16:41:50]wFMCommunicate request_size=4 [16:41:50]MH_SAM_APDU [16:41:50]CAPDU: 80 11 00 00 [16:41:50]Write to MH i2c: E2 08 00 91 70 80 11 00 00 00 00 00 00 7B [16:41:51]Write i2c OK [16:41:51]MH_I2C_Read... [16:41:51]Read from MH i2c: E2 [16:41:51]MH_I2C_Read... [16:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:51]Read from MH i2c: E2 17 00 [16:41:51]MH_I2C_Read... [16:41:51]Read from MH i2c: E2 17 00 91 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D6 [16:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:41:51]wFMCommunicate OK [16:41:51]CreateOFDProtocolMessage done [16:41:51]OFDSenderStorePacket 140021 [16:41:51]StoreOFDPacket docnum=140021 [16:41:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 79 05 00 00 92 E4 71 05 84 8E 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 13 00 D0 A1 D1 83 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 97 2E 20 F4 03 04 00 C9 04 25 67 0E 04 04 00 2E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 5E 04 04 00 C9 00 00 00 57 04 04 00 CB 00 00 00 AA 04 D9 04 6E 04 04 00 C9 00 00 00 69 04 A3 00 6F 04 04 00 C8 00 00 00 B1 04 03 00 70 B0 B6 70 04 03 00 80 80 72 72 04 03 00 F0 2F 44 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F5 66 13 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DA 9D 01 6A 04 9C 00 6F 04 04 00 01 00 00 00 B1 04 02 00 4C 36 70 04 02 00 4C 36 72 04 01 00 00 00 04 7F 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C4 05 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 7B 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 F5 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 35 04 06 00 3B 70 45 F2 88 BA E7 C4 12 BF D9 C0 58 0C [16:41:51]CheckFolder [16:41:51]dirname=/storage/ofd_packets [16:41:51]CheckFolder done [16:41:51]ProducePacketName [16:41:51]name=ofd_packets/00140021 [16:41:51]NVStorageSaveData ofd_packets/00140021 [16:41:51]File name is /storage/ofd_packets/00140021 [16:41:51]Write 1431 bytes [16:41:51]NVStorageSaveData done [16:41:51]OFDSenderStorePacket done [16:41:51]KKMCreateOFDPacket done [16:41:51]NVStorageSaveData kkm_last_timestamp [16:41:51]File name is /storage/kkm_last_timestamp [16:41:51]Write 4 bytes [16:41:51]NVStorageSaveData done [16:41:51]ExternCall_PrintAddStr [16:41:51]wPrintStart [16:41:51]Write to MH i2c: 01 00 00 92 70 02 [16:41:51]Write i2c OK [16:41:51]MH_I2C_Read... [16:41:51]Read from MH i2c: 01 [16:41:51]MH_I2C_Read... [16:41:51]Read from MH i2c: 01 07 00 [16:41:51]MH_I2C_Read... [16:41:51]OFD Sender: Processing packet 140021 [packets to send 34, broken 33] [16:41:51]ProducePacketName [16:41:51]name=ofd_packets/00140021 [16:41:51]OFD Sender: To server: pG, [16:41:51]CommunicateWithHost lk.salyk.kg:30040 [16:41:51]ConnectInit lk.salyk.kg [16:41:51]Read from MH i2c: 01 07 00 92 70 00 00 00 00 00 FF 0F 17 [16:41:51]RasterBufferAndPrint [16:41:51]line Отчет о закрытии смены [16:41:51]line ФФД: 1.0 [16:41:51]line ИНН: 02508201610067 [16:41:51]line Кассир: Сурапов З. [16:41:51]line 01.11.2024 16:41 [16:41:51]line Смена: 558 [16:41:51]line РНМ: 0000000000091631 [16:41:51]line ЗНМ: 0300000081 [16:41:51]line СНО: Общий режим [16:41:51]line Чеков за смену: 201 [16:41:51]line ФД за смену: 203 [16:41:51]line Всего чеков: 201 [16:41:51]line ИТОГИ ПРИХОД [16:41:51]line Чеков: 200 [16:41:51]line Общий итог: 119727.20 [16:41:51]line Итого наличными: 75040.00 [16:41:51]line Итого безнал.: 44687.20 [16:41:51]line НДС 0% : 0.00 [16:41:51]line НДС 12% : 12715.41 [16:41:51]line НСП 0% : 0.00 [16:41:51]line НСП 1,50% : 0.00 [16:41:51]line НСП 0,50% : 0.00 [16:41:51]line НСП 5% : 0.00 [16:41:51]line НСП 3% : 0.00 [16:41:51]line НСП 2% : 0.00 [16:41:51]line НСП 1% : 1059.46 [16:41:51]line ИТОГИ ВОЗВРАТ ПРИХОДА [16:41:51]line Чеков: 1 [16:41:51]line Общий итог: 139.00 [16:41:51]line Итого наличными: 139.00 [16:41:51]line Итого безнал.: 0.00 [16:41:51]line НДС 0% : 0.00 [16:41:51]line НДС 12% : 14.76 [16:41:51]line НСП 0% : 0.00 [16:41:51]line НСП 1,50% : 0.00 [16:41:51]line НСП 0,50% : 0.00 [16:41:51]line НСП 5% : 0.00 [16:41:51]line НСП 3% : 0.00 [16:41:51]line НСП 2% : 0.00 [16:41:51]line НСП 1% : 1.23 [16:41:51]line ИТОГИ РАСХОД [16:41:51]line Чеков: 0 [16:41:51]line Общий итог: 0.00 [16:41:51]line Итого наличными: 0.00 [16:41:51]line Итого безнал.: 0.00 [16:41:51]line НДС 0% : 0.00 [16:41:51]line НДС 12% : 0.00 [16:41:51]line НСП 0% : 0.00 [16:41:51]line НСП 1,50% : 0.00 [16:41:51]line НСП 0,50% : 0.00 [16:41:51]line НСП 5% : 0.00 [16:41:51]line НСП 3% : 0.00 [16:41:51]line НСП 2% : 0.00 [16:41:51]line НСП 1% : 0.00 [16:41:51]line ИТОГИ ВОЗВРАТ РАСХОДА [16:41:51]line Чеков: 0 [16:41:51]line Общий итог: 0.00 [16:41:51]line Итого наличными: 0.00 [16:41:51]line Итого безнал.: 0.00 [16:41:51]line НДС 0% : 0.00 [16:41:51]line НДС 12% : 0.00 [16:41:51]line НСП 0% : 0.00 [16:41:51]line НСП 1,50% : 0.00 [16:41:51]line НСП 0,50% : 0.00 [16:41:51]line НСП 5% : 0.00 [16:41:51]line НСП 3% : 0.00 [16:41:51]line НСП 2% : 0.00 [16:41:51]line НСП 1% : 0.00 [16:41:51]line Сумма внесений: 0.00 [16:41:51]line Сумма выплат: 0.00 [16:41:51]line Нал. в кассе: 74901.00 [16:41:51]line НС Приход: 57031973.61 [16:41:51]line НС Возвр.Прихода: 1517418.00 [16:41:51]line НС Расход: 0.00 [16:41:51]line НС Возвр.Расхода: 0.00 [16:41:51]line ФД: 140021 [16:41:51]Connected sock=10 [16:41:51]line ФМ: 0000000000874669 [16:41:51]Data to sent: line ФПД: 65353395898554 [16:41:51]87 95 F6 70 47 2C 01 00 30 30 30 written 0, free lines is 4095 [16:41:51]30 30 30 30 30 30 30 38 37 34 36 36 39 79 05 00 00 92 E4 71 05 84 8E 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 13 00 D0 A1 D1 83 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 97 2E 20 F4 03 04 00 C9 04 25 67 0E 04 04 00 2E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 5E 04 04 00 C9 00 00 00 57 04 04 00 CB 00 00 00 AA 04 D9 04 6E 04 04 00 C9 00 00 00 69 04 A3 00 6F 04 04 00 C8 00 00 00 B1 04 03 00 70 B0 B6 70 04 03 00 80 80 72 72 04 03 00 F0 2F 44 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F5 66 13 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DA 9D 01 6A 04 9C 00 6F 04 04 00 01 00 00 00 B1 04 02 00 4C 36 70 04 02 00 4C 36 72 04 01 00 00 00 04 7F 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 C4 05 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 7B 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 Write to MH i2c: 03 01 01 00 00 00 04 E2 F7 70 03 52 00 [16:41:52]00 Write i2c OK [16:41:52]EF MH_I2C_Read... [16:41:52]03 Read from MH i2c: 09 01 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 [16:41:52]F6 MH_I2C_Read... [16:41:52]03 Read from MH i2c: 01 01 00 07 06 00 F7 [16:41:52]03 00 MH_I2C_Read... [16:41:52]00 Read from MH i2c: D0 01 04 07 8D 00 00 E2 6F 70 04 00 04 00 00 00 00 00 00 00 00 0D 00 0B B1 71 04 [16:41:52]00 RasterBufferAndPrint [16:41:52]00 line [16:41:52]70 line [16:41:52]04 line [16:41:52]00 line [16:41:52]00 line [16:41:52]72 04 00 written 0, free lines is 2980 [16:41:52]00 00 04 75 00 EE 03 09 00 F2 03 01 00 MH_Cut [16:41:52]00 Write to MH i2c: F3 D1 03 01 00 00 00 E9 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 70 09 01 00 2B F6 [16:41:52]03 01 00 00 F7 03 00 Write i2c OK [16:41:52]00 MH_I2C_Read... [16:41:52]EF Read from MH i2c: 03 D1 09 [16:41:52]00 MH_I2C_Read... [16:41:52]F6 03 01 00 01 F7 03 00 00 EF 03 09 00 Read from MH i2c: F6 D1 03 01 01 00 00 [16:41:52]02 MH_I2C_Read... [16:41:52]F7 03 00 00 Read from MH i2c: EF D1 03 01 09 00 00 E9 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 70 00 00 04 2A F7 [16:41:52]03 Write to MH i2c: 00 01 00 00 00 EA 70 5A [16:41:52]EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 Write i2c OK [16:41:52]F3 MH_I2C_Read... [16:41:52]03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F5 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 35 04 06 00 3B 70 45 F2 88 BA E7 C4 12 BF D9 C0 58 0C [16:41:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 CE B4 47 00 EC 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 34 36 36 39 10 04 04 00 F5 22 02 00 F4 03 04 00 7F B0 24 67 B6 04 01 00 00 95 62 B1 D4 0A 46 1A FA [16:41:53]CommunicateWithHost err = 0 [16:41:53]CheckOFDResponse [16:41:53]1017 (14) - 77093643461234 [16:41:53]1041 (16) - 0000000000874669 [16:41:53]1040 (4) - 140021 [16:41:53]1012 (4) - 01.11.2024 10:42 [16:41:53]1206 (1) - 0 [16:41:53]OFD Sender: Remove packet 140021 [16:41:53]ProducePacketName [16:41:53]name=ofd_packets/00140021 [16:41:53]NVStorageDeleteData [16:41:53]*** Cut start [16:41:53]*** Partial cut [16:41:53]*** CUTSNS_PIN = 1 [16:41:53]*** CUTSNS_PIN = 0 [16:41:53]*** Brake cut motor [16:41:53]OFD Sender: No OFD packet to send [16:41:54]Read from MH i2c: 01 [16:41:54]MH_I2C_Read... [16:41:54]*** Stop cut motor [16:41:54]*** Cut end [16:41:54]Read from MH i2c: 01 07 00 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: 01 07 00 EA 70 00 00 00 00 00 FF 0F 6F [16:41:54]process_action close_shift done [16:41:54]requested_data is exist [16:41:54]produce_requested_data [16:41:54]requested_item fd.num is exist - process it [16:41:54]SAM_PROTO_GetFieldsCounters [16:41:54]wFMCommunicate request_size=4 [16:41:54]MH_SAM_APDU [16:41:54]CAPDU: 80 13 00 00 [16:41:54]Write to MH i2c: E2 08 00 EB 70 80 13 00 00 00 00 00 00 D7 [16:41:54]Write i2c OK [16:41:54]MH_I2C_Read... [16:41:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:54]Read from MH i2c: E2 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: E2 62 00 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: E2 62 00 EB 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F5 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [16:41:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F5 22 02 00 0E 04 04 00 2E 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:54]wFMCommunicate OK [16:41:54]SAM_PROTO_GetFieldsCounters done [16:41:54]requested_item shift.num is exist - process it [16:41:54]requested_item shift.opened is exist - process it [16:41:54]req_shift_opened [16:41:54]FM_GetShiftState [16:41:54]SAM_PROTO_GetShiftState [16:41:54]wFMCommunicate request_size=4 [16:41:54]MH_SAM_APDU [16:41:54]CAPDU: 80 13 01 00 [16:41:54]Write to MH i2c: E2 08 00 EC 70 80 13 01 00 00 00 00 00 D9 [16:41:54]Write i2c OK [16:41:54]MH_I2C_Read... [16:41:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:54]Read from MH i2c: E2 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: E2 0E 00 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: E2 0E 00 EC 70 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E4 [16:41:54]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [16:41:54]wFMCommunicate OK [16:41:54]SAM_PROTO_GetShiftState done [16:41:54]FM_GetShiftState done [16:41:54]req_shift_opened done [16:41:54]requested_item shift.open_date is exist - process it [16:41:54]req_shift_open_date [16:41:54]FM_GetShiftState [16:41:54]SAM_PROTO_GetShiftState [16:41:54]wFMCommunicate request_size=4 [16:41:54]MH_SAM_APDU [16:41:54]CAPDU: 80 13 01 00 [16:41:54]Write to MH i2c: E2 08 00 ED 70 80 13 01 00 00 00 00 00 DA [16:41:54]Write i2c OK [16:41:54]MH_I2C_Read... [16:41:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:54]Read from MH i2c: E2 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: E2 0E 00 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: E2 0E 00 ED 70 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E5 [16:41:54]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [16:41:54]wFMCommunicate OK [16:41:54]SAM_PROTO_GetShiftState done [16:41:54]FM_GetShiftState done [16:41:54]req_shift_open_date done [16:41:54]produce_requested_data done [16:41:54]produce_requested_data return {"fd.num":140021,"shift.num":558,"shift.opened":0,"shift.open_date":0} [16:41:54]process_action_free close_shift [16:41:54]json_value_free [16:41:54]json_value_free done [16:41:54]process_json_proto returns [16:41:54]Send response to host [16:41:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":140021,"shift.num":558,"shift.opened":0,"shift.open_date":0}}} [16:41:54]free response buf [16:41:54]execute_script done [16:41:54]execute_script returns [16:41:54]free content buf [16:41:54]Sock 7.Close socket [16:41:54]Sock 7.Thread stoped [16:41:58]OFD Sender: No OFD packet to send [16:42:03]OFD Sender: No OFD packet to send [16:42:08]OFD Sender: No OFD packet to send [16:42:13]OFD Sender: No OFD packet to send [16:42:18]OFD Sender: No OFD packet to send [16:42:23]OFD Sender: No OFD packet to send [16:42:28]OFD Sender: No OFD packet to send [16:42:33]OFD Sender: No OFD packet to send [16:42:38]OFD Sender: No OFD packet to send [16:42:43]OFD Sender: No OFD packet to send [16:42:48]OFD Sender: No OFD packet to send [16:42:53]OFD Sender: No OFD packet to send [16:42:58]OFD Sender: No OFD packet to send [16:43:03]OFD Sender: No OFD packet to send [16:43:08]OFD Sender: No OFD packet to send [16:43:13]OFD Sender: No OFD packet to send [16:43:18]OFD Sender: No OFD packet to send [16:43:23]OFD Sender: No OFD packet to send [16:43:28]OFD Sender: No OFD packet to send [16:43:33]OFD Sender: No OFD packet to send [16:43:38]OFD Sender: No OFD packet to send [16:43:43]OFD Sender: No OFD packet to send [16:43:48]OFD Sender: No OFD packet to send [16:43:53]OFD Sender: No OFD packet to send [16:43:58]OFD Sender: No OFD packet to send [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:13]OFD Sender: No OFD packet to send [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:13]OFD Sender: No OFD packet to send [16:46:18]OFD Sender: No OFD packet to send [16:46:23]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:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send